bxs-tools-ui 2.0.4 → 2.0.5
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 +1269 -1210
- package/lib/adjust-baoe/index.js +1264 -1247
- package/lib/bxs-utils/index.js +1260 -1232
- package/lib/index.js +1282 -1288
- package/lib/insure-calculate/index.js +1274 -1244
- package/lib/person-info/index.js +1262 -1234
- package/lib/product-info/index.js +646 -614
- 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/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
package/lib/bxs-utils/index.js
CHANGED
|
@@ -17873,7 +17873,7 @@ function formatNumberToThousand(n) {
|
|
|
17873
17873
|
else {}
|
|
17874
17874
|
}.call(this));
|
|
17875
17875
|
|
|
17876
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
17876
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26), __webpack_require__(38)(module)))
|
|
17877
17877
|
|
|
17878
17878
|
/***/ }),
|
|
17879
17879
|
/* 4 */,
|
|
@@ -18280,18 +18280,18 @@ __webpack_require__.d(__webpack_exports__, "checkInsureCalculate", function() {
|
|
|
18280
18280
|
__webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function() { return /* reexport */ checkInsureCalculateIn; });
|
|
18281
18281
|
|
|
18282
18282
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/index.ts
|
|
18283
|
-
var planbook = __webpack_require__(
|
|
18283
|
+
var planbook = __webpack_require__(20);
|
|
18284
18284
|
|
|
18285
18285
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
18286
|
-
var asyncToGenerator = __webpack_require__(
|
|
18286
|
+
var asyncToGenerator = __webpack_require__(24);
|
|
18287
18287
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
18288
18288
|
|
|
18289
18289
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
|
|
18290
|
-
var helpers_typeof = __webpack_require__(
|
|
18290
|
+
var helpers_typeof = __webpack_require__(14);
|
|
18291
18291
|
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
|
18292
18292
|
|
|
18293
18293
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
18294
|
-
var regenerator = __webpack_require__(
|
|
18294
|
+
var regenerator = __webpack_require__(18);
|
|
18295
18295
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
18296
18296
|
|
|
18297
18297
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
@@ -18299,7 +18299,7 @@ var axios = __webpack_require__(77);
|
|
|
18299
18299
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
18300
18300
|
|
|
18301
18301
|
// EXTERNAL MODULE: ./src/js/variables.js
|
|
18302
|
-
var variables = __webpack_require__(
|
|
18302
|
+
var variables = __webpack_require__(11);
|
|
18303
18303
|
|
|
18304
18304
|
// CONCATENATED MODULE: ./src/js/request.js
|
|
18305
18305
|
|
|
@@ -18374,17 +18374,8 @@ service.interceptors.response.use(function (response) {
|
|
|
18374
18374
|
*/
|
|
18375
18375
|
|
|
18376
18376
|
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
18380
|
-
env = 'https://insurance2a-api.wyins.net';
|
|
18381
|
-
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
18382
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
18383
|
-
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost|0\.0\.0\.0/) !== -1) {
|
|
18384
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
18385
|
-
}
|
|
18386
|
-
return env;
|
|
18387
|
-
}();
|
|
18377
|
+
|
|
18378
|
+
var baseURL = "https://insurance2a-api.wyins.net".concat(variables["c" /* IS_PRODUCT_ENV */] ? '' : '.cn');
|
|
18388
18379
|
|
|
18389
18380
|
/**
|
|
18390
18381
|
* **获取地址信息**
|
|
@@ -19114,6 +19105,63 @@ function restrictElementsInInsurance(_a) {
|
|
|
19114
19105
|
/* 11 */
|
|
19115
19106
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19116
19107
|
|
|
19108
|
+
"use strict";
|
|
19109
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return IS_PRODUCT_ENV; });
|
|
19110
|
+
/* unused harmony export IS_DEVELOP_ENV */
|
|
19111
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IS_LOCALHOST_ENV; });
|
|
19112
|
+
/* unused harmony export IS_UAT_ENV */
|
|
19113
|
+
/* unused harmony export IS_ENABLE_DEBUG */
|
|
19114
|
+
/* unused harmony export MAIN_DOMAIN */
|
|
19115
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return APP_HOSTNAME; });
|
|
19116
|
+
/* unused harmony export CONTENT_HOSTNAME */
|
|
19117
|
+
/* unused harmony export CLIENT_HOSTNAME */
|
|
19118
|
+
/* unused harmony export TOOL_API_HOSTNAME */
|
|
19119
|
+
/* unused harmony export INTERACTION_HOSTNAME */
|
|
19120
|
+
/* unused harmony export PBF_HOSTNAME */
|
|
19121
|
+
/* unused harmony export POLICY_INSPECTION_HOSTNAME */
|
|
19122
|
+
/* unused harmony export BROKER_HOSTNAME */
|
|
19123
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return PLANBOOK_API_HOSTNAME; });
|
|
19124
|
+
/* unused harmony export CRM_HOSTNAME */
|
|
19125
|
+
/* unused harmony export WX_HOSTNAME */
|
|
19126
|
+
/* unused harmony export URL_PARAM */
|
|
19127
|
+
/* unused harmony export getUrlParams */
|
|
19128
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
19129
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
19130
|
+
|
|
19131
|
+
var hostname = window && window.location && window.location.hostname || '';
|
|
19132
|
+
var IS_PRODUCT_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.com/) !== -1;
|
|
19133
|
+
var IS_DEVELOP_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.cn/) !== -1;
|
|
19134
|
+
var IS_LOCALHOST_ENV = hostname.search(/localhost|192\.168|127\.0\.0\.1|dev\.winbaoxian\.cn/) !== -1;
|
|
19135
|
+
var IS_UAT_ENV = hostname.includes("pbf-uat.");
|
|
19136
|
+
var IS_ENABLE_DEBUG = !IS_PRODUCT_ENV;
|
|
19137
|
+
if (IS_ENABLE_DEBUG) {
|
|
19138
|
+
console.error("\u975E\u7EBF\u4E0A\u73AF\u5883\uFF0C\u9ED8\u8BA4\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F");
|
|
19139
|
+
}
|
|
19140
|
+
var topDomain = IS_PRODUCT_ENV ? 'com' : 'cn';
|
|
19141
|
+
var secondDomain = hostname.includes('ai-baoxiaozhu') ? 'ai-baoxiaozhu' : 'winbaoxian';
|
|
19142
|
+
var MAIN_DOMAIN = "".concat(secondDomain, ".").concat(topDomain);
|
|
19143
|
+
var APP_HOSTNAME = "https://app.".concat(MAIN_DOMAIN);
|
|
19144
|
+
var CONTENT_HOSTNAME = "https://content.".concat(MAIN_DOMAIN);
|
|
19145
|
+
var CLIENT_HOSTNAME = "https://client.".concat(MAIN_DOMAIN);
|
|
19146
|
+
var TOOL_API_HOSTNAME = "https://tool-api.".concat(MAIN_DOMAIN);
|
|
19147
|
+
var INTERACTION_HOSTNAME = "https://interaction-api.".concat(MAIN_DOMAIN);
|
|
19148
|
+
var PBF_HOSTNAME = "https://pbf.".concat(MAIN_DOMAIN);
|
|
19149
|
+
var POLICY_INSPECTION_HOSTNAME = "https://policy-inspection.".concat(MAIN_DOMAIN);
|
|
19150
|
+
var BROKER_HOSTNAME = "https://broker-2a.wyins.net".concat(IS_PRODUCT_ENV ? '' : '.cn');
|
|
19151
|
+
var PLANBOOK_API_HOSTNAME = "https://bxs-planbook-api".concat(IS_UAT_ENV ? '-uat' : '', ".").concat(MAIN_DOMAIN);
|
|
19152
|
+
var CRM_HOSTNAME = "https://wechat-crm.".concat(MAIN_DOMAIN);
|
|
19153
|
+
var WX_HOSTNAME = "https://wx.".concat(MAIN_DOMAIN);
|
|
19154
|
+
var URL_PARAM = getUrlParams();
|
|
19155
|
+
function getUrlParams(url) {
|
|
19156
|
+
var _url = url || location.search || '';
|
|
19157
|
+
var _searchStr = _url.split('?')[1];
|
|
19158
|
+
return _searchStr ? qs__WEBPACK_IMPORTED_MODULE_0___default.a.parse(_searchStr) : {};
|
|
19159
|
+
}
|
|
19160
|
+
|
|
19161
|
+
/***/ }),
|
|
19162
|
+
/* 12 */
|
|
19163
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19164
|
+
|
|
19117
19165
|
"use strict";
|
|
19118
19166
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return initPersonData; });
|
|
19119
19167
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return personDataHandler; });
|
|
@@ -19423,8 +19471,8 @@ function convertPersonData(allPersonsData, type) {
|
|
|
19423
19471
|
|
|
19424
19472
|
|
|
19425
19473
|
/***/ }),
|
|
19426
|
-
/*
|
|
19427
|
-
/*
|
|
19474
|
+
/* 13 */,
|
|
19475
|
+
/* 14 */
|
|
19428
19476
|
/***/ (function(module, exports) {
|
|
19429
19477
|
|
|
19430
19478
|
function _typeof(o) {
|
|
@@ -19439,7 +19487,25 @@ function _typeof(o) {
|
|
|
19439
19487
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19440
19488
|
|
|
19441
19489
|
/***/ }),
|
|
19442
|
-
/*
|
|
19490
|
+
/* 15 */
|
|
19491
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
19492
|
+
|
|
19493
|
+
"use strict";
|
|
19494
|
+
|
|
19495
|
+
|
|
19496
|
+
var stringify = __webpack_require__(39);
|
|
19497
|
+
var parse = __webpack_require__(68);
|
|
19498
|
+
var formats = __webpack_require__(23);
|
|
19499
|
+
|
|
19500
|
+
module.exports = {
|
|
19501
|
+
formats: formats,
|
|
19502
|
+
parse: parse,
|
|
19503
|
+
stringify: stringify
|
|
19504
|
+
};
|
|
19505
|
+
|
|
19506
|
+
|
|
19507
|
+
/***/ }),
|
|
19508
|
+
/* 16 */
|
|
19443
19509
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19444
19510
|
|
|
19445
19511
|
/* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype;
|
|
@@ -19987,10 +20053,10 @@ function arrObjKeys(obj, inspect) {
|
|
|
19987
20053
|
return xs;
|
|
19988
20054
|
}
|
|
19989
20055
|
|
|
19990
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20056
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26)))
|
|
19991
20057
|
|
|
19992
20058
|
/***/ }),
|
|
19993
|
-
/*
|
|
20059
|
+
/* 17 */
|
|
19994
20060
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19995
20061
|
|
|
19996
20062
|
"use strict";
|
|
@@ -20002,7 +20068,7 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20002
20068
|
|
|
20003
20069
|
|
|
20004
20070
|
/***/ }),
|
|
20005
|
-
/*
|
|
20071
|
+
/* 18 */
|
|
20006
20072
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20007
20073
|
|
|
20008
20074
|
// TODO(Babel 8): Remove this file.
|
|
@@ -20023,8 +20089,8 @@ try {
|
|
|
20023
20089
|
|
|
20024
20090
|
|
|
20025
20091
|
/***/ }),
|
|
20026
|
-
/*
|
|
20027
|
-
/*
|
|
20092
|
+
/* 19 */,
|
|
20093
|
+
/* 20 */
|
|
20028
20094
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20029
20095
|
|
|
20030
20096
|
"use strict";
|
|
@@ -20045,7 +20111,7 @@ try {
|
|
|
20045
20111
|
|
|
20046
20112
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["h"]; });
|
|
20047
20113
|
|
|
20048
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
20114
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
|
20049
20115
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
20050
20116
|
|
|
20051
20117
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "l", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
@@ -20056,7 +20122,7 @@ try {
|
|
|
20056
20122
|
|
|
20057
20123
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["e"]; });
|
|
20058
20124
|
|
|
20059
|
-
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
20125
|
+
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
20060
20126
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
20061
20127
|
|
|
20062
20128
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
@@ -20096,7 +20162,7 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
20096
20162
|
|
|
20097
20163
|
|
|
20098
20164
|
/***/ }),
|
|
20099
|
-
/*
|
|
20165
|
+
/* 21 */
|
|
20100
20166
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20101
20167
|
|
|
20102
20168
|
"use strict";
|
|
@@ -20104,7 +20170,7 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
20104
20170
|
|
|
20105
20171
|
var undefined;
|
|
20106
20172
|
|
|
20107
|
-
var $Object = __webpack_require__(
|
|
20173
|
+
var $Object = __webpack_require__(28);
|
|
20108
20174
|
|
|
20109
20175
|
var $Error = __webpack_require__(43);
|
|
20110
20176
|
var $EvalError = __webpack_require__(44);
|
|
@@ -20131,7 +20197,7 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
20131
20197
|
} catch (e) {}
|
|
20132
20198
|
};
|
|
20133
20199
|
|
|
20134
|
-
var $gOPD = __webpack_require__(
|
|
20200
|
+
var $gOPD = __webpack_require__(29);
|
|
20135
20201
|
var $defineProperty = __webpack_require__(58);
|
|
20136
20202
|
|
|
20137
20203
|
var throwTypeError = function () {
|
|
@@ -20157,11 +20223,11 @@ var ThrowTypeError = $gOPD
|
|
|
20157
20223
|
var hasSymbols = __webpack_require__(59)();
|
|
20158
20224
|
|
|
20159
20225
|
var getProto = __webpack_require__(61);
|
|
20160
|
-
var $ObjectGPO = __webpack_require__(
|
|
20161
|
-
var $ReflectGPO = __webpack_require__(
|
|
20226
|
+
var $ObjectGPO = __webpack_require__(31);
|
|
20227
|
+
var $ReflectGPO = __webpack_require__(30);
|
|
20162
20228
|
|
|
20163
|
-
var $apply = __webpack_require__(
|
|
20164
|
-
var $call = __webpack_require__(
|
|
20229
|
+
var $apply = __webpack_require__(33);
|
|
20230
|
+
var $call = __webpack_require__(22);
|
|
20165
20231
|
|
|
20166
20232
|
var needsEval = {};
|
|
20167
20233
|
|
|
@@ -20342,7 +20408,7 @@ var LEGACY_ALIASES = {
|
|
|
20342
20408
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
20343
20409
|
};
|
|
20344
20410
|
|
|
20345
|
-
var bind = __webpack_require__(
|
|
20411
|
+
var bind = __webpack_require__(17);
|
|
20346
20412
|
var hasOwn = __webpack_require__(66);
|
|
20347
20413
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
20348
20414
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -20481,7 +20547,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20481
20547
|
|
|
20482
20548
|
|
|
20483
20549
|
/***/ }),
|
|
20484
|
-
/*
|
|
20550
|
+
/* 22 */
|
|
20485
20551
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20486
20552
|
|
|
20487
20553
|
"use strict";
|
|
@@ -20492,7 +20558,7 @@ module.exports = Function.prototype.call;
|
|
|
20492
20558
|
|
|
20493
20559
|
|
|
20494
20560
|
/***/ }),
|
|
20495
|
-
/*
|
|
20561
|
+
/* 23 */
|
|
20496
20562
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20497
20563
|
|
|
20498
20564
|
"use strict";
|
|
@@ -20522,25 +20588,7 @@ module.exports = {
|
|
|
20522
20588
|
|
|
20523
20589
|
|
|
20524
20590
|
/***/ }),
|
|
20525
|
-
/*
|
|
20526
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
20527
|
-
|
|
20528
|
-
"use strict";
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
var stringify = __webpack_require__(39);
|
|
20532
|
-
var parse = __webpack_require__(68);
|
|
20533
|
-
var formats = __webpack_require__(21);
|
|
20534
|
-
|
|
20535
|
-
module.exports = {
|
|
20536
|
-
formats: formats,
|
|
20537
|
-
parse: parse,
|
|
20538
|
-
stringify: stringify
|
|
20539
|
-
};
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
/***/ }),
|
|
20543
|
-
/* 23 */
|
|
20591
|
+
/* 24 */
|
|
20544
20592
|
/***/ (function(module, exports) {
|
|
20545
20593
|
|
|
20546
20594
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
@@ -20571,8 +20619,8 @@ function _asyncToGenerator(n) {
|
|
|
20571
20619
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20572
20620
|
|
|
20573
20621
|
/***/ }),
|
|
20574
|
-
/*
|
|
20575
|
-
/*
|
|
20622
|
+
/* 25 */,
|
|
20623
|
+
/* 26 */
|
|
20576
20624
|
/***/ (function(module, exports) {
|
|
20577
20625
|
|
|
20578
20626
|
var g;
|
|
@@ -20598,1253 +20646,1233 @@ module.exports = g;
|
|
|
20598
20646
|
|
|
20599
20647
|
|
|
20600
20648
|
/***/ }),
|
|
20601
|
-
/*
|
|
20602
|
-
/***/ (function(module,
|
|
20649
|
+
/* 27 */
|
|
20650
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20603
20651
|
|
|
20604
20652
|
"use strict";
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
var
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
var
|
|
20616
|
-
|
|
20617
|
-
var
|
|
20618
|
-
|
|
20653
|
+
|
|
20654
|
+
|
|
20655
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
20656
|
+
var callBound = __webpack_require__(34);
|
|
20657
|
+
var inspect = __webpack_require__(16);
|
|
20658
|
+
|
|
20659
|
+
var $TypeError = __webpack_require__(9);
|
|
20660
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
20661
|
+
|
|
20662
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
20663
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
20664
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
20665
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
20666
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
20667
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
20668
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
20669
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
20670
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
20671
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
20672
|
+
|
|
20673
|
+
/** @type {import('.')} */
|
|
20674
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
20675
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
20676
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
20677
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
20678
|
+
|
|
20679
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
20680
|
+
|
|
20681
|
+
/** @type {Channel} */
|
|
20682
|
+
var channel = {
|
|
20683
|
+
assert: function (key) {
|
|
20684
|
+
if (!channel.has(key)) {
|
|
20685
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
20686
|
+
}
|
|
20687
|
+
},
|
|
20688
|
+
'delete': function (key) {
|
|
20689
|
+
if ($m) {
|
|
20690
|
+
var result = $mapDelete($m, key);
|
|
20691
|
+
if ($mapSize($m) === 0) {
|
|
20692
|
+
$m = void undefined;
|
|
20693
|
+
}
|
|
20694
|
+
return result;
|
|
20695
|
+
}
|
|
20696
|
+
return false;
|
|
20697
|
+
},
|
|
20698
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
20699
|
+
if ($m) {
|
|
20700
|
+
return $mapGet($m, key);
|
|
20701
|
+
}
|
|
20702
|
+
},
|
|
20703
|
+
has: function (key) {
|
|
20704
|
+
if ($m) {
|
|
20705
|
+
return $mapHas($m, key);
|
|
20706
|
+
}
|
|
20707
|
+
return false;
|
|
20708
|
+
},
|
|
20709
|
+
set: function (key, value) {
|
|
20710
|
+
if (!$m) {
|
|
20711
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
20712
|
+
$m = new $Map();
|
|
20713
|
+
}
|
|
20714
|
+
$mapSet($m, key, value);
|
|
20715
|
+
}
|
|
20716
|
+
};
|
|
20717
|
+
|
|
20718
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
20719
|
+
return channel;
|
|
20720
|
+
};
|
|
20721
|
+
|
|
20619
20722
|
|
|
20620
20723
|
/***/ }),
|
|
20621
|
-
/*
|
|
20622
|
-
/***/ (function(module,
|
|
20724
|
+
/* 28 */
|
|
20725
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20623
20726
|
|
|
20624
20727
|
"use strict";
|
|
20625
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
20626
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
20627
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
20628
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
20629
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
20630
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
20631
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
20632
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
20633
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
20634
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
20635
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
20636
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
20637
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
20638
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
20639
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
20640
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
20641
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
|
|
20642
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
20643
20728
|
|
|
20644
20729
|
|
|
20730
|
+
/** @type {import('.')} */
|
|
20731
|
+
module.exports = Object;
|
|
20645
20732
|
|
|
20646
20733
|
|
|
20734
|
+
/***/ }),
|
|
20735
|
+
/* 29 */
|
|
20736
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20647
20737
|
|
|
20738
|
+
"use strict";
|
|
20648
20739
|
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* initInsuranceData */ "b"])(ins);
|
|
20661
|
-
});
|
|
20662
|
-
return prodData;
|
|
20740
|
+
|
|
20741
|
+
/** @type {import('.')} */
|
|
20742
|
+
var $gOPD = __webpack_require__(57);
|
|
20743
|
+
|
|
20744
|
+
if ($gOPD) {
|
|
20745
|
+
try {
|
|
20746
|
+
$gOPD([], 'length');
|
|
20747
|
+
} catch (e) {
|
|
20748
|
+
// IE 8 has a broken gOPD
|
|
20749
|
+
$gOPD = null;
|
|
20750
|
+
}
|
|
20663
20751
|
}
|
|
20664
|
-
|
|
20665
|
-
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
|
|
20682
|
-
|
|
20683
|
-
|
|
20684
|
-
|
|
20685
|
-
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20719
|
-
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20748
|
-
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
|
|
20757
|
-
|
|
20758
|
-
|
|
20759
|
-
|
|
20760
|
-
|
|
20761
|
-
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
20768
|
-
}
|
|
20769
|
-
else {
|
|
20770
|
-
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
20771
|
-
}
|
|
20772
|
-
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
20773
|
-
if (refEleData) {
|
|
20774
|
-
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
20775
|
-
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
20776
|
-
}
|
|
20777
|
-
else {
|
|
20778
|
-
eleData.value = refEleData.value;
|
|
20779
|
-
}
|
|
20780
|
-
}
|
|
20781
|
-
else {
|
|
20782
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20783
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
20784
|
-
}
|
|
20785
|
-
}
|
|
20786
|
-
}
|
|
20787
|
-
else {
|
|
20788
|
-
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
20789
|
-
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
20790
|
-
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
20791
|
-
return {
|
|
20792
|
-
val: c.value,
|
|
20793
|
-
desc: c.desc || c.value,
|
|
20794
|
-
isHide: (option && option.isHide) || null,
|
|
20795
|
-
isDisabled: (option && option.isDisabled) || null,
|
|
20796
|
-
isInvalid: null
|
|
20797
|
-
};
|
|
20798
|
-
});
|
|
20799
|
-
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
20800
|
-
if (isNoOption) {
|
|
20801
|
-
if (eleData.key === 'pPeriod') {
|
|
20802
|
-
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
20803
|
-
if (filterOpts && filterOpts.length) {
|
|
20804
|
-
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
20805
|
-
}
|
|
20806
|
-
}
|
|
20807
|
-
else {
|
|
20808
|
-
if (eleData.opts && eleData.opts.length) {
|
|
20809
|
-
eleData.value = eleData.opts[0].val;
|
|
20810
|
-
}
|
|
20811
|
-
}
|
|
20812
|
-
}
|
|
20813
|
-
}
|
|
20814
|
-
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
20815
|
-
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
20816
|
-
var prevElement;
|
|
20817
|
-
if (eleIndex >= 1) {
|
|
20818
|
-
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
20819
|
-
}
|
|
20820
|
-
if (prevElement) {
|
|
20821
|
-
if (!curCondition) {
|
|
20822
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
20823
|
-
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; }); });
|
|
20824
|
-
if (onePrevEleVerify) {
|
|
20825
|
-
prevElement.value = onePrevEleVerify.value;
|
|
20826
|
-
curCondition = onePrevEleVerify[eleData.key];
|
|
20827
|
-
}
|
|
20828
|
-
}
|
|
20829
|
-
if (!curCondition) {
|
|
20830
|
-
eleTitle.isDisabled = true;
|
|
20831
|
-
eleTitle.value = false;
|
|
20832
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20833
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
20834
|
-
}
|
|
20835
|
-
}
|
|
20836
|
-
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
20837
|
-
if (isNeedReverseFilter) {
|
|
20838
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
20839
|
-
if (prevEleVerify) {
|
|
20840
|
-
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
20841
|
-
var _a;
|
|
20842
|
-
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
20843
|
-
insuranceKey: ins.key,
|
|
20844
|
-
elementKey: eleData.key
|
|
20845
|
-
},
|
|
20846
|
-
_a[prevElement.key] = v.value,
|
|
20847
|
-
_a));
|
|
20848
|
-
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
20849
|
-
}).map(function (v) { return ({
|
|
20850
|
-
val: v.value,
|
|
20851
|
-
desc: v.desc || v.value,
|
|
20852
|
-
isHide: null,
|
|
20853
|
-
isDisabled: null,
|
|
20854
|
-
isInvalid: null
|
|
20855
|
-
}); });
|
|
20856
|
-
}
|
|
20857
|
-
}
|
|
20858
|
-
}
|
|
20859
|
-
};
|
|
20860
|
-
do {
|
|
20861
|
-
var state_1 = _loop_1();
|
|
20862
|
-
if (state_1 === "break")
|
|
20863
|
-
break;
|
|
20864
|
-
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
20865
|
-
});
|
|
20866
|
-
}
|
|
20867
|
-
setGroupInsurance(prodData);
|
|
20868
|
-
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
20869
|
-
return [2, prodData];
|
|
20870
|
-
}
|
|
20871
|
-
});
|
|
20872
|
-
});
|
|
20873
|
-
}
|
|
20874
|
-
function multipleInsuredHandler(personData) {
|
|
20875
|
-
var personOrderList = personData.personOrderList;
|
|
20876
|
-
if (!(personOrderList && personOrderList.length)) {
|
|
20877
|
-
return null;
|
|
20752
|
+
|
|
20753
|
+
module.exports = $gOPD;
|
|
20754
|
+
|
|
20755
|
+
|
|
20756
|
+
/***/ }),
|
|
20757
|
+
/* 30 */
|
|
20758
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20759
|
+
|
|
20760
|
+
"use strict";
|
|
20761
|
+
|
|
20762
|
+
|
|
20763
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
20764
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
20765
|
+
|
|
20766
|
+
|
|
20767
|
+
/***/ }),
|
|
20768
|
+
/* 31 */
|
|
20769
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20770
|
+
|
|
20771
|
+
"use strict";
|
|
20772
|
+
|
|
20773
|
+
|
|
20774
|
+
var $Object = __webpack_require__(28);
|
|
20775
|
+
|
|
20776
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
20777
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
20778
|
+
|
|
20779
|
+
|
|
20780
|
+
/***/ }),
|
|
20781
|
+
/* 32 */
|
|
20782
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20783
|
+
|
|
20784
|
+
"use strict";
|
|
20785
|
+
|
|
20786
|
+
|
|
20787
|
+
var bind = __webpack_require__(17);
|
|
20788
|
+
var $TypeError = __webpack_require__(9);
|
|
20789
|
+
|
|
20790
|
+
var $call = __webpack_require__(22);
|
|
20791
|
+
var $actualApply = __webpack_require__(64);
|
|
20792
|
+
|
|
20793
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
20794
|
+
module.exports = function callBindBasic(args) {
|
|
20795
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
20796
|
+
throw new $TypeError('a function is required');
|
|
20797
|
+
}
|
|
20798
|
+
return $actualApply(bind, $call, args);
|
|
20799
|
+
};
|
|
20800
|
+
|
|
20801
|
+
|
|
20802
|
+
/***/ }),
|
|
20803
|
+
/* 33 */
|
|
20804
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20805
|
+
|
|
20806
|
+
"use strict";
|
|
20807
|
+
|
|
20808
|
+
|
|
20809
|
+
/** @type {import('./functionApply')} */
|
|
20810
|
+
module.exports = Function.prototype.apply;
|
|
20811
|
+
|
|
20812
|
+
|
|
20813
|
+
/***/ }),
|
|
20814
|
+
/* 34 */
|
|
20815
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20816
|
+
|
|
20817
|
+
"use strict";
|
|
20818
|
+
|
|
20819
|
+
|
|
20820
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
20821
|
+
|
|
20822
|
+
var callBindBasic = __webpack_require__(32);
|
|
20823
|
+
|
|
20824
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
20825
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
20826
|
+
|
|
20827
|
+
/** @type {import('.')} */
|
|
20828
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
20829
|
+
/* eslint no-extra-parens: 0 */
|
|
20830
|
+
|
|
20831
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
20832
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
20833
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
20834
|
+
}
|
|
20835
|
+
return intrinsic;
|
|
20836
|
+
};
|
|
20837
|
+
|
|
20838
|
+
|
|
20839
|
+
/***/ }),
|
|
20840
|
+
/* 35 */
|
|
20841
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20842
|
+
|
|
20843
|
+
"use strict";
|
|
20844
|
+
|
|
20845
|
+
|
|
20846
|
+
var formats = __webpack_require__(23);
|
|
20847
|
+
|
|
20848
|
+
var has = Object.prototype.hasOwnProperty;
|
|
20849
|
+
var isArray = Array.isArray;
|
|
20850
|
+
|
|
20851
|
+
var hexTable = (function () {
|
|
20852
|
+
var array = [];
|
|
20853
|
+
for (var i = 0; i < 256; ++i) {
|
|
20854
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
20878
20855
|
}
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20856
|
+
|
|
20857
|
+
return array;
|
|
20858
|
+
}());
|
|
20859
|
+
|
|
20860
|
+
var compactQueue = function compactQueue(queue) {
|
|
20861
|
+
while (queue.length > 1) {
|
|
20862
|
+
var item = queue.pop();
|
|
20863
|
+
var obj = item.obj[item.prop];
|
|
20864
|
+
|
|
20865
|
+
if (isArray(obj)) {
|
|
20866
|
+
var compacted = [];
|
|
20867
|
+
|
|
20868
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
20869
|
+
if (typeof obj[j] !== 'undefined') {
|
|
20870
|
+
compacted.push(obj[j]);
|
|
20891
20871
|
}
|
|
20892
|
-
}
|
|
20893
|
-
|
|
20872
|
+
}
|
|
20873
|
+
|
|
20874
|
+
item.obj[item.prop] = compacted;
|
|
20894
20875
|
}
|
|
20895
20876
|
}
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
function
|
|
20899
|
-
var
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
return null;
|
|
20904
|
-
}
|
|
20905
|
-
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
20906
|
-
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
20907
|
-
var insuredList = personOrderList
|
|
20908
|
-
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
20909
|
-
.filter(function (p) {
|
|
20910
|
-
var _a;
|
|
20911
|
-
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
20912
|
-
return title && title.value;
|
|
20913
|
-
})
|
|
20914
|
-
.map(function (p) {
|
|
20915
|
-
var _a, _b;
|
|
20916
|
-
return {
|
|
20917
|
-
key: p.key,
|
|
20918
|
-
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
20919
|
-
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
20920
|
-
};
|
|
20921
|
-
});
|
|
20922
|
-
var insuranceIdList = (_a = convertProductData(prodData).mulInsOrderList) === null || _a === void 0 ? void 0 : _a.map(function (ins) { return ins.key; });
|
|
20923
|
-
(_b = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _b === void 0 ? void 0 : _b.reduce(function (list, ins) {
|
|
20924
|
-
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
20925
|
-
}, []);
|
|
20926
|
-
return getAndCacheInsurancesVerifyData({
|
|
20927
|
-
pbId: pbId,
|
|
20928
|
-
productId: productId,
|
|
20929
|
-
insuredList: insuredList,
|
|
20930
|
-
insuranceIdList: insuranceIdList
|
|
20931
|
-
});
|
|
20932
|
-
}
|
|
20933
|
-
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
20934
|
-
var IS_PRODUCT_ENV = location.hostname.search(/winbaoxian\.com/) !== -1;
|
|
20935
|
-
var url = "https://app.winbaoxian.".concat(IS_PRODUCT_ENV ? 'com' : 'cn', "/planBook/input/insurance/verifyData");
|
|
20936
|
-
return fetch(url, {
|
|
20937
|
-
method: 'POST',
|
|
20938
|
-
credentials: 'include',
|
|
20939
|
-
headers: {
|
|
20940
|
-
Accept: 'application/json, text/plain, */*',
|
|
20941
|
-
'Content-Type': 'application/json;'
|
|
20942
|
-
},
|
|
20943
|
-
body: JSON.stringify(params)
|
|
20944
|
-
})
|
|
20945
|
-
.then(function (response) { return response.json(); })
|
|
20946
|
-
.then(function (_a) {
|
|
20947
|
-
var success = _a.success, data = _a.data;
|
|
20948
|
-
if (!success || !data) {
|
|
20949
|
-
return Promise.reject();
|
|
20877
|
+
};
|
|
20878
|
+
|
|
20879
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
20880
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
20881
|
+
for (var i = 0; i < source.length; ++i) {
|
|
20882
|
+
if (typeof source[i] !== 'undefined') {
|
|
20883
|
+
obj[i] = source[i];
|
|
20950
20884
|
}
|
|
20951
|
-
return Promise.resolve(data);
|
|
20952
|
-
})
|
|
20953
|
-
.catch(function () { });
|
|
20954
|
-
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
20955
|
-
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
20956
|
-
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
20957
|
-
return verify;
|
|
20958
20885
|
}
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
var hasElementKey = verify.key === option.elementKey;
|
|
20968
|
-
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
20969
|
-
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
20970
|
-
if (temp && temp.key === option.elementKey) {
|
|
20971
|
-
hasElementKey = true;
|
|
20972
|
-
}
|
|
20886
|
+
|
|
20887
|
+
return obj;
|
|
20888
|
+
};
|
|
20889
|
+
|
|
20890
|
+
var merge = function merge(target, source, options) {
|
|
20891
|
+
/* eslint no-param-reassign: 0 */
|
|
20892
|
+
if (!source) {
|
|
20893
|
+
return target;
|
|
20973
20894
|
}
|
|
20974
|
-
|
|
20975
|
-
|
|
20895
|
+
|
|
20896
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
20897
|
+
if (isArray(target)) {
|
|
20898
|
+
target.push(source);
|
|
20899
|
+
} else if (target && typeof target === 'object') {
|
|
20900
|
+
if (
|
|
20901
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
20902
|
+
|| !has.call(Object.prototype, source)
|
|
20903
|
+
) {
|
|
20904
|
+
target[source] = true;
|
|
20905
|
+
}
|
|
20906
|
+
} else {
|
|
20907
|
+
return [target, source];
|
|
20908
|
+
}
|
|
20909
|
+
|
|
20910
|
+
return target;
|
|
20976
20911
|
}
|
|
20977
|
-
|
|
20978
|
-
|
|
20912
|
+
|
|
20913
|
+
if (!target || typeof target !== 'object') {
|
|
20914
|
+
return [target].concat(source);
|
|
20979
20915
|
}
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
return prodData;
|
|
20916
|
+
|
|
20917
|
+
var mergeTarget = target;
|
|
20918
|
+
if (isArray(target) && !isArray(source)) {
|
|
20919
|
+
mergeTarget = arrayToObject(target, options);
|
|
20985
20920
|
}
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
|
|
20996
|
-
|
|
20921
|
+
|
|
20922
|
+
if (isArray(target) && isArray(source)) {
|
|
20923
|
+
source.forEach(function (item, i) {
|
|
20924
|
+
if (has.call(target, i)) {
|
|
20925
|
+
var targetItem = target[i];
|
|
20926
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
20927
|
+
target[i] = merge(targetItem, item, options);
|
|
20928
|
+
} else {
|
|
20929
|
+
target.push(item);
|
|
20930
|
+
}
|
|
20931
|
+
} else {
|
|
20932
|
+
target[i] = item;
|
|
20997
20933
|
}
|
|
20998
20934
|
});
|
|
20999
|
-
|
|
21000
|
-
});
|
|
21001
|
-
if (!common.eleOrderList.length) {
|
|
21002
|
-
return prodData;
|
|
21003
|
-
}
|
|
21004
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
21005
|
-
prodData.mulInsOrderList.unshift(common);
|
|
21006
|
-
if (prodData.mulInsOrderList[1]) {
|
|
21007
|
-
prodData.mulInsOrderList[1].isFollowing = true;
|
|
20935
|
+
return target;
|
|
21008
20936
|
}
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
20937
|
+
|
|
20938
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
20939
|
+
var value = source[key];
|
|
20940
|
+
|
|
20941
|
+
if (has.call(acc, key)) {
|
|
20942
|
+
acc[key] = merge(acc[key], value, options);
|
|
20943
|
+
} else {
|
|
20944
|
+
acc[key] = value;
|
|
20945
|
+
}
|
|
20946
|
+
return acc;
|
|
20947
|
+
}, mergeTarget);
|
|
20948
|
+
};
|
|
20949
|
+
|
|
20950
|
+
var assign = function assignSingleSource(target, source) {
|
|
20951
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
20952
|
+
acc[key] = source[key];
|
|
20953
|
+
return acc;
|
|
20954
|
+
}, target);
|
|
20955
|
+
};
|
|
20956
|
+
|
|
20957
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
20958
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
20959
|
+
if (charset === 'iso-8859-1') {
|
|
20960
|
+
// unescape never throws, no try...catch needed:
|
|
20961
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21014
20962
|
}
|
|
21015
|
-
|
|
21016
|
-
|
|
21017
|
-
return
|
|
20963
|
+
// utf-8
|
|
20964
|
+
try {
|
|
20965
|
+
return decodeURIComponent(strWithoutPlus);
|
|
20966
|
+
} catch (e) {
|
|
20967
|
+
return strWithoutPlus;
|
|
21018
20968
|
}
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
|
|
21039
|
-
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21065
|
-
if (nGroupTitle && nGroupInsuranceId) {
|
|
21066
|
-
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
21067
|
-
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
21068
|
-
nGroupTitle.value = false;
|
|
21069
|
-
nGroupTitle.isDisabled = true;
|
|
21070
|
-
}
|
|
21071
|
-
else {
|
|
21072
|
-
nGroupTitle.isDisabled = false;
|
|
21073
|
-
}
|
|
20969
|
+
};
|
|
20970
|
+
|
|
20971
|
+
var limit = 1024;
|
|
20972
|
+
|
|
20973
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
20974
|
+
|
|
20975
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
20976
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
20977
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
20978
|
+
if (str.length === 0) {
|
|
20979
|
+
return str;
|
|
20980
|
+
}
|
|
20981
|
+
|
|
20982
|
+
var string = str;
|
|
20983
|
+
if (typeof str === 'symbol') {
|
|
20984
|
+
string = Symbol.prototype.toString.call(str);
|
|
20985
|
+
} else if (typeof str !== 'string') {
|
|
20986
|
+
string = String(str);
|
|
20987
|
+
}
|
|
20988
|
+
|
|
20989
|
+
if (charset === 'iso-8859-1') {
|
|
20990
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
20991
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
20992
|
+
});
|
|
20993
|
+
}
|
|
20994
|
+
|
|
20995
|
+
var out = '';
|
|
20996
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
20997
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
20998
|
+
var arr = [];
|
|
20999
|
+
|
|
21000
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
21001
|
+
var c = segment.charCodeAt(i);
|
|
21002
|
+
if (
|
|
21003
|
+
c === 0x2D // -
|
|
21004
|
+
|| c === 0x2E // .
|
|
21005
|
+
|| c === 0x5F // _
|
|
21006
|
+
|| c === 0x7E // ~
|
|
21007
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
21008
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
21009
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
21010
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
21011
|
+
) {
|
|
21012
|
+
arr[arr.length] = segment.charAt(i);
|
|
21013
|
+
continue;
|
|
21074
21014
|
}
|
|
21075
|
-
|
|
21076
|
-
if (
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
return ins.required && subTitle && !subTitle.isDisabled;
|
|
21080
|
-
})) {
|
|
21081
|
-
nGroupTitle.value = true;
|
|
21082
|
-
nGroupTitle.isDisabled = true;
|
|
21083
|
-
}
|
|
21084
|
-
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
21085
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21086
|
-
return subTitle && !subTitle.isDisabled;
|
|
21087
|
-
});
|
|
21088
|
-
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
21089
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21090
|
-
return subTitle && subTitle.value;
|
|
21091
|
-
});
|
|
21092
|
-
if (!nGroupInsuranceId.value) {
|
|
21093
|
-
if (checkedInsurances) {
|
|
21094
|
-
nGroupInsuranceId.value = checkedInsurances.key;
|
|
21095
|
-
nGroupTitle.value = true;
|
|
21096
|
-
}
|
|
21097
|
-
else if (nGroupTitle.value) {
|
|
21098
|
-
if (notDisabledInsurances[0]) {
|
|
21099
|
-
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
21100
|
-
}
|
|
21101
|
-
}
|
|
21102
|
-
}
|
|
21015
|
+
|
|
21016
|
+
if (c < 0x80) {
|
|
21017
|
+
arr[arr.length] = hexTable[c];
|
|
21018
|
+
continue;
|
|
21103
21019
|
}
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) { return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled; });
|
|
21110
|
-
}
|
|
21111
|
-
}
|
|
21112
|
-
else {
|
|
21113
|
-
var opt = nGroupInsuranceId.opts.find(function (o) { return o.val === nGroupInsuranceId.value; });
|
|
21114
|
-
if (opt && opt.isDisabled) {
|
|
21115
|
-
nGroupInsuranceId.value = '';
|
|
21116
|
-
}
|
|
21117
|
-
}
|
|
21020
|
+
|
|
21021
|
+
if (c < 0x800) {
|
|
21022
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
21023
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21024
|
+
continue;
|
|
21118
21025
|
}
|
|
21119
|
-
|
|
21120
|
-
|
|
21121
|
-
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedIns[ck].filter(function (ele) { return ele.key !== 'title'; }));
|
|
21126
|
-
}
|
|
21127
|
-
else {
|
|
21128
|
-
newGroupInsMap[k][ck] = checkedIns[ck];
|
|
21129
|
-
}
|
|
21130
|
-
}
|
|
21131
|
-
}
|
|
21132
|
-
}
|
|
21026
|
+
|
|
21027
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
21028
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
21029
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21030
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21031
|
+
continue;
|
|
21133
21032
|
}
|
|
21033
|
+
|
|
21034
|
+
i += 1;
|
|
21035
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
21036
|
+
|
|
21037
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
21038
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
21039
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21040
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
21134
21041
|
}
|
|
21135
|
-
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21042
|
+
|
|
21043
|
+
out += arr.join('');
|
|
21044
|
+
}
|
|
21045
|
+
|
|
21046
|
+
return out;
|
|
21047
|
+
};
|
|
21048
|
+
|
|
21049
|
+
var compact = function compact(value) {
|
|
21050
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
21051
|
+
var refs = [];
|
|
21052
|
+
|
|
21053
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
21054
|
+
var item = queue[i];
|
|
21055
|
+
var obj = item.obj[item.prop];
|
|
21056
|
+
|
|
21057
|
+
var keys = Object.keys(obj);
|
|
21058
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
21059
|
+
var key = keys[j];
|
|
21060
|
+
var val = obj[key];
|
|
21061
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
21062
|
+
queue.push({ obj: obj, prop: key });
|
|
21063
|
+
refs.push(val);
|
|
21139
21064
|
}
|
|
21140
|
-
});
|
|
21141
|
-
if (index >= 0) {
|
|
21142
|
-
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
21143
21065
|
}
|
|
21144
|
-
};
|
|
21145
|
-
for (var k in newGroupInsMap) {
|
|
21146
|
-
_loop_2(k);
|
|
21147
21066
|
}
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
prodData.hadChoice = false;
|
|
21176
|
-
prodData.hide = true;
|
|
21177
|
-
prodData.totalBaof = null;
|
|
21067
|
+
|
|
21068
|
+
compactQueue(queue);
|
|
21069
|
+
|
|
21070
|
+
return value;
|
|
21071
|
+
};
|
|
21072
|
+
|
|
21073
|
+
var isRegExp = function isRegExp(obj) {
|
|
21074
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
21075
|
+
};
|
|
21076
|
+
|
|
21077
|
+
var isBuffer = function isBuffer(obj) {
|
|
21078
|
+
if (!obj || typeof obj !== 'object') {
|
|
21079
|
+
return false;
|
|
21080
|
+
}
|
|
21081
|
+
|
|
21082
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
21083
|
+
};
|
|
21084
|
+
|
|
21085
|
+
var combine = function combine(a, b) {
|
|
21086
|
+
return [].concat(a, b);
|
|
21087
|
+
};
|
|
21088
|
+
|
|
21089
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
21090
|
+
if (isArray(val)) {
|
|
21091
|
+
var mapped = [];
|
|
21092
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
21093
|
+
mapped.push(fn(val[i]));
|
|
21178
21094
|
}
|
|
21095
|
+
return mapped;
|
|
21179
21096
|
}
|
|
21180
|
-
return
|
|
21181
|
-
}
|
|
21182
|
-
|
|
21183
|
-
|
|
21184
|
-
|
|
21185
|
-
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21097
|
+
return fn(val);
|
|
21098
|
+
};
|
|
21099
|
+
|
|
21100
|
+
module.exports = {
|
|
21101
|
+
arrayToObject: arrayToObject,
|
|
21102
|
+
assign: assign,
|
|
21103
|
+
combine: combine,
|
|
21104
|
+
compact: compact,
|
|
21105
|
+
decode: decode,
|
|
21106
|
+
encode: encode,
|
|
21107
|
+
isBuffer: isBuffer,
|
|
21108
|
+
isRegExp: isRegExp,
|
|
21109
|
+
maybeMap: maybeMap,
|
|
21110
|
+
merge: merge
|
|
21111
|
+
};
|
|
21112
|
+
|
|
21113
|
+
|
|
21114
|
+
/***/ }),
|
|
21115
|
+
/* 36 */
|
|
21116
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21117
|
+
|
|
21118
|
+
"use strict";
|
|
21119
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
21120
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
21121
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
21122
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
21123
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
21124
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
21125
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
21126
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
21127
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
21128
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
21129
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
21130
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
|
|
21131
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
21132
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
21133
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
21134
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
21135
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
|
|
21136
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
21137
|
+
|
|
21138
|
+
|
|
21139
|
+
|
|
21140
|
+
|
|
21141
|
+
|
|
21142
|
+
|
|
21143
|
+
function initProductData(prodData) {
|
|
21144
|
+
prodData.hadChoice = false;
|
|
21145
|
+
prodData.insShowArr = null;
|
|
21146
|
+
prodData.totalBaof = null;
|
|
21147
|
+
if (!prodData.mulInsOrderList) {
|
|
21148
|
+
return prodData;
|
|
21193
21149
|
}
|
|
21194
|
-
if (
|
|
21195
|
-
|
|
21196
|
-
if (ins.eleOrderList) {
|
|
21197
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
21198
|
-
errorMsg =
|
|
21199
|
-
errorMsg ||
|
|
21200
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* restrictElementsInInsurance */ "d"])({
|
|
21201
|
-
personOrderList: personOrderList,
|
|
21202
|
-
insData: ins,
|
|
21203
|
-
eleData: ele
|
|
21204
|
-
});
|
|
21205
|
-
});
|
|
21206
|
-
}
|
|
21207
|
-
});
|
|
21150
|
+
if (prodData.mulInsOrderList.some(function (ins) { return !!ins.adjustBaoe; })) {
|
|
21151
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
21208
21152
|
}
|
|
21209
|
-
|
|
21153
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21154
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* initInsuranceData */ "b"])(ins);
|
|
21155
|
+
});
|
|
21156
|
+
return prodData;
|
|
21210
21157
|
}
|
|
21211
|
-
function
|
|
21212
|
-
var
|
|
21213
|
-
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21158
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
21159
|
+
var _a;
|
|
21160
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
21161
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
21162
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
21163
|
+
switch (_b.label) {
|
|
21164
|
+
case 0:
|
|
21165
|
+
if (!prodData) {
|
|
21166
|
+
return [2, prodData];
|
|
21167
|
+
}
|
|
21168
|
+
productVerifyData = null;
|
|
21169
|
+
if (prodData.multipleInsured) {
|
|
21170
|
+
multipleInsuredHandler(personData);
|
|
21171
|
+
}
|
|
21172
|
+
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
21173
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
21174
|
+
case 1:
|
|
21175
|
+
productVerifyData = _b.sent();
|
|
21176
|
+
return [3, 3];
|
|
21177
|
+
case 2:
|
|
21178
|
+
productVerifyData = prodVerifyData;
|
|
21179
|
+
_b.label = 3;
|
|
21180
|
+
case 3:
|
|
21181
|
+
hasProduct = prodData.mulInsOrderList;
|
|
21182
|
+
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
21183
|
+
hasPersonData = personData && personData.personOrderList;
|
|
21184
|
+
personOrderList = null;
|
|
21185
|
+
if (hasProduct && hasVerifyData && hasPersonData) {
|
|
21186
|
+
personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_4__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
21187
|
+
setCommonInfo(prodData);
|
|
21188
|
+
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
21189
|
+
var _a, _b, _c;
|
|
21190
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
21191
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
21192
|
+
if (!insuranceVerifyData) {
|
|
21193
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21194
|
+
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
21195
|
+
}
|
|
21196
|
+
return;
|
|
21250
21197
|
}
|
|
21251
|
-
|
|
21252
|
-
|
|
21198
|
+
var isTouHuomianIns = ins.huomian === 'touHuomian' || ins.huomian === 'shuangHuomian';
|
|
21199
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21200
|
+
var applicantInfo = personOrderList.find(function (p) { return p.key === 'applicantInfo'; });
|
|
21201
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
21202
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
21203
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
21253
21204
|
}
|
|
21254
|
-
|
|
21255
|
-
|
|
21205
|
+
var targetPerson = personOrderList.find(function (p) { return p.key === personType; });
|
|
21206
|
+
var personCondition = null;
|
|
21207
|
+
if (targetPerson) {
|
|
21208
|
+
personCondition = insuranceVerifyData.find(function (v) {
|
|
21209
|
+
return targetPerson.sex === v.sex && targetPerson.age >= v.minAge && targetPerson.age <= v.maxAge;
|
|
21210
|
+
});
|
|
21211
|
+
if (personCondition) {
|
|
21212
|
+
personCondition = personCondition.conditionData;
|
|
21213
|
+
var isSamePerson = isTouHuomianIns && ins.allowSamePerson && personCondition.key === 'samePerson';
|
|
21214
|
+
if (isSamePerson) {
|
|
21215
|
+
personCondition = personCondition.samePerson.find(function (c) { return c.value == (applicantInfo.title ? 0 : 1); });
|
|
21216
|
+
}
|
|
21217
|
+
}
|
|
21256
21218
|
}
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
|
|
21265
|
-
|
|
21266
|
-
|
|
21267
|
-
? [
|
|
21268
|
-
rangeSelect_1[0] && Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1[0], prodVerifyData.age),
|
|
21269
|
-
rangeSelect_1[1] && Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1[1], prodVerifyData.age)
|
|
21270
|
-
]
|
|
21271
|
-
: Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1, prodVerifyData.age);
|
|
21272
|
-
if (rangeSelect_1) {
|
|
21273
|
-
if (rangeSelect_1.constructor === Array) {
|
|
21274
|
-
opt.isHide =
|
|
21275
|
-
(rangeSelect_1[0] && optNum < rangeSelectNum[0]) || (rangeSelect_1[1] && optNum > rangeSelectNum[1]);
|
|
21219
|
+
var curCondition = personCondition;
|
|
21220
|
+
var eleTitle = (_a = ins.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
21221
|
+
var _loop_1 = function () {
|
|
21222
|
+
var isNotAllowSelect = !curCondition ||
|
|
21223
|
+
(isTouHuomianIns && !ins.allowSamePerson && (!targetPerson.title || targetPerson.applicantAndInsuredSame));
|
|
21224
|
+
if (isNotAllowSelect) {
|
|
21225
|
+
eleTitle.isDisabled = true;
|
|
21226
|
+
eleTitle.value = false;
|
|
21227
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21228
|
+
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"));
|
|
21276
21229
|
}
|
|
21277
|
-
|
|
21278
|
-
|
|
21230
|
+
}
|
|
21231
|
+
else {
|
|
21232
|
+
eleTitle.isDisabled = false;
|
|
21233
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
21234
|
+
eleTitle.value = true;
|
|
21235
|
+
eleTitle.isDisabled = true;
|
|
21236
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21237
|
+
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)"));
|
|
21238
|
+
}
|
|
21279
21239
|
}
|
|
21280
21240
|
}
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
var validOptions = curEle.opts.filter(function (o) { return !o.isDisabled && !o.isHide && !o.isInvalid; });
|
|
21284
|
-
var activeOption = validOptions.find(function (o) { return o.val === curEle.value; });
|
|
21285
|
-
if (!activeOption && validOptions.length) {
|
|
21286
|
-
curEle.value = validOptions[0].val;
|
|
21241
|
+
if (!curCondition) {
|
|
21242
|
+
return "break";
|
|
21287
21243
|
}
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
|
|
21293
|
-
|
|
21294
|
-
|
|
21295
|
-
|
|
21296
|
-
var rangeVal = eval(restrict.rCondition);
|
|
21297
|
-
if (rangeVal !== undefined && rangeVal !== null) {
|
|
21298
|
-
if (rangeVal.constructor === Array) {
|
|
21299
|
-
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
21300
|
-
errorMsg =
|
|
21301
|
-
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
21244
|
+
var eleData = (_b = ins.eleOrderList) === null || _b === void 0 ? void 0 : _b.find(function (e) { return e.key === curCondition.key; });
|
|
21245
|
+
var commonData = insList.find(function (ins) { return ins.key === 'common'; });
|
|
21246
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
21247
|
+
eleData = commonData.eleOrderList.find(function (e) { return e.key === curCondition.key; });
|
|
21248
|
+
}
|
|
21249
|
+
if (!eleData) {
|
|
21250
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21251
|
+
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
21302
21252
|
}
|
|
21303
|
-
|
|
21304
|
-
|
|
21305
|
-
|
|
21253
|
+
curCondition = null;
|
|
21254
|
+
return "break";
|
|
21255
|
+
}
|
|
21256
|
+
var eleCondi = curCondition[curCondition.key];
|
|
21257
|
+
var isBeGovernedEle = eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && Number(ins.refInsuranceId) !== -2;
|
|
21258
|
+
if (isBeGovernedEle) {
|
|
21259
|
+
var refInsData = null;
|
|
21260
|
+
if (Number(ins.refInsuranceId) === -1) {
|
|
21261
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
21262
|
+
}
|
|
21263
|
+
else {
|
|
21264
|
+
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
21265
|
+
}
|
|
21266
|
+
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
21267
|
+
if (refEleData) {
|
|
21268
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
21269
|
+
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
21270
|
+
}
|
|
21271
|
+
else {
|
|
21272
|
+
eleData.value = refEleData.value;
|
|
21273
|
+
}
|
|
21274
|
+
}
|
|
21275
|
+
else {
|
|
21276
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21277
|
+
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
21278
|
+
}
|
|
21279
|
+
}
|
|
21280
|
+
}
|
|
21281
|
+
else {
|
|
21282
|
+
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
21283
|
+
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
21284
|
+
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
21285
|
+
return {
|
|
21286
|
+
val: c.value,
|
|
21287
|
+
desc: c.desc || c.value,
|
|
21288
|
+
isHide: (option && option.isHide) || null,
|
|
21289
|
+
isDisabled: (option && option.isDisabled) || null,
|
|
21290
|
+
isInvalid: null
|
|
21291
|
+
};
|
|
21292
|
+
});
|
|
21293
|
+
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
21294
|
+
if (isNoOption) {
|
|
21295
|
+
if (eleData.key === 'pPeriod') {
|
|
21296
|
+
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
21297
|
+
if (filterOpts && filterOpts.length) {
|
|
21298
|
+
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
21299
|
+
}
|
|
21300
|
+
}
|
|
21301
|
+
else {
|
|
21302
|
+
if (eleData.opts && eleData.opts.length) {
|
|
21303
|
+
eleData.value = eleData.opts[0].val;
|
|
21304
|
+
}
|
|
21305
|
+
}
|
|
21306
21306
|
}
|
|
21307
21307
|
}
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21308
|
+
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
21309
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
21310
|
+
var prevElement;
|
|
21311
|
+
if (eleIndex >= 1) {
|
|
21312
|
+
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
21313
|
+
}
|
|
21314
|
+
if (prevElement) {
|
|
21315
|
+
if (!curCondition) {
|
|
21316
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21317
|
+
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; }); });
|
|
21318
|
+
if (onePrevEleVerify) {
|
|
21319
|
+
prevElement.value = onePrevEleVerify.value;
|
|
21320
|
+
curCondition = onePrevEleVerify[eleData.key];
|
|
21321
|
+
}
|
|
21322
|
+
}
|
|
21323
|
+
if (!curCondition) {
|
|
21324
|
+
eleTitle.isDisabled = true;
|
|
21325
|
+
eleTitle.value = false;
|
|
21326
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21327
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
21328
|
+
}
|
|
21329
|
+
}
|
|
21330
|
+
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
21331
|
+
if (isNeedReverseFilter) {
|
|
21332
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21333
|
+
if (prevEleVerify) {
|
|
21334
|
+
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
21335
|
+
var _a;
|
|
21336
|
+
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
21337
|
+
insuranceKey: ins.key,
|
|
21338
|
+
elementKey: eleData.key
|
|
21339
|
+
},
|
|
21340
|
+
_a[prevElement.key] = v.value,
|
|
21341
|
+
_a));
|
|
21342
|
+
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
21343
|
+
}).map(function (v) { return ({
|
|
21344
|
+
val: v.value,
|
|
21345
|
+
desc: v.desc || v.value,
|
|
21346
|
+
isHide: null,
|
|
21347
|
+
isDisabled: null,
|
|
21348
|
+
isInvalid: null
|
|
21349
|
+
}); });
|
|
21350
|
+
}
|
|
21311
21351
|
}
|
|
21312
21352
|
}
|
|
21313
|
-
}
|
|
21314
|
-
|
|
21315
|
-
|
|
21353
|
+
};
|
|
21354
|
+
do {
|
|
21355
|
+
var state_1 = _loop_1();
|
|
21356
|
+
if (state_1 === "break")
|
|
21357
|
+
break;
|
|
21358
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
21359
|
+
});
|
|
21316
21360
|
}
|
|
21317
|
-
|
|
21361
|
+
setGroupInsurance(prodData);
|
|
21362
|
+
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
21363
|
+
return [2, prodData];
|
|
21318
21364
|
}
|
|
21319
21365
|
});
|
|
21366
|
+
});
|
|
21367
|
+
}
|
|
21368
|
+
function multipleInsuredHandler(personData) {
|
|
21369
|
+
var personOrderList = personData.personOrderList;
|
|
21370
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
21371
|
+
return null;
|
|
21320
21372
|
}
|
|
21321
|
-
return
|
|
21373
|
+
var insured2Info = personOrderList.find(function (p) { return p.key === 'insured2Info'; });
|
|
21374
|
+
if (!insured2Info) {
|
|
21375
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21376
|
+
var insuredIndex = personOrderList.findIndex(function (p) { return p.key === 'insuredInfo'; });
|
|
21377
|
+
if (insuredIndex >= 0) {
|
|
21378
|
+
var person = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["cloneDeep"])(insuredInfo);
|
|
21379
|
+
person.key = 'insured2Info';
|
|
21380
|
+
person.eleOrderList.forEach(function (e) {
|
|
21381
|
+
if (e.key === 'title') {
|
|
21382
|
+
e.isDisabled = false;
|
|
21383
|
+
e.value = true;
|
|
21384
|
+
e.label = '第二被保人信息';
|
|
21385
|
+
}
|
|
21386
|
+
});
|
|
21387
|
+
personOrderList.splice(insuredIndex + 1, 0, person);
|
|
21388
|
+
}
|
|
21389
|
+
}
|
|
21390
|
+
return personData;
|
|
21322
21391
|
}
|
|
21323
|
-
function
|
|
21324
|
-
|
|
21325
|
-
|
|
21392
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
21393
|
+
var _a, _b;
|
|
21394
|
+
if (parmas === void 0) { parmas = {}; }
|
|
21395
|
+
var personOrderList = personData.personOrderList;
|
|
21396
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
21397
|
+
return null;
|
|
21326
21398
|
}
|
|
21327
|
-
|
|
21399
|
+
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
21400
|
+
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
21401
|
+
var insuredList = personOrderList
|
|
21402
|
+
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
21403
|
+
.filter(function (p) {
|
|
21404
|
+
var _a;
|
|
21405
|
+
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
21406
|
+
return title && title.value;
|
|
21407
|
+
})
|
|
21408
|
+
.map(function (p) {
|
|
21409
|
+
var _a, _b;
|
|
21410
|
+
return {
|
|
21411
|
+
key: p.key,
|
|
21412
|
+
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
21413
|
+
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
21414
|
+
};
|
|
21415
|
+
});
|
|
21416
|
+
var insuranceIdList = (_a = convertProductData(prodData).mulInsOrderList) === null || _a === void 0 ? void 0 : _a.map(function (ins) { return ins.key; });
|
|
21417
|
+
(_b = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _b === void 0 ? void 0 : _b.reduce(function (list, ins) {
|
|
21418
|
+
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
21419
|
+
}, []);
|
|
21420
|
+
return getAndCacheInsurancesVerifyData({
|
|
21421
|
+
pbId: pbId,
|
|
21422
|
+
productId: productId,
|
|
21423
|
+
insuredList: insuredList,
|
|
21424
|
+
insuranceIdList: insuranceIdList
|
|
21425
|
+
});
|
|
21426
|
+
}
|
|
21427
|
+
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
21428
|
+
var IS_PRODUCT_ENV = location.hostname.search(/winbaoxian\.com/) !== -1;
|
|
21429
|
+
var url = "https://app.winbaoxian.".concat(IS_PRODUCT_ENV ? 'com' : 'cn', "/planBook/input/insurance/verifyData");
|
|
21430
|
+
return fetch(url, {
|
|
21431
|
+
method: 'POST',
|
|
21432
|
+
credentials: 'include',
|
|
21433
|
+
headers: {
|
|
21434
|
+
Accept: 'application/json, text/plain, */*',
|
|
21435
|
+
'Content-Type': 'application/json;'
|
|
21436
|
+
},
|
|
21437
|
+
body: JSON.stringify(params)
|
|
21438
|
+
})
|
|
21439
|
+
.then(function (response) { return response.json(); })
|
|
21440
|
+
.then(function (_a) {
|
|
21441
|
+
var success = _a.success, data = _a.data;
|
|
21442
|
+
if (!success || !data) {
|
|
21443
|
+
return Promise.reject();
|
|
21444
|
+
}
|
|
21445
|
+
return Promise.resolve(data);
|
|
21446
|
+
})
|
|
21447
|
+
.catch(function () { });
|
|
21448
|
+
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
21449
|
+
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
21450
|
+
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
21451
|
+
return verify;
|
|
21452
|
+
}
|
|
21453
|
+
var insuranceInfo = {};
|
|
21454
|
+
insurances.forEach(function (ins) {
|
|
21455
|
+
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
21456
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(ins));
|
|
21457
|
+
}
|
|
21458
|
+
});
|
|
21459
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), option);
|
|
21460
|
+
var temp = verify;
|
|
21461
|
+
var hasElementKey = verify.key === option.elementKey;
|
|
21462
|
+
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
21463
|
+
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
21464
|
+
if (temp && temp.key === option.elementKey) {
|
|
21465
|
+
hasElementKey = true;
|
|
21466
|
+
}
|
|
21467
|
+
}
|
|
21468
|
+
if (!hasElementKey) {
|
|
21469
|
+
return null;
|
|
21470
|
+
}
|
|
21471
|
+
if (temp && temp[option.elementKey]) {
|
|
21472
|
+
return temp[option.elementKey];
|
|
21473
|
+
}
|
|
21474
|
+
return temp ? [temp] : null;
|
|
21475
|
+
}
|
|
21476
|
+
function setCommonInfo(prodData) {
|
|
21477
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
21328
21478
|
return prodData;
|
|
21329
21479
|
}
|
|
21330
|
-
var
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21480
|
+
var common = {
|
|
21481
|
+
key: 'common',
|
|
21482
|
+
eleOrderList: []
|
|
21483
|
+
};
|
|
21484
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21485
|
+
if (!ins.eleOrderList) {
|
|
21335
21486
|
return;
|
|
21336
21487
|
}
|
|
21337
|
-
|
|
21338
|
-
if (
|
|
21339
|
-
|
|
21340
|
-
insuranceId.forEach(function (insId) {
|
|
21341
|
-
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
21342
|
-
if (checkedIns) {
|
|
21343
|
-
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
21344
|
-
insurance.eleOrderList &&
|
|
21345
|
-
insurance.eleOrderList.forEach(function (ele) {
|
|
21346
|
-
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
21347
|
-
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
21348
|
-
}
|
|
21349
|
-
});
|
|
21350
|
-
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
21351
|
-
}
|
|
21352
|
-
});
|
|
21353
|
-
return;
|
|
21488
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
21489
|
+
if (ele.common && common.eleOrderList.every(function (e) { return e.key !== ele.key; })) {
|
|
21490
|
+
common.eleOrderList.push(ele);
|
|
21354
21491
|
}
|
|
21355
|
-
|
|
21356
|
-
}
|
|
21492
|
+
});
|
|
21493
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) { return !ele.common; });
|
|
21357
21494
|
});
|
|
21358
|
-
|
|
21495
|
+
if (!common.eleOrderList.length) {
|
|
21496
|
+
return prodData;
|
|
21497
|
+
}
|
|
21498
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
21499
|
+
prodData.mulInsOrderList.unshift(common);
|
|
21500
|
+
if (prodData.mulInsOrderList[1]) {
|
|
21501
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
21502
|
+
}
|
|
21503
|
+
return prodData;
|
|
21359
21504
|
}
|
|
21360
|
-
function
|
|
21361
|
-
if (!
|
|
21362
|
-
return
|
|
21505
|
+
function setGroupInsurance(prodData) {
|
|
21506
|
+
if (!prodData.mulInsOrderList) {
|
|
21507
|
+
return prodData;
|
|
21363
21508
|
}
|
|
21364
|
-
|
|
21365
|
-
|
|
21509
|
+
var groupInsuranceList = prodData && prodData.mulInsOrderList && prodData.mulInsOrderList.filter(function (ins) { return !!ins.groupKey; });
|
|
21510
|
+
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
21511
|
+
return prodData;
|
|
21366
21512
|
}
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21370
|
-
|
|
21371
|
-
|
|
21372
|
-
|
|
21373
|
-
}
|
|
21374
|
-
if (
|
|
21375
|
-
|
|
21376
|
-
|
|
21513
|
+
var oldGroupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.isGroup; });
|
|
21514
|
+
var newGroupInsMap = {};
|
|
21515
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return !ins.isGroup; });
|
|
21516
|
+
groupInsuranceList.forEach(function (ins) {
|
|
21517
|
+
var oldGroupIns = oldGroupInsList.find(function (gIns) { return gIns.key === ins.groupKey; });
|
|
21518
|
+
var oldTitleEle = {};
|
|
21519
|
+
var oldInsuranceIdEle = {};
|
|
21520
|
+
if (oldGroupIns && oldGroupIns.eleOrderList) {
|
|
21521
|
+
oldTitleEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21522
|
+
oldInsuranceIdEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21523
|
+
}
|
|
21524
|
+
if (ins.groupKey) {
|
|
21525
|
+
newGroupInsMap[ins.groupKey] = newGroupInsMap[ins.groupKey] || {
|
|
21526
|
+
key: ins.groupKey,
|
|
21527
|
+
name: ins.groupName,
|
|
21528
|
+
huomian: ins.huomian,
|
|
21529
|
+
isGroup: true,
|
|
21530
|
+
eleOrderList: [
|
|
21531
|
+
{
|
|
21532
|
+
key: 'title',
|
|
21533
|
+
value: (oldTitleEle && oldTitleEle.value) || false,
|
|
21534
|
+
isDisabled: false,
|
|
21535
|
+
componentName: 'cmCommonTitle',
|
|
21536
|
+
labelName: ins.groupName
|
|
21537
|
+
},
|
|
21538
|
+
{
|
|
21539
|
+
key: 'insuranceId',
|
|
21540
|
+
value: (oldInsuranceIdEle && oldInsuranceIdEle.value) || (ins.isCheckbox ? [] : ''),
|
|
21541
|
+
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
21542
|
+
opts: []
|
|
21543
|
+
}
|
|
21544
|
+
]
|
|
21545
|
+
};
|
|
21546
|
+
var titleEle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21547
|
+
var insuranceIdEle = newGroupInsMap[ins.groupKey].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21548
|
+
insuranceIdEle.opts.push({
|
|
21549
|
+
val: ins.key,
|
|
21550
|
+
code: ins.code,
|
|
21551
|
+
desc: titleEle.labelName,
|
|
21552
|
+
isDisabled: titleEle.isDisabled
|
|
21377
21553
|
});
|
|
21378
21554
|
}
|
|
21379
21555
|
});
|
|
21380
|
-
|
|
21381
|
-
}
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
var
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
var
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
var
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
var
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
if (!channel.has(key)) {
|
|
21421
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21422
|
-
}
|
|
21423
|
-
},
|
|
21424
|
-
'delete': function (key) {
|
|
21425
|
-
if ($m) {
|
|
21426
|
-
var result = $mapDelete($m, key);
|
|
21427
|
-
if ($mapSize($m) === 0) {
|
|
21428
|
-
$m = void undefined;
|
|
21429
|
-
}
|
|
21430
|
-
return result;
|
|
21431
|
-
}
|
|
21432
|
-
return false;
|
|
21433
|
-
},
|
|
21434
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
21435
|
-
if ($m) {
|
|
21436
|
-
return $mapGet($m, key);
|
|
21437
|
-
}
|
|
21438
|
-
},
|
|
21439
|
-
has: function (key) {
|
|
21440
|
-
if ($m) {
|
|
21441
|
-
return $mapHas($m, key);
|
|
21442
|
-
}
|
|
21443
|
-
return false;
|
|
21444
|
-
},
|
|
21445
|
-
set: function (key, value) {
|
|
21446
|
-
if (!$m) {
|
|
21447
|
-
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
21448
|
-
$m = new $Map();
|
|
21449
|
-
}
|
|
21450
|
-
$mapSet($m, key, value);
|
|
21451
|
-
}
|
|
21452
|
-
};
|
|
21453
|
-
|
|
21454
|
-
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
21455
|
-
return channel;
|
|
21456
|
-
};
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
/***/ }),
|
|
21460
|
-
/* 29 */
|
|
21461
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21462
|
-
|
|
21463
|
-
"use strict";
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
/** @type {import('.')} */
|
|
21467
|
-
module.exports = Object;
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
/***/ }),
|
|
21471
|
-
/* 30 */
|
|
21472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21473
|
-
|
|
21474
|
-
"use strict";
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
/** @type {import('.')} */
|
|
21478
|
-
var $gOPD = __webpack_require__(57);
|
|
21479
|
-
|
|
21480
|
-
if ($gOPD) {
|
|
21481
|
-
try {
|
|
21482
|
-
$gOPD([], 'length');
|
|
21483
|
-
} catch (e) {
|
|
21484
|
-
// IE 8 has a broken gOPD
|
|
21485
|
-
$gOPD = null;
|
|
21486
|
-
}
|
|
21487
|
-
}
|
|
21488
|
-
|
|
21489
|
-
module.exports = $gOPD;
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
/***/ }),
|
|
21493
|
-
/* 31 */
|
|
21494
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21495
|
-
|
|
21496
|
-
"use strict";
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
21500
|
-
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
/***/ }),
|
|
21504
|
-
/* 32 */
|
|
21505
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21506
|
-
|
|
21507
|
-
"use strict";
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
var $Object = __webpack_require__(29);
|
|
21511
|
-
|
|
21512
|
-
/** @type {import('./Object.getPrototypeOf')} */
|
|
21513
|
-
module.exports = $Object.getPrototypeOf || null;
|
|
21514
|
-
|
|
21515
|
-
|
|
21516
|
-
/***/ }),
|
|
21517
|
-
/* 33 */
|
|
21518
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21519
|
-
|
|
21520
|
-
"use strict";
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
var bind = __webpack_require__(15);
|
|
21524
|
-
var $TypeError = __webpack_require__(9);
|
|
21525
|
-
|
|
21526
|
-
var $call = __webpack_require__(20);
|
|
21527
|
-
var $actualApply = __webpack_require__(64);
|
|
21528
|
-
|
|
21529
|
-
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
21530
|
-
module.exports = function callBindBasic(args) {
|
|
21531
|
-
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
21532
|
-
throw new $TypeError('a function is required');
|
|
21533
|
-
}
|
|
21534
|
-
return $actualApply(bind, $call, args);
|
|
21535
|
-
};
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
/***/ }),
|
|
21539
|
-
/* 34 */
|
|
21540
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21541
|
-
|
|
21542
|
-
"use strict";
|
|
21543
|
-
|
|
21544
|
-
|
|
21545
|
-
/** @type {import('./functionApply')} */
|
|
21546
|
-
module.exports = Function.prototype.apply;
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
/***/ }),
|
|
21550
|
-
/* 35 */
|
|
21551
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21552
|
-
|
|
21553
|
-
"use strict";
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
var GetIntrinsic = __webpack_require__(19);
|
|
21557
|
-
|
|
21558
|
-
var callBindBasic = __webpack_require__(33);
|
|
21559
|
-
|
|
21560
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
21561
|
-
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
21562
|
-
|
|
21563
|
-
/** @type {import('.')} */
|
|
21564
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
21565
|
-
/* eslint no-extra-parens: 0 */
|
|
21566
|
-
|
|
21567
|
-
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
21568
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
21569
|
-
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
21570
|
-
}
|
|
21571
|
-
return intrinsic;
|
|
21572
|
-
};
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
/***/ }),
|
|
21576
|
-
/* 36 */
|
|
21577
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21578
|
-
|
|
21579
|
-
"use strict";
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
var formats = __webpack_require__(21);
|
|
21583
|
-
|
|
21584
|
-
var has = Object.prototype.hasOwnProperty;
|
|
21585
|
-
var isArray = Array.isArray;
|
|
21586
|
-
|
|
21587
|
-
var hexTable = (function () {
|
|
21588
|
-
var array = [];
|
|
21589
|
-
for (var i = 0; i < 256; ++i) {
|
|
21590
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
21591
|
-
}
|
|
21592
|
-
|
|
21593
|
-
return array;
|
|
21594
|
-
}());
|
|
21595
|
-
|
|
21596
|
-
var compactQueue = function compactQueue(queue) {
|
|
21597
|
-
while (queue.length > 1) {
|
|
21598
|
-
var item = queue.pop();
|
|
21599
|
-
var obj = item.obj[item.prop];
|
|
21600
|
-
|
|
21601
|
-
if (isArray(obj)) {
|
|
21602
|
-
var compacted = [];
|
|
21603
|
-
|
|
21604
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
21605
|
-
if (typeof obj[j] !== 'undefined') {
|
|
21606
|
-
compacted.push(obj[j]);
|
|
21556
|
+
var _loop_2 = function (k) {
|
|
21557
|
+
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21558
|
+
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21559
|
+
if (nGroupTitle && nGroupInsuranceId) {
|
|
21560
|
+
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
21561
|
+
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
21562
|
+
nGroupTitle.value = false;
|
|
21563
|
+
nGroupTitle.isDisabled = true;
|
|
21564
|
+
}
|
|
21565
|
+
else {
|
|
21566
|
+
nGroupTitle.isDisabled = false;
|
|
21567
|
+
}
|
|
21568
|
+
}
|
|
21569
|
+
var groupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.groupKey == k; });
|
|
21570
|
+
if (groupInsList && groupInsList.length) {
|
|
21571
|
+
if (groupInsList.some(function (ins) {
|
|
21572
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21573
|
+
return ins.required && subTitle && !subTitle.isDisabled;
|
|
21574
|
+
})) {
|
|
21575
|
+
nGroupTitle.value = true;
|
|
21576
|
+
nGroupTitle.isDisabled = true;
|
|
21577
|
+
}
|
|
21578
|
+
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
21579
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21580
|
+
return subTitle && !subTitle.isDisabled;
|
|
21581
|
+
});
|
|
21582
|
+
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
21583
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21584
|
+
return subTitle && subTitle.value;
|
|
21585
|
+
});
|
|
21586
|
+
if (!nGroupInsuranceId.value) {
|
|
21587
|
+
if (checkedInsurances) {
|
|
21588
|
+
nGroupInsuranceId.value = checkedInsurances.key;
|
|
21589
|
+
nGroupTitle.value = true;
|
|
21590
|
+
}
|
|
21591
|
+
else if (nGroupTitle.value) {
|
|
21592
|
+
if (notDisabledInsurances[0]) {
|
|
21593
|
+
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
21594
|
+
}
|
|
21595
|
+
}
|
|
21607
21596
|
}
|
|
21608
21597
|
}
|
|
21609
|
-
|
|
21610
|
-
item.obj[item.prop] = compacted;
|
|
21611
21598
|
}
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21599
|
+
if (nGroupInsuranceId) {
|
|
21600
|
+
if (nGroupInsuranceId.value) {
|
|
21601
|
+
if (nGroupInsuranceId.value.constructor === Array) {
|
|
21602
|
+
if (nGroupInsuranceId.opts) {
|
|
21603
|
+
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) { return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled; });
|
|
21604
|
+
}
|
|
21605
|
+
}
|
|
21606
|
+
else {
|
|
21607
|
+
var opt = nGroupInsuranceId.opts.find(function (o) { return o.val === nGroupInsuranceId.value; });
|
|
21608
|
+
if (opt && opt.isDisabled) {
|
|
21609
|
+
nGroupInsuranceId.value = '';
|
|
21610
|
+
}
|
|
21611
|
+
}
|
|
21612
|
+
}
|
|
21613
|
+
if (nGroupInsuranceId.value) {
|
|
21614
|
+
var checkedIns = prodData.mulInsOrderList.find(function (ins) { return ins.key === nGroupInsuranceId.value; });
|
|
21615
|
+
if (checkedIns) {
|
|
21616
|
+
for (var ck in checkedIns) {
|
|
21617
|
+
if (!['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name', 'accountData', 'reduceBaofData'].includes(ck)) {
|
|
21618
|
+
if (ck === 'eleOrderList') {
|
|
21619
|
+
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedIns[ck].filter(function (ele) { return ele.key !== 'title'; }));
|
|
21620
|
+
}
|
|
21621
|
+
else {
|
|
21622
|
+
newGroupInsMap[k][ck] = checkedIns[ck];
|
|
21623
|
+
}
|
|
21624
|
+
}
|
|
21625
|
+
}
|
|
21626
|
+
}
|
|
21627
|
+
}
|
|
21620
21628
|
}
|
|
21621
|
-
|
|
21622
|
-
|
|
21623
|
-
|
|
21624
|
-
|
|
21625
|
-
|
|
21626
|
-
var merge = function merge(target, source, options) {
|
|
21627
|
-
/* eslint no-param-reassign: 0 */
|
|
21628
|
-
if (!source) {
|
|
21629
|
-
return target;
|
|
21630
|
-
}
|
|
21631
|
-
|
|
21632
|
-
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
21633
|
-
if (isArray(target)) {
|
|
21634
|
-
target.push(source);
|
|
21635
|
-
} else if (target && typeof target === 'object') {
|
|
21636
|
-
if (
|
|
21637
|
-
(options && (options.plainObjects || options.allowPrototypes))
|
|
21638
|
-
|| !has.call(Object.prototype, source)
|
|
21639
|
-
) {
|
|
21640
|
-
target[source] = true;
|
|
21629
|
+
var index = -1;
|
|
21630
|
+
prodData.mulInsOrderList.forEach(function (ins, i) {
|
|
21631
|
+
if (ins.groupKey === k) {
|
|
21632
|
+
index = i;
|
|
21641
21633
|
}
|
|
21642
|
-
}
|
|
21643
|
-
|
|
21634
|
+
});
|
|
21635
|
+
if (index >= 0) {
|
|
21636
|
+
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
21644
21637
|
}
|
|
21645
|
-
|
|
21646
|
-
|
|
21638
|
+
};
|
|
21639
|
+
for (var k in newGroupInsMap) {
|
|
21640
|
+
_loop_2(k);
|
|
21647
21641
|
}
|
|
21648
|
-
|
|
21649
|
-
|
|
21650
|
-
|
|
21642
|
+
return prodData;
|
|
21643
|
+
}
|
|
21644
|
+
function isHideProduct(prodData, productVerifyData, personOrderList) {
|
|
21645
|
+
var ageRangeProd = {};
|
|
21646
|
+
if (prodData && productVerifyData && Object.keys(productVerifyData).length && personOrderList) {
|
|
21647
|
+
if (prodData.mulInsOrderList) {
|
|
21648
|
+
var hasRequiredIns_1 = prodData.mulInsOrderList.some(function (ins) { return !!ins.required && productVerifyData[ins.key]; });
|
|
21649
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21650
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
21651
|
+
if (insuranceVerifyData) {
|
|
21652
|
+
if ((!ins.huomian || ins.huomian == 'beiHuomian') && (!hasRequiredIns_1 || (hasRequiredIns_1 && ins.required))) {
|
|
21653
|
+
insuranceVerifyData.forEach(function (verify) {
|
|
21654
|
+
ageRangeProd[verify.sex] = ageRangeProd[verify.sex] || [];
|
|
21655
|
+
ageRangeProd[verify.sex] = [
|
|
21656
|
+
Math.min(ageRangeProd[verify.sex][0] === undefined ? verify.minAge : ageRangeProd[verify.sex][0], verify.minAge),
|
|
21657
|
+
Math.max(ageRangeProd[verify.sex][1] === undefined ? verify.maxAge : ageRangeProd[verify.sex][1], verify.maxAge)
|
|
21658
|
+
];
|
|
21659
|
+
});
|
|
21660
|
+
}
|
|
21661
|
+
}
|
|
21662
|
+
});
|
|
21663
|
+
}
|
|
21664
|
+
var _a = personOrderList.find(function (p) { return p.key === 'insuredInfo'; }), sex = _a.sex, age = _a.age;
|
|
21665
|
+
if (ageRangeProd[sex] && age >= ageRangeProd[sex][0] && age <= ageRangeProd[sex][1]) {
|
|
21666
|
+
prodData.hide = false;
|
|
21667
|
+
}
|
|
21668
|
+
else {
|
|
21669
|
+
prodData.hadChoice = false;
|
|
21670
|
+
prodData.hide = true;
|
|
21671
|
+
prodData.totalBaof = null;
|
|
21672
|
+
}
|
|
21651
21673
|
}
|
|
21652
|
-
|
|
21653
|
-
|
|
21654
|
-
|
|
21655
|
-
|
|
21674
|
+
return ageRangeProd;
|
|
21675
|
+
}
|
|
21676
|
+
function verifyProductRules(_a) {
|
|
21677
|
+
var personData = _a.personData, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
21678
|
+
var errorMsg = '';
|
|
21679
|
+
var personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_4__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
21680
|
+
if (productData.restrictList && productData.restrictList.length) {
|
|
21681
|
+
errorMsg = restrictInsurancesInProduct({
|
|
21682
|
+
personOrderList: personOrderList,
|
|
21683
|
+
productData: productData,
|
|
21684
|
+
insData: insData,
|
|
21685
|
+
eleData: eleData
|
|
21686
|
+
});
|
|
21656
21687
|
}
|
|
21657
|
-
|
|
21658
|
-
|
|
21659
|
-
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
|
|
21665
|
-
|
|
21688
|
+
if (!errorMsg && productData.mulInsOrderList) {
|
|
21689
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
21690
|
+
if (ins.eleOrderList) {
|
|
21691
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
21692
|
+
errorMsg =
|
|
21693
|
+
errorMsg ||
|
|
21694
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* restrictElementsInInsurance */ "d"])({
|
|
21695
|
+
personOrderList: personOrderList,
|
|
21696
|
+
insData: ins,
|
|
21697
|
+
eleData: ele
|
|
21698
|
+
});
|
|
21699
|
+
});
|
|
21700
|
+
}
|
|
21701
|
+
});
|
|
21702
|
+
}
|
|
21703
|
+
return errorMsg;
|
|
21704
|
+
}
|
|
21705
|
+
function restrictInsurancesInProduct(_a) {
|
|
21706
|
+
var personOrderList = _a.personOrderList, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
21707
|
+
var errorMsg = '';
|
|
21708
|
+
var restrictList = productData.restrictList;
|
|
21709
|
+
if (restrictList && restrictList.length) {
|
|
21710
|
+
restrictList.forEach(function (restrict) {
|
|
21711
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21712
|
+
var productInfo = convertProductData(productData);
|
|
21713
|
+
var prodVerifyData = {
|
|
21714
|
+
age: insuredInfo.age,
|
|
21715
|
+
sex: insuredInfo.sex,
|
|
21716
|
+
common: productInfo.common
|
|
21717
|
+
};
|
|
21718
|
+
productInfo.mulInsOrderList.forEach(function (ins) {
|
|
21719
|
+
prodVerifyData['i' + ins.key] = ins;
|
|
21720
|
+
});
|
|
21721
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'prodVerifyData.i$2$3');
|
|
21722
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'prodVerifyData.$2');
|
|
21723
|
+
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
21724
|
+
var curEle = curIns ? {} : null;
|
|
21725
|
+
if (curIns) {
|
|
21726
|
+
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
21727
|
+
}
|
|
21728
|
+
if (curEle) {
|
|
21729
|
+
switch (restrict.rType) {
|
|
21730
|
+
case 1:
|
|
21731
|
+
var isDisabled = curEle.isDisabled;
|
|
21732
|
+
var value = curEle.value;
|
|
21733
|
+
if (eval(restrict.rCondition)) {
|
|
21734
|
+
isDisabled = false;
|
|
21735
|
+
if (restrict.other && restrict.other.includes('required')) {
|
|
21736
|
+
value = true;
|
|
21737
|
+
isDisabled = true;
|
|
21738
|
+
}
|
|
21739
|
+
}
|
|
21740
|
+
else {
|
|
21741
|
+
isDisabled = true;
|
|
21742
|
+
if (restrict.other && restrict.other.includes('optional')) {
|
|
21743
|
+
isDisabled = false;
|
|
21744
|
+
}
|
|
21745
|
+
if (isDisabled) {
|
|
21746
|
+
value = false;
|
|
21747
|
+
}
|
|
21748
|
+
if (insData && eleData && restrict.rCondition.search(insData.key + '.' + eleData.key) !== -1) {
|
|
21749
|
+
value = false;
|
|
21750
|
+
}
|
|
21751
|
+
}
|
|
21752
|
+
curEle.isDisabled = isDisabled;
|
|
21753
|
+
curEle.value = value;
|
|
21754
|
+
break;
|
|
21755
|
+
case 2: {
|
|
21756
|
+
var rangeSelect_1 = eval(restrict.rCondition);
|
|
21757
|
+
if (rangeSelect_1 !== undefined && rangeSelect_1 !== null) {
|
|
21758
|
+
curEle.opts.forEach(function (opt) {
|
|
21759
|
+
var optNum = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(opt.val, prodVerifyData.age);
|
|
21760
|
+
var rangeSelectNum = rangeSelect_1.constructor === Array
|
|
21761
|
+
? [
|
|
21762
|
+
rangeSelect_1[0] && Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1[0], prodVerifyData.age),
|
|
21763
|
+
rangeSelect_1[1] && Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1[1], prodVerifyData.age)
|
|
21764
|
+
]
|
|
21765
|
+
: Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getNumberFromYear */ "h"])(rangeSelect_1, prodVerifyData.age);
|
|
21766
|
+
if (rangeSelect_1) {
|
|
21767
|
+
if (rangeSelect_1.constructor === Array) {
|
|
21768
|
+
opt.isHide =
|
|
21769
|
+
(rangeSelect_1[0] && optNum < rangeSelectNum[0]) || (rangeSelect_1[1] && optNum > rangeSelectNum[1]);
|
|
21770
|
+
}
|
|
21771
|
+
else {
|
|
21772
|
+
opt.isHide = optNum > rangeSelectNum;
|
|
21773
|
+
}
|
|
21774
|
+
}
|
|
21775
|
+
});
|
|
21776
|
+
if (!(curEle.isHide && !curEle.isDisabled) && curEle.opts) {
|
|
21777
|
+
var validOptions = curEle.opts.filter(function (o) { return !o.isDisabled && !o.isHide && !o.isInvalid; });
|
|
21778
|
+
var activeOption = validOptions.find(function (o) { return o.val === curEle.value; });
|
|
21779
|
+
if (!activeOption && validOptions.length) {
|
|
21780
|
+
curEle.value = validOptions[0].val;
|
|
21781
|
+
}
|
|
21782
|
+
}
|
|
21783
|
+
}
|
|
21784
|
+
break;
|
|
21785
|
+
}
|
|
21786
|
+
case 3: {
|
|
21787
|
+
if ((!insData && !eleData) ||
|
|
21788
|
+
(restrict.rInsKey === insData.key && restrict.rEleKey === eleData.key) ||
|
|
21789
|
+
restrict.rCondition.search("prodVerifyData.i".concat(insData.key, ".").concat(eleData.key)) !== -1) {
|
|
21790
|
+
var rangeVal = eval(restrict.rCondition);
|
|
21791
|
+
if (rangeVal !== undefined && rangeVal !== null) {
|
|
21792
|
+
if (rangeVal.constructor === Array) {
|
|
21793
|
+
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
21794
|
+
errorMsg =
|
|
21795
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
21796
|
+
}
|
|
21797
|
+
if (rangeVal[1] && curEle.value && curEle.value > rangeVal[1]) {
|
|
21798
|
+
errorMsg =
|
|
21799
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5927\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* converUnit10000 */ "b"])(rangeVal[1]));
|
|
21800
|
+
}
|
|
21801
|
+
}
|
|
21802
|
+
else if (rangeVal.constructor === String || rangeVal.constructor === Number) {
|
|
21803
|
+
if (rangeVal) {
|
|
21804
|
+
curEle.value = rangeVal;
|
|
21805
|
+
}
|
|
21806
|
+
}
|
|
21807
|
+
}
|
|
21808
|
+
}
|
|
21809
|
+
break;
|
|
21810
|
+
}
|
|
21666
21811
|
}
|
|
21667
|
-
} else {
|
|
21668
|
-
target[i] = item;
|
|
21669
21812
|
}
|
|
21670
21813
|
});
|
|
21671
|
-
return target;
|
|
21672
|
-
}
|
|
21673
|
-
|
|
21674
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
21675
|
-
var value = source[key];
|
|
21676
|
-
|
|
21677
|
-
if (has.call(acc, key)) {
|
|
21678
|
-
acc[key] = merge(acc[key], value, options);
|
|
21679
|
-
} else {
|
|
21680
|
-
acc[key] = value;
|
|
21681
|
-
}
|
|
21682
|
-
return acc;
|
|
21683
|
-
}, mergeTarget);
|
|
21684
|
-
};
|
|
21685
|
-
|
|
21686
|
-
var assign = function assignSingleSource(target, source) {
|
|
21687
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
21688
|
-
acc[key] = source[key];
|
|
21689
|
-
return acc;
|
|
21690
|
-
}, target);
|
|
21691
|
-
};
|
|
21692
|
-
|
|
21693
|
-
var decode = function (str, defaultDecoder, charset) {
|
|
21694
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
21695
|
-
if (charset === 'iso-8859-1') {
|
|
21696
|
-
// unescape never throws, no try...catch needed:
|
|
21697
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21698
|
-
}
|
|
21699
|
-
// utf-8
|
|
21700
|
-
try {
|
|
21701
|
-
return decodeURIComponent(strWithoutPlus);
|
|
21702
|
-
} catch (e) {
|
|
21703
|
-
return strWithoutPlus;
|
|
21704
|
-
}
|
|
21705
|
-
};
|
|
21706
|
-
|
|
21707
|
-
var limit = 1024;
|
|
21708
|
-
|
|
21709
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
21710
|
-
|
|
21711
|
-
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
21712
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
21713
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
21714
|
-
if (str.length === 0) {
|
|
21715
|
-
return str;
|
|
21716
21814
|
}
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
string = String(str);
|
|
21815
|
+
return errorMsg;
|
|
21816
|
+
}
|
|
21817
|
+
function convertProductData(prodData) {
|
|
21818
|
+
if (!prodData) {
|
|
21819
|
+
return prodData;
|
|
21723
21820
|
}
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
21727
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
21728
|
-
});
|
|
21821
|
+
if (!prodData.mulInsOrderList) {
|
|
21822
|
+
return prodData;
|
|
21729
21823
|
}
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
21737
|
-
var c = segment.charCodeAt(i);
|
|
21738
|
-
if (
|
|
21739
|
-
c === 0x2D // -
|
|
21740
|
-
|| c === 0x2E // .
|
|
21741
|
-
|| c === 0x5F // _
|
|
21742
|
-
|| c === 0x7E // ~
|
|
21743
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
21744
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
21745
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
21746
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
21747
|
-
) {
|
|
21748
|
-
arr[arr.length] = segment.charAt(i);
|
|
21749
|
-
continue;
|
|
21750
|
-
}
|
|
21751
|
-
|
|
21752
|
-
if (c < 0x80) {
|
|
21753
|
-
arr[arr.length] = hexTable[c];
|
|
21754
|
-
continue;
|
|
21755
|
-
}
|
|
21756
|
-
|
|
21757
|
-
if (c < 0x800) {
|
|
21758
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
21759
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21760
|
-
continue;
|
|
21761
|
-
}
|
|
21762
|
-
|
|
21763
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
21764
|
-
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
21765
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21766
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21767
|
-
continue;
|
|
21768
|
-
}
|
|
21769
|
-
|
|
21770
|
-
i += 1;
|
|
21771
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
21772
|
-
|
|
21773
|
-
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
21774
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
21775
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21776
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21824
|
+
var productData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, prodData), { common: {}, mulInsOrderList: [] });
|
|
21825
|
+
prodData.mulInsOrderList.forEach(function (insurance) {
|
|
21826
|
+
var insuranceData = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(insurance);
|
|
21827
|
+
if (insuranceData.key == 'common') {
|
|
21828
|
+
productData.common = insuranceData;
|
|
21829
|
+
return;
|
|
21777
21830
|
}
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
var key = keys[j];
|
|
21796
|
-
var val = obj[key];
|
|
21797
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
21798
|
-
queue.push({ obj: obj, prop: key });
|
|
21799
|
-
refs.push(val);
|
|
21831
|
+
if (insuranceData.title && !insuranceData.groupKey) {
|
|
21832
|
+
if (insuranceData.isGroup) {
|
|
21833
|
+
var insuranceId = insuranceData.insuranceId.constructor == Array ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
21834
|
+
insuranceId.forEach(function (insId) {
|
|
21835
|
+
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
21836
|
+
if (checkedIns) {
|
|
21837
|
+
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
21838
|
+
insurance.eleOrderList &&
|
|
21839
|
+
insurance.eleOrderList.forEach(function (ele) {
|
|
21840
|
+
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
21841
|
+
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
21842
|
+
}
|
|
21843
|
+
});
|
|
21844
|
+
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
21845
|
+
}
|
|
21846
|
+
});
|
|
21847
|
+
return;
|
|
21800
21848
|
}
|
|
21849
|
+
productData.mulInsOrderList.push(insuranceData);
|
|
21801
21850
|
}
|
|
21851
|
+
});
|
|
21852
|
+
return productData;
|
|
21853
|
+
}
|
|
21854
|
+
function clearAddAndTakeAndAdjustBaoeData(productData) {
|
|
21855
|
+
if (!productData) {
|
|
21856
|
+
return productData;
|
|
21802
21857
|
}
|
|
21803
|
-
|
|
21804
|
-
|
|
21805
|
-
|
|
21806
|
-
return value;
|
|
21807
|
-
};
|
|
21808
|
-
|
|
21809
|
-
var isRegExp = function isRegExp(obj) {
|
|
21810
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
21811
|
-
};
|
|
21812
|
-
|
|
21813
|
-
var isBuffer = function isBuffer(obj) {
|
|
21814
|
-
if (!obj || typeof obj !== 'object') {
|
|
21815
|
-
return false;
|
|
21858
|
+
if (!productData.mulInsOrderList) {
|
|
21859
|
+
return productData;
|
|
21816
21860
|
}
|
|
21817
|
-
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
};
|
|
21824
|
-
|
|
21825
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
21826
|
-
if (isArray(val)) {
|
|
21827
|
-
var mapped = [];
|
|
21828
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
21829
|
-
mapped.push(fn(val[i]));
|
|
21861
|
+
productData.adjustBaoeData = null;
|
|
21862
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
21863
|
+
if (ins.accountData && ins.accountData.addAndTakeData) {
|
|
21864
|
+
ins.accountData.addAndTakeData.forEach(function (aat) {
|
|
21865
|
+
aat.adjustData = [];
|
|
21866
|
+
});
|
|
21830
21867
|
}
|
|
21831
|
-
|
|
21832
|
-
|
|
21833
|
-
|
|
21834
|
-
};
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
|
|
21839
|
-
combine: combine,
|
|
21840
|
-
compact: compact,
|
|
21841
|
-
decode: decode,
|
|
21842
|
-
encode: encode,
|
|
21843
|
-
isBuffer: isBuffer,
|
|
21844
|
-
isRegExp: isRegExp,
|
|
21845
|
-
maybeMap: maybeMap,
|
|
21846
|
-
merge: merge
|
|
21847
|
-
};
|
|
21868
|
+
if (ins.reduceBaof && ins.reduceBaofData) {
|
|
21869
|
+
ins.reduceBaofData.addAndTakeData.forEach(function (aat) {
|
|
21870
|
+
aat.adjustData = [];
|
|
21871
|
+
});
|
|
21872
|
+
}
|
|
21873
|
+
});
|
|
21874
|
+
return productData;
|
|
21875
|
+
}
|
|
21848
21876
|
|
|
21849
21877
|
|
|
21850
21878
|
/***/ }),
|
|
@@ -21884,8 +21912,8 @@ module.exports = function(module) {
|
|
|
21884
21912
|
|
|
21885
21913
|
|
|
21886
21914
|
var getSideChannel = __webpack_require__(40);
|
|
21887
|
-
var utils = __webpack_require__(
|
|
21888
|
-
var formats = __webpack_require__(
|
|
21915
|
+
var utils = __webpack_require__(35);
|
|
21916
|
+
var formats = __webpack_require__(23);
|
|
21889
21917
|
var has = Object.prototype.hasOwnProperty;
|
|
21890
21918
|
|
|
21891
21919
|
var arrayPrefixGenerators = {
|
|
@@ -22247,9 +22275,9 @@ module.exports = function (object, opts) {
|
|
|
22247
22275
|
|
|
22248
22276
|
|
|
22249
22277
|
var $TypeError = __webpack_require__(9);
|
|
22250
|
-
var inspect = __webpack_require__(
|
|
22278
|
+
var inspect = __webpack_require__(16);
|
|
22251
22279
|
var getSideChannelList = __webpack_require__(42);
|
|
22252
|
-
var getSideChannelMap = __webpack_require__(
|
|
22280
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
22253
22281
|
var getSideChannelWeakMap = __webpack_require__(67);
|
|
22254
22282
|
|
|
22255
22283
|
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
@@ -22302,7 +22330,7 @@ module.exports = function getSideChannel() {
|
|
|
22302
22330
|
"use strict";
|
|
22303
22331
|
|
|
22304
22332
|
|
|
22305
|
-
var inspect = __webpack_require__(
|
|
22333
|
+
var inspect = __webpack_require__(16);
|
|
22306
22334
|
|
|
22307
22335
|
var $TypeError = __webpack_require__(9);
|
|
22308
22336
|
|
|
@@ -22690,8 +22718,8 @@ module.exports = function hasSymbols() {
|
|
|
22690
22718
|
"use strict";
|
|
22691
22719
|
|
|
22692
22720
|
|
|
22693
|
-
var reflectGetProto = __webpack_require__(
|
|
22694
|
-
var originalGetProto = __webpack_require__(
|
|
22721
|
+
var reflectGetProto = __webpack_require__(30);
|
|
22722
|
+
var originalGetProto = __webpack_require__(31);
|
|
22695
22723
|
|
|
22696
22724
|
var getDunderProto = __webpack_require__(62);
|
|
22697
22725
|
|
|
@@ -22724,8 +22752,8 @@ module.exports = reflectGetProto
|
|
|
22724
22752
|
"use strict";
|
|
22725
22753
|
|
|
22726
22754
|
|
|
22727
|
-
var callBind = __webpack_require__(
|
|
22728
|
-
var gOPD = __webpack_require__(
|
|
22755
|
+
var callBind = __webpack_require__(32);
|
|
22756
|
+
var gOPD = __webpack_require__(29);
|
|
22729
22757
|
|
|
22730
22758
|
var hasProtoAccessor;
|
|
22731
22759
|
try {
|
|
@@ -22852,10 +22880,10 @@ module.exports = function bind(that) {
|
|
|
22852
22880
|
"use strict";
|
|
22853
22881
|
|
|
22854
22882
|
|
|
22855
|
-
var bind = __webpack_require__(
|
|
22883
|
+
var bind = __webpack_require__(17);
|
|
22856
22884
|
|
|
22857
|
-
var $apply = __webpack_require__(
|
|
22858
|
-
var $call = __webpack_require__(
|
|
22885
|
+
var $apply = __webpack_require__(33);
|
|
22886
|
+
var $call = __webpack_require__(22);
|
|
22859
22887
|
var $reflectApply = __webpack_require__(65);
|
|
22860
22888
|
|
|
22861
22889
|
/** @type {import('./actualApply')} */
|
|
@@ -22882,7 +22910,7 @@ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
|
22882
22910
|
|
|
22883
22911
|
var call = Function.prototype.call;
|
|
22884
22912
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
22885
|
-
var bind = __webpack_require__(
|
|
22913
|
+
var bind = __webpack_require__(17);
|
|
22886
22914
|
|
|
22887
22915
|
/** @type {import('.')} */
|
|
22888
22916
|
module.exports = bind.call(call, $hasOwn);
|
|
@@ -22895,10 +22923,10 @@ module.exports = bind.call(call, $hasOwn);
|
|
|
22895
22923
|
"use strict";
|
|
22896
22924
|
|
|
22897
22925
|
|
|
22898
|
-
var GetIntrinsic = __webpack_require__(
|
|
22899
|
-
var callBound = __webpack_require__(
|
|
22900
|
-
var inspect = __webpack_require__(
|
|
22901
|
-
var getSideChannelMap = __webpack_require__(
|
|
22926
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
22927
|
+
var callBound = __webpack_require__(34);
|
|
22928
|
+
var inspect = __webpack_require__(16);
|
|
22929
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
22902
22930
|
|
|
22903
22931
|
var $TypeError = __webpack_require__(9);
|
|
22904
22932
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
@@ -22986,7 +23014,7 @@ module.exports = $WeakMap
|
|
|
22986
23014
|
"use strict";
|
|
22987
23015
|
|
|
22988
23016
|
|
|
22989
|
-
var utils = __webpack_require__(
|
|
23017
|
+
var utils = __webpack_require__(35);
|
|
22990
23018
|
|
|
22991
23019
|
var has = Object.prototype.hasOwnProperty;
|
|
22992
23020
|
var isArray = Array.isArray;
|
|
@@ -23877,7 +23905,7 @@ module.exports = __webpack_require__(84);
|
|
|
23877
23905
|
/* 80 */
|
|
23878
23906
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23879
23907
|
|
|
23880
|
-
var _typeof = __webpack_require__(
|
|
23908
|
+
var _typeof = __webpack_require__(14)["default"];
|
|
23881
23909
|
function _regeneratorRuntime() {
|
|
23882
23910
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
23883
23911
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|