bxs-tools-ui 2.0.4 → 2.0.6
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/lib/add-and-take/index.js +1301 -1231
- package/lib/adjust-baoe/index.js +1297 -1269
- package/lib/business-card/index.js +2 -2
- package/lib/bxs-utils/index.js +1292 -1253
- package/lib/canvas-poster/index.js +2 -2
- package/lib/index.js +1603 -1569
- package/lib/insure-calculate/index.js +1303 -1262
- package/lib/person-info/index.js +1298 -1259
- package/lib/product-info/index.js +694 -651
- package/package.json +1 -1
- package/packages/add-and-take/api.ts +2 -3
- package/packages/adjust-baoe/demo/index.vue +4 -14
- package/packages/adjust-baoe/index.vue +6 -30
- package/packages/bxs-utils/planbook/product.ts +12 -2
- package/packages/bxs-utils/trade/insureCalculate.js +3 -16
- package/packages/insure-calculate/demo/index.vue +1 -1
- package/packages/insure-calculate/index.vue +11 -40
- package/packages/person-info/demo/index.vue +3 -7
- package/packages/planbook-input/api.js +2 -1
- package/packages/planbook-input/components/product-table.vue +0 -1
- package/packages/planbook-input/helper.js +5 -11
- package/packages/planbook-input/index.vue +16 -20
- package/packages/product-info/demo/index.vue +4 -10
- package/packages/product-info/index.vue +2 -2
- package/src/js/variables.js +34 -8
|
@@ -18490,7 +18490,7 @@ function isPromise(obj) {
|
|
|
18490
18490
|
else {}
|
|
18491
18491
|
}.call(this));
|
|
18492
18492
|
|
|
18493
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
18493
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26), __webpack_require__(38)(module)))
|
|
18494
18494
|
|
|
18495
18495
|
/***/ }),
|
|
18496
18496
|
/* 4 */
|
|
@@ -18866,6 +18866,63 @@ module.exports = {
|
|
|
18866
18866
|
/* 7 */
|
|
18867
18867
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18868
18868
|
|
|
18869
|
+
"use strict";
|
|
18870
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return IS_PRODUCT_ENV; });
|
|
18871
|
+
/* unused harmony export IS_DEVELOP_ENV */
|
|
18872
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IS_LOCALHOST_ENV; });
|
|
18873
|
+
/* unused harmony export IS_UAT_ENV */
|
|
18874
|
+
/* unused harmony export IS_ENABLE_DEBUG */
|
|
18875
|
+
/* unused harmony export MAIN_DOMAIN */
|
|
18876
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return APP_HOSTNAME; });
|
|
18877
|
+
/* unused harmony export CONTENT_HOSTNAME */
|
|
18878
|
+
/* unused harmony export CLIENT_HOSTNAME */
|
|
18879
|
+
/* unused harmony export TOOL_API_HOSTNAME */
|
|
18880
|
+
/* unused harmony export INTERACTION_HOSTNAME */
|
|
18881
|
+
/* unused harmony export PBF_HOSTNAME */
|
|
18882
|
+
/* unused harmony export POLICY_INSPECTION_HOSTNAME */
|
|
18883
|
+
/* unused harmony export BROKER_HOSTNAME */
|
|
18884
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return PLANBOOK_API_HOSTNAME; });
|
|
18885
|
+
/* unused harmony export CRM_HOSTNAME */
|
|
18886
|
+
/* unused harmony export WX_HOSTNAME */
|
|
18887
|
+
/* unused harmony export URL_PARAM */
|
|
18888
|
+
/* unused harmony export getUrlParams */
|
|
18889
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
18890
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
18891
|
+
|
|
18892
|
+
var hostname = window && window.location && window.location.hostname || '';
|
|
18893
|
+
var IS_PRODUCT_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.com/) !== -1;
|
|
18894
|
+
var IS_DEVELOP_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.cn/) !== -1;
|
|
18895
|
+
var IS_LOCALHOST_ENV = hostname.search(/localhost|192\.168|127\.0\.0\.1|dev\.winbaoxian\.cn/) !== -1;
|
|
18896
|
+
var IS_UAT_ENV = hostname.includes("pbf-uat.");
|
|
18897
|
+
var IS_ENABLE_DEBUG = !IS_PRODUCT_ENV;
|
|
18898
|
+
if (IS_ENABLE_DEBUG) {
|
|
18899
|
+
console.error("\u975E\u7EBF\u4E0A\u73AF\u5883\uFF0C\u9ED8\u8BA4\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F");
|
|
18900
|
+
}
|
|
18901
|
+
var topDomain = IS_PRODUCT_ENV ? 'com' : 'cn';
|
|
18902
|
+
var secondDomain = hostname.includes('ai-baoxiaozhu') ? 'ai-baoxiaozhu' : 'winbaoxian';
|
|
18903
|
+
var MAIN_DOMAIN = "".concat(secondDomain, ".").concat(topDomain);
|
|
18904
|
+
var APP_HOSTNAME = "https://app.".concat(MAIN_DOMAIN);
|
|
18905
|
+
var CONTENT_HOSTNAME = "https://content.".concat(MAIN_DOMAIN);
|
|
18906
|
+
var CLIENT_HOSTNAME = "https://client.".concat(MAIN_DOMAIN);
|
|
18907
|
+
var TOOL_API_HOSTNAME = "https://tool-api.".concat(MAIN_DOMAIN);
|
|
18908
|
+
var INTERACTION_HOSTNAME = "https://interaction-api.".concat(MAIN_DOMAIN);
|
|
18909
|
+
var PBF_HOSTNAME = "https://pbf.".concat(MAIN_DOMAIN);
|
|
18910
|
+
var POLICY_INSPECTION_HOSTNAME = "https://policy-inspection.".concat(MAIN_DOMAIN);
|
|
18911
|
+
var BROKER_HOSTNAME = "https://broker-2a.wyins.net".concat(IS_PRODUCT_ENV ? '' : '.cn');
|
|
18912
|
+
var PLANBOOK_API_HOSTNAME = "https://bxs-planbook-api".concat(IS_UAT_ENV ? '-uat' : '', ".").concat(MAIN_DOMAIN);
|
|
18913
|
+
var CRM_HOSTNAME = "https://wechat-crm.".concat(MAIN_DOMAIN);
|
|
18914
|
+
var WX_HOSTNAME = "https://wx.".concat(MAIN_DOMAIN);
|
|
18915
|
+
var URL_PARAM = getUrlParams();
|
|
18916
|
+
function getUrlParams(url) {
|
|
18917
|
+
var _url = url || location.search || '';
|
|
18918
|
+
var _searchStr = _url.split('?')[1];
|
|
18919
|
+
return _searchStr ? qs__WEBPACK_IMPORTED_MODULE_0___default.a.parse(_searchStr) : {};
|
|
18920
|
+
}
|
|
18921
|
+
|
|
18922
|
+
/***/ }),
|
|
18923
|
+
/* 8 */
|
|
18924
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18925
|
+
|
|
18869
18926
|
"use strict";
|
|
18870
18927
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
18871
18928
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -18967,7 +19024,7 @@ function normalizeComponent(
|
|
|
18967
19024
|
|
|
18968
19025
|
|
|
18969
19026
|
/***/ }),
|
|
18970
|
-
/*
|
|
19027
|
+
/* 9 */
|
|
18971
19028
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18972
19029
|
|
|
18973
19030
|
"use strict";
|
|
@@ -19010,18 +19067,18 @@ __webpack_require__.d(__webpack_exports__, "checkInsureCalculate", function() {
|
|
|
19010
19067
|
__webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function() { return /* reexport */ checkInsureCalculateIn; });
|
|
19011
19068
|
|
|
19012
19069
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/index.ts
|
|
19013
|
-
var planbook = __webpack_require__(
|
|
19070
|
+
var planbook = __webpack_require__(20);
|
|
19014
19071
|
|
|
19015
19072
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
19016
|
-
var asyncToGenerator = __webpack_require__(
|
|
19073
|
+
var asyncToGenerator = __webpack_require__(24);
|
|
19017
19074
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
19018
19075
|
|
|
19019
19076
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
|
|
19020
|
-
var helpers_typeof = __webpack_require__(
|
|
19077
|
+
var helpers_typeof = __webpack_require__(14);
|
|
19021
19078
|
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
|
19022
19079
|
|
|
19023
19080
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
19024
|
-
var regenerator = __webpack_require__(
|
|
19081
|
+
var regenerator = __webpack_require__(18);
|
|
19025
19082
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
19026
19083
|
|
|
19027
19084
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
@@ -19029,7 +19086,7 @@ var axios = __webpack_require__(77);
|
|
|
19029
19086
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
19030
19087
|
|
|
19031
19088
|
// EXTERNAL MODULE: ./src/js/variables.js
|
|
19032
|
-
var variables = __webpack_require__(
|
|
19089
|
+
var variables = __webpack_require__(7);
|
|
19033
19090
|
|
|
19034
19091
|
// CONCATENATED MODULE: ./src/js/request.js
|
|
19035
19092
|
|
|
@@ -19104,17 +19161,8 @@ service.interceptors.response.use(function (response) {
|
|
|
19104
19161
|
*/
|
|
19105
19162
|
|
|
19106
19163
|
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
19110
|
-
env = 'https://insurance2a-api.wyins.net';
|
|
19111
|
-
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
19112
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
19113
|
-
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost|0\.0\.0\.0/) !== -1) {
|
|
19114
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
19115
|
-
}
|
|
19116
|
-
return env;
|
|
19117
|
-
}();
|
|
19164
|
+
|
|
19165
|
+
var baseURL = "https://insurance2a-api.wyins.net".concat(variables["c" /* IS_PRODUCT_ENV */] ? '' : '.cn');
|
|
19118
19166
|
|
|
19119
19167
|
/**
|
|
19120
19168
|
* **获取地址信息**
|
|
@@ -19562,7 +19610,7 @@ function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
|
19562
19610
|
|
|
19563
19611
|
|
|
19564
19612
|
/***/ }),
|
|
19565
|
-
/*
|
|
19613
|
+
/* 10 */
|
|
19566
19614
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19567
19615
|
|
|
19568
19616
|
"use strict";
|
|
@@ -19573,7 +19621,7 @@ module.exports = TypeError;
|
|
|
19573
19621
|
|
|
19574
19622
|
|
|
19575
19623
|
/***/ }),
|
|
19576
|
-
/*
|
|
19624
|
+
/* 11 */
|
|
19577
19625
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19578
19626
|
|
|
19579
19627
|
"use strict";
|
|
@@ -19841,7 +19889,7 @@ function restrictElementsInInsurance(_a) {
|
|
|
19841
19889
|
|
|
19842
19890
|
|
|
19843
19891
|
/***/ }),
|
|
19844
|
-
/*
|
|
19892
|
+
/* 12 */
|
|
19845
19893
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19846
19894
|
|
|
19847
19895
|
"use strict";
|
|
@@ -20153,8 +20201,8 @@ function convertPersonData(allPersonsData, type) {
|
|
|
20153
20201
|
|
|
20154
20202
|
|
|
20155
20203
|
/***/ }),
|
|
20156
|
-
/*
|
|
20157
|
-
/*
|
|
20204
|
+
/* 13 */,
|
|
20205
|
+
/* 14 */
|
|
20158
20206
|
/***/ (function(module, exports) {
|
|
20159
20207
|
|
|
20160
20208
|
function _typeof(o) {
|
|
@@ -20169,7 +20217,25 @@ function _typeof(o) {
|
|
|
20169
20217
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20170
20218
|
|
|
20171
20219
|
/***/ }),
|
|
20172
|
-
/*
|
|
20220
|
+
/* 15 */
|
|
20221
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20222
|
+
|
|
20223
|
+
"use strict";
|
|
20224
|
+
|
|
20225
|
+
|
|
20226
|
+
var stringify = __webpack_require__(39);
|
|
20227
|
+
var parse = __webpack_require__(68);
|
|
20228
|
+
var formats = __webpack_require__(23);
|
|
20229
|
+
|
|
20230
|
+
module.exports = {
|
|
20231
|
+
formats: formats,
|
|
20232
|
+
parse: parse,
|
|
20233
|
+
stringify: stringify
|
|
20234
|
+
};
|
|
20235
|
+
|
|
20236
|
+
|
|
20237
|
+
/***/ }),
|
|
20238
|
+
/* 16 */
|
|
20173
20239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20174
20240
|
|
|
20175
20241
|
/* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype;
|
|
@@ -20717,10 +20783,10 @@ function arrObjKeys(obj, inspect) {
|
|
|
20717
20783
|
return xs;
|
|
20718
20784
|
}
|
|
20719
20785
|
|
|
20720
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20786
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26)))
|
|
20721
20787
|
|
|
20722
20788
|
/***/ }),
|
|
20723
|
-
/*
|
|
20789
|
+
/* 17 */
|
|
20724
20790
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20725
20791
|
|
|
20726
20792
|
"use strict";
|
|
@@ -20732,7 +20798,7 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20732
20798
|
|
|
20733
20799
|
|
|
20734
20800
|
/***/ }),
|
|
20735
|
-
/*
|
|
20801
|
+
/* 18 */
|
|
20736
20802
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20737
20803
|
|
|
20738
20804
|
// TODO(Babel 8): Remove this file.
|
|
@@ -20753,8 +20819,8 @@ try {
|
|
|
20753
20819
|
|
|
20754
20820
|
|
|
20755
20821
|
/***/ }),
|
|
20756
|
-
/*
|
|
20757
|
-
/*
|
|
20822
|
+
/* 19 */,
|
|
20823
|
+
/* 20 */
|
|
20758
20824
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20759
20825
|
|
|
20760
20826
|
"use strict";
|
|
@@ -20775,7 +20841,7 @@ try {
|
|
|
20775
20841
|
|
|
20776
20842
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["h"]; });
|
|
20777
20843
|
|
|
20778
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
20844
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
|
20779
20845
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
20780
20846
|
|
|
20781
20847
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "l", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
@@ -20786,7 +20852,7 @@ try {
|
|
|
20786
20852
|
|
|
20787
20853
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["e"]; });
|
|
20788
20854
|
|
|
20789
|
-
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
20855
|
+
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
20790
20856
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
20791
20857
|
|
|
20792
20858
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
@@ -20807,7 +20873,7 @@ try {
|
|
|
20807
20873
|
|
|
20808
20874
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "A", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["j"]; });
|
|
20809
20875
|
|
|
20810
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
20876
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11);
|
|
20811
20877
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "n", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
20812
20878
|
|
|
20813
20879
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "o", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["b"]; });
|
|
@@ -20826,7 +20892,7 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
20826
20892
|
|
|
20827
20893
|
|
|
20828
20894
|
/***/ }),
|
|
20829
|
-
/*
|
|
20895
|
+
/* 21 */
|
|
20830
20896
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20831
20897
|
|
|
20832
20898
|
"use strict";
|
|
@@ -20834,14 +20900,14 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
20834
20900
|
|
|
20835
20901
|
var undefined;
|
|
20836
20902
|
|
|
20837
|
-
var $Object = __webpack_require__(
|
|
20903
|
+
var $Object = __webpack_require__(28);
|
|
20838
20904
|
|
|
20839
20905
|
var $Error = __webpack_require__(43);
|
|
20840
20906
|
var $EvalError = __webpack_require__(44);
|
|
20841
20907
|
var $RangeError = __webpack_require__(45);
|
|
20842
20908
|
var $ReferenceError = __webpack_require__(46);
|
|
20843
20909
|
var $SyntaxError = __webpack_require__(47);
|
|
20844
|
-
var $TypeError = __webpack_require__(
|
|
20910
|
+
var $TypeError = __webpack_require__(10);
|
|
20845
20911
|
var $URIError = __webpack_require__(48);
|
|
20846
20912
|
|
|
20847
20913
|
var abs = __webpack_require__(49);
|
|
@@ -20861,7 +20927,7 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
20861
20927
|
} catch (e) {}
|
|
20862
20928
|
};
|
|
20863
20929
|
|
|
20864
|
-
var $gOPD = __webpack_require__(
|
|
20930
|
+
var $gOPD = __webpack_require__(29);
|
|
20865
20931
|
var $defineProperty = __webpack_require__(58);
|
|
20866
20932
|
|
|
20867
20933
|
var throwTypeError = function () {
|
|
@@ -20887,11 +20953,11 @@ var ThrowTypeError = $gOPD
|
|
|
20887
20953
|
var hasSymbols = __webpack_require__(59)();
|
|
20888
20954
|
|
|
20889
20955
|
var getProto = __webpack_require__(61);
|
|
20890
|
-
var $ObjectGPO = __webpack_require__(
|
|
20891
|
-
var $ReflectGPO = __webpack_require__(
|
|
20956
|
+
var $ObjectGPO = __webpack_require__(31);
|
|
20957
|
+
var $ReflectGPO = __webpack_require__(30);
|
|
20892
20958
|
|
|
20893
|
-
var $apply = __webpack_require__(
|
|
20894
|
-
var $call = __webpack_require__(
|
|
20959
|
+
var $apply = __webpack_require__(33);
|
|
20960
|
+
var $call = __webpack_require__(22);
|
|
20895
20961
|
|
|
20896
20962
|
var needsEval = {};
|
|
20897
20963
|
|
|
@@ -21072,7 +21138,7 @@ var LEGACY_ALIASES = {
|
|
|
21072
21138
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
21073
21139
|
};
|
|
21074
21140
|
|
|
21075
|
-
var bind = __webpack_require__(
|
|
21141
|
+
var bind = __webpack_require__(17);
|
|
21076
21142
|
var hasOwn = __webpack_require__(66);
|
|
21077
21143
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
21078
21144
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -21211,7 +21277,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
21211
21277
|
|
|
21212
21278
|
|
|
21213
21279
|
/***/ }),
|
|
21214
|
-
/*
|
|
21280
|
+
/* 22 */
|
|
21215
21281
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21216
21282
|
|
|
21217
21283
|
"use strict";
|
|
@@ -21222,7 +21288,7 @@ module.exports = Function.prototype.call;
|
|
|
21222
21288
|
|
|
21223
21289
|
|
|
21224
21290
|
/***/ }),
|
|
21225
|
-
/*
|
|
21291
|
+
/* 23 */
|
|
21226
21292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21227
21293
|
|
|
21228
21294
|
"use strict";
|
|
@@ -21252,25 +21318,7 @@ module.exports = {
|
|
|
21252
21318
|
|
|
21253
21319
|
|
|
21254
21320
|
/***/ }),
|
|
21255
|
-
/*
|
|
21256
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21257
|
-
|
|
21258
|
-
"use strict";
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
var stringify = __webpack_require__(39);
|
|
21262
|
-
var parse = __webpack_require__(68);
|
|
21263
|
-
var formats = __webpack_require__(21);
|
|
21264
|
-
|
|
21265
|
-
module.exports = {
|
|
21266
|
-
formats: formats,
|
|
21267
|
-
parse: parse,
|
|
21268
|
-
stringify: stringify
|
|
21269
|
-
};
|
|
21270
|
-
|
|
21271
|
-
|
|
21272
|
-
/***/ }),
|
|
21273
|
-
/* 23 */
|
|
21321
|
+
/* 24 */
|
|
21274
21322
|
/***/ (function(module, exports) {
|
|
21275
21323
|
|
|
21276
21324
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
@@ -21301,8 +21349,8 @@ function _asyncToGenerator(n) {
|
|
|
21301
21349
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
21302
21350
|
|
|
21303
21351
|
/***/ }),
|
|
21304
|
-
/*
|
|
21305
|
-
/*
|
|
21352
|
+
/* 25 */,
|
|
21353
|
+
/* 26 */
|
|
21306
21354
|
/***/ (function(module, exports) {
|
|
21307
21355
|
|
|
21308
21356
|
var g;
|
|
@@ -21328,1253 +21376,1244 @@ module.exports = g;
|
|
|
21328
21376
|
|
|
21329
21377
|
|
|
21330
21378
|
/***/ }),
|
|
21331
|
-
/*
|
|
21332
|
-
/***/ (function(module,
|
|
21379
|
+
/* 27 */
|
|
21380
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21333
21381
|
|
|
21334
21382
|
"use strict";
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
var
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
var
|
|
21346
|
-
|
|
21347
|
-
var
|
|
21348
|
-
|
|
21383
|
+
|
|
21384
|
+
|
|
21385
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
21386
|
+
var callBound = __webpack_require__(34);
|
|
21387
|
+
var inspect = __webpack_require__(16);
|
|
21388
|
+
|
|
21389
|
+
var $TypeError = __webpack_require__(10);
|
|
21390
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
21391
|
+
|
|
21392
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
21393
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
21394
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
21395
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
21396
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
21397
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
21398
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
21399
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
21400
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
21401
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
21402
|
+
|
|
21403
|
+
/** @type {import('.')} */
|
|
21404
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
21405
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
21406
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
21407
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
21408
|
+
|
|
21409
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
21410
|
+
|
|
21411
|
+
/** @type {Channel} */
|
|
21412
|
+
var channel = {
|
|
21413
|
+
assert: function (key) {
|
|
21414
|
+
if (!channel.has(key)) {
|
|
21415
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21416
|
+
}
|
|
21417
|
+
},
|
|
21418
|
+
'delete': function (key) {
|
|
21419
|
+
if ($m) {
|
|
21420
|
+
var result = $mapDelete($m, key);
|
|
21421
|
+
if ($mapSize($m) === 0) {
|
|
21422
|
+
$m = void undefined;
|
|
21423
|
+
}
|
|
21424
|
+
return result;
|
|
21425
|
+
}
|
|
21426
|
+
return false;
|
|
21427
|
+
},
|
|
21428
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
21429
|
+
if ($m) {
|
|
21430
|
+
return $mapGet($m, key);
|
|
21431
|
+
}
|
|
21432
|
+
},
|
|
21433
|
+
has: function (key) {
|
|
21434
|
+
if ($m) {
|
|
21435
|
+
return $mapHas($m, key);
|
|
21436
|
+
}
|
|
21437
|
+
return false;
|
|
21438
|
+
},
|
|
21439
|
+
set: function (key, value) {
|
|
21440
|
+
if (!$m) {
|
|
21441
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
21442
|
+
$m = new $Map();
|
|
21443
|
+
}
|
|
21444
|
+
$mapSet($m, key, value);
|
|
21445
|
+
}
|
|
21446
|
+
};
|
|
21447
|
+
|
|
21448
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
21449
|
+
return channel;
|
|
21450
|
+
};
|
|
21451
|
+
|
|
21349
21452
|
|
|
21350
21453
|
/***/ }),
|
|
21351
|
-
/*
|
|
21352
|
-
/***/ (function(module,
|
|
21454
|
+
/* 28 */
|
|
21455
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21353
21456
|
|
|
21354
21457
|
"use strict";
|
|
21355
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
21356
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
21357
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
21358
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
21359
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
21360
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
21361
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
21362
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
21363
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
21364
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
21365
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
21366
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
21367
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
21368
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
21369
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
21370
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
21371
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
|
|
21372
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
21373
21458
|
|
|
21374
21459
|
|
|
21460
|
+
/** @type {import('.')} */
|
|
21461
|
+
module.exports = Object;
|
|
21375
21462
|
|
|
21376
21463
|
|
|
21464
|
+
/***/ }),
|
|
21465
|
+
/* 29 */
|
|
21466
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21377
21467
|
|
|
21468
|
+
"use strict";
|
|
21378
21469
|
|
|
21379
|
-
|
|
21380
|
-
|
|
21381
|
-
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* initInsuranceData */ "b"])(ins);
|
|
21391
|
-
});
|
|
21392
|
-
return prodData;
|
|
21470
|
+
|
|
21471
|
+
/** @type {import('.')} */
|
|
21472
|
+
var $gOPD = __webpack_require__(57);
|
|
21473
|
+
|
|
21474
|
+
if ($gOPD) {
|
|
21475
|
+
try {
|
|
21476
|
+
$gOPD([], 'length');
|
|
21477
|
+
} catch (e) {
|
|
21478
|
+
// IE 8 has a broken gOPD
|
|
21479
|
+
$gOPD = null;
|
|
21480
|
+
}
|
|
21393
21481
|
}
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
21494
|
-
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
21498
|
-
}
|
|
21499
|
-
else {
|
|
21500
|
-
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
21501
|
-
}
|
|
21502
|
-
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
21503
|
-
if (refEleData) {
|
|
21504
|
-
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
21505
|
-
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
21506
|
-
}
|
|
21507
|
-
else {
|
|
21508
|
-
eleData.value = refEleData.value;
|
|
21509
|
-
}
|
|
21510
|
-
}
|
|
21511
|
-
else {
|
|
21512
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21513
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
21514
|
-
}
|
|
21515
|
-
}
|
|
21516
|
-
}
|
|
21517
|
-
else {
|
|
21518
|
-
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
21519
|
-
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
21520
|
-
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
21521
|
-
return {
|
|
21522
|
-
val: c.value,
|
|
21523
|
-
desc: c.desc || c.value,
|
|
21524
|
-
isHide: (option && option.isHide) || null,
|
|
21525
|
-
isDisabled: (option && option.isDisabled) || null,
|
|
21526
|
-
isInvalid: null
|
|
21527
|
-
};
|
|
21528
|
-
});
|
|
21529
|
-
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
21530
|
-
if (isNoOption) {
|
|
21531
|
-
if (eleData.key === 'pPeriod') {
|
|
21532
|
-
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
21533
|
-
if (filterOpts && filterOpts.length) {
|
|
21534
|
-
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
21535
|
-
}
|
|
21536
|
-
}
|
|
21537
|
-
else {
|
|
21538
|
-
if (eleData.opts && eleData.opts.length) {
|
|
21539
|
-
eleData.value = eleData.opts[0].val;
|
|
21540
|
-
}
|
|
21541
|
-
}
|
|
21542
|
-
}
|
|
21543
|
-
}
|
|
21544
|
-
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
21545
|
-
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
21546
|
-
var prevElement;
|
|
21547
|
-
if (eleIndex >= 1) {
|
|
21548
|
-
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
21549
|
-
}
|
|
21550
|
-
if (prevElement) {
|
|
21551
|
-
if (!curCondition) {
|
|
21552
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21553
|
-
var onePrevEleVerify = prevEleVerify === null || prevEleVerify === void 0 ? void 0 : prevEleVerify.find(function (v) { return v[eleData.key] && v[eleData.key].some(function (condi) { return condi.value === eleData.value; }); });
|
|
21554
|
-
if (onePrevEleVerify) {
|
|
21555
|
-
prevElement.value = onePrevEleVerify.value;
|
|
21556
|
-
curCondition = onePrevEleVerify[eleData.key];
|
|
21557
|
-
}
|
|
21558
|
-
}
|
|
21559
|
-
if (!curCondition) {
|
|
21560
|
-
eleTitle.isDisabled = true;
|
|
21561
|
-
eleTitle.value = false;
|
|
21562
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21563
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
21564
|
-
}
|
|
21565
|
-
}
|
|
21566
|
-
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
21567
|
-
if (isNeedReverseFilter) {
|
|
21568
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21569
|
-
if (prevEleVerify) {
|
|
21570
|
-
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
21571
|
-
var _a;
|
|
21572
|
-
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
21573
|
-
insuranceKey: ins.key,
|
|
21574
|
-
elementKey: eleData.key
|
|
21575
|
-
},
|
|
21576
|
-
_a[prevElement.key] = v.value,
|
|
21577
|
-
_a));
|
|
21578
|
-
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
21579
|
-
}).map(function (v) { return ({
|
|
21580
|
-
val: v.value,
|
|
21581
|
-
desc: v.desc || v.value,
|
|
21582
|
-
isHide: null,
|
|
21583
|
-
isDisabled: null,
|
|
21584
|
-
isInvalid: null
|
|
21585
|
-
}); });
|
|
21586
|
-
}
|
|
21587
|
-
}
|
|
21588
|
-
}
|
|
21589
|
-
};
|
|
21590
|
-
do {
|
|
21591
|
-
var state_1 = _loop_1();
|
|
21592
|
-
if (state_1 === "break")
|
|
21593
|
-
break;
|
|
21594
|
-
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
21595
|
-
});
|
|
21596
|
-
}
|
|
21597
|
-
setGroupInsurance(prodData);
|
|
21598
|
-
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
21599
|
-
return [2, prodData];
|
|
21600
|
-
}
|
|
21601
|
-
});
|
|
21602
|
-
});
|
|
21603
|
-
}
|
|
21604
|
-
function multipleInsuredHandler(personData) {
|
|
21605
|
-
var personOrderList = personData.personOrderList;
|
|
21606
|
-
if (!(personOrderList && personOrderList.length)) {
|
|
21607
|
-
return null;
|
|
21482
|
+
|
|
21483
|
+
module.exports = $gOPD;
|
|
21484
|
+
|
|
21485
|
+
|
|
21486
|
+
/***/ }),
|
|
21487
|
+
/* 30 */
|
|
21488
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21489
|
+
|
|
21490
|
+
"use strict";
|
|
21491
|
+
|
|
21492
|
+
|
|
21493
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
21494
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
21495
|
+
|
|
21496
|
+
|
|
21497
|
+
/***/ }),
|
|
21498
|
+
/* 31 */
|
|
21499
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21500
|
+
|
|
21501
|
+
"use strict";
|
|
21502
|
+
|
|
21503
|
+
|
|
21504
|
+
var $Object = __webpack_require__(28);
|
|
21505
|
+
|
|
21506
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
21507
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
21508
|
+
|
|
21509
|
+
|
|
21510
|
+
/***/ }),
|
|
21511
|
+
/* 32 */
|
|
21512
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21513
|
+
|
|
21514
|
+
"use strict";
|
|
21515
|
+
|
|
21516
|
+
|
|
21517
|
+
var bind = __webpack_require__(17);
|
|
21518
|
+
var $TypeError = __webpack_require__(10);
|
|
21519
|
+
|
|
21520
|
+
var $call = __webpack_require__(22);
|
|
21521
|
+
var $actualApply = __webpack_require__(64);
|
|
21522
|
+
|
|
21523
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
21524
|
+
module.exports = function callBindBasic(args) {
|
|
21525
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
21526
|
+
throw new $TypeError('a function is required');
|
|
21527
|
+
}
|
|
21528
|
+
return $actualApply(bind, $call, args);
|
|
21529
|
+
};
|
|
21530
|
+
|
|
21531
|
+
|
|
21532
|
+
/***/ }),
|
|
21533
|
+
/* 33 */
|
|
21534
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21535
|
+
|
|
21536
|
+
"use strict";
|
|
21537
|
+
|
|
21538
|
+
|
|
21539
|
+
/** @type {import('./functionApply')} */
|
|
21540
|
+
module.exports = Function.prototype.apply;
|
|
21541
|
+
|
|
21542
|
+
|
|
21543
|
+
/***/ }),
|
|
21544
|
+
/* 34 */
|
|
21545
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21546
|
+
|
|
21547
|
+
"use strict";
|
|
21548
|
+
|
|
21549
|
+
|
|
21550
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
21551
|
+
|
|
21552
|
+
var callBindBasic = __webpack_require__(32);
|
|
21553
|
+
|
|
21554
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
21555
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
21556
|
+
|
|
21557
|
+
/** @type {import('.')} */
|
|
21558
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
21559
|
+
/* eslint no-extra-parens: 0 */
|
|
21560
|
+
|
|
21561
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
21562
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
21563
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
21564
|
+
}
|
|
21565
|
+
return intrinsic;
|
|
21566
|
+
};
|
|
21567
|
+
|
|
21568
|
+
|
|
21569
|
+
/***/ }),
|
|
21570
|
+
/* 35 */
|
|
21571
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21572
|
+
|
|
21573
|
+
"use strict";
|
|
21574
|
+
|
|
21575
|
+
|
|
21576
|
+
var formats = __webpack_require__(23);
|
|
21577
|
+
|
|
21578
|
+
var has = Object.prototype.hasOwnProperty;
|
|
21579
|
+
var isArray = Array.isArray;
|
|
21580
|
+
|
|
21581
|
+
var hexTable = (function () {
|
|
21582
|
+
var array = [];
|
|
21583
|
+
for (var i = 0; i < 256; ++i) {
|
|
21584
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
21608
21585
|
}
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21620
|
-
|
|
21586
|
+
|
|
21587
|
+
return array;
|
|
21588
|
+
}());
|
|
21589
|
+
|
|
21590
|
+
var compactQueue = function compactQueue(queue) {
|
|
21591
|
+
while (queue.length > 1) {
|
|
21592
|
+
var item = queue.pop();
|
|
21593
|
+
var obj = item.obj[item.prop];
|
|
21594
|
+
|
|
21595
|
+
if (isArray(obj)) {
|
|
21596
|
+
var compacted = [];
|
|
21597
|
+
|
|
21598
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
21599
|
+
if (typeof obj[j] !== 'undefined') {
|
|
21600
|
+
compacted.push(obj[j]);
|
|
21621
21601
|
}
|
|
21622
|
-
}
|
|
21623
|
-
|
|
21624
|
-
|
|
21625
|
-
}
|
|
21626
|
-
return personData;
|
|
21627
|
-
}
|
|
21628
|
-
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
21629
|
-
var _a, _b;
|
|
21630
|
-
if (parmas === void 0) { parmas = {}; }
|
|
21631
|
-
var personOrderList = personData.personOrderList;
|
|
21632
|
-
if (!(personOrderList && personOrderList.length)) {
|
|
21633
|
-
return null;
|
|
21634
|
-
}
|
|
21635
|
-
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
21636
|
-
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
21637
|
-
var insuredList = personOrderList
|
|
21638
|
-
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
21639
|
-
.filter(function (p) {
|
|
21640
|
-
var _a;
|
|
21641
|
-
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
21642
|
-
return title && title.value;
|
|
21643
|
-
})
|
|
21644
|
-
.map(function (p) {
|
|
21645
|
-
var _a, _b;
|
|
21646
|
-
return {
|
|
21647
|
-
key: p.key,
|
|
21648
|
-
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
21649
|
-
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
21650
|
-
};
|
|
21651
|
-
});
|
|
21652
|
-
var insuranceIdList = (_a = convertProductData(prodData).mulInsOrderList) === null || _a === void 0 ? void 0 : _a.map(function (ins) { return ins.key; });
|
|
21653
|
-
(_b = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _b === void 0 ? void 0 : _b.reduce(function (list, ins) {
|
|
21654
|
-
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
21655
|
-
}, []);
|
|
21656
|
-
return getAndCacheInsurancesVerifyData({
|
|
21657
|
-
pbId: pbId,
|
|
21658
|
-
productId: productId,
|
|
21659
|
-
insuredList: insuredList,
|
|
21660
|
-
insuranceIdList: insuranceIdList
|
|
21661
|
-
});
|
|
21662
|
-
}
|
|
21663
|
-
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
21664
|
-
var IS_PRODUCT_ENV = location.hostname.search(/winbaoxian\.com/) !== -1;
|
|
21665
|
-
var url = "https://app.winbaoxian.".concat(IS_PRODUCT_ENV ? 'com' : 'cn', "/planBook/input/insurance/verifyData");
|
|
21666
|
-
return fetch(url, {
|
|
21667
|
-
method: 'POST',
|
|
21668
|
-
credentials: 'include',
|
|
21669
|
-
headers: {
|
|
21670
|
-
Accept: 'application/json, text/plain, */*',
|
|
21671
|
-
'Content-Type': 'application/json;'
|
|
21672
|
-
},
|
|
21673
|
-
body: JSON.stringify(params)
|
|
21674
|
-
})
|
|
21675
|
-
.then(function (response) { return response.json(); })
|
|
21676
|
-
.then(function (_a) {
|
|
21677
|
-
var success = _a.success, data = _a.data;
|
|
21678
|
-
if (!success || !data) {
|
|
21679
|
-
return Promise.reject();
|
|
21602
|
+
}
|
|
21603
|
+
|
|
21604
|
+
item.obj[item.prop] = compacted;
|
|
21680
21605
|
}
|
|
21681
|
-
return Promise.resolve(data);
|
|
21682
|
-
})
|
|
21683
|
-
.catch(function () { });
|
|
21684
|
-
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
21685
|
-
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
21686
|
-
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
21687
|
-
return verify;
|
|
21688
21606
|
}
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
|
|
21695
|
-
|
|
21696
|
-
var temp = verify;
|
|
21697
|
-
var hasElementKey = verify.key === option.elementKey;
|
|
21698
|
-
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
21699
|
-
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
21700
|
-
if (temp && temp.key === option.elementKey) {
|
|
21701
|
-
hasElementKey = true;
|
|
21607
|
+
};
|
|
21608
|
+
|
|
21609
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
21610
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
21611
|
+
for (var i = 0; i < source.length; ++i) {
|
|
21612
|
+
if (typeof source[i] !== 'undefined') {
|
|
21613
|
+
obj[i] = source[i];
|
|
21702
21614
|
}
|
|
21703
21615
|
}
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
function setCommonInfo(prodData) {
|
|
21713
|
-
if (!prodData || !prodData.mulInsOrderList) {
|
|
21714
|
-
return prodData;
|
|
21616
|
+
|
|
21617
|
+
return obj;
|
|
21618
|
+
};
|
|
21619
|
+
|
|
21620
|
+
var merge = function merge(target, source, options) {
|
|
21621
|
+
/* eslint no-param-reassign: 0 */
|
|
21622
|
+
if (!source) {
|
|
21623
|
+
return target;
|
|
21715
21624
|
}
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
common.eleOrderList.push(ele);
|
|
21625
|
+
|
|
21626
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
21627
|
+
if (isArray(target)) {
|
|
21628
|
+
target.push(source);
|
|
21629
|
+
} else if (target && typeof target === 'object') {
|
|
21630
|
+
if (
|
|
21631
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
21632
|
+
|| !has.call(Object.prototype, source)
|
|
21633
|
+
) {
|
|
21634
|
+
target[source] = true;
|
|
21727
21635
|
}
|
|
21728
|
-
}
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
return
|
|
21733
|
-
}
|
|
21734
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
21735
|
-
prodData.mulInsOrderList.unshift(common);
|
|
21736
|
-
if (prodData.mulInsOrderList[1]) {
|
|
21737
|
-
prodData.mulInsOrderList[1].isFollowing = true;
|
|
21738
|
-
}
|
|
21739
|
-
return prodData;
|
|
21740
|
-
}
|
|
21741
|
-
function setGroupInsurance(prodData) {
|
|
21742
|
-
if (!prodData.mulInsOrderList) {
|
|
21743
|
-
return prodData;
|
|
21636
|
+
} else {
|
|
21637
|
+
return [target, source];
|
|
21638
|
+
}
|
|
21639
|
+
|
|
21640
|
+
return target;
|
|
21744
21641
|
}
|
|
21745
|
-
|
|
21746
|
-
if (!
|
|
21747
|
-
return
|
|
21642
|
+
|
|
21643
|
+
if (!target || typeof target !== 'object') {
|
|
21644
|
+
return [target].concat(source);
|
|
21748
21645
|
}
|
|
21749
|
-
|
|
21750
|
-
var
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
|
|
21763
|
-
name: ins.groupName,
|
|
21764
|
-
huomian: ins.huomian,
|
|
21765
|
-
isGroup: true,
|
|
21766
|
-
eleOrderList: [
|
|
21767
|
-
{
|
|
21768
|
-
key: 'title',
|
|
21769
|
-
value: (oldTitleEle && oldTitleEle.value) || false,
|
|
21770
|
-
isDisabled: false,
|
|
21771
|
-
componentName: 'cmCommonTitle',
|
|
21772
|
-
labelName: ins.groupName
|
|
21773
|
-
},
|
|
21774
|
-
{
|
|
21775
|
-
key: 'insuranceId',
|
|
21776
|
-
value: (oldInsuranceIdEle && oldInsuranceIdEle.value) || (ins.isCheckbox ? [] : ''),
|
|
21777
|
-
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
21778
|
-
opts: []
|
|
21779
|
-
}
|
|
21780
|
-
]
|
|
21781
|
-
};
|
|
21782
|
-
var titleEle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21783
|
-
var insuranceIdEle = newGroupInsMap[ins.groupKey].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21784
|
-
insuranceIdEle.opts.push({
|
|
21785
|
-
val: ins.key,
|
|
21786
|
-
code: ins.code,
|
|
21787
|
-
desc: titleEle.labelName,
|
|
21788
|
-
isDisabled: titleEle.isDisabled
|
|
21789
|
-
});
|
|
21790
|
-
}
|
|
21791
|
-
});
|
|
21792
|
-
var _loop_2 = function (k) {
|
|
21793
|
-
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21794
|
-
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21795
|
-
if (nGroupTitle && nGroupInsuranceId) {
|
|
21796
|
-
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
21797
|
-
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
21798
|
-
nGroupTitle.value = false;
|
|
21799
|
-
nGroupTitle.isDisabled = true;
|
|
21800
|
-
}
|
|
21801
|
-
else {
|
|
21802
|
-
nGroupTitle.isDisabled = false;
|
|
21803
|
-
}
|
|
21804
|
-
}
|
|
21805
|
-
var groupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.groupKey == k; });
|
|
21806
|
-
if (groupInsList && groupInsList.length) {
|
|
21807
|
-
if (groupInsList.some(function (ins) {
|
|
21808
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21809
|
-
return ins.required && subTitle && !subTitle.isDisabled;
|
|
21810
|
-
})) {
|
|
21811
|
-
nGroupTitle.value = true;
|
|
21812
|
-
nGroupTitle.isDisabled = true;
|
|
21813
|
-
}
|
|
21814
|
-
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
21815
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21816
|
-
return subTitle && !subTitle.isDisabled;
|
|
21817
|
-
});
|
|
21818
|
-
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
21819
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21820
|
-
return subTitle && subTitle.value;
|
|
21821
|
-
});
|
|
21822
|
-
if (!nGroupInsuranceId.value) {
|
|
21823
|
-
if (checkedInsurances) {
|
|
21824
|
-
nGroupInsuranceId.value = checkedInsurances.key;
|
|
21825
|
-
nGroupTitle.value = true;
|
|
21826
|
-
}
|
|
21827
|
-
else if (nGroupTitle.value) {
|
|
21828
|
-
if (notDisabledInsurances[0]) {
|
|
21829
|
-
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
21830
|
-
}
|
|
21831
|
-
}
|
|
21646
|
+
|
|
21647
|
+
var mergeTarget = target;
|
|
21648
|
+
if (isArray(target) && !isArray(source)) {
|
|
21649
|
+
mergeTarget = arrayToObject(target, options);
|
|
21650
|
+
}
|
|
21651
|
+
|
|
21652
|
+
if (isArray(target) && isArray(source)) {
|
|
21653
|
+
source.forEach(function (item, i) {
|
|
21654
|
+
if (has.call(target, i)) {
|
|
21655
|
+
var targetItem = target[i];
|
|
21656
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
21657
|
+
target[i] = merge(targetItem, item, options);
|
|
21658
|
+
} else {
|
|
21659
|
+
target.push(item);
|
|
21832
21660
|
}
|
|
21661
|
+
} else {
|
|
21662
|
+
target[i] = item;
|
|
21833
21663
|
}
|
|
21664
|
+
});
|
|
21665
|
+
return target;
|
|
21666
|
+
}
|
|
21667
|
+
|
|
21668
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
21669
|
+
var value = source[key];
|
|
21670
|
+
|
|
21671
|
+
if (has.call(acc, key)) {
|
|
21672
|
+
acc[key] = merge(acc[key], value, options);
|
|
21673
|
+
} else {
|
|
21674
|
+
acc[key] = value;
|
|
21834
21675
|
}
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
|
|
21839
|
-
|
|
21840
|
-
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21676
|
+
return acc;
|
|
21677
|
+
}, mergeTarget);
|
|
21678
|
+
};
|
|
21679
|
+
|
|
21680
|
+
var assign = function assignSingleSource(target, source) {
|
|
21681
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
21682
|
+
acc[key] = source[key];
|
|
21683
|
+
return acc;
|
|
21684
|
+
}, target);
|
|
21685
|
+
};
|
|
21686
|
+
|
|
21687
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
21688
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
21689
|
+
if (charset === 'iso-8859-1') {
|
|
21690
|
+
// unescape never throws, no try...catch needed:
|
|
21691
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21692
|
+
}
|
|
21693
|
+
// utf-8
|
|
21694
|
+
try {
|
|
21695
|
+
return decodeURIComponent(strWithoutPlus);
|
|
21696
|
+
} catch (e) {
|
|
21697
|
+
return strWithoutPlus;
|
|
21698
|
+
}
|
|
21699
|
+
};
|
|
21700
|
+
|
|
21701
|
+
var limit = 1024;
|
|
21702
|
+
|
|
21703
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
21704
|
+
|
|
21705
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
21706
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
21707
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
21708
|
+
if (str.length === 0) {
|
|
21709
|
+
return str;
|
|
21710
|
+
}
|
|
21711
|
+
|
|
21712
|
+
var string = str;
|
|
21713
|
+
if (typeof str === 'symbol') {
|
|
21714
|
+
string = Symbol.prototype.toString.call(str);
|
|
21715
|
+
} else if (typeof str !== 'string') {
|
|
21716
|
+
string = String(str);
|
|
21717
|
+
}
|
|
21718
|
+
|
|
21719
|
+
if (charset === 'iso-8859-1') {
|
|
21720
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
21721
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
21722
|
+
});
|
|
21723
|
+
}
|
|
21724
|
+
|
|
21725
|
+
var out = '';
|
|
21726
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
21727
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
21728
|
+
var arr = [];
|
|
21729
|
+
|
|
21730
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
21731
|
+
var c = segment.charCodeAt(i);
|
|
21732
|
+
if (
|
|
21733
|
+
c === 0x2D // -
|
|
21734
|
+
|| c === 0x2E // .
|
|
21735
|
+
|| c === 0x5F // _
|
|
21736
|
+
|| c === 0x7E // ~
|
|
21737
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
21738
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
21739
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
21740
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
21741
|
+
) {
|
|
21742
|
+
arr[arr.length] = segment.charAt(i);
|
|
21743
|
+
continue;
|
|
21848
21744
|
}
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21862
|
-
|
|
21745
|
+
|
|
21746
|
+
if (c < 0x80) {
|
|
21747
|
+
arr[arr.length] = hexTable[c];
|
|
21748
|
+
continue;
|
|
21749
|
+
}
|
|
21750
|
+
|
|
21751
|
+
if (c < 0x800) {
|
|
21752
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
21753
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21754
|
+
continue;
|
|
21755
|
+
}
|
|
21756
|
+
|
|
21757
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
21758
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
21759
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21760
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21761
|
+
continue;
|
|
21863
21762
|
}
|
|
21763
|
+
|
|
21764
|
+
i += 1;
|
|
21765
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
21766
|
+
|
|
21767
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
21768
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
21769
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21770
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21864
21771
|
}
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
|
|
21772
|
+
|
|
21773
|
+
out += arr.join('');
|
|
21774
|
+
}
|
|
21775
|
+
|
|
21776
|
+
return out;
|
|
21777
|
+
};
|
|
21778
|
+
|
|
21779
|
+
var compact = function compact(value) {
|
|
21780
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
21781
|
+
var refs = [];
|
|
21782
|
+
|
|
21783
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
21784
|
+
var item = queue[i];
|
|
21785
|
+
var obj = item.obj[item.prop];
|
|
21786
|
+
|
|
21787
|
+
var keys = Object.keys(obj);
|
|
21788
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
21789
|
+
var key = keys[j];
|
|
21790
|
+
var val = obj[key];
|
|
21791
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
21792
|
+
queue.push({ obj: obj, prop: key });
|
|
21793
|
+
refs.push(val);
|
|
21869
21794
|
}
|
|
21870
|
-
});
|
|
21871
|
-
if (index >= 0) {
|
|
21872
|
-
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
21873
21795
|
}
|
|
21874
|
-
};
|
|
21875
|
-
for (var k in newGroupInsMap) {
|
|
21876
|
-
_loop_2(k);
|
|
21877
21796
|
}
|
|
21797
|
+
|
|
21798
|
+
compactQueue(queue);
|
|
21799
|
+
|
|
21800
|
+
return value;
|
|
21801
|
+
};
|
|
21802
|
+
|
|
21803
|
+
var isRegExp = function isRegExp(obj) {
|
|
21804
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
21805
|
+
};
|
|
21806
|
+
|
|
21807
|
+
var isBuffer = function isBuffer(obj) {
|
|
21808
|
+
if (!obj || typeof obj !== 'object') {
|
|
21809
|
+
return false;
|
|
21810
|
+
}
|
|
21811
|
+
|
|
21812
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
21813
|
+
};
|
|
21814
|
+
|
|
21815
|
+
var combine = function combine(a, b) {
|
|
21816
|
+
return [].concat(a, b);
|
|
21817
|
+
};
|
|
21818
|
+
|
|
21819
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
21820
|
+
if (isArray(val)) {
|
|
21821
|
+
var mapped = [];
|
|
21822
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
21823
|
+
mapped.push(fn(val[i]));
|
|
21824
|
+
}
|
|
21825
|
+
return mapped;
|
|
21826
|
+
}
|
|
21827
|
+
return fn(val);
|
|
21828
|
+
};
|
|
21829
|
+
|
|
21830
|
+
module.exports = {
|
|
21831
|
+
arrayToObject: arrayToObject,
|
|
21832
|
+
assign: assign,
|
|
21833
|
+
combine: combine,
|
|
21834
|
+
compact: compact,
|
|
21835
|
+
decode: decode,
|
|
21836
|
+
encode: encode,
|
|
21837
|
+
isBuffer: isBuffer,
|
|
21838
|
+
isRegExp: isRegExp,
|
|
21839
|
+
maybeMap: maybeMap,
|
|
21840
|
+
merge: merge
|
|
21841
|
+
};
|
|
21842
|
+
|
|
21843
|
+
|
|
21844
|
+
/***/ }),
|
|
21845
|
+
/* 36 */
|
|
21846
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21847
|
+
|
|
21848
|
+
"use strict";
|
|
21849
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
21850
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
21851
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
21852
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
21853
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
21854
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
21855
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
21856
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
21857
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
21858
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
21859
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
21860
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
|
|
21861
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
21862
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
21863
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
21864
|
+
/* harmony import */ var _src_js_variables_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
|
|
21865
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
21866
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12);
|
|
21867
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11);
|
|
21868
|
+
|
|
21869
|
+
|
|
21870
|
+
|
|
21871
|
+
|
|
21872
|
+
|
|
21873
|
+
|
|
21874
|
+
|
|
21875
|
+
function initProductData(prodData) {
|
|
21876
|
+
prodData.hadChoice = false;
|
|
21877
|
+
prodData.insShowArr = null;
|
|
21878
|
+
prodData.totalBaof = null;
|
|
21879
|
+
if (!prodData.mulInsOrderList) {
|
|
21880
|
+
return prodData;
|
|
21881
|
+
}
|
|
21882
|
+
if (prodData.mulInsOrderList.some(function (ins) { return !!ins.adjustBaoe; })) {
|
|
21883
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
21884
|
+
}
|
|
21885
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21886
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* initInsuranceData */ "b"])(ins);
|
|
21887
|
+
});
|
|
21878
21888
|
return prodData;
|
|
21879
21889
|
}
|
|
21880
|
-
function
|
|
21881
|
-
var
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
insuranceVerifyData.forEach(function (verify) {
|
|
21890
|
-
ageRangeProd[verify.sex] = ageRangeProd[verify.sex] || [];
|
|
21891
|
-
ageRangeProd[verify.sex] = [
|
|
21892
|
-
Math.min(ageRangeProd[verify.sex][0] === undefined ? verify.minAge : ageRangeProd[verify.sex][0], verify.minAge),
|
|
21893
|
-
Math.max(ageRangeProd[verify.sex][1] === undefined ? verify.maxAge : ageRangeProd[verify.sex][1], verify.maxAge)
|
|
21894
|
-
];
|
|
21895
|
-
});
|
|
21890
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
21891
|
+
var _a;
|
|
21892
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
21893
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
21894
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
21895
|
+
switch (_b.label) {
|
|
21896
|
+
case 0:
|
|
21897
|
+
if (!prodData) {
|
|
21898
|
+
return [2, prodData];
|
|
21896
21899
|
}
|
|
21897
|
-
|
|
21898
|
-
|
|
21899
|
-
|
|
21900
|
-
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
|
|
21904
|
-
|
|
21905
|
-
|
|
21906
|
-
|
|
21907
|
-
|
|
21908
|
-
|
|
21909
|
-
|
|
21910
|
-
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21914
|
-
|
|
21915
|
-
|
|
21916
|
-
|
|
21917
|
-
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21921
|
-
|
|
21922
|
-
|
|
21923
|
-
|
|
21924
|
-
|
|
21925
|
-
|
|
21926
|
-
if (ins.eleOrderList) {
|
|
21927
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
21928
|
-
errorMsg =
|
|
21929
|
-
errorMsg ||
|
|
21930
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* restrictElementsInInsurance */ "d"])({
|
|
21931
|
-
personOrderList: personOrderList,
|
|
21932
|
-
insData: ins,
|
|
21933
|
-
eleData: ele
|
|
21934
|
-
});
|
|
21935
|
-
});
|
|
21936
|
-
}
|
|
21937
|
-
});
|
|
21938
|
-
}
|
|
21939
|
-
return errorMsg;
|
|
21940
|
-
}
|
|
21941
|
-
function restrictInsurancesInProduct(_a) {
|
|
21942
|
-
var personOrderList = _a.personOrderList, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
21943
|
-
var errorMsg = '';
|
|
21944
|
-
var restrictList = productData.restrictList;
|
|
21945
|
-
if (restrictList && restrictList.length) {
|
|
21946
|
-
restrictList.forEach(function (restrict) {
|
|
21947
|
-
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21948
|
-
var productInfo = convertProductData(productData);
|
|
21949
|
-
var prodVerifyData = {
|
|
21950
|
-
age: insuredInfo.age,
|
|
21951
|
-
sex: insuredInfo.sex,
|
|
21952
|
-
common: productInfo.common
|
|
21953
|
-
};
|
|
21954
|
-
productInfo.mulInsOrderList.forEach(function (ins) {
|
|
21955
|
-
prodVerifyData['i' + ins.key] = ins;
|
|
21956
|
-
});
|
|
21957
|
-
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'prodVerifyData.i$2$3');
|
|
21958
|
-
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'prodVerifyData.$2');
|
|
21959
|
-
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
21960
|
-
var curEle = curIns ? {} : null;
|
|
21961
|
-
if (curIns) {
|
|
21962
|
-
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
21963
|
-
}
|
|
21964
|
-
if (curEle) {
|
|
21965
|
-
switch (restrict.rType) {
|
|
21966
|
-
case 1:
|
|
21967
|
-
var isDisabled = curEle.isDisabled;
|
|
21968
|
-
var value = curEle.value;
|
|
21969
|
-
if (eval(restrict.rCondition)) {
|
|
21970
|
-
isDisabled = false;
|
|
21971
|
-
if (restrict.other && restrict.other.includes('required')) {
|
|
21972
|
-
value = true;
|
|
21973
|
-
isDisabled = true;
|
|
21974
|
-
}
|
|
21975
|
-
}
|
|
21976
|
-
else {
|
|
21977
|
-
isDisabled = true;
|
|
21978
|
-
if (restrict.other && restrict.other.includes('optional')) {
|
|
21979
|
-
isDisabled = false;
|
|
21900
|
+
productVerifyData = null;
|
|
21901
|
+
if (prodData.multipleInsured) {
|
|
21902
|
+
multipleInsuredHandler(personData);
|
|
21903
|
+
}
|
|
21904
|
+
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
21905
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
21906
|
+
case 1:
|
|
21907
|
+
productVerifyData = _b.sent();
|
|
21908
|
+
return [3, 3];
|
|
21909
|
+
case 2:
|
|
21910
|
+
productVerifyData = prodVerifyData;
|
|
21911
|
+
_b.label = 3;
|
|
21912
|
+
case 3:
|
|
21913
|
+
hasProduct = prodData.mulInsOrderList;
|
|
21914
|
+
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
21915
|
+
hasPersonData = personData && personData.personOrderList;
|
|
21916
|
+
personOrderList = null;
|
|
21917
|
+
if (hasProduct && hasVerifyData && hasPersonData) {
|
|
21918
|
+
personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_5__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
21919
|
+
setCommonInfo(prodData);
|
|
21920
|
+
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
21921
|
+
var _a, _b, _c;
|
|
21922
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
21923
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
21924
|
+
if (!insuranceVerifyData) {
|
|
21925
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21926
|
+
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
21927
|
+
}
|
|
21928
|
+
return;
|
|
21980
21929
|
}
|
|
21981
|
-
|
|
21982
|
-
|
|
21930
|
+
var isTouHuomianIns = ins.huomian === 'touHuomian' || ins.huomian === 'shuangHuomian';
|
|
21931
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21932
|
+
var applicantInfo = personOrderList.find(function (p) { return p.key === 'applicantInfo'; });
|
|
21933
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
21934
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
21935
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
21983
21936
|
}
|
|
21984
|
-
|
|
21985
|
-
|
|
21937
|
+
var targetPerson = personOrderList.find(function (p) { return p.key === personType; });
|
|
21938
|
+
var personCondition = null;
|
|
21939
|
+
if (targetPerson) {
|
|
21940
|
+
personCondition = insuranceVerifyData.find(function (v) {
|
|
21941
|
+
return targetPerson.sex === v.sex && targetPerson.age >= v.minAge && targetPerson.age <= v.maxAge;
|
|
21942
|
+
});
|
|
21943
|
+
if (personCondition) {
|
|
21944
|
+
personCondition = personCondition.conditionData;
|
|
21945
|
+
var isSamePerson = isTouHuomianIns && ins.allowSamePerson && personCondition.key === 'samePerson';
|
|
21946
|
+
if (isSamePerson) {
|
|
21947
|
+
personCondition = personCondition.samePerson.find(function (c) { return c.value == (applicantInfo.title ? 0 : 1); });
|
|
21948
|
+
}
|
|
21949
|
+
}
|
|
21986
21950
|
}
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
(
|
|
21951
|
+
var curCondition = personCondition;
|
|
21952
|
+
var eleTitle = (_a = ins.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
21953
|
+
var _loop_1 = function () {
|
|
21954
|
+
var isNotAllowSelect = !curCondition ||
|
|
21955
|
+
(isTouHuomianIns && !ins.allowSamePerson && (!targetPerson.title || targetPerson.applicantAndInsuredSame));
|
|
21956
|
+
if (isNotAllowSelect) {
|
|
21957
|
+
eleTitle.isDisabled = true;
|
|
21958
|
+
eleTitle.value = false;
|
|
21959
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21960
|
+
console.log(curCondition ? "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF01\u4F46\u6295\u4FDD\u4EBA\u672A\u9009\u4E2D\u6216\u6295\u88AB\u4FDD\u4EBA\u4E3A\u540C\u4E00\u4EBA\uFF0C\u8BE5\u8C41\u514D\u9669\uFF08\u4E0D\u80FD\u9644\u52A0\u5230\u88AB\u4FDD\u4EBA\uFF09\u4E0D\u53EF\u9009") : "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
21961
|
+
}
|
|
21962
|
+
}
|
|
21963
|
+
else {
|
|
21964
|
+
eleTitle.isDisabled = false;
|
|
21965
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
21966
|
+
eleTitle.value = true;
|
|
21967
|
+
eleTitle.isDisabled = true;
|
|
21968
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21969
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF0C\u9669\u79CD\u4E3A\u5FC5\u9009\u9669\u4E14(\u4E3A\u975E\u7EC4\u5408\u9669\u6216\u4E3A\u591A\u9009\u4E00\u9669\u79CD)"));
|
|
21970
|
+
}
|
|
21971
|
+
}
|
|
21972
|
+
}
|
|
21973
|
+
if (!curCondition) {
|
|
21974
|
+
return "break";
|
|
21975
|
+
}
|
|
21976
|
+
var eleData = (_b = ins.eleOrderList) === null || _b === void 0 ? void 0 : _b.find(function (e) { return e.key === curCondition.key; });
|
|
21977
|
+
var commonData = insList.find(function (ins) { return ins.key === 'common'; });
|
|
21978
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
21979
|
+
eleData = commonData.eleOrderList.find(function (e) { return e.key === curCondition.key; });
|
|
21980
|
+
}
|
|
21981
|
+
if (!eleData) {
|
|
21982
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21983
|
+
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
21984
|
+
}
|
|
21985
|
+
curCondition = null;
|
|
21986
|
+
return "break";
|
|
21987
|
+
}
|
|
21988
|
+
var eleCondi = curCondition[curCondition.key];
|
|
21989
|
+
var isBeGovernedEle = eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && Number(ins.refInsuranceId) !== -2;
|
|
21990
|
+
if (isBeGovernedEle) {
|
|
21991
|
+
var refInsData = null;
|
|
21992
|
+
if (Number(ins.refInsuranceId) === -1) {
|
|
21993
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
22006
21994
|
}
|
|
22007
21995
|
else {
|
|
22008
|
-
|
|
21996
|
+
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
21997
|
+
}
|
|
21998
|
+
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
21999
|
+
if (refEleData) {
|
|
22000
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
22001
|
+
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
22002
|
+
}
|
|
22003
|
+
else {
|
|
22004
|
+
eleData.value = refEleData.value;
|
|
22005
|
+
}
|
|
22006
|
+
}
|
|
22007
|
+
else {
|
|
22008
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
22009
|
+
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
22010
|
+
}
|
|
22011
|
+
}
|
|
22012
|
+
}
|
|
22013
|
+
else {
|
|
22014
|
+
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
22015
|
+
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
22016
|
+
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
22017
|
+
return {
|
|
22018
|
+
val: c.value,
|
|
22019
|
+
desc: c.desc || c.value,
|
|
22020
|
+
isHide: (option && option.isHide) || null,
|
|
22021
|
+
isDisabled: (option && option.isDisabled) || null,
|
|
22022
|
+
isInvalid: null
|
|
22023
|
+
};
|
|
22024
|
+
});
|
|
22025
|
+
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
22026
|
+
if (isNoOption) {
|
|
22027
|
+
if (eleData.key === 'pPeriod') {
|
|
22028
|
+
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
22029
|
+
if (filterOpts && filterOpts.length) {
|
|
22030
|
+
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
22031
|
+
}
|
|
22032
|
+
}
|
|
22033
|
+
else {
|
|
22034
|
+
if (eleData.opts && eleData.opts.length) {
|
|
22035
|
+
eleData.value = eleData.opts[0].val;
|
|
22036
|
+
}
|
|
22037
|
+
}
|
|
22009
22038
|
}
|
|
22010
22039
|
}
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
var
|
|
22014
|
-
|
|
22015
|
-
|
|
22016
|
-
curEle.value = validOptions[0].val;
|
|
22040
|
+
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
22041
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
22042
|
+
var prevElement;
|
|
22043
|
+
if (eleIndex >= 1) {
|
|
22044
|
+
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
22017
22045
|
}
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
var rangeVal = eval(restrict.rCondition);
|
|
22027
|
-
if (rangeVal !== undefined && rangeVal !== null) {
|
|
22028
|
-
if (rangeVal.constructor === Array) {
|
|
22029
|
-
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
22030
|
-
errorMsg =
|
|
22031
|
-
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
22046
|
+
if (prevElement) {
|
|
22047
|
+
if (!curCondition) {
|
|
22048
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
22049
|
+
var onePrevEleVerify = prevEleVerify === null || prevEleVerify === void 0 ? void 0 : prevEleVerify.find(function (v) { return v[eleData.key] && v[eleData.key].some(function (condi) { return condi.value === eleData.value; }); });
|
|
22050
|
+
if (onePrevEleVerify) {
|
|
22051
|
+
prevElement.value = onePrevEleVerify.value;
|
|
22052
|
+
curCondition = onePrevEleVerify[eleData.key];
|
|
22053
|
+
}
|
|
22032
22054
|
}
|
|
22033
|
-
if (
|
|
22034
|
-
|
|
22035
|
-
|
|
22055
|
+
if (!curCondition) {
|
|
22056
|
+
eleTitle.isDisabled = true;
|
|
22057
|
+
eleTitle.value = false;
|
|
22058
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
22059
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
22060
|
+
}
|
|
22036
22061
|
}
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22062
|
+
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
22063
|
+
if (isNeedReverseFilter) {
|
|
22064
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
22065
|
+
if (prevEleVerify) {
|
|
22066
|
+
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
22067
|
+
var _a;
|
|
22068
|
+
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
22069
|
+
insuranceKey: ins.key,
|
|
22070
|
+
elementKey: eleData.key
|
|
22071
|
+
},
|
|
22072
|
+
_a[prevElement.key] = v.value,
|
|
22073
|
+
_a));
|
|
22074
|
+
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
22075
|
+
}).map(function (v) { return ({
|
|
22076
|
+
val: v.value,
|
|
22077
|
+
desc: v.desc || v.value,
|
|
22078
|
+
isHide: null,
|
|
22079
|
+
isDisabled: null,
|
|
22080
|
+
isInvalid: null
|
|
22081
|
+
}); });
|
|
22082
|
+
}
|
|
22041
22083
|
}
|
|
22042
22084
|
}
|
|
22043
|
-
}
|
|
22044
|
-
|
|
22045
|
-
|
|
22085
|
+
};
|
|
22086
|
+
do {
|
|
22087
|
+
var state_1 = _loop_1();
|
|
22088
|
+
if (state_1 === "break")
|
|
22089
|
+
break;
|
|
22090
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
22091
|
+
});
|
|
22046
22092
|
}
|
|
22047
|
-
|
|
22093
|
+
setGroupInsurance(prodData);
|
|
22094
|
+
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
22095
|
+
return [2, prodData];
|
|
22048
22096
|
}
|
|
22049
22097
|
});
|
|
22098
|
+
});
|
|
22099
|
+
}
|
|
22100
|
+
function multipleInsuredHandler(personData) {
|
|
22101
|
+
var personOrderList = personData.personOrderList;
|
|
22102
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
22103
|
+
return null;
|
|
22050
22104
|
}
|
|
22051
|
-
return
|
|
22105
|
+
var insured2Info = personOrderList.find(function (p) { return p.key === 'insured2Info'; });
|
|
22106
|
+
if (!insured2Info) {
|
|
22107
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
22108
|
+
var insuredIndex = personOrderList.findIndex(function (p) { return p.key === 'insuredInfo'; });
|
|
22109
|
+
if (insuredIndex >= 0) {
|
|
22110
|
+
var person = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["cloneDeep"])(insuredInfo);
|
|
22111
|
+
person.key = 'insured2Info';
|
|
22112
|
+
person.eleOrderList.forEach(function (e) {
|
|
22113
|
+
if (e.key === 'title') {
|
|
22114
|
+
e.isDisabled = false;
|
|
22115
|
+
e.value = true;
|
|
22116
|
+
e.label = '第二被保人信息';
|
|
22117
|
+
}
|
|
22118
|
+
});
|
|
22119
|
+
personOrderList.splice(insuredIndex + 1, 0, person);
|
|
22120
|
+
}
|
|
22121
|
+
}
|
|
22122
|
+
return personData;
|
|
22052
22123
|
}
|
|
22053
|
-
function
|
|
22054
|
-
|
|
22055
|
-
|
|
22124
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
22125
|
+
var _a, _b, _c, _d;
|
|
22126
|
+
if (parmas === void 0) { parmas = {}; }
|
|
22127
|
+
var personOrderList = personData.personOrderList;
|
|
22128
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
22129
|
+
return null;
|
|
22056
22130
|
}
|
|
22057
|
-
|
|
22131
|
+
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
22132
|
+
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
22133
|
+
var insuredList = personOrderList
|
|
22134
|
+
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
22135
|
+
.filter(function (p) {
|
|
22136
|
+
var _a;
|
|
22137
|
+
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
22138
|
+
return title && title.value;
|
|
22139
|
+
})
|
|
22140
|
+
.map(function (p) {
|
|
22141
|
+
var _a, _b;
|
|
22142
|
+
return {
|
|
22143
|
+
key: p.key,
|
|
22144
|
+
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
22145
|
+
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
22146
|
+
};
|
|
22147
|
+
});
|
|
22148
|
+
var applicant = null;
|
|
22149
|
+
var applicantItem = personData.personOrderList.find(function (p) { return p.key === 'applicantInfo' && p.eleOrderList; });
|
|
22150
|
+
if (applicantItem) {
|
|
22151
|
+
applicant = {
|
|
22152
|
+
key: applicantItem.key,
|
|
22153
|
+
sex: (_a = (applicantItem.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
22154
|
+
age: (_b = (applicantItem.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
22155
|
+
};
|
|
22156
|
+
}
|
|
22157
|
+
var insuranceIdList = (_c = convertProductData(prodData).mulInsOrderList) === null || _c === void 0 ? void 0 : _c.map(function (ins) { return ins.key; });
|
|
22158
|
+
(_d = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _d === void 0 ? void 0 : _d.reduce(function (list, ins) {
|
|
22159
|
+
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
22160
|
+
}, []);
|
|
22161
|
+
return getAndCacheInsurancesVerifyData({
|
|
22162
|
+
pbId: pbId,
|
|
22163
|
+
productId: productId,
|
|
22164
|
+
insuredList: insuredList,
|
|
22165
|
+
applicant: applicant,
|
|
22166
|
+
insuranceIdList: insuranceIdList
|
|
22167
|
+
});
|
|
22168
|
+
}
|
|
22169
|
+
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
22170
|
+
var url = "".concat(_src_js_variables_js__WEBPACK_IMPORTED_MODULE_3__[/* APP_HOSTNAME */ "a"], "/planBook/input/insurance/verifyData");
|
|
22171
|
+
return fetch(url, {
|
|
22172
|
+
method: 'POST',
|
|
22173
|
+
credentials: 'include',
|
|
22174
|
+
headers: {
|
|
22175
|
+
Accept: 'application/json, text/plain, */*',
|
|
22176
|
+
'Content-Type': 'application/json;'
|
|
22177
|
+
},
|
|
22178
|
+
body: JSON.stringify(params)
|
|
22179
|
+
})
|
|
22180
|
+
.then(function (response) { return response.json(); })
|
|
22181
|
+
.then(function (_a) {
|
|
22182
|
+
var success = _a.success, data = _a.data;
|
|
22183
|
+
if (!success || !data) {
|
|
22184
|
+
return Promise.reject();
|
|
22185
|
+
}
|
|
22186
|
+
return Promise.resolve(data);
|
|
22187
|
+
})
|
|
22188
|
+
.catch(function () { });
|
|
22189
|
+
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
22190
|
+
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
22191
|
+
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
22192
|
+
return verify;
|
|
22193
|
+
}
|
|
22194
|
+
var insuranceInfo = {};
|
|
22195
|
+
insurances.forEach(function (ins) {
|
|
22196
|
+
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
22197
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(ins));
|
|
22198
|
+
}
|
|
22199
|
+
});
|
|
22200
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), option);
|
|
22201
|
+
var temp = verify;
|
|
22202
|
+
var hasElementKey = verify.key === option.elementKey;
|
|
22203
|
+
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
22204
|
+
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
22205
|
+
if (temp && temp.key === option.elementKey) {
|
|
22206
|
+
hasElementKey = true;
|
|
22207
|
+
}
|
|
22208
|
+
}
|
|
22209
|
+
if (!hasElementKey) {
|
|
22210
|
+
return null;
|
|
22211
|
+
}
|
|
22212
|
+
if (temp && temp[option.elementKey]) {
|
|
22213
|
+
return temp[option.elementKey];
|
|
22214
|
+
}
|
|
22215
|
+
return temp ? [temp] : null;
|
|
22216
|
+
}
|
|
22217
|
+
function setCommonInfo(prodData) {
|
|
22218
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
22058
22219
|
return prodData;
|
|
22059
22220
|
}
|
|
22060
|
-
var
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
|
|
22064
|
-
|
|
22221
|
+
var common = {
|
|
22222
|
+
key: 'common',
|
|
22223
|
+
eleOrderList: []
|
|
22224
|
+
};
|
|
22225
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
22226
|
+
if (!ins.eleOrderList) {
|
|
22065
22227
|
return;
|
|
22066
22228
|
}
|
|
22067
|
-
|
|
22068
|
-
if (
|
|
22069
|
-
|
|
22070
|
-
insuranceId.forEach(function (insId) {
|
|
22071
|
-
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
22072
|
-
if (checkedIns) {
|
|
22073
|
-
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
22074
|
-
insurance.eleOrderList &&
|
|
22075
|
-
insurance.eleOrderList.forEach(function (ele) {
|
|
22076
|
-
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
22077
|
-
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
22078
|
-
}
|
|
22079
|
-
});
|
|
22080
|
-
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
22081
|
-
}
|
|
22082
|
-
});
|
|
22083
|
-
return;
|
|
22229
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
22230
|
+
if (ele.common && common.eleOrderList.every(function (e) { return e.key !== ele.key; })) {
|
|
22231
|
+
common.eleOrderList.push(ele);
|
|
22084
22232
|
}
|
|
22085
|
-
|
|
22086
|
-
}
|
|
22233
|
+
});
|
|
22234
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) { return !ele.common; });
|
|
22087
22235
|
});
|
|
22088
|
-
|
|
22236
|
+
if (!common.eleOrderList.length) {
|
|
22237
|
+
return prodData;
|
|
22238
|
+
}
|
|
22239
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
22240
|
+
prodData.mulInsOrderList.unshift(common);
|
|
22241
|
+
if (prodData.mulInsOrderList[1]) {
|
|
22242
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
22243
|
+
}
|
|
22244
|
+
return prodData;
|
|
22089
22245
|
}
|
|
22090
|
-
function
|
|
22091
|
-
if (!
|
|
22092
|
-
return
|
|
22246
|
+
function setGroupInsurance(prodData) {
|
|
22247
|
+
if (!prodData.mulInsOrderList) {
|
|
22248
|
+
return prodData;
|
|
22093
22249
|
}
|
|
22094
|
-
|
|
22095
|
-
|
|
22250
|
+
var groupInsuranceList = prodData && prodData.mulInsOrderList && prodData.mulInsOrderList.filter(function (ins) { return !!ins.groupKey; });
|
|
22251
|
+
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
22252
|
+
return prodData;
|
|
22096
22253
|
}
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
|
|
22100
|
-
|
|
22101
|
-
|
|
22102
|
-
|
|
22254
|
+
var oldGroupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.isGroup; });
|
|
22255
|
+
var newGroupInsMap = {};
|
|
22256
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return !ins.isGroup; });
|
|
22257
|
+
groupInsuranceList.forEach(function (ins) {
|
|
22258
|
+
var oldGroupIns = oldGroupInsList.find(function (gIns) { return gIns.key === ins.groupKey; });
|
|
22259
|
+
var oldTitleEle = {};
|
|
22260
|
+
var oldInsuranceIdEle = {};
|
|
22261
|
+
if (oldGroupIns && oldGroupIns.eleOrderList) {
|
|
22262
|
+
oldTitleEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22263
|
+
oldInsuranceIdEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
22103
22264
|
}
|
|
22104
|
-
if (ins.
|
|
22105
|
-
ins.
|
|
22106
|
-
|
|
22265
|
+
if (ins.groupKey) {
|
|
22266
|
+
newGroupInsMap[ins.groupKey] = newGroupInsMap[ins.groupKey] || {
|
|
22267
|
+
key: ins.groupKey,
|
|
22268
|
+
name: ins.groupName,
|
|
22269
|
+
huomian: ins.huomian,
|
|
22270
|
+
isGroup: true,
|
|
22271
|
+
eleOrderList: [
|
|
22272
|
+
{
|
|
22273
|
+
key: 'title',
|
|
22274
|
+
value: (oldTitleEle && oldTitleEle.value) || false,
|
|
22275
|
+
isDisabled: false,
|
|
22276
|
+
componentName: 'cmCommonTitle',
|
|
22277
|
+
labelName: ins.groupName
|
|
22278
|
+
},
|
|
22279
|
+
{
|
|
22280
|
+
key: 'insuranceId',
|
|
22281
|
+
value: (oldInsuranceIdEle && oldInsuranceIdEle.value) || (ins.isCheckbox ? [] : ''),
|
|
22282
|
+
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
22283
|
+
opts: []
|
|
22284
|
+
}
|
|
22285
|
+
]
|
|
22286
|
+
};
|
|
22287
|
+
var titleEle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22288
|
+
var insuranceIdEle = newGroupInsMap[ins.groupKey].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
22289
|
+
insuranceIdEle.opts.push({
|
|
22290
|
+
val: ins.key,
|
|
22291
|
+
code: ins.code,
|
|
22292
|
+
desc: titleEle.labelName,
|
|
22293
|
+
isDisabled: titleEle.isDisabled
|
|
22107
22294
|
});
|
|
22108
22295
|
}
|
|
22109
|
-
});
|
|
22110
|
-
|
|
22111
|
-
}
|
|
22112
|
-
|
|
22113
|
-
|
|
22114
|
-
|
|
22115
|
-
|
|
22116
|
-
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
var
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
var
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
|
|
22132
|
-
|
|
22133
|
-
var
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
var
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22142
|
-
|
|
22143
|
-
|
|
22144
|
-
|
|
22145
|
-
|
|
22146
|
-
|
|
22147
|
-
|
|
22148
|
-
|
|
22149
|
-
|
|
22150
|
-
if (!channel.has(key)) {
|
|
22151
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
22152
|
-
}
|
|
22153
|
-
},
|
|
22154
|
-
'delete': function (key) {
|
|
22155
|
-
if ($m) {
|
|
22156
|
-
var result = $mapDelete($m, key);
|
|
22157
|
-
if ($mapSize($m) === 0) {
|
|
22158
|
-
$m = void undefined;
|
|
22159
|
-
}
|
|
22160
|
-
return result;
|
|
22161
|
-
}
|
|
22162
|
-
return false;
|
|
22163
|
-
},
|
|
22164
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
22165
|
-
if ($m) {
|
|
22166
|
-
return $mapGet($m, key);
|
|
22167
|
-
}
|
|
22168
|
-
},
|
|
22169
|
-
has: function (key) {
|
|
22170
|
-
if ($m) {
|
|
22171
|
-
return $mapHas($m, key);
|
|
22172
|
-
}
|
|
22173
|
-
return false;
|
|
22174
|
-
},
|
|
22175
|
-
set: function (key, value) {
|
|
22176
|
-
if (!$m) {
|
|
22177
|
-
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
22178
|
-
$m = new $Map();
|
|
22179
|
-
}
|
|
22180
|
-
$mapSet($m, key, value);
|
|
22181
|
-
}
|
|
22182
|
-
};
|
|
22183
|
-
|
|
22184
|
-
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
22185
|
-
return channel;
|
|
22186
|
-
};
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
/***/ }),
|
|
22190
|
-
/* 29 */
|
|
22191
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22192
|
-
|
|
22193
|
-
"use strict";
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
/** @type {import('.')} */
|
|
22197
|
-
module.exports = Object;
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
/***/ }),
|
|
22201
|
-
/* 30 */
|
|
22202
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22203
|
-
|
|
22204
|
-
"use strict";
|
|
22205
|
-
|
|
22206
|
-
|
|
22207
|
-
/** @type {import('.')} */
|
|
22208
|
-
var $gOPD = __webpack_require__(57);
|
|
22209
|
-
|
|
22210
|
-
if ($gOPD) {
|
|
22211
|
-
try {
|
|
22212
|
-
$gOPD([], 'length');
|
|
22213
|
-
} catch (e) {
|
|
22214
|
-
// IE 8 has a broken gOPD
|
|
22215
|
-
$gOPD = null;
|
|
22216
|
-
}
|
|
22217
|
-
}
|
|
22218
|
-
|
|
22219
|
-
module.exports = $gOPD;
|
|
22220
|
-
|
|
22221
|
-
|
|
22222
|
-
/***/ }),
|
|
22223
|
-
/* 31 */
|
|
22224
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22225
|
-
|
|
22226
|
-
"use strict";
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
22230
|
-
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
/***/ }),
|
|
22234
|
-
/* 32 */
|
|
22235
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22236
|
-
|
|
22237
|
-
"use strict";
|
|
22238
|
-
|
|
22239
|
-
|
|
22240
|
-
var $Object = __webpack_require__(29);
|
|
22241
|
-
|
|
22242
|
-
/** @type {import('./Object.getPrototypeOf')} */
|
|
22243
|
-
module.exports = $Object.getPrototypeOf || null;
|
|
22244
|
-
|
|
22245
|
-
|
|
22246
|
-
/***/ }),
|
|
22247
|
-
/* 33 */
|
|
22248
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22249
|
-
|
|
22250
|
-
"use strict";
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
var bind = __webpack_require__(15);
|
|
22254
|
-
var $TypeError = __webpack_require__(9);
|
|
22255
|
-
|
|
22256
|
-
var $call = __webpack_require__(20);
|
|
22257
|
-
var $actualApply = __webpack_require__(64);
|
|
22258
|
-
|
|
22259
|
-
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
22260
|
-
module.exports = function callBindBasic(args) {
|
|
22261
|
-
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
22262
|
-
throw new $TypeError('a function is required');
|
|
22263
|
-
}
|
|
22264
|
-
return $actualApply(bind, $call, args);
|
|
22265
|
-
};
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
/***/ }),
|
|
22269
|
-
/* 34 */
|
|
22270
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22271
|
-
|
|
22272
|
-
"use strict";
|
|
22273
|
-
|
|
22274
|
-
|
|
22275
|
-
/** @type {import('./functionApply')} */
|
|
22276
|
-
module.exports = Function.prototype.apply;
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
/***/ }),
|
|
22280
|
-
/* 35 */
|
|
22281
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22282
|
-
|
|
22283
|
-
"use strict";
|
|
22284
|
-
|
|
22285
|
-
|
|
22286
|
-
var GetIntrinsic = __webpack_require__(19);
|
|
22287
|
-
|
|
22288
|
-
var callBindBasic = __webpack_require__(33);
|
|
22289
|
-
|
|
22290
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
22291
|
-
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
22292
|
-
|
|
22293
|
-
/** @type {import('.')} */
|
|
22294
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
22295
|
-
/* eslint no-extra-parens: 0 */
|
|
22296
|
-
|
|
22297
|
-
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
22298
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
22299
|
-
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
22300
|
-
}
|
|
22301
|
-
return intrinsic;
|
|
22302
|
-
};
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
/***/ }),
|
|
22306
|
-
/* 36 */
|
|
22307
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22308
|
-
|
|
22309
|
-
"use strict";
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
var formats = __webpack_require__(21);
|
|
22313
|
-
|
|
22314
|
-
var has = Object.prototype.hasOwnProperty;
|
|
22315
|
-
var isArray = Array.isArray;
|
|
22316
|
-
|
|
22317
|
-
var hexTable = (function () {
|
|
22318
|
-
var array = [];
|
|
22319
|
-
for (var i = 0; i < 256; ++i) {
|
|
22320
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
22321
|
-
}
|
|
22322
|
-
|
|
22323
|
-
return array;
|
|
22324
|
-
}());
|
|
22325
|
-
|
|
22326
|
-
var compactQueue = function compactQueue(queue) {
|
|
22327
|
-
while (queue.length > 1) {
|
|
22328
|
-
var item = queue.pop();
|
|
22329
|
-
var obj = item.obj[item.prop];
|
|
22330
|
-
|
|
22331
|
-
if (isArray(obj)) {
|
|
22332
|
-
var compacted = [];
|
|
22333
|
-
|
|
22334
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
22335
|
-
if (typeof obj[j] !== 'undefined') {
|
|
22336
|
-
compacted.push(obj[j]);
|
|
22296
|
+
});
|
|
22297
|
+
var _loop_2 = function (k) {
|
|
22298
|
+
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22299
|
+
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
22300
|
+
if (nGroupTitle && nGroupInsuranceId) {
|
|
22301
|
+
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
22302
|
+
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
22303
|
+
nGroupTitle.value = false;
|
|
22304
|
+
nGroupTitle.isDisabled = true;
|
|
22305
|
+
}
|
|
22306
|
+
else {
|
|
22307
|
+
nGroupTitle.isDisabled = false;
|
|
22308
|
+
}
|
|
22309
|
+
}
|
|
22310
|
+
var groupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.groupKey == k; });
|
|
22311
|
+
if (groupInsList && groupInsList.length) {
|
|
22312
|
+
if (groupInsList.some(function (ins) {
|
|
22313
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22314
|
+
return ins.required && subTitle && !subTitle.isDisabled;
|
|
22315
|
+
})) {
|
|
22316
|
+
nGroupTitle.value = true;
|
|
22317
|
+
nGroupTitle.isDisabled = true;
|
|
22318
|
+
}
|
|
22319
|
+
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
22320
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22321
|
+
return subTitle && !subTitle.isDisabled;
|
|
22322
|
+
});
|
|
22323
|
+
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
22324
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
22325
|
+
return subTitle && subTitle.value;
|
|
22326
|
+
});
|
|
22327
|
+
if (!nGroupInsuranceId.value) {
|
|
22328
|
+
if (checkedInsurances) {
|
|
22329
|
+
nGroupInsuranceId.value = checkedInsurances.key;
|
|
22330
|
+
nGroupTitle.value = true;
|
|
22331
|
+
}
|
|
22332
|
+
else if (nGroupTitle.value) {
|
|
22333
|
+
if (notDisabledInsurances[0]) {
|
|
22334
|
+
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
22335
|
+
}
|
|
22336
|
+
}
|
|
22337
22337
|
}
|
|
22338
22338
|
}
|
|
22339
|
-
|
|
22340
|
-
item.obj[item.prop] = compacted;
|
|
22341
22339
|
}
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22340
|
+
if (nGroupInsuranceId) {
|
|
22341
|
+
if (nGroupInsuranceId.value) {
|
|
22342
|
+
if (nGroupInsuranceId.value.constructor === Array) {
|
|
22343
|
+
if (nGroupInsuranceId.opts) {
|
|
22344
|
+
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) { return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled; });
|
|
22345
|
+
}
|
|
22346
|
+
}
|
|
22347
|
+
else {
|
|
22348
|
+
var opt = nGroupInsuranceId.opts.find(function (o) { return o.val === nGroupInsuranceId.value; });
|
|
22349
|
+
if (opt && opt.isDisabled) {
|
|
22350
|
+
nGroupInsuranceId.value = '';
|
|
22351
|
+
}
|
|
22352
|
+
}
|
|
22353
|
+
}
|
|
22354
|
+
if (nGroupInsuranceId.value) {
|
|
22355
|
+
var checkedIns = prodData.mulInsOrderList.find(function (ins) { return ins.key === nGroupInsuranceId.value; });
|
|
22356
|
+
if (checkedIns) {
|
|
22357
|
+
for (var ck in checkedIns) {
|
|
22358
|
+
if (!['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name', 'accountData', 'reduceBaofData'].includes(ck)) {
|
|
22359
|
+
if (ck === 'eleOrderList') {
|
|
22360
|
+
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedIns[ck].filter(function (ele) { return ele.key !== 'title'; }));
|
|
22361
|
+
}
|
|
22362
|
+
else {
|
|
22363
|
+
newGroupInsMap[k][ck] = checkedIns[ck];
|
|
22364
|
+
}
|
|
22365
|
+
}
|
|
22366
|
+
}
|
|
22367
|
+
}
|
|
22368
|
+
}
|
|
22350
22369
|
}
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
var merge = function merge(target, source, options) {
|
|
22357
|
-
/* eslint no-param-reassign: 0 */
|
|
22358
|
-
if (!source) {
|
|
22359
|
-
return target;
|
|
22360
|
-
}
|
|
22361
|
-
|
|
22362
|
-
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
22363
|
-
if (isArray(target)) {
|
|
22364
|
-
target.push(source);
|
|
22365
|
-
} else if (target && typeof target === 'object') {
|
|
22366
|
-
if (
|
|
22367
|
-
(options && (options.plainObjects || options.allowPrototypes))
|
|
22368
|
-
|| !has.call(Object.prototype, source)
|
|
22369
|
-
) {
|
|
22370
|
-
target[source] = true;
|
|
22370
|
+
var index = -1;
|
|
22371
|
+
prodData.mulInsOrderList.forEach(function (ins, i) {
|
|
22372
|
+
if (ins.groupKey === k) {
|
|
22373
|
+
index = i;
|
|
22371
22374
|
}
|
|
22372
|
-
}
|
|
22373
|
-
|
|
22375
|
+
});
|
|
22376
|
+
if (index >= 0) {
|
|
22377
|
+
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
22374
22378
|
}
|
|
22375
|
-
|
|
22376
|
-
|
|
22379
|
+
};
|
|
22380
|
+
for (var k in newGroupInsMap) {
|
|
22381
|
+
_loop_2(k);
|
|
22377
22382
|
}
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22383
|
+
return prodData;
|
|
22384
|
+
}
|
|
22385
|
+
function isHideProduct(prodData, productVerifyData, personOrderList) {
|
|
22386
|
+
var ageRangeProd = {};
|
|
22387
|
+
if (prodData && productVerifyData && Object.keys(productVerifyData).length && personOrderList) {
|
|
22388
|
+
if (prodData.mulInsOrderList) {
|
|
22389
|
+
var hasRequiredIns_1 = prodData.mulInsOrderList.some(function (ins) { return !!ins.required && productVerifyData[ins.key]; });
|
|
22390
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
22391
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
22392
|
+
if (insuranceVerifyData) {
|
|
22393
|
+
if ((!ins.huomian || ins.huomian == 'beiHuomian') && (!hasRequiredIns_1 || (hasRequiredIns_1 && ins.required))) {
|
|
22394
|
+
insuranceVerifyData.forEach(function (verify) {
|
|
22395
|
+
ageRangeProd[verify.sex] = ageRangeProd[verify.sex] || [];
|
|
22396
|
+
ageRangeProd[verify.sex] = [
|
|
22397
|
+
Math.min(ageRangeProd[verify.sex][0] === undefined ? verify.minAge : ageRangeProd[verify.sex][0], verify.minAge),
|
|
22398
|
+
Math.max(ageRangeProd[verify.sex][1] === undefined ? verify.maxAge : ageRangeProd[verify.sex][1], verify.maxAge)
|
|
22399
|
+
];
|
|
22400
|
+
});
|
|
22401
|
+
}
|
|
22402
|
+
}
|
|
22403
|
+
});
|
|
22404
|
+
}
|
|
22405
|
+
var _a = personOrderList.find(function (p) { return p.key === 'insuredInfo'; }), sex = _a.sex, age = _a.age;
|
|
22406
|
+
if (ageRangeProd[sex] && age >= ageRangeProd[sex][0] && age <= ageRangeProd[sex][1]) {
|
|
22407
|
+
prodData.hide = false;
|
|
22408
|
+
}
|
|
22409
|
+
else {
|
|
22410
|
+
prodData.hadChoice = false;
|
|
22411
|
+
prodData.hide = true;
|
|
22412
|
+
prodData.totalBaof = null;
|
|
22413
|
+
}
|
|
22381
22414
|
}
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22415
|
+
return ageRangeProd;
|
|
22416
|
+
}
|
|
22417
|
+
function verifyProductRules(_a) {
|
|
22418
|
+
var personData = _a.personData, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
22419
|
+
var errorMsg = '';
|
|
22420
|
+
var personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_5__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
22421
|
+
if (productData.restrictList && productData.restrictList.length) {
|
|
22422
|
+
errorMsg = restrictInsurancesInProduct({
|
|
22423
|
+
personOrderList: personOrderList,
|
|
22424
|
+
productData: productData,
|
|
22425
|
+
insData: insData,
|
|
22426
|
+
eleData: eleData
|
|
22427
|
+
});
|
|
22386
22428
|
}
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
|
|
22391
|
-
|
|
22392
|
-
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22429
|
+
if (!errorMsg && productData.mulInsOrderList) {
|
|
22430
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
22431
|
+
if (ins.eleOrderList) {
|
|
22432
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
22433
|
+
errorMsg =
|
|
22434
|
+
errorMsg ||
|
|
22435
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* restrictElementsInInsurance */ "d"])({
|
|
22436
|
+
personOrderList: personOrderList,
|
|
22437
|
+
insData: ins,
|
|
22438
|
+
eleData: ele
|
|
22439
|
+
});
|
|
22440
|
+
});
|
|
22441
|
+
}
|
|
22442
|
+
});
|
|
22443
|
+
}
|
|
22444
|
+
return errorMsg;
|
|
22445
|
+
}
|
|
22446
|
+
function restrictInsurancesInProduct(_a) {
|
|
22447
|
+
var personOrderList = _a.personOrderList, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
22448
|
+
var errorMsg = '';
|
|
22449
|
+
var restrictList = productData.restrictList;
|
|
22450
|
+
if (restrictList && restrictList.length) {
|
|
22451
|
+
restrictList.forEach(function (restrict) {
|
|
22452
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
22453
|
+
var productInfo = convertProductData(productData);
|
|
22454
|
+
var prodVerifyData = {
|
|
22455
|
+
age: insuredInfo.age,
|
|
22456
|
+
sex: insuredInfo.sex,
|
|
22457
|
+
common: productInfo.common
|
|
22458
|
+
};
|
|
22459
|
+
productInfo.mulInsOrderList.forEach(function (ins) {
|
|
22460
|
+
prodVerifyData['i' + ins.key] = ins;
|
|
22461
|
+
});
|
|
22462
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'prodVerifyData.i$2$3');
|
|
22463
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'prodVerifyData.$2');
|
|
22464
|
+
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
22465
|
+
var curEle = curIns ? {} : null;
|
|
22466
|
+
if (curIns) {
|
|
22467
|
+
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
22468
|
+
}
|
|
22469
|
+
if (curEle) {
|
|
22470
|
+
switch (restrict.rType) {
|
|
22471
|
+
case 1:
|
|
22472
|
+
var isDisabled = curEle.isDisabled;
|
|
22473
|
+
var value = curEle.value;
|
|
22474
|
+
if (eval(restrict.rCondition)) {
|
|
22475
|
+
isDisabled = false;
|
|
22476
|
+
if (restrict.other && restrict.other.includes('required')) {
|
|
22477
|
+
value = true;
|
|
22478
|
+
isDisabled = true;
|
|
22479
|
+
}
|
|
22480
|
+
}
|
|
22481
|
+
else {
|
|
22482
|
+
isDisabled = true;
|
|
22483
|
+
if (restrict.other && restrict.other.includes('optional')) {
|
|
22484
|
+
isDisabled = false;
|
|
22485
|
+
}
|
|
22486
|
+
if (isDisabled) {
|
|
22487
|
+
value = false;
|
|
22488
|
+
}
|
|
22489
|
+
if (insData && eleData && restrict.rCondition.search(insData.key + '.' + eleData.key) !== -1) {
|
|
22490
|
+
value = false;
|
|
22491
|
+
}
|
|
22492
|
+
}
|
|
22493
|
+
curEle.isDisabled = isDisabled;
|
|
22494
|
+
curEle.value = value;
|
|
22495
|
+
break;
|
|
22496
|
+
case 2: {
|
|
22497
|
+
var rangeSelect_1 = eval(restrict.rCondition);
|
|
22498
|
+
if (rangeSelect_1 !== undefined && rangeSelect_1 !== null) {
|
|
22499
|
+
curEle.opts.forEach(function (opt) {
|
|
22500
|
+
var optNum = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(opt.val, prodVerifyData.age);
|
|
22501
|
+
var rangeSelectNum = rangeSelect_1.constructor === Array
|
|
22502
|
+
? [
|
|
22503
|
+
rangeSelect_1[0] && Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1[0], prodVerifyData.age),
|
|
22504
|
+
rangeSelect_1[1] && Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1[1], prodVerifyData.age)
|
|
22505
|
+
]
|
|
22506
|
+
: Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1, prodVerifyData.age);
|
|
22507
|
+
if (rangeSelect_1) {
|
|
22508
|
+
if (rangeSelect_1.constructor === Array) {
|
|
22509
|
+
opt.isHide =
|
|
22510
|
+
(rangeSelect_1[0] && optNum < rangeSelectNum[0]) || (rangeSelect_1[1] && optNum > rangeSelectNum[1]);
|
|
22511
|
+
}
|
|
22512
|
+
else {
|
|
22513
|
+
opt.isHide = optNum > rangeSelectNum;
|
|
22514
|
+
}
|
|
22515
|
+
}
|
|
22516
|
+
});
|
|
22517
|
+
if (!(curEle.isHide && !curEle.isDisabled) && curEle.opts) {
|
|
22518
|
+
var validOptions = curEle.opts.filter(function (o) { return !o.isDisabled && !o.isHide && !o.isInvalid; });
|
|
22519
|
+
var activeOption = validOptions.find(function (o) { return o.val === curEle.value; });
|
|
22520
|
+
if (!activeOption && validOptions.length) {
|
|
22521
|
+
curEle.value = validOptions[0].val;
|
|
22522
|
+
}
|
|
22523
|
+
}
|
|
22524
|
+
}
|
|
22525
|
+
break;
|
|
22526
|
+
}
|
|
22527
|
+
case 3: {
|
|
22528
|
+
if ((!insData && !eleData) ||
|
|
22529
|
+
(restrict.rInsKey === insData.key && restrict.rEleKey === eleData.key) ||
|
|
22530
|
+
restrict.rCondition.search("prodVerifyData.i".concat(insData.key, ".").concat(eleData.key)) !== -1) {
|
|
22531
|
+
var rangeVal = eval(restrict.rCondition);
|
|
22532
|
+
if (rangeVal !== undefined && rangeVal !== null) {
|
|
22533
|
+
if (rangeVal.constructor === Array) {
|
|
22534
|
+
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
22535
|
+
errorMsg =
|
|
22536
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
22537
|
+
}
|
|
22538
|
+
if (rangeVal[1] && curEle.value && curEle.value > rangeVal[1]) {
|
|
22539
|
+
errorMsg =
|
|
22540
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5927\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* converUnit10000 */ "b"])(rangeVal[1]));
|
|
22541
|
+
}
|
|
22542
|
+
}
|
|
22543
|
+
else if (rangeVal.constructor === String || rangeVal.constructor === Number) {
|
|
22544
|
+
if (rangeVal) {
|
|
22545
|
+
curEle.value = rangeVal;
|
|
22546
|
+
}
|
|
22547
|
+
}
|
|
22548
|
+
}
|
|
22549
|
+
}
|
|
22550
|
+
break;
|
|
22551
|
+
}
|
|
22396
22552
|
}
|
|
22397
|
-
} else {
|
|
22398
|
-
target[i] = item;
|
|
22399
22553
|
}
|
|
22400
22554
|
});
|
|
22401
|
-
return target;
|
|
22402
|
-
}
|
|
22403
|
-
|
|
22404
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
22405
|
-
var value = source[key];
|
|
22406
|
-
|
|
22407
|
-
if (has.call(acc, key)) {
|
|
22408
|
-
acc[key] = merge(acc[key], value, options);
|
|
22409
|
-
} else {
|
|
22410
|
-
acc[key] = value;
|
|
22411
|
-
}
|
|
22412
|
-
return acc;
|
|
22413
|
-
}, mergeTarget);
|
|
22414
|
-
};
|
|
22415
|
-
|
|
22416
|
-
var assign = function assignSingleSource(target, source) {
|
|
22417
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
22418
|
-
acc[key] = source[key];
|
|
22419
|
-
return acc;
|
|
22420
|
-
}, target);
|
|
22421
|
-
};
|
|
22422
|
-
|
|
22423
|
-
var decode = function (str, defaultDecoder, charset) {
|
|
22424
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
22425
|
-
if (charset === 'iso-8859-1') {
|
|
22426
|
-
// unescape never throws, no try...catch needed:
|
|
22427
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
22428
|
-
}
|
|
22429
|
-
// utf-8
|
|
22430
|
-
try {
|
|
22431
|
-
return decodeURIComponent(strWithoutPlus);
|
|
22432
|
-
} catch (e) {
|
|
22433
|
-
return strWithoutPlus;
|
|
22434
|
-
}
|
|
22435
|
-
};
|
|
22436
|
-
|
|
22437
|
-
var limit = 1024;
|
|
22438
|
-
|
|
22439
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
22440
|
-
|
|
22441
|
-
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
22442
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
22443
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
22444
|
-
if (str.length === 0) {
|
|
22445
|
-
return str;
|
|
22446
22555
|
}
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22451
|
-
|
|
22452
|
-
string = String(str);
|
|
22556
|
+
return errorMsg;
|
|
22557
|
+
}
|
|
22558
|
+
function convertProductData(prodData) {
|
|
22559
|
+
if (!prodData) {
|
|
22560
|
+
return prodData;
|
|
22453
22561
|
}
|
|
22454
|
-
|
|
22455
|
-
|
|
22456
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
22457
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
22458
|
-
});
|
|
22562
|
+
if (!prodData.mulInsOrderList) {
|
|
22563
|
+
return prodData;
|
|
22459
22564
|
}
|
|
22460
|
-
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22464
|
-
|
|
22465
|
-
|
|
22466
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
22467
|
-
var c = segment.charCodeAt(i);
|
|
22468
|
-
if (
|
|
22469
|
-
c === 0x2D // -
|
|
22470
|
-
|| c === 0x2E // .
|
|
22471
|
-
|| c === 0x5F // _
|
|
22472
|
-
|| c === 0x7E // ~
|
|
22473
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
22474
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
22475
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
22476
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
22477
|
-
) {
|
|
22478
|
-
arr[arr.length] = segment.charAt(i);
|
|
22479
|
-
continue;
|
|
22480
|
-
}
|
|
22481
|
-
|
|
22482
|
-
if (c < 0x80) {
|
|
22483
|
-
arr[arr.length] = hexTable[c];
|
|
22484
|
-
continue;
|
|
22485
|
-
}
|
|
22486
|
-
|
|
22487
|
-
if (c < 0x800) {
|
|
22488
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
22489
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
22490
|
-
continue;
|
|
22491
|
-
}
|
|
22492
|
-
|
|
22493
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
22494
|
-
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
22495
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
22496
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
22497
|
-
continue;
|
|
22498
|
-
}
|
|
22499
|
-
|
|
22500
|
-
i += 1;
|
|
22501
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
22502
|
-
|
|
22503
|
-
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
22504
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
22505
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
22506
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
22565
|
+
var productData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, prodData), { common: {}, mulInsOrderList: [] });
|
|
22566
|
+
prodData.mulInsOrderList.forEach(function (insurance) {
|
|
22567
|
+
var insuranceData = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(insurance);
|
|
22568
|
+
if (insuranceData.key == 'common') {
|
|
22569
|
+
productData.common = insuranceData;
|
|
22570
|
+
return;
|
|
22507
22571
|
}
|
|
22508
|
-
|
|
22509
|
-
|
|
22510
|
-
|
|
22511
|
-
|
|
22512
|
-
|
|
22513
|
-
|
|
22514
|
-
|
|
22515
|
-
|
|
22516
|
-
|
|
22517
|
-
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
|
|
22521
|
-
|
|
22522
|
-
|
|
22523
|
-
|
|
22524
|
-
|
|
22525
|
-
var key = keys[j];
|
|
22526
|
-
var val = obj[key];
|
|
22527
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
22528
|
-
queue.push({ obj: obj, prop: key });
|
|
22529
|
-
refs.push(val);
|
|
22572
|
+
if (insuranceData.title && !insuranceData.groupKey) {
|
|
22573
|
+
if (insuranceData.isGroup) {
|
|
22574
|
+
var insuranceId = insuranceData.insuranceId.constructor == Array ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
22575
|
+
insuranceId.forEach(function (insId) {
|
|
22576
|
+
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
22577
|
+
if (checkedIns) {
|
|
22578
|
+
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
22579
|
+
insurance.eleOrderList &&
|
|
22580
|
+
insurance.eleOrderList.forEach(function (ele) {
|
|
22581
|
+
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
22582
|
+
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
22583
|
+
}
|
|
22584
|
+
});
|
|
22585
|
+
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
22586
|
+
}
|
|
22587
|
+
});
|
|
22588
|
+
return;
|
|
22530
22589
|
}
|
|
22590
|
+
productData.mulInsOrderList.push(insuranceData);
|
|
22531
22591
|
}
|
|
22592
|
+
});
|
|
22593
|
+
return productData;
|
|
22594
|
+
}
|
|
22595
|
+
function clearAddAndTakeAndAdjustBaoeData(productData) {
|
|
22596
|
+
if (!productData) {
|
|
22597
|
+
return productData;
|
|
22532
22598
|
}
|
|
22533
|
-
|
|
22534
|
-
|
|
22535
|
-
|
|
22536
|
-
return value;
|
|
22537
|
-
};
|
|
22538
|
-
|
|
22539
|
-
var isRegExp = function isRegExp(obj) {
|
|
22540
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
22541
|
-
};
|
|
22542
|
-
|
|
22543
|
-
var isBuffer = function isBuffer(obj) {
|
|
22544
|
-
if (!obj || typeof obj !== 'object') {
|
|
22545
|
-
return false;
|
|
22599
|
+
if (!productData.mulInsOrderList) {
|
|
22600
|
+
return productData;
|
|
22546
22601
|
}
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
|
|
22550
|
-
|
|
22551
|
-
|
|
22552
|
-
|
|
22553
|
-
};
|
|
22554
|
-
|
|
22555
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
22556
|
-
if (isArray(val)) {
|
|
22557
|
-
var mapped = [];
|
|
22558
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
22559
|
-
mapped.push(fn(val[i]));
|
|
22602
|
+
productData.adjustBaoeData = null;
|
|
22603
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
22604
|
+
if (ins.accountData && ins.accountData.addAndTakeData) {
|
|
22605
|
+
ins.accountData.addAndTakeData.forEach(function (aat) {
|
|
22606
|
+
aat.adjustData = [];
|
|
22607
|
+
});
|
|
22560
22608
|
}
|
|
22561
|
-
|
|
22562
|
-
|
|
22563
|
-
|
|
22564
|
-
};
|
|
22565
|
-
|
|
22566
|
-
|
|
22567
|
-
|
|
22568
|
-
|
|
22569
|
-
combine: combine,
|
|
22570
|
-
compact: compact,
|
|
22571
|
-
decode: decode,
|
|
22572
|
-
encode: encode,
|
|
22573
|
-
isBuffer: isBuffer,
|
|
22574
|
-
isRegExp: isRegExp,
|
|
22575
|
-
maybeMap: maybeMap,
|
|
22576
|
-
merge: merge
|
|
22577
|
-
};
|
|
22609
|
+
if (ins.reduceBaof && ins.reduceBaofData) {
|
|
22610
|
+
ins.reduceBaofData.addAndTakeData.forEach(function (aat) {
|
|
22611
|
+
aat.adjustData = [];
|
|
22612
|
+
});
|
|
22613
|
+
}
|
|
22614
|
+
});
|
|
22615
|
+
return productData;
|
|
22616
|
+
}
|
|
22578
22617
|
|
|
22579
22618
|
|
|
22580
22619
|
/***/ }),
|
|
@@ -22614,8 +22653,8 @@ module.exports = function(module) {
|
|
|
22614
22653
|
|
|
22615
22654
|
|
|
22616
22655
|
var getSideChannel = __webpack_require__(40);
|
|
22617
|
-
var utils = __webpack_require__(
|
|
22618
|
-
var formats = __webpack_require__(
|
|
22656
|
+
var utils = __webpack_require__(35);
|
|
22657
|
+
var formats = __webpack_require__(23);
|
|
22619
22658
|
var has = Object.prototype.hasOwnProperty;
|
|
22620
22659
|
|
|
22621
22660
|
var arrayPrefixGenerators = {
|
|
@@ -22976,10 +23015,10 @@ module.exports = function (object, opts) {
|
|
|
22976
23015
|
"use strict";
|
|
22977
23016
|
|
|
22978
23017
|
|
|
22979
|
-
var $TypeError = __webpack_require__(
|
|
22980
|
-
var inspect = __webpack_require__(
|
|
23018
|
+
var $TypeError = __webpack_require__(10);
|
|
23019
|
+
var inspect = __webpack_require__(16);
|
|
22981
23020
|
var getSideChannelList = __webpack_require__(42);
|
|
22982
|
-
var getSideChannelMap = __webpack_require__(
|
|
23021
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
22983
23022
|
var getSideChannelWeakMap = __webpack_require__(67);
|
|
22984
23023
|
|
|
22985
23024
|
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
@@ -23032,9 +23071,9 @@ module.exports = function getSideChannel() {
|
|
|
23032
23071
|
"use strict";
|
|
23033
23072
|
|
|
23034
23073
|
|
|
23035
|
-
var inspect = __webpack_require__(
|
|
23074
|
+
var inspect = __webpack_require__(16);
|
|
23036
23075
|
|
|
23037
|
-
var $TypeError = __webpack_require__(
|
|
23076
|
+
var $TypeError = __webpack_require__(10);
|
|
23038
23077
|
|
|
23039
23078
|
/*
|
|
23040
23079
|
* This function traverses the list returning the node corresponding to the given key.
|
|
@@ -23420,8 +23459,8 @@ module.exports = function hasSymbols() {
|
|
|
23420
23459
|
"use strict";
|
|
23421
23460
|
|
|
23422
23461
|
|
|
23423
|
-
var reflectGetProto = __webpack_require__(
|
|
23424
|
-
var originalGetProto = __webpack_require__(
|
|
23462
|
+
var reflectGetProto = __webpack_require__(30);
|
|
23463
|
+
var originalGetProto = __webpack_require__(31);
|
|
23425
23464
|
|
|
23426
23465
|
var getDunderProto = __webpack_require__(62);
|
|
23427
23466
|
|
|
@@ -23454,8 +23493,8 @@ module.exports = reflectGetProto
|
|
|
23454
23493
|
"use strict";
|
|
23455
23494
|
|
|
23456
23495
|
|
|
23457
|
-
var callBind = __webpack_require__(
|
|
23458
|
-
var gOPD = __webpack_require__(
|
|
23496
|
+
var callBind = __webpack_require__(32);
|
|
23497
|
+
var gOPD = __webpack_require__(29);
|
|
23459
23498
|
|
|
23460
23499
|
var hasProtoAccessor;
|
|
23461
23500
|
try {
|
|
@@ -23582,10 +23621,10 @@ module.exports = function bind(that) {
|
|
|
23582
23621
|
"use strict";
|
|
23583
23622
|
|
|
23584
23623
|
|
|
23585
|
-
var bind = __webpack_require__(
|
|
23624
|
+
var bind = __webpack_require__(17);
|
|
23586
23625
|
|
|
23587
|
-
var $apply = __webpack_require__(
|
|
23588
|
-
var $call = __webpack_require__(
|
|
23626
|
+
var $apply = __webpack_require__(33);
|
|
23627
|
+
var $call = __webpack_require__(22);
|
|
23589
23628
|
var $reflectApply = __webpack_require__(65);
|
|
23590
23629
|
|
|
23591
23630
|
/** @type {import('./actualApply')} */
|
|
@@ -23612,7 +23651,7 @@ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
|
23612
23651
|
|
|
23613
23652
|
var call = Function.prototype.call;
|
|
23614
23653
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
23615
|
-
var bind = __webpack_require__(
|
|
23654
|
+
var bind = __webpack_require__(17);
|
|
23616
23655
|
|
|
23617
23656
|
/** @type {import('.')} */
|
|
23618
23657
|
module.exports = bind.call(call, $hasOwn);
|
|
@@ -23625,12 +23664,12 @@ module.exports = bind.call(call, $hasOwn);
|
|
|
23625
23664
|
"use strict";
|
|
23626
23665
|
|
|
23627
23666
|
|
|
23628
|
-
var GetIntrinsic = __webpack_require__(
|
|
23629
|
-
var callBound = __webpack_require__(
|
|
23630
|
-
var inspect = __webpack_require__(
|
|
23631
|
-
var getSideChannelMap = __webpack_require__(
|
|
23667
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
23668
|
+
var callBound = __webpack_require__(34);
|
|
23669
|
+
var inspect = __webpack_require__(16);
|
|
23670
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
23632
23671
|
|
|
23633
|
-
var $TypeError = __webpack_require__(
|
|
23672
|
+
var $TypeError = __webpack_require__(10);
|
|
23634
23673
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
23635
23674
|
|
|
23636
23675
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
@@ -23716,7 +23755,7 @@ module.exports = $WeakMap
|
|
|
23716
23755
|
"use strict";
|
|
23717
23756
|
|
|
23718
23757
|
|
|
23719
|
-
var utils = __webpack_require__(
|
|
23758
|
+
var utils = __webpack_require__(35);
|
|
23720
23759
|
|
|
23721
23760
|
var has = Object.prototype.hasOwnProperty;
|
|
23722
23761
|
var isArray = Array.isArray;
|
|
@@ -24607,7 +24646,7 @@ module.exports = __webpack_require__(84);
|
|
|
24607
24646
|
/* 80 */
|
|
24608
24647
|
/***/ (function(module, exports, __webpack_require__) {
|
|
24609
24648
|
|
|
24610
|
-
var _typeof = __webpack_require__(
|
|
24649
|
+
var _typeof = __webpack_require__(14)["default"];
|
|
24611
24650
|
function _regeneratorRuntime() {
|
|
24612
24651
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
24613
24652
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -24888,9 +24927,9 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
|
24888
24927
|
"use strict";
|
|
24889
24928
|
/* unused harmony export deepCopy */
|
|
24890
24929
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseTime; });
|
|
24891
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
24930
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
24892
24931
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
24893
|
-
/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
24932
|
+
/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
|
|
24894
24933
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _variables__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
24895
24934
|
|
|
24896
24935
|
|
|
@@ -26125,8 +26164,8 @@ module.exports = function spread(callback) {
|
|
|
26125
26164
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
26126
26165
|
|
|
26127
26166
|
"use strict";
|
|
26128
|
-
/* harmony import */ var
|
|
26129
|
-
/* harmony import */ var
|
|
26167
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_37f6412c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(161);
|
|
26168
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_37f6412c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_37f6412c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
26130
26169
|
/* unused harmony reexport * */
|
|
26131
26170
|
|
|
26132
26171
|
|
|
@@ -26173,7 +26212,7 @@ module.exports = function spread(callback) {
|
|
|
26173
26212
|
// ESM COMPAT FLAG
|
|
26174
26213
|
__webpack_require__.r(__webpack_exports__);
|
|
26175
26214
|
|
|
26176
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=
|
|
26215
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=37f6412c
|
|
26177
26216
|
var render = function render() {
|
|
26178
26217
|
var _vm = this,
|
|
26179
26218
|
_c = _vm._self._c,
|
|
@@ -26476,7 +26515,7 @@ var render = function render() {
|
|
|
26476
26515
|
};
|
|
26477
26516
|
var staticRenderFns = [];
|
|
26478
26517
|
|
|
26479
|
-
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=template&id=
|
|
26518
|
+
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=template&id=37f6412c
|
|
26480
26519
|
|
|
26481
26520
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
26482
26521
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -26487,6 +26526,9 @@ var vue_property_decorator = __webpack_require__(2);
|
|
|
26487
26526
|
// EXTERNAL MODULE: ./src/js/utils.js
|
|
26488
26527
|
var utils = __webpack_require__(82);
|
|
26489
26528
|
|
|
26529
|
+
// EXTERNAL MODULE: ./src/js/variables.js
|
|
26530
|
+
var variables = __webpack_require__(7);
|
|
26531
|
+
|
|
26490
26532
|
// EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
|
|
26491
26533
|
var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(4);
|
|
26492
26534
|
|
|
@@ -26494,7 +26536,7 @@ var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ =
|
|
|
26494
26536
|
var lib = __webpack_require__(131);
|
|
26495
26537
|
|
|
26496
26538
|
// EXTERNAL MODULE: ./packages/bxs-utils/index.ts + 3 modules
|
|
26497
|
-
var bxs_utils = __webpack_require__(
|
|
26539
|
+
var bxs_utils = __webpack_require__(9);
|
|
26498
26540
|
|
|
26499
26541
|
// CONCATENATED MODULE: ./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=script&lang=ts
|
|
26500
26542
|
var insure_calculatevue_type_script_lang_ts_a;
|
|
@@ -26503,6 +26545,7 @@ var insure_calculatevue_type_script_lang_ts_a;
|
|
|
26503
26545
|
|
|
26504
26546
|
|
|
26505
26547
|
|
|
26548
|
+
|
|
26506
26549
|
vue_property_decorator["d" /* Vue */].use(external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Picker"]);
|
|
26507
26550
|
vue_property_decorator["d" /* Vue */].use(external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["DatetimePicker"]);
|
|
26508
26551
|
vue_property_decorator["d" /* Vue */].use(external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Toast"]);
|
|
@@ -26602,9 +26645,7 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
26602
26645
|
this.$set(this.asyncColumnsParams, 'postParams', postParamsProfess);
|
|
26603
26646
|
this.$set(this.asyncColumnsParams, 'isDev', this.isDevelop);
|
|
26604
26647
|
var originData;
|
|
26605
|
-
this.hasCalculateData = !!(this.calculateData &&
|
|
26606
|
-
this.calculateData.current_data &&
|
|
26607
|
-
this.calculateData.current_data.length);
|
|
26648
|
+
this.hasCalculateData = !!(this.calculateData && this.calculateData.current_data && this.calculateData.current_data.length);
|
|
26608
26649
|
if (this.hasCalculateData) {
|
|
26609
26650
|
originData = JSON.parse(JSON.stringify(this.calculateData));
|
|
26610
26651
|
}
|
|
@@ -27221,12 +27262,12 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
27221
27262
|
if (this.isDevelop) {
|
|
27222
27263
|
this.getCalculateApi = 'https://insurance2a-api.wyins.net.cn/api/product/data/calculate';
|
|
27223
27264
|
this.getAreaCodeApi = 'https://insurance2a-api.wyins.net.cn/api/product/data/getAreaCode';
|
|
27224
|
-
this.getUuidApi =
|
|
27265
|
+
this.getUuidApi = "".concat(variables["d" /* PLANBOOK_API_HOSTNAME */], "/planBook/common/currentUser");
|
|
27225
27266
|
}
|
|
27226
27267
|
else {
|
|
27227
27268
|
this.getCalculateApi = 'https://insurance2a-api.wyins.net/api/product/data/calculate';
|
|
27228
27269
|
this.getAreaCodeApi = 'https://insurance2a-api.wyins.net/api/product/data/getAreaCode';
|
|
27229
|
-
this.getUuidApi =
|
|
27270
|
+
this.getUuidApi = "".concat(variables["d" /* PLANBOOK_API_HOSTNAME */], "/planBook/common/currentUser");
|
|
27230
27271
|
}
|
|
27231
27272
|
};
|
|
27232
27273
|
Object(tslib_es6["c" /* __decorate */])([
|
|
@@ -27318,11 +27359,11 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
27318
27359
|
|
|
27319
27360
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=script&lang=ts
|
|
27320
27361
|
/* harmony default export */ var packages_insure_calculatevue_type_script_lang_ts = (insure_calculatevue_type_script_lang_ts);
|
|
27321
|
-
// EXTERNAL MODULE: ./packages/insure-calculate/index.vue?vue&type=style&index=0&id=
|
|
27322
|
-
var
|
|
27362
|
+
// EXTERNAL MODULE: ./packages/insure-calculate/index.vue?vue&type=style&index=0&id=37f6412c&prod&lang=css
|
|
27363
|
+
var insure_calculatevue_type_style_index_0_id_37f6412c_prod_lang_css = __webpack_require__(248);
|
|
27323
27364
|
|
|
27324
27365
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
27325
|
-
var componentNormalizer = __webpack_require__(
|
|
27366
|
+
var componentNormalizer = __webpack_require__(8);
|
|
27326
27367
|
|
|
27327
27368
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue
|
|
27328
27369
|
|