bxs-tools-ui 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/add-and-take/index.js +1301 -1231
- package/lib/adjust-baoe/index.js +1297 -1269
- package/lib/business-card/index.js +2 -2
- package/lib/bxs-utils/index.js +1292 -1253
- package/lib/canvas-poster/index.js +2 -2
- package/lib/index.js +1603 -1569
- package/lib/insure-calculate/index.js +1303 -1262
- package/lib/person-info/index.js +1298 -1259
- package/lib/product-info/index.js +694 -651
- package/package.json +1 -1
- package/packages/add-and-take/api.ts +2 -3
- package/packages/adjust-baoe/demo/index.vue +4 -14
- package/packages/adjust-baoe/index.vue +6 -30
- package/packages/bxs-utils/planbook/product.ts +12 -2
- package/packages/bxs-utils/trade/insureCalculate.js +3 -16
- package/packages/insure-calculate/demo/index.vue +1 -1
- package/packages/insure-calculate/index.vue +11 -40
- package/packages/person-info/demo/index.vue +3 -7
- package/packages/planbook-input/api.js +2 -1
- package/packages/planbook-input/components/product-table.vue +0 -1
- package/packages/planbook-input/helper.js +5 -11
- package/packages/planbook-input/index.vue +16 -20
- package/packages/product-info/demo/index.vue +4 -10
- package/packages/product-info/index.vue +2 -2
- package/src/js/variables.js +34 -8
package/lib/adjust-baoe/index.js
CHANGED
|
@@ -18490,7 +18490,7 @@ function isPromise(obj) {
|
|
|
18490
18490
|
else {}
|
|
18491
18491
|
}.call(this));
|
|
18492
18492
|
|
|
18493
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
18493
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26), __webpack_require__(38)(module)))
|
|
18494
18494
|
|
|
18495
18495
|
/***/ }),
|
|
18496
18496
|
/* 4 */
|
|
@@ -18509,6 +18509,63 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__5__;
|
|
|
18509
18509
|
/* 7 */
|
|
18510
18510
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18511
18511
|
|
|
18512
|
+
"use strict";
|
|
18513
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return IS_PRODUCT_ENV; });
|
|
18514
|
+
/* unused harmony export IS_DEVELOP_ENV */
|
|
18515
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IS_LOCALHOST_ENV; });
|
|
18516
|
+
/* unused harmony export IS_UAT_ENV */
|
|
18517
|
+
/* unused harmony export IS_ENABLE_DEBUG */
|
|
18518
|
+
/* unused harmony export MAIN_DOMAIN */
|
|
18519
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return APP_HOSTNAME; });
|
|
18520
|
+
/* unused harmony export CONTENT_HOSTNAME */
|
|
18521
|
+
/* unused harmony export CLIENT_HOSTNAME */
|
|
18522
|
+
/* unused harmony export TOOL_API_HOSTNAME */
|
|
18523
|
+
/* unused harmony export INTERACTION_HOSTNAME */
|
|
18524
|
+
/* unused harmony export PBF_HOSTNAME */
|
|
18525
|
+
/* unused harmony export POLICY_INSPECTION_HOSTNAME */
|
|
18526
|
+
/* unused harmony export BROKER_HOSTNAME */
|
|
18527
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return PLANBOOK_API_HOSTNAME; });
|
|
18528
|
+
/* unused harmony export CRM_HOSTNAME */
|
|
18529
|
+
/* unused harmony export WX_HOSTNAME */
|
|
18530
|
+
/* unused harmony export URL_PARAM */
|
|
18531
|
+
/* unused harmony export getUrlParams */
|
|
18532
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
18533
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
18534
|
+
|
|
18535
|
+
var hostname = window && window.location && window.location.hostname || '';
|
|
18536
|
+
var IS_PRODUCT_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.com/) !== -1;
|
|
18537
|
+
var IS_DEVELOP_ENV = hostname.search(/(winbaoxian|ai-baoxiaozhu)\.cn/) !== -1;
|
|
18538
|
+
var IS_LOCALHOST_ENV = hostname.search(/localhost|192\.168|127\.0\.0\.1|dev\.winbaoxian\.cn/) !== -1;
|
|
18539
|
+
var IS_UAT_ENV = hostname.includes("pbf-uat.");
|
|
18540
|
+
var IS_ENABLE_DEBUG = !IS_PRODUCT_ENV;
|
|
18541
|
+
if (IS_ENABLE_DEBUG) {
|
|
18542
|
+
console.error("\u975E\u7EBF\u4E0A\u73AF\u5883\uFF0C\u9ED8\u8BA4\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F");
|
|
18543
|
+
}
|
|
18544
|
+
var topDomain = IS_PRODUCT_ENV ? 'com' : 'cn';
|
|
18545
|
+
var secondDomain = hostname.includes('ai-baoxiaozhu') ? 'ai-baoxiaozhu' : 'winbaoxian';
|
|
18546
|
+
var MAIN_DOMAIN = "".concat(secondDomain, ".").concat(topDomain);
|
|
18547
|
+
var APP_HOSTNAME = "https://app.".concat(MAIN_DOMAIN);
|
|
18548
|
+
var CONTENT_HOSTNAME = "https://content.".concat(MAIN_DOMAIN);
|
|
18549
|
+
var CLIENT_HOSTNAME = "https://client.".concat(MAIN_DOMAIN);
|
|
18550
|
+
var TOOL_API_HOSTNAME = "https://tool-api.".concat(MAIN_DOMAIN);
|
|
18551
|
+
var INTERACTION_HOSTNAME = "https://interaction-api.".concat(MAIN_DOMAIN);
|
|
18552
|
+
var PBF_HOSTNAME = "https://pbf.".concat(MAIN_DOMAIN);
|
|
18553
|
+
var POLICY_INSPECTION_HOSTNAME = "https://policy-inspection.".concat(MAIN_DOMAIN);
|
|
18554
|
+
var BROKER_HOSTNAME = "https://broker-2a.wyins.net".concat(IS_PRODUCT_ENV ? '' : '.cn');
|
|
18555
|
+
var PLANBOOK_API_HOSTNAME = "https://bxs-planbook-api".concat(IS_UAT_ENV ? '-uat' : '', ".").concat(MAIN_DOMAIN);
|
|
18556
|
+
var CRM_HOSTNAME = "https://wechat-crm.".concat(MAIN_DOMAIN);
|
|
18557
|
+
var WX_HOSTNAME = "https://wx.".concat(MAIN_DOMAIN);
|
|
18558
|
+
var URL_PARAM = getUrlParams();
|
|
18559
|
+
function getUrlParams(url) {
|
|
18560
|
+
var _url = url || location.search || '';
|
|
18561
|
+
var _searchStr = _url.split('?')[1];
|
|
18562
|
+
return _searchStr ? qs__WEBPACK_IMPORTED_MODULE_0___default.a.parse(_searchStr) : {};
|
|
18563
|
+
}
|
|
18564
|
+
|
|
18565
|
+
/***/ }),
|
|
18566
|
+
/* 8 */
|
|
18567
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18568
|
+
|
|
18512
18569
|
"use strict";
|
|
18513
18570
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
18514
18571
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -18610,8 +18667,8 @@ function normalizeComponent(
|
|
|
18610
18667
|
|
|
18611
18668
|
|
|
18612
18669
|
/***/ }),
|
|
18613
|
-
/*
|
|
18614
|
-
/*
|
|
18670
|
+
/* 9 */,
|
|
18671
|
+
/* 10 */
|
|
18615
18672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18616
18673
|
|
|
18617
18674
|
"use strict";
|
|
@@ -18622,7 +18679,7 @@ module.exports = TypeError;
|
|
|
18622
18679
|
|
|
18623
18680
|
|
|
18624
18681
|
/***/ }),
|
|
18625
|
-
/*
|
|
18682
|
+
/* 11 */
|
|
18626
18683
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18627
18684
|
|
|
18628
18685
|
"use strict";
|
|
@@ -18890,7 +18947,7 @@ function restrictElementsInInsurance(_a) {
|
|
|
18890
18947
|
|
|
18891
18948
|
|
|
18892
18949
|
/***/ }),
|
|
18893
|
-
/*
|
|
18950
|
+
/* 12 */
|
|
18894
18951
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18895
18952
|
|
|
18896
18953
|
"use strict";
|
|
@@ -19202,9 +19259,27 @@ function convertPersonData(allPersonsData, type) {
|
|
|
19202
19259
|
|
|
19203
19260
|
|
|
19204
19261
|
/***/ }),
|
|
19205
|
-
/* 12 */,
|
|
19206
19262
|
/* 13 */,
|
|
19207
|
-
/* 14
|
|
19263
|
+
/* 14 */,
|
|
19264
|
+
/* 15 */
|
|
19265
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
19266
|
+
|
|
19267
|
+
"use strict";
|
|
19268
|
+
|
|
19269
|
+
|
|
19270
|
+
var stringify = __webpack_require__(39);
|
|
19271
|
+
var parse = __webpack_require__(68);
|
|
19272
|
+
var formats = __webpack_require__(23);
|
|
19273
|
+
|
|
19274
|
+
module.exports = {
|
|
19275
|
+
formats: formats,
|
|
19276
|
+
parse: parse,
|
|
19277
|
+
stringify: stringify
|
|
19278
|
+
};
|
|
19279
|
+
|
|
19280
|
+
|
|
19281
|
+
/***/ }),
|
|
19282
|
+
/* 16 */
|
|
19208
19283
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19209
19284
|
|
|
19210
19285
|
/* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype;
|
|
@@ -19752,10 +19827,10 @@ function arrObjKeys(obj, inspect) {
|
|
|
19752
19827
|
return xs;
|
|
19753
19828
|
}
|
|
19754
19829
|
|
|
19755
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19830
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26)))
|
|
19756
19831
|
|
|
19757
19832
|
/***/ }),
|
|
19758
|
-
/*
|
|
19833
|
+
/* 17 */
|
|
19759
19834
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19760
19835
|
|
|
19761
19836
|
"use strict";
|
|
@@ -19767,9 +19842,9 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
19767
19842
|
|
|
19768
19843
|
|
|
19769
19844
|
/***/ }),
|
|
19770
|
-
/*
|
|
19771
|
-
/*
|
|
19772
|
-
/*
|
|
19845
|
+
/* 18 */,
|
|
19846
|
+
/* 19 */,
|
|
19847
|
+
/* 20 */
|
|
19773
19848
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19774
19849
|
|
|
19775
19850
|
"use strict";
|
|
@@ -19790,7 +19865,7 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
19790
19865
|
|
|
19791
19866
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["h"]; });
|
|
19792
19867
|
|
|
19793
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
19868
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
|
19794
19869
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
19795
19870
|
|
|
19796
19871
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "l", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
@@ -19801,7 +19876,7 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
19801
19876
|
|
|
19802
19877
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["e"]; });
|
|
19803
19878
|
|
|
19804
|
-
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
19879
|
+
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
19805
19880
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
19806
19881
|
|
|
19807
19882
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
@@ -19822,7 +19897,7 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
19822
19897
|
|
|
19823
19898
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "A", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["j"]; });
|
|
19824
19899
|
|
|
19825
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
19900
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11);
|
|
19826
19901
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "n", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
19827
19902
|
|
|
19828
19903
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "o", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["b"]; });
|
|
@@ -19841,7 +19916,7 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
19841
19916
|
|
|
19842
19917
|
|
|
19843
19918
|
/***/ }),
|
|
19844
|
-
/*
|
|
19919
|
+
/* 21 */
|
|
19845
19920
|
/***/ (function(module, exports, __webpack_require__) {
|
|
19846
19921
|
|
|
19847
19922
|
"use strict";
|
|
@@ -19849,14 +19924,14 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
|
|
|
19849
19924
|
|
|
19850
19925
|
var undefined;
|
|
19851
19926
|
|
|
19852
|
-
var $Object = __webpack_require__(
|
|
19927
|
+
var $Object = __webpack_require__(28);
|
|
19853
19928
|
|
|
19854
19929
|
var $Error = __webpack_require__(43);
|
|
19855
19930
|
var $EvalError = __webpack_require__(44);
|
|
19856
19931
|
var $RangeError = __webpack_require__(45);
|
|
19857
19932
|
var $ReferenceError = __webpack_require__(46);
|
|
19858
19933
|
var $SyntaxError = __webpack_require__(47);
|
|
19859
|
-
var $TypeError = __webpack_require__(
|
|
19934
|
+
var $TypeError = __webpack_require__(10);
|
|
19860
19935
|
var $URIError = __webpack_require__(48);
|
|
19861
19936
|
|
|
19862
19937
|
var abs = __webpack_require__(49);
|
|
@@ -19876,7 +19951,7 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
19876
19951
|
} catch (e) {}
|
|
19877
19952
|
};
|
|
19878
19953
|
|
|
19879
|
-
var $gOPD = __webpack_require__(
|
|
19954
|
+
var $gOPD = __webpack_require__(29);
|
|
19880
19955
|
var $defineProperty = __webpack_require__(58);
|
|
19881
19956
|
|
|
19882
19957
|
var throwTypeError = function () {
|
|
@@ -19902,11 +19977,11 @@ var ThrowTypeError = $gOPD
|
|
|
19902
19977
|
var hasSymbols = __webpack_require__(59)();
|
|
19903
19978
|
|
|
19904
19979
|
var getProto = __webpack_require__(61);
|
|
19905
|
-
var $ObjectGPO = __webpack_require__(
|
|
19906
|
-
var $ReflectGPO = __webpack_require__(
|
|
19980
|
+
var $ObjectGPO = __webpack_require__(31);
|
|
19981
|
+
var $ReflectGPO = __webpack_require__(30);
|
|
19907
19982
|
|
|
19908
|
-
var $apply = __webpack_require__(
|
|
19909
|
-
var $call = __webpack_require__(
|
|
19983
|
+
var $apply = __webpack_require__(33);
|
|
19984
|
+
var $call = __webpack_require__(22);
|
|
19910
19985
|
|
|
19911
19986
|
var needsEval = {};
|
|
19912
19987
|
|
|
@@ -20087,7 +20162,7 @@ var LEGACY_ALIASES = {
|
|
|
20087
20162
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
20088
20163
|
};
|
|
20089
20164
|
|
|
20090
|
-
var bind = __webpack_require__(
|
|
20165
|
+
var bind = __webpack_require__(17);
|
|
20091
20166
|
var hasOwn = __webpack_require__(66);
|
|
20092
20167
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
20093
20168
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -20226,7 +20301,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20226
20301
|
|
|
20227
20302
|
|
|
20228
20303
|
/***/ }),
|
|
20229
|
-
/*
|
|
20304
|
+
/* 22 */
|
|
20230
20305
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20231
20306
|
|
|
20232
20307
|
"use strict";
|
|
@@ -20237,7 +20312,7 @@ module.exports = Function.prototype.call;
|
|
|
20237
20312
|
|
|
20238
20313
|
|
|
20239
20314
|
/***/ }),
|
|
20240
|
-
/*
|
|
20315
|
+
/* 23 */
|
|
20241
20316
|
/***/ (function(module, exports, __webpack_require__) {
|
|
20242
20317
|
|
|
20243
20318
|
"use strict";
|
|
@@ -20267,27 +20342,9 @@ module.exports = {
|
|
|
20267
20342
|
|
|
20268
20343
|
|
|
20269
20344
|
/***/ }),
|
|
20270
|
-
/* 22 */
|
|
20271
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
20272
|
-
|
|
20273
|
-
"use strict";
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
var stringify = __webpack_require__(39);
|
|
20277
|
-
var parse = __webpack_require__(68);
|
|
20278
|
-
var formats = __webpack_require__(21);
|
|
20279
|
-
|
|
20280
|
-
module.exports = {
|
|
20281
|
-
formats: formats,
|
|
20282
|
-
parse: parse,
|
|
20283
|
-
stringify: stringify
|
|
20284
|
-
};
|
|
20285
|
-
|
|
20286
|
-
|
|
20287
|
-
/***/ }),
|
|
20288
|
-
/* 23 */,
|
|
20289
20345
|
/* 24 */,
|
|
20290
|
-
/* 25
|
|
20346
|
+
/* 25 */,
|
|
20347
|
+
/* 26 */
|
|
20291
20348
|
/***/ (function(module, exports) {
|
|
20292
20349
|
|
|
20293
20350
|
var g;
|
|
@@ -20313,1253 +20370,1244 @@ module.exports = g;
|
|
|
20313
20370
|
|
|
20314
20371
|
|
|
20315
20372
|
/***/ }),
|
|
20316
|
-
/*
|
|
20317
|
-
/***/ (function(module,
|
|
20373
|
+
/* 27 */
|
|
20374
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20318
20375
|
|
|
20319
20376
|
"use strict";
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
var
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
var
|
|
20331
|
-
|
|
20332
|
-
var
|
|
20333
|
-
|
|
20377
|
+
|
|
20378
|
+
|
|
20379
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
20380
|
+
var callBound = __webpack_require__(34);
|
|
20381
|
+
var inspect = __webpack_require__(16);
|
|
20382
|
+
|
|
20383
|
+
var $TypeError = __webpack_require__(10);
|
|
20384
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
20385
|
+
|
|
20386
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
20387
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
20388
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
20389
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
20390
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
20391
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
20392
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
20393
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
20394
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
20395
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
20396
|
+
|
|
20397
|
+
/** @type {import('.')} */
|
|
20398
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
20399
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
20400
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
20401
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
20402
|
+
|
|
20403
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
20404
|
+
|
|
20405
|
+
/** @type {Channel} */
|
|
20406
|
+
var channel = {
|
|
20407
|
+
assert: function (key) {
|
|
20408
|
+
if (!channel.has(key)) {
|
|
20409
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
20410
|
+
}
|
|
20411
|
+
},
|
|
20412
|
+
'delete': function (key) {
|
|
20413
|
+
if ($m) {
|
|
20414
|
+
var result = $mapDelete($m, key);
|
|
20415
|
+
if ($mapSize($m) === 0) {
|
|
20416
|
+
$m = void undefined;
|
|
20417
|
+
}
|
|
20418
|
+
return result;
|
|
20419
|
+
}
|
|
20420
|
+
return false;
|
|
20421
|
+
},
|
|
20422
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
20423
|
+
if ($m) {
|
|
20424
|
+
return $mapGet($m, key);
|
|
20425
|
+
}
|
|
20426
|
+
},
|
|
20427
|
+
has: function (key) {
|
|
20428
|
+
if ($m) {
|
|
20429
|
+
return $mapHas($m, key);
|
|
20430
|
+
}
|
|
20431
|
+
return false;
|
|
20432
|
+
},
|
|
20433
|
+
set: function (key, value) {
|
|
20434
|
+
if (!$m) {
|
|
20435
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
20436
|
+
$m = new $Map();
|
|
20437
|
+
}
|
|
20438
|
+
$mapSet($m, key, value);
|
|
20439
|
+
}
|
|
20440
|
+
};
|
|
20441
|
+
|
|
20442
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
20443
|
+
return channel;
|
|
20444
|
+
};
|
|
20445
|
+
|
|
20334
20446
|
|
|
20335
20447
|
/***/ }),
|
|
20336
|
-
/*
|
|
20337
|
-
/***/ (function(module,
|
|
20448
|
+
/* 28 */
|
|
20449
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20338
20450
|
|
|
20339
20451
|
"use strict";
|
|
20340
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
20341
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
20342
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
20343
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
20344
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
20345
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
20346
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
20347
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
20348
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
20349
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
20350
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
20351
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
20352
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
20353
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
20354
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
20355
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
20356
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
|
|
20357
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
20358
20452
|
|
|
20359
20453
|
|
|
20454
|
+
/** @type {import('.')} */
|
|
20455
|
+
module.exports = Object;
|
|
20360
20456
|
|
|
20361
20457
|
|
|
20458
|
+
/***/ }),
|
|
20459
|
+
/* 29 */
|
|
20460
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20362
20461
|
|
|
20462
|
+
"use strict";
|
|
20363
20463
|
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20372
|
-
|
|
20373
|
-
|
|
20374
|
-
|
|
20375
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* initInsuranceData */ "b"])(ins);
|
|
20376
|
-
});
|
|
20377
|
-
return prodData;
|
|
20464
|
+
|
|
20465
|
+
/** @type {import('.')} */
|
|
20466
|
+
var $gOPD = __webpack_require__(57);
|
|
20467
|
+
|
|
20468
|
+
if ($gOPD) {
|
|
20469
|
+
try {
|
|
20470
|
+
$gOPD([], 'length');
|
|
20471
|
+
} catch (e) {
|
|
20472
|
+
// IE 8 has a broken gOPD
|
|
20473
|
+
$gOPD = null;
|
|
20474
|
+
}
|
|
20378
20475
|
}
|
|
20379
|
-
|
|
20380
|
-
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
20483
|
-
}
|
|
20484
|
-
else {
|
|
20485
|
-
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
20486
|
-
}
|
|
20487
|
-
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
20488
|
-
if (refEleData) {
|
|
20489
|
-
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
20490
|
-
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
20491
|
-
}
|
|
20492
|
-
else {
|
|
20493
|
-
eleData.value = refEleData.value;
|
|
20494
|
-
}
|
|
20495
|
-
}
|
|
20496
|
-
else {
|
|
20497
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20498
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
20499
|
-
}
|
|
20500
|
-
}
|
|
20501
|
-
}
|
|
20502
|
-
else {
|
|
20503
|
-
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
20504
|
-
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
20505
|
-
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
20506
|
-
return {
|
|
20507
|
-
val: c.value,
|
|
20508
|
-
desc: c.desc || c.value,
|
|
20509
|
-
isHide: (option && option.isHide) || null,
|
|
20510
|
-
isDisabled: (option && option.isDisabled) || null,
|
|
20511
|
-
isInvalid: null
|
|
20512
|
-
};
|
|
20513
|
-
});
|
|
20514
|
-
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
20515
|
-
if (isNoOption) {
|
|
20516
|
-
if (eleData.key === 'pPeriod') {
|
|
20517
|
-
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
20518
|
-
if (filterOpts && filterOpts.length) {
|
|
20519
|
-
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
20520
|
-
}
|
|
20521
|
-
}
|
|
20522
|
-
else {
|
|
20523
|
-
if (eleData.opts && eleData.opts.length) {
|
|
20524
|
-
eleData.value = eleData.opts[0].val;
|
|
20525
|
-
}
|
|
20526
|
-
}
|
|
20527
|
-
}
|
|
20528
|
-
}
|
|
20529
|
-
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
20530
|
-
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
20531
|
-
var prevElement;
|
|
20532
|
-
if (eleIndex >= 1) {
|
|
20533
|
-
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
20534
|
-
}
|
|
20535
|
-
if (prevElement) {
|
|
20536
|
-
if (!curCondition) {
|
|
20537
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
20538
|
-
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; }); });
|
|
20539
|
-
if (onePrevEleVerify) {
|
|
20540
|
-
prevElement.value = onePrevEleVerify.value;
|
|
20541
|
-
curCondition = onePrevEleVerify[eleData.key];
|
|
20542
|
-
}
|
|
20543
|
-
}
|
|
20544
|
-
if (!curCondition) {
|
|
20545
|
-
eleTitle.isDisabled = true;
|
|
20546
|
-
eleTitle.value = false;
|
|
20547
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20548
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
20549
|
-
}
|
|
20550
|
-
}
|
|
20551
|
-
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
20552
|
-
if (isNeedReverseFilter) {
|
|
20553
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
20554
|
-
if (prevEleVerify) {
|
|
20555
|
-
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
20556
|
-
var _a;
|
|
20557
|
-
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
20558
|
-
insuranceKey: ins.key,
|
|
20559
|
-
elementKey: eleData.key
|
|
20560
|
-
},
|
|
20561
|
-
_a[prevElement.key] = v.value,
|
|
20562
|
-
_a));
|
|
20563
|
-
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
20564
|
-
}).map(function (v) { return ({
|
|
20565
|
-
val: v.value,
|
|
20566
|
-
desc: v.desc || v.value,
|
|
20567
|
-
isHide: null,
|
|
20568
|
-
isDisabled: null,
|
|
20569
|
-
isInvalid: null
|
|
20570
|
-
}); });
|
|
20571
|
-
}
|
|
20572
|
-
}
|
|
20573
|
-
}
|
|
20574
|
-
};
|
|
20575
|
-
do {
|
|
20576
|
-
var state_1 = _loop_1();
|
|
20577
|
-
if (state_1 === "break")
|
|
20578
|
-
break;
|
|
20579
|
-
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
20580
|
-
});
|
|
20581
|
-
}
|
|
20582
|
-
setGroupInsurance(prodData);
|
|
20583
|
-
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
20584
|
-
return [2, prodData];
|
|
20585
|
-
}
|
|
20586
|
-
});
|
|
20587
|
-
});
|
|
20588
|
-
}
|
|
20589
|
-
function multipleInsuredHandler(personData) {
|
|
20590
|
-
var personOrderList = personData.personOrderList;
|
|
20591
|
-
if (!(personOrderList && personOrderList.length)) {
|
|
20592
|
-
return null;
|
|
20476
|
+
|
|
20477
|
+
module.exports = $gOPD;
|
|
20478
|
+
|
|
20479
|
+
|
|
20480
|
+
/***/ }),
|
|
20481
|
+
/* 30 */
|
|
20482
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20483
|
+
|
|
20484
|
+
"use strict";
|
|
20485
|
+
|
|
20486
|
+
|
|
20487
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
20488
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
20489
|
+
|
|
20490
|
+
|
|
20491
|
+
/***/ }),
|
|
20492
|
+
/* 31 */
|
|
20493
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20494
|
+
|
|
20495
|
+
"use strict";
|
|
20496
|
+
|
|
20497
|
+
|
|
20498
|
+
var $Object = __webpack_require__(28);
|
|
20499
|
+
|
|
20500
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
20501
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
20502
|
+
|
|
20503
|
+
|
|
20504
|
+
/***/ }),
|
|
20505
|
+
/* 32 */
|
|
20506
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20507
|
+
|
|
20508
|
+
"use strict";
|
|
20509
|
+
|
|
20510
|
+
|
|
20511
|
+
var bind = __webpack_require__(17);
|
|
20512
|
+
var $TypeError = __webpack_require__(10);
|
|
20513
|
+
|
|
20514
|
+
var $call = __webpack_require__(22);
|
|
20515
|
+
var $actualApply = __webpack_require__(64);
|
|
20516
|
+
|
|
20517
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
20518
|
+
module.exports = function callBindBasic(args) {
|
|
20519
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
20520
|
+
throw new $TypeError('a function is required');
|
|
20521
|
+
}
|
|
20522
|
+
return $actualApply(bind, $call, args);
|
|
20523
|
+
};
|
|
20524
|
+
|
|
20525
|
+
|
|
20526
|
+
/***/ }),
|
|
20527
|
+
/* 33 */
|
|
20528
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20529
|
+
|
|
20530
|
+
"use strict";
|
|
20531
|
+
|
|
20532
|
+
|
|
20533
|
+
/** @type {import('./functionApply')} */
|
|
20534
|
+
module.exports = Function.prototype.apply;
|
|
20535
|
+
|
|
20536
|
+
|
|
20537
|
+
/***/ }),
|
|
20538
|
+
/* 34 */
|
|
20539
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20540
|
+
|
|
20541
|
+
"use strict";
|
|
20542
|
+
|
|
20543
|
+
|
|
20544
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
20545
|
+
|
|
20546
|
+
var callBindBasic = __webpack_require__(32);
|
|
20547
|
+
|
|
20548
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
20549
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
20550
|
+
|
|
20551
|
+
/** @type {import('.')} */
|
|
20552
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
20553
|
+
/* eslint no-extra-parens: 0 */
|
|
20554
|
+
|
|
20555
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
20556
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
20557
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
20558
|
+
}
|
|
20559
|
+
return intrinsic;
|
|
20560
|
+
};
|
|
20561
|
+
|
|
20562
|
+
|
|
20563
|
+
/***/ }),
|
|
20564
|
+
/* 35 */
|
|
20565
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20566
|
+
|
|
20567
|
+
"use strict";
|
|
20568
|
+
|
|
20569
|
+
|
|
20570
|
+
var formats = __webpack_require__(23);
|
|
20571
|
+
|
|
20572
|
+
var has = Object.prototype.hasOwnProperty;
|
|
20573
|
+
var isArray = Array.isArray;
|
|
20574
|
+
|
|
20575
|
+
var hexTable = (function () {
|
|
20576
|
+
var array = [];
|
|
20577
|
+
for (var i = 0; i < 256; ++i) {
|
|
20578
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
20593
20579
|
}
|
|
20594
|
-
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20580
|
+
|
|
20581
|
+
return array;
|
|
20582
|
+
}());
|
|
20583
|
+
|
|
20584
|
+
var compactQueue = function compactQueue(queue) {
|
|
20585
|
+
while (queue.length > 1) {
|
|
20586
|
+
var item = queue.pop();
|
|
20587
|
+
var obj = item.obj[item.prop];
|
|
20588
|
+
|
|
20589
|
+
if (isArray(obj)) {
|
|
20590
|
+
var compacted = [];
|
|
20591
|
+
|
|
20592
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
20593
|
+
if (typeof obj[j] !== 'undefined') {
|
|
20594
|
+
compacted.push(obj[j]);
|
|
20606
20595
|
}
|
|
20607
|
-
}
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
}
|
|
20611
|
-
return personData;
|
|
20612
|
-
}
|
|
20613
|
-
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
20614
|
-
var _a, _b;
|
|
20615
|
-
if (parmas === void 0) { parmas = {}; }
|
|
20616
|
-
var personOrderList = personData.personOrderList;
|
|
20617
|
-
if (!(personOrderList && personOrderList.length)) {
|
|
20618
|
-
return null;
|
|
20619
|
-
}
|
|
20620
|
-
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
20621
|
-
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
20622
|
-
var insuredList = personOrderList
|
|
20623
|
-
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
20624
|
-
.filter(function (p) {
|
|
20625
|
-
var _a;
|
|
20626
|
-
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
20627
|
-
return title && title.value;
|
|
20628
|
-
})
|
|
20629
|
-
.map(function (p) {
|
|
20630
|
-
var _a, _b;
|
|
20631
|
-
return {
|
|
20632
|
-
key: p.key,
|
|
20633
|
-
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
20634
|
-
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
20635
|
-
};
|
|
20636
|
-
});
|
|
20637
|
-
var insuranceIdList = (_a = convertProductData(prodData).mulInsOrderList) === null || _a === void 0 ? void 0 : _a.map(function (ins) { return ins.key; });
|
|
20638
|
-
(_b = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _b === void 0 ? void 0 : _b.reduce(function (list, ins) {
|
|
20639
|
-
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
20640
|
-
}, []);
|
|
20641
|
-
return getAndCacheInsurancesVerifyData({
|
|
20642
|
-
pbId: pbId,
|
|
20643
|
-
productId: productId,
|
|
20644
|
-
insuredList: insuredList,
|
|
20645
|
-
insuranceIdList: insuranceIdList
|
|
20646
|
-
});
|
|
20647
|
-
}
|
|
20648
|
-
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
20649
|
-
var IS_PRODUCT_ENV = location.hostname.search(/winbaoxian\.com/) !== -1;
|
|
20650
|
-
var url = "https://app.winbaoxian.".concat(IS_PRODUCT_ENV ? 'com' : 'cn', "/planBook/input/insurance/verifyData");
|
|
20651
|
-
return fetch(url, {
|
|
20652
|
-
method: 'POST',
|
|
20653
|
-
credentials: 'include',
|
|
20654
|
-
headers: {
|
|
20655
|
-
Accept: 'application/json, text/plain, */*',
|
|
20656
|
-
'Content-Type': 'application/json;'
|
|
20657
|
-
},
|
|
20658
|
-
body: JSON.stringify(params)
|
|
20659
|
-
})
|
|
20660
|
-
.then(function (response) { return response.json(); })
|
|
20661
|
-
.then(function (_a) {
|
|
20662
|
-
var success = _a.success, data = _a.data;
|
|
20663
|
-
if (!success || !data) {
|
|
20664
|
-
return Promise.reject();
|
|
20596
|
+
}
|
|
20597
|
+
|
|
20598
|
+
item.obj[item.prop] = compacted;
|
|
20665
20599
|
}
|
|
20666
|
-
return Promise.resolve(data);
|
|
20667
|
-
})
|
|
20668
|
-
.catch(function () { });
|
|
20669
|
-
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
20670
|
-
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
20671
|
-
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
20672
|
-
return verify;
|
|
20673
20600
|
}
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
var temp = verify;
|
|
20682
|
-
var hasElementKey = verify.key === option.elementKey;
|
|
20683
|
-
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
20684
|
-
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
20685
|
-
if (temp && temp.key === option.elementKey) {
|
|
20686
|
-
hasElementKey = true;
|
|
20601
|
+
};
|
|
20602
|
+
|
|
20603
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
20604
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
20605
|
+
for (var i = 0; i < source.length; ++i) {
|
|
20606
|
+
if (typeof source[i] !== 'undefined') {
|
|
20607
|
+
obj[i] = source[i];
|
|
20687
20608
|
}
|
|
20688
20609
|
}
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
function setCommonInfo(prodData) {
|
|
20698
|
-
if (!prodData || !prodData.mulInsOrderList) {
|
|
20699
|
-
return prodData;
|
|
20610
|
+
|
|
20611
|
+
return obj;
|
|
20612
|
+
};
|
|
20613
|
+
|
|
20614
|
+
var merge = function merge(target, source, options) {
|
|
20615
|
+
/* eslint no-param-reassign: 0 */
|
|
20616
|
+
if (!source) {
|
|
20617
|
+
return target;
|
|
20700
20618
|
}
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
common.eleOrderList.push(ele);
|
|
20619
|
+
|
|
20620
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
20621
|
+
if (isArray(target)) {
|
|
20622
|
+
target.push(source);
|
|
20623
|
+
} else if (target && typeof target === 'object') {
|
|
20624
|
+
if (
|
|
20625
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
20626
|
+
|| !has.call(Object.prototype, source)
|
|
20627
|
+
) {
|
|
20628
|
+
target[source] = true;
|
|
20712
20629
|
}
|
|
20713
|
-
}
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
return
|
|
20718
|
-
}
|
|
20719
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
20720
|
-
prodData.mulInsOrderList.unshift(common);
|
|
20721
|
-
if (prodData.mulInsOrderList[1]) {
|
|
20722
|
-
prodData.mulInsOrderList[1].isFollowing = true;
|
|
20630
|
+
} else {
|
|
20631
|
+
return [target, source];
|
|
20632
|
+
}
|
|
20633
|
+
|
|
20634
|
+
return target;
|
|
20723
20635
|
}
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
if (!prodData.mulInsOrderList) {
|
|
20728
|
-
return prodData;
|
|
20636
|
+
|
|
20637
|
+
if (!target || typeof target !== 'object') {
|
|
20638
|
+
return [target].concat(source);
|
|
20729
20639
|
}
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20640
|
+
|
|
20641
|
+
var mergeTarget = target;
|
|
20642
|
+
if (isArray(target) && !isArray(source)) {
|
|
20643
|
+
mergeTarget = arrayToObject(target, options);
|
|
20733
20644
|
}
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
oldInsuranceIdEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
20744
|
-
}
|
|
20745
|
-
if (ins.groupKey) {
|
|
20746
|
-
newGroupInsMap[ins.groupKey] = newGroupInsMap[ins.groupKey] || {
|
|
20747
|
-
key: ins.groupKey,
|
|
20748
|
-
name: ins.groupName,
|
|
20749
|
-
huomian: ins.huomian,
|
|
20750
|
-
isGroup: true,
|
|
20751
|
-
eleOrderList: [
|
|
20752
|
-
{
|
|
20753
|
-
key: 'title',
|
|
20754
|
-
value: (oldTitleEle && oldTitleEle.value) || false,
|
|
20755
|
-
isDisabled: false,
|
|
20756
|
-
componentName: 'cmCommonTitle',
|
|
20757
|
-
labelName: ins.groupName
|
|
20758
|
-
},
|
|
20759
|
-
{
|
|
20760
|
-
key: 'insuranceId',
|
|
20761
|
-
value: (oldInsuranceIdEle && oldInsuranceIdEle.value) || (ins.isCheckbox ? [] : ''),
|
|
20762
|
-
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
20763
|
-
opts: []
|
|
20764
|
-
}
|
|
20765
|
-
]
|
|
20766
|
-
};
|
|
20767
|
-
var titleEle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
20768
|
-
var insuranceIdEle = newGroupInsMap[ins.groupKey].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
20769
|
-
insuranceIdEle.opts.push({
|
|
20770
|
-
val: ins.key,
|
|
20771
|
-
code: ins.code,
|
|
20772
|
-
desc: titleEle.labelName,
|
|
20773
|
-
isDisabled: titleEle.isDisabled
|
|
20774
|
-
});
|
|
20775
|
-
}
|
|
20776
|
-
});
|
|
20777
|
-
var _loop_2 = function (k) {
|
|
20778
|
-
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
20779
|
-
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
20780
|
-
if (nGroupTitle && nGroupInsuranceId) {
|
|
20781
|
-
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
20782
|
-
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
20783
|
-
nGroupTitle.value = false;
|
|
20784
|
-
nGroupTitle.isDisabled = true;
|
|
20785
|
-
}
|
|
20786
|
-
else {
|
|
20787
|
-
nGroupTitle.isDisabled = false;
|
|
20788
|
-
}
|
|
20789
|
-
}
|
|
20790
|
-
var groupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.groupKey == k; });
|
|
20791
|
-
if (groupInsList && groupInsList.length) {
|
|
20792
|
-
if (groupInsList.some(function (ins) {
|
|
20793
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
20794
|
-
return ins.required && subTitle && !subTitle.isDisabled;
|
|
20795
|
-
})) {
|
|
20796
|
-
nGroupTitle.value = true;
|
|
20797
|
-
nGroupTitle.isDisabled = true;
|
|
20798
|
-
}
|
|
20799
|
-
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
20800
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
20801
|
-
return subTitle && !subTitle.isDisabled;
|
|
20802
|
-
});
|
|
20803
|
-
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
20804
|
-
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
20805
|
-
return subTitle && subTitle.value;
|
|
20806
|
-
});
|
|
20807
|
-
if (!nGroupInsuranceId.value) {
|
|
20808
|
-
if (checkedInsurances) {
|
|
20809
|
-
nGroupInsuranceId.value = checkedInsurances.key;
|
|
20810
|
-
nGroupTitle.value = true;
|
|
20811
|
-
}
|
|
20812
|
-
else if (nGroupTitle.value) {
|
|
20813
|
-
if (notDisabledInsurances[0]) {
|
|
20814
|
-
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
20815
|
-
}
|
|
20816
|
-
}
|
|
20645
|
+
|
|
20646
|
+
if (isArray(target) && isArray(source)) {
|
|
20647
|
+
source.forEach(function (item, i) {
|
|
20648
|
+
if (has.call(target, i)) {
|
|
20649
|
+
var targetItem = target[i];
|
|
20650
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
20651
|
+
target[i] = merge(targetItem, item, options);
|
|
20652
|
+
} else {
|
|
20653
|
+
target.push(item);
|
|
20817
20654
|
}
|
|
20655
|
+
} else {
|
|
20656
|
+
target[i] = item;
|
|
20818
20657
|
}
|
|
20658
|
+
});
|
|
20659
|
+
return target;
|
|
20660
|
+
}
|
|
20661
|
+
|
|
20662
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
20663
|
+
var value = source[key];
|
|
20664
|
+
|
|
20665
|
+
if (has.call(acc, key)) {
|
|
20666
|
+
acc[key] = merge(acc[key], value, options);
|
|
20667
|
+
} else {
|
|
20668
|
+
acc[key] = value;
|
|
20819
20669
|
}
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20832
|
-
|
|
20670
|
+
return acc;
|
|
20671
|
+
}, mergeTarget);
|
|
20672
|
+
};
|
|
20673
|
+
|
|
20674
|
+
var assign = function assignSingleSource(target, source) {
|
|
20675
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
20676
|
+
acc[key] = source[key];
|
|
20677
|
+
return acc;
|
|
20678
|
+
}, target);
|
|
20679
|
+
};
|
|
20680
|
+
|
|
20681
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
20682
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
20683
|
+
if (charset === 'iso-8859-1') {
|
|
20684
|
+
// unescape never throws, no try...catch needed:
|
|
20685
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
20686
|
+
}
|
|
20687
|
+
// utf-8
|
|
20688
|
+
try {
|
|
20689
|
+
return decodeURIComponent(strWithoutPlus);
|
|
20690
|
+
} catch (e) {
|
|
20691
|
+
return strWithoutPlus;
|
|
20692
|
+
}
|
|
20693
|
+
};
|
|
20694
|
+
|
|
20695
|
+
var limit = 1024;
|
|
20696
|
+
|
|
20697
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
20698
|
+
|
|
20699
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
20700
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
20701
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
20702
|
+
if (str.length === 0) {
|
|
20703
|
+
return str;
|
|
20704
|
+
}
|
|
20705
|
+
|
|
20706
|
+
var string = str;
|
|
20707
|
+
if (typeof str === 'symbol') {
|
|
20708
|
+
string = Symbol.prototype.toString.call(str);
|
|
20709
|
+
} else if (typeof str !== 'string') {
|
|
20710
|
+
string = String(str);
|
|
20711
|
+
}
|
|
20712
|
+
|
|
20713
|
+
if (charset === 'iso-8859-1') {
|
|
20714
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
20715
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
20716
|
+
});
|
|
20717
|
+
}
|
|
20718
|
+
|
|
20719
|
+
var out = '';
|
|
20720
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
20721
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
20722
|
+
var arr = [];
|
|
20723
|
+
|
|
20724
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
20725
|
+
var c = segment.charCodeAt(i);
|
|
20726
|
+
if (
|
|
20727
|
+
c === 0x2D // -
|
|
20728
|
+
|| c === 0x2E // .
|
|
20729
|
+
|| c === 0x5F // _
|
|
20730
|
+
|| c === 0x7E // ~
|
|
20731
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
20732
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
20733
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
20734
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
20735
|
+
) {
|
|
20736
|
+
arr[arr.length] = segment.charAt(i);
|
|
20737
|
+
continue;
|
|
20833
20738
|
}
|
|
20834
|
-
|
|
20835
|
-
|
|
20836
|
-
|
|
20837
|
-
|
|
20838
|
-
if (!['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name', 'accountData', 'reduceBaofData'].includes(ck)) {
|
|
20839
|
-
if (ck === 'eleOrderList') {
|
|
20840
|
-
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedIns[ck].filter(function (ele) { return ele.key !== 'title'; }));
|
|
20841
|
-
}
|
|
20842
|
-
else {
|
|
20843
|
-
newGroupInsMap[k][ck] = checkedIns[ck];
|
|
20844
|
-
}
|
|
20845
|
-
}
|
|
20846
|
-
}
|
|
20847
|
-
}
|
|
20739
|
+
|
|
20740
|
+
if (c < 0x80) {
|
|
20741
|
+
arr[arr.length] = hexTable[c];
|
|
20742
|
+
continue;
|
|
20848
20743
|
}
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20853
|
-
|
|
20744
|
+
|
|
20745
|
+
if (c < 0x800) {
|
|
20746
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
20747
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
20748
|
+
continue;
|
|
20854
20749
|
}
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20750
|
+
|
|
20751
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
20752
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
20753
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
20754
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
20755
|
+
continue;
|
|
20756
|
+
}
|
|
20757
|
+
|
|
20758
|
+
i += 1;
|
|
20759
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
20760
|
+
|
|
20761
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
20762
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
20763
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
20764
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
20858
20765
|
}
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
_loop_2(k);
|
|
20766
|
+
|
|
20767
|
+
out += arr.join('');
|
|
20862
20768
|
}
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
|
|
20867
|
-
|
|
20868
|
-
|
|
20869
|
-
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
});
|
|
20884
|
-
}
|
|
20885
|
-
var _a = personOrderList.find(function (p) { return p.key === 'insuredInfo'; }), sex = _a.sex, age = _a.age;
|
|
20886
|
-
if (ageRangeProd[sex] && age >= ageRangeProd[sex][0] && age <= ageRangeProd[sex][1]) {
|
|
20887
|
-
prodData.hide = false;
|
|
20769
|
+
|
|
20770
|
+
return out;
|
|
20771
|
+
};
|
|
20772
|
+
|
|
20773
|
+
var compact = function compact(value) {
|
|
20774
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
20775
|
+
var refs = [];
|
|
20776
|
+
|
|
20777
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
20778
|
+
var item = queue[i];
|
|
20779
|
+
var obj = item.obj[item.prop];
|
|
20780
|
+
|
|
20781
|
+
var keys = Object.keys(obj);
|
|
20782
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
20783
|
+
var key = keys[j];
|
|
20784
|
+
var val = obj[key];
|
|
20785
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
20786
|
+
queue.push({ obj: obj, prop: key });
|
|
20787
|
+
refs.push(val);
|
|
20788
|
+
}
|
|
20888
20789
|
}
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20790
|
+
}
|
|
20791
|
+
|
|
20792
|
+
compactQueue(queue);
|
|
20793
|
+
|
|
20794
|
+
return value;
|
|
20795
|
+
};
|
|
20796
|
+
|
|
20797
|
+
var isRegExp = function isRegExp(obj) {
|
|
20798
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
20799
|
+
};
|
|
20800
|
+
|
|
20801
|
+
var isBuffer = function isBuffer(obj) {
|
|
20802
|
+
if (!obj || typeof obj !== 'object') {
|
|
20803
|
+
return false;
|
|
20804
|
+
}
|
|
20805
|
+
|
|
20806
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
20807
|
+
};
|
|
20808
|
+
|
|
20809
|
+
var combine = function combine(a, b) {
|
|
20810
|
+
return [].concat(a, b);
|
|
20811
|
+
};
|
|
20812
|
+
|
|
20813
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
20814
|
+
if (isArray(val)) {
|
|
20815
|
+
var mapped = [];
|
|
20816
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
20817
|
+
mapped.push(fn(val[i]));
|
|
20893
20818
|
}
|
|
20819
|
+
return mapped;
|
|
20894
20820
|
}
|
|
20895
|
-
return
|
|
20896
|
-
}
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20821
|
+
return fn(val);
|
|
20822
|
+
};
|
|
20823
|
+
|
|
20824
|
+
module.exports = {
|
|
20825
|
+
arrayToObject: arrayToObject,
|
|
20826
|
+
assign: assign,
|
|
20827
|
+
combine: combine,
|
|
20828
|
+
compact: compact,
|
|
20829
|
+
decode: decode,
|
|
20830
|
+
encode: encode,
|
|
20831
|
+
isBuffer: isBuffer,
|
|
20832
|
+
isRegExp: isRegExp,
|
|
20833
|
+
maybeMap: maybeMap,
|
|
20834
|
+
merge: merge
|
|
20835
|
+
};
|
|
20836
|
+
|
|
20837
|
+
|
|
20838
|
+
/***/ }),
|
|
20839
|
+
/* 36 */
|
|
20840
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20841
|
+
|
|
20842
|
+
"use strict";
|
|
20843
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
20844
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
20845
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
20846
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
20847
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
20848
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
20849
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
20850
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
20851
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
20852
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
20853
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
20854
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
|
|
20855
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
20856
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
20857
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
20858
|
+
/* harmony import */ var _src_js_variables_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
|
|
20859
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
20860
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12);
|
|
20861
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11);
|
|
20862
|
+
|
|
20863
|
+
|
|
20864
|
+
|
|
20865
|
+
|
|
20866
|
+
|
|
20867
|
+
|
|
20868
|
+
|
|
20869
|
+
function initProductData(prodData) {
|
|
20870
|
+
prodData.hadChoice = false;
|
|
20871
|
+
prodData.insShowArr = null;
|
|
20872
|
+
prodData.totalBaof = null;
|
|
20873
|
+
if (!prodData.mulInsOrderList) {
|
|
20874
|
+
return prodData;
|
|
20908
20875
|
}
|
|
20909
|
-
if (
|
|
20910
|
-
|
|
20911
|
-
if (ins.eleOrderList) {
|
|
20912
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
20913
|
-
errorMsg =
|
|
20914
|
-
errorMsg ||
|
|
20915
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_5__[/* restrictElementsInInsurance */ "d"])({
|
|
20916
|
-
personOrderList: personOrderList,
|
|
20917
|
-
insData: ins,
|
|
20918
|
-
eleData: ele
|
|
20919
|
-
});
|
|
20920
|
-
});
|
|
20921
|
-
}
|
|
20922
|
-
});
|
|
20876
|
+
if (prodData.mulInsOrderList.some(function (ins) { return !!ins.adjustBaoe; })) {
|
|
20877
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
20923
20878
|
}
|
|
20924
|
-
|
|
20879
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
20880
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* initInsuranceData */ "b"])(ins);
|
|
20881
|
+
});
|
|
20882
|
+
return prodData;
|
|
20925
20883
|
}
|
|
20926
|
-
function
|
|
20927
|
-
var
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
|
|
20937
|
-
|
|
20938
|
-
|
|
20939
|
-
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20884
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
20885
|
+
var _a;
|
|
20886
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
20887
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
20888
|
+
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
20889
|
+
switch (_b.label) {
|
|
20890
|
+
case 0:
|
|
20891
|
+
if (!prodData) {
|
|
20892
|
+
return [2, prodData];
|
|
20893
|
+
}
|
|
20894
|
+
productVerifyData = null;
|
|
20895
|
+
if (prodData.multipleInsured) {
|
|
20896
|
+
multipleInsuredHandler(personData);
|
|
20897
|
+
}
|
|
20898
|
+
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
20899
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
20900
|
+
case 1:
|
|
20901
|
+
productVerifyData = _b.sent();
|
|
20902
|
+
return [3, 3];
|
|
20903
|
+
case 2:
|
|
20904
|
+
productVerifyData = prodVerifyData;
|
|
20905
|
+
_b.label = 3;
|
|
20906
|
+
case 3:
|
|
20907
|
+
hasProduct = prodData.mulInsOrderList;
|
|
20908
|
+
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
20909
|
+
hasPersonData = personData && personData.personOrderList;
|
|
20910
|
+
personOrderList = null;
|
|
20911
|
+
if (hasProduct && hasVerifyData && hasPersonData) {
|
|
20912
|
+
personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_5__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
20913
|
+
setCommonInfo(prodData);
|
|
20914
|
+
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
20915
|
+
var _a, _b, _c;
|
|
20916
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
20917
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
20918
|
+
if (!insuranceVerifyData) {
|
|
20919
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20920
|
+
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
20921
|
+
}
|
|
20922
|
+
return;
|
|
20965
20923
|
}
|
|
20966
|
-
|
|
20967
|
-
|
|
20924
|
+
var isTouHuomianIns = ins.huomian === 'touHuomian' || ins.huomian === 'shuangHuomian';
|
|
20925
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
20926
|
+
var applicantInfo = personOrderList.find(function (p) { return p.key === 'applicantInfo'; });
|
|
20927
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
20928
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
20929
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
20968
20930
|
}
|
|
20969
|
-
|
|
20970
|
-
|
|
20931
|
+
var targetPerson = personOrderList.find(function (p) { return p.key === personType; });
|
|
20932
|
+
var personCondition = null;
|
|
20933
|
+
if (targetPerson) {
|
|
20934
|
+
personCondition = insuranceVerifyData.find(function (v) {
|
|
20935
|
+
return targetPerson.sex === v.sex && targetPerson.age >= v.minAge && targetPerson.age <= v.maxAge;
|
|
20936
|
+
});
|
|
20937
|
+
if (personCondition) {
|
|
20938
|
+
personCondition = personCondition.conditionData;
|
|
20939
|
+
var isSamePerson = isTouHuomianIns && ins.allowSamePerson && personCondition.key === 'samePerson';
|
|
20940
|
+
if (isSamePerson) {
|
|
20941
|
+
personCondition = personCondition.samePerson.find(function (c) { return c.value == (applicantInfo.title ? 0 : 1); });
|
|
20942
|
+
}
|
|
20943
|
+
}
|
|
20971
20944
|
}
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
(
|
|
20945
|
+
var curCondition = personCondition;
|
|
20946
|
+
var eleTitle = (_a = ins.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
20947
|
+
var _loop_1 = function () {
|
|
20948
|
+
var isNotAllowSelect = !curCondition ||
|
|
20949
|
+
(isTouHuomianIns && !ins.allowSamePerson && (!targetPerson.title || targetPerson.applicantAndInsuredSame));
|
|
20950
|
+
if (isNotAllowSelect) {
|
|
20951
|
+
eleTitle.isDisabled = true;
|
|
20952
|
+
eleTitle.value = false;
|
|
20953
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20954
|
+
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"));
|
|
20955
|
+
}
|
|
20956
|
+
}
|
|
20957
|
+
else {
|
|
20958
|
+
eleTitle.isDisabled = false;
|
|
20959
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
20960
|
+
eleTitle.value = true;
|
|
20961
|
+
eleTitle.isDisabled = true;
|
|
20962
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20963
|
+
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)"));
|
|
20964
|
+
}
|
|
20965
|
+
}
|
|
20966
|
+
}
|
|
20967
|
+
if (!curCondition) {
|
|
20968
|
+
return "break";
|
|
20969
|
+
}
|
|
20970
|
+
var eleData = (_b = ins.eleOrderList) === null || _b === void 0 ? void 0 : _b.find(function (e) { return e.key === curCondition.key; });
|
|
20971
|
+
var commonData = insList.find(function (ins) { return ins.key === 'common'; });
|
|
20972
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
20973
|
+
eleData = commonData.eleOrderList.find(function (e) { return e.key === curCondition.key; });
|
|
20974
|
+
}
|
|
20975
|
+
if (!eleData) {
|
|
20976
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
20977
|
+
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
20978
|
+
}
|
|
20979
|
+
curCondition = null;
|
|
20980
|
+
return "break";
|
|
20981
|
+
}
|
|
20982
|
+
var eleCondi = curCondition[curCondition.key];
|
|
20983
|
+
var isBeGovernedEle = eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && Number(ins.refInsuranceId) !== -2;
|
|
20984
|
+
if (isBeGovernedEle) {
|
|
20985
|
+
var refInsData = null;
|
|
20986
|
+
if (Number(ins.refInsuranceId) === -1) {
|
|
20987
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
20991
20988
|
}
|
|
20992
20989
|
else {
|
|
20993
|
-
|
|
20990
|
+
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
20991
|
+
}
|
|
20992
|
+
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
20993
|
+
if (refEleData) {
|
|
20994
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
20995
|
+
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getHuomianPeriodValue */ "g"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
20996
|
+
}
|
|
20997
|
+
else {
|
|
20998
|
+
eleData.value = refEleData.value;
|
|
20999
|
+
}
|
|
21000
|
+
}
|
|
21001
|
+
else {
|
|
21002
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21003
|
+
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
21004
|
+
}
|
|
20994
21005
|
}
|
|
20995
21006
|
}
|
|
20996
|
-
|
|
20997
|
-
|
|
20998
|
-
|
|
20999
|
-
|
|
21000
|
-
|
|
21001
|
-
|
|
21007
|
+
else {
|
|
21008
|
+
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
21009
|
+
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
21010
|
+
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
21011
|
+
return {
|
|
21012
|
+
val: c.value,
|
|
21013
|
+
desc: c.desc || c.value,
|
|
21014
|
+
isHide: (option && option.isHide) || null,
|
|
21015
|
+
isDisabled: (option && option.isDisabled) || null,
|
|
21016
|
+
isInvalid: null
|
|
21017
|
+
};
|
|
21018
|
+
});
|
|
21019
|
+
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
21020
|
+
if (isNoOption) {
|
|
21021
|
+
if (eleData.key === 'pPeriod') {
|
|
21022
|
+
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
21023
|
+
if (filterOpts && filterOpts.length) {
|
|
21024
|
+
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
21025
|
+
}
|
|
21026
|
+
}
|
|
21027
|
+
else {
|
|
21028
|
+
if (eleData.opts && eleData.opts.length) {
|
|
21029
|
+
eleData.value = eleData.opts[0].val;
|
|
21030
|
+
}
|
|
21031
|
+
}
|
|
21032
|
+
}
|
|
21033
|
+
}
|
|
21034
|
+
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
21035
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
21036
|
+
var prevElement;
|
|
21037
|
+
if (eleIndex >= 1) {
|
|
21038
|
+
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
21002
21039
|
}
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
var rangeVal = eval(restrict.rCondition);
|
|
21012
|
-
if (rangeVal !== undefined && rangeVal !== null) {
|
|
21013
|
-
if (rangeVal.constructor === Array) {
|
|
21014
|
-
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
21015
|
-
errorMsg =
|
|
21016
|
-
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
21040
|
+
if (prevElement) {
|
|
21041
|
+
if (!curCondition) {
|
|
21042
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21043
|
+
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; }); });
|
|
21044
|
+
if (onePrevEleVerify) {
|
|
21045
|
+
prevElement.value = onePrevEleVerify.value;
|
|
21046
|
+
curCondition = onePrevEleVerify[eleData.key];
|
|
21047
|
+
}
|
|
21017
21048
|
}
|
|
21018
|
-
if (
|
|
21019
|
-
|
|
21020
|
-
|
|
21049
|
+
if (!curCondition) {
|
|
21050
|
+
eleTitle.isDisabled = true;
|
|
21051
|
+
eleTitle.value = false;
|
|
21052
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
21053
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
21054
|
+
}
|
|
21021
21055
|
}
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21056
|
+
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
21057
|
+
if (isNeedReverseFilter) {
|
|
21058
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
21059
|
+
if (prevEleVerify) {
|
|
21060
|
+
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
21061
|
+
var _a;
|
|
21062
|
+
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
21063
|
+
insuranceKey: ins.key,
|
|
21064
|
+
elementKey: eleData.key
|
|
21065
|
+
},
|
|
21066
|
+
_a[prevElement.key] = v.value,
|
|
21067
|
+
_a));
|
|
21068
|
+
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
21069
|
+
}).map(function (v) { return ({
|
|
21070
|
+
val: v.value,
|
|
21071
|
+
desc: v.desc || v.value,
|
|
21072
|
+
isHide: null,
|
|
21073
|
+
isDisabled: null,
|
|
21074
|
+
isInvalid: null
|
|
21075
|
+
}); });
|
|
21076
|
+
}
|
|
21026
21077
|
}
|
|
21027
21078
|
}
|
|
21028
|
-
}
|
|
21029
|
-
|
|
21030
|
-
|
|
21079
|
+
};
|
|
21080
|
+
do {
|
|
21081
|
+
var state_1 = _loop_1();
|
|
21082
|
+
if (state_1 === "break")
|
|
21083
|
+
break;
|
|
21084
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
21085
|
+
});
|
|
21031
21086
|
}
|
|
21032
|
-
|
|
21087
|
+
setGroupInsurance(prodData);
|
|
21088
|
+
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
21089
|
+
return [2, prodData];
|
|
21033
21090
|
}
|
|
21034
21091
|
});
|
|
21035
|
-
}
|
|
21036
|
-
return errorMsg;
|
|
21037
|
-
}
|
|
21038
|
-
function convertProductData(prodData) {
|
|
21039
|
-
if (!prodData) {
|
|
21040
|
-
return prodData;
|
|
21041
|
-
}
|
|
21042
|
-
if (!prodData.mulInsOrderList) {
|
|
21043
|
-
return prodData;
|
|
21044
|
-
}
|
|
21045
|
-
var productData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, prodData), { common: {}, mulInsOrderList: [] });
|
|
21046
|
-
prodData.mulInsOrderList.forEach(function (insurance) {
|
|
21047
|
-
var insuranceData = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(insurance);
|
|
21048
|
-
if (insuranceData.key == 'common') {
|
|
21049
|
-
productData.common = insuranceData;
|
|
21050
|
-
return;
|
|
21051
|
-
}
|
|
21052
|
-
if (insuranceData.title && !insuranceData.groupKey) {
|
|
21053
|
-
if (insuranceData.isGroup) {
|
|
21054
|
-
var insuranceId = insuranceData.insuranceId.constructor == Array ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
21055
|
-
insuranceId.forEach(function (insId) {
|
|
21056
|
-
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
21057
|
-
if (checkedIns) {
|
|
21058
|
-
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
21059
|
-
insurance.eleOrderList &&
|
|
21060
|
-
insurance.eleOrderList.forEach(function (ele) {
|
|
21061
|
-
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
21062
|
-
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
21063
|
-
}
|
|
21064
|
-
});
|
|
21065
|
-
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_3__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
21066
|
-
}
|
|
21067
|
-
});
|
|
21068
|
-
return;
|
|
21069
|
-
}
|
|
21070
|
-
productData.mulInsOrderList.push(insuranceData);
|
|
21071
|
-
}
|
|
21072
21092
|
});
|
|
21073
|
-
return productData;
|
|
21074
21093
|
}
|
|
21075
|
-
function
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
if (!productData.mulInsOrderList) {
|
|
21080
|
-
return productData;
|
|
21094
|
+
function multipleInsuredHandler(personData) {
|
|
21095
|
+
var personOrderList = personData.personOrderList;
|
|
21096
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
21097
|
+
return null;
|
|
21081
21098
|
}
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
|
|
21088
|
-
|
|
21089
|
-
|
|
21090
|
-
|
|
21091
|
-
|
|
21099
|
+
var insured2Info = personOrderList.find(function (p) { return p.key === 'insured2Info'; });
|
|
21100
|
+
if (!insured2Info) {
|
|
21101
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21102
|
+
var insuredIndex = personOrderList.findIndex(function (p) { return p.key === 'insuredInfo'; });
|
|
21103
|
+
if (insuredIndex >= 0) {
|
|
21104
|
+
var person = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["cloneDeep"])(insuredInfo);
|
|
21105
|
+
person.key = 'insured2Info';
|
|
21106
|
+
person.eleOrderList.forEach(function (e) {
|
|
21107
|
+
if (e.key === 'title') {
|
|
21108
|
+
e.isDisabled = false;
|
|
21109
|
+
e.value = true;
|
|
21110
|
+
e.label = '第二被保人信息';
|
|
21111
|
+
}
|
|
21092
21112
|
});
|
|
21113
|
+
personOrderList.splice(insuredIndex + 1, 0, person);
|
|
21093
21114
|
}
|
|
21094
|
-
}
|
|
21095
|
-
return
|
|
21115
|
+
}
|
|
21116
|
+
return personData;
|
|
21096
21117
|
}
|
|
21097
|
-
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
var
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
|
|
21110
|
-
var
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
var
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
|
|
21120
|
-
|
|
21121
|
-
|
|
21122
|
-
var
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
21135
|
-
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
21141
|
-
var result = $mapDelete($m, key);
|
|
21142
|
-
if ($mapSize($m) === 0) {
|
|
21143
|
-
$m = void undefined;
|
|
21144
|
-
}
|
|
21145
|
-
return result;
|
|
21146
|
-
}
|
|
21147
|
-
return false;
|
|
21148
|
-
},
|
|
21149
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
21150
|
-
if ($m) {
|
|
21151
|
-
return $mapGet($m, key);
|
|
21152
|
-
}
|
|
21153
|
-
},
|
|
21154
|
-
has: function (key) {
|
|
21155
|
-
if ($m) {
|
|
21156
|
-
return $mapHas($m, key);
|
|
21157
|
-
}
|
|
21158
|
-
return false;
|
|
21159
|
-
},
|
|
21160
|
-
set: function (key, value) {
|
|
21161
|
-
if (!$m) {
|
|
21162
|
-
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
21163
|
-
$m = new $Map();
|
|
21164
|
-
}
|
|
21165
|
-
$mapSet($m, key, value);
|
|
21166
|
-
}
|
|
21167
|
-
};
|
|
21168
|
-
|
|
21169
|
-
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
21170
|
-
return channel;
|
|
21171
|
-
};
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
/***/ }),
|
|
21175
|
-
/* 29 */
|
|
21176
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21177
|
-
|
|
21178
|
-
"use strict";
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
/** @type {import('.')} */
|
|
21182
|
-
module.exports = Object;
|
|
21183
|
-
|
|
21184
|
-
|
|
21185
|
-
/***/ }),
|
|
21186
|
-
/* 30 */
|
|
21187
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21188
|
-
|
|
21189
|
-
"use strict";
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
/** @type {import('.')} */
|
|
21193
|
-
var $gOPD = __webpack_require__(57);
|
|
21194
|
-
|
|
21195
|
-
if ($gOPD) {
|
|
21196
|
-
try {
|
|
21197
|
-
$gOPD([], 'length');
|
|
21198
|
-
} catch (e) {
|
|
21199
|
-
// IE 8 has a broken gOPD
|
|
21200
|
-
$gOPD = null;
|
|
21201
|
-
}
|
|
21118
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
21119
|
+
var _a, _b, _c, _d;
|
|
21120
|
+
if (parmas === void 0) { parmas = {}; }
|
|
21121
|
+
var personOrderList = personData.personOrderList;
|
|
21122
|
+
if (!(personOrderList && personOrderList.length)) {
|
|
21123
|
+
return null;
|
|
21124
|
+
}
|
|
21125
|
+
var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
|
|
21126
|
+
var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
|
|
21127
|
+
var insuredList = personOrderList
|
|
21128
|
+
.filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
|
|
21129
|
+
.filter(function (p) {
|
|
21130
|
+
var _a;
|
|
21131
|
+
var title = (_a = p.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
21132
|
+
return title && title.value;
|
|
21133
|
+
})
|
|
21134
|
+
.map(function (p) {
|
|
21135
|
+
var _a, _b;
|
|
21136
|
+
return {
|
|
21137
|
+
key: p.key,
|
|
21138
|
+
sex: (_a = (p.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
21139
|
+
age: (_b = (p.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
21140
|
+
};
|
|
21141
|
+
});
|
|
21142
|
+
var applicant = null;
|
|
21143
|
+
var applicantItem = personData.personOrderList.find(function (p) { return p.key === 'applicantInfo' && p.eleOrderList; });
|
|
21144
|
+
if (applicantItem) {
|
|
21145
|
+
applicant = {
|
|
21146
|
+
key: applicantItem.key,
|
|
21147
|
+
sex: (_a = (applicantItem.eleOrderList || []).find(function (e) { return e.key === 'sex'; })) === null || _a === void 0 ? void 0 : _a.value,
|
|
21148
|
+
age: (_b = (applicantItem.eleOrderList || []).find(function (e) { return e.key === 'age'; })) === null || _b === void 0 ? void 0 : _b.value
|
|
21149
|
+
};
|
|
21150
|
+
}
|
|
21151
|
+
var insuranceIdList = (_c = convertProductData(prodData).mulInsOrderList) === null || _c === void 0 ? void 0 : _c.map(function (ins) { return ins.key; });
|
|
21152
|
+
(_d = prodData === null || prodData === void 0 ? void 0 : prodData.mulInsOrderList) === null || _d === void 0 ? void 0 : _d.reduce(function (list, ins) {
|
|
21153
|
+
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
21154
|
+
}, []);
|
|
21155
|
+
return getAndCacheInsurancesVerifyData({
|
|
21156
|
+
pbId: pbId,
|
|
21157
|
+
productId: productId,
|
|
21158
|
+
insuredList: insuredList,
|
|
21159
|
+
applicant: applicant,
|
|
21160
|
+
insuranceIdList: insuranceIdList
|
|
21161
|
+
});
|
|
21202
21162
|
}
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
|
|
21211
|
-
|
|
21212
|
-
|
|
21213
|
-
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
/** @type {import('./Object.getPrototypeOf')} */
|
|
21228
|
-
module.exports = $Object.getPrototypeOf || null;
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
/***/ }),
|
|
21232
|
-
/* 33 */
|
|
21233
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21234
|
-
|
|
21235
|
-
"use strict";
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
var bind = __webpack_require__(15);
|
|
21239
|
-
var $TypeError = __webpack_require__(9);
|
|
21240
|
-
|
|
21241
|
-
var $call = __webpack_require__(20);
|
|
21242
|
-
var $actualApply = __webpack_require__(64);
|
|
21243
|
-
|
|
21244
|
-
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
21245
|
-
module.exports = function callBindBasic(args) {
|
|
21246
|
-
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
21247
|
-
throw new $TypeError('a function is required');
|
|
21248
|
-
}
|
|
21249
|
-
return $actualApply(bind, $call, args);
|
|
21250
|
-
};
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
/***/ }),
|
|
21254
|
-
/* 34 */
|
|
21255
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21256
|
-
|
|
21257
|
-
"use strict";
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
/** @type {import('./functionApply')} */
|
|
21261
|
-
module.exports = Function.prototype.apply;
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
/***/ }),
|
|
21265
|
-
/* 35 */
|
|
21266
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21267
|
-
|
|
21268
|
-
"use strict";
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
var GetIntrinsic = __webpack_require__(19);
|
|
21272
|
-
|
|
21273
|
-
var callBindBasic = __webpack_require__(33);
|
|
21274
|
-
|
|
21275
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
21276
|
-
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
21277
|
-
|
|
21278
|
-
/** @type {import('.')} */
|
|
21279
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
21280
|
-
/* eslint no-extra-parens: 0 */
|
|
21281
|
-
|
|
21282
|
-
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
21283
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
21284
|
-
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
21285
|
-
}
|
|
21286
|
-
return intrinsic;
|
|
21287
|
-
};
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
/***/ }),
|
|
21291
|
-
/* 36 */
|
|
21292
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21293
|
-
|
|
21294
|
-
"use strict";
|
|
21295
|
-
|
|
21296
|
-
|
|
21297
|
-
var formats = __webpack_require__(21);
|
|
21298
|
-
|
|
21299
|
-
var has = Object.prototype.hasOwnProperty;
|
|
21300
|
-
var isArray = Array.isArray;
|
|
21301
|
-
|
|
21302
|
-
var hexTable = (function () {
|
|
21303
|
-
var array = [];
|
|
21304
|
-
for (var i = 0; i < 256; ++i) {
|
|
21305
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
21163
|
+
var getAndCacheInsurancesVerifyData = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["memoize"])(function (params) {
|
|
21164
|
+
var url = "".concat(_src_js_variables_js__WEBPACK_IMPORTED_MODULE_3__[/* APP_HOSTNAME */ "a"], "/planBook/input/insurance/verifyData");
|
|
21165
|
+
return fetch(url, {
|
|
21166
|
+
method: 'POST',
|
|
21167
|
+
credentials: 'include',
|
|
21168
|
+
headers: {
|
|
21169
|
+
Accept: 'application/json, text/plain, */*',
|
|
21170
|
+
'Content-Type': 'application/json;'
|
|
21171
|
+
},
|
|
21172
|
+
body: JSON.stringify(params)
|
|
21173
|
+
})
|
|
21174
|
+
.then(function (response) { return response.json(); })
|
|
21175
|
+
.then(function (_a) {
|
|
21176
|
+
var success = _a.success, data = _a.data;
|
|
21177
|
+
if (!success || !data) {
|
|
21178
|
+
return Promise.reject();
|
|
21179
|
+
}
|
|
21180
|
+
return Promise.resolve(data);
|
|
21181
|
+
})
|
|
21182
|
+
.catch(function () { });
|
|
21183
|
+
}, function (params) { return qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params); });
|
|
21184
|
+
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
21185
|
+
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
21186
|
+
return verify;
|
|
21306
21187
|
}
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21188
|
+
var insuranceInfo = {};
|
|
21189
|
+
insurances.forEach(function (ins) {
|
|
21190
|
+
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
21191
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(ins));
|
|
21192
|
+
}
|
|
21193
|
+
});
|
|
21194
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), option);
|
|
21195
|
+
var temp = verify;
|
|
21196
|
+
var hasElementKey = verify.key === option.elementKey;
|
|
21197
|
+
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
21198
|
+
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
21199
|
+
if (temp && temp.key === option.elementKey) {
|
|
21200
|
+
hasElementKey = true;
|
|
21201
|
+
}
|
|
21202
|
+
}
|
|
21203
|
+
if (!hasElementKey) {
|
|
21204
|
+
return null;
|
|
21205
|
+
}
|
|
21206
|
+
if (temp && temp[option.elementKey]) {
|
|
21207
|
+
return temp[option.elementKey];
|
|
21208
|
+
}
|
|
21209
|
+
return temp ? [temp] : null;
|
|
21210
|
+
}
|
|
21211
|
+
function setCommonInfo(prodData) {
|
|
21212
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
21213
|
+
return prodData;
|
|
21214
|
+
}
|
|
21215
|
+
var common = {
|
|
21216
|
+
key: 'common',
|
|
21217
|
+
eleOrderList: []
|
|
21218
|
+
};
|
|
21219
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21220
|
+
if (!ins.eleOrderList) {
|
|
21221
|
+
return;
|
|
21222
|
+
}
|
|
21223
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
21224
|
+
if (ele.common && common.eleOrderList.every(function (e) { return e.key !== ele.key; })) {
|
|
21225
|
+
common.eleOrderList.push(ele);
|
|
21226
|
+
}
|
|
21227
|
+
});
|
|
21228
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) { return !ele.common; });
|
|
21229
|
+
});
|
|
21230
|
+
if (!common.eleOrderList.length) {
|
|
21231
|
+
return prodData;
|
|
21232
|
+
}
|
|
21233
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
21234
|
+
prodData.mulInsOrderList.unshift(common);
|
|
21235
|
+
if (prodData.mulInsOrderList[1]) {
|
|
21236
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
21237
|
+
}
|
|
21238
|
+
return prodData;
|
|
21239
|
+
}
|
|
21240
|
+
function setGroupInsurance(prodData) {
|
|
21241
|
+
if (!prodData.mulInsOrderList) {
|
|
21242
|
+
return prodData;
|
|
21243
|
+
}
|
|
21244
|
+
var groupInsuranceList = prodData && prodData.mulInsOrderList && prodData.mulInsOrderList.filter(function (ins) { return !!ins.groupKey; });
|
|
21245
|
+
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
21246
|
+
return prodData;
|
|
21247
|
+
}
|
|
21248
|
+
var oldGroupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.isGroup; });
|
|
21249
|
+
var newGroupInsMap = {};
|
|
21250
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return !ins.isGroup; });
|
|
21251
|
+
groupInsuranceList.forEach(function (ins) {
|
|
21252
|
+
var oldGroupIns = oldGroupInsList.find(function (gIns) { return gIns.key === ins.groupKey; });
|
|
21253
|
+
var oldTitleEle = {};
|
|
21254
|
+
var oldInsuranceIdEle = {};
|
|
21255
|
+
if (oldGroupIns && oldGroupIns.eleOrderList) {
|
|
21256
|
+
oldTitleEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21257
|
+
oldInsuranceIdEle = oldGroupIns.eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21258
|
+
}
|
|
21259
|
+
if (ins.groupKey) {
|
|
21260
|
+
newGroupInsMap[ins.groupKey] = newGroupInsMap[ins.groupKey] || {
|
|
21261
|
+
key: ins.groupKey,
|
|
21262
|
+
name: ins.groupName,
|
|
21263
|
+
huomian: ins.huomian,
|
|
21264
|
+
isGroup: true,
|
|
21265
|
+
eleOrderList: [
|
|
21266
|
+
{
|
|
21267
|
+
key: 'title',
|
|
21268
|
+
value: (oldTitleEle && oldTitleEle.value) || false,
|
|
21269
|
+
isDisabled: false,
|
|
21270
|
+
componentName: 'cmCommonTitle',
|
|
21271
|
+
labelName: ins.groupName
|
|
21272
|
+
},
|
|
21273
|
+
{
|
|
21274
|
+
key: 'insuranceId',
|
|
21275
|
+
value: (oldInsuranceIdEle && oldInsuranceIdEle.value) || (ins.isCheckbox ? [] : ''),
|
|
21276
|
+
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
21277
|
+
opts: []
|
|
21278
|
+
}
|
|
21279
|
+
]
|
|
21280
|
+
};
|
|
21281
|
+
var titleEle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21282
|
+
var insuranceIdEle = newGroupInsMap[ins.groupKey].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21283
|
+
insuranceIdEle.opts.push({
|
|
21284
|
+
val: ins.key,
|
|
21285
|
+
code: ins.code,
|
|
21286
|
+
desc: titleEle.labelName,
|
|
21287
|
+
isDisabled: titleEle.isDisabled
|
|
21288
|
+
});
|
|
21289
|
+
}
|
|
21290
|
+
});
|
|
21291
|
+
var _loop_2 = function (k) {
|
|
21292
|
+
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21293
|
+
var nGroupInsuranceId = newGroupInsMap[k].eleOrderList.find(function (e) { return e.key === 'insuranceId'; });
|
|
21294
|
+
if (nGroupTitle && nGroupInsuranceId) {
|
|
21295
|
+
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
21296
|
+
if (nGroupInsuranceId.opts.every(function (opt) { return !!opt.isDisabled; })) {
|
|
21297
|
+
nGroupTitle.value = false;
|
|
21298
|
+
nGroupTitle.isDisabled = true;
|
|
21299
|
+
}
|
|
21300
|
+
else {
|
|
21301
|
+
nGroupTitle.isDisabled = false;
|
|
21302
|
+
}
|
|
21303
|
+
}
|
|
21304
|
+
var groupInsList = prodData.mulInsOrderList.filter(function (ins) { return ins.groupKey == k; });
|
|
21305
|
+
if (groupInsList && groupInsList.length) {
|
|
21306
|
+
if (groupInsList.some(function (ins) {
|
|
21307
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21308
|
+
return ins.required && subTitle && !subTitle.isDisabled;
|
|
21309
|
+
})) {
|
|
21310
|
+
nGroupTitle.value = true;
|
|
21311
|
+
nGroupTitle.isDisabled = true;
|
|
21312
|
+
}
|
|
21313
|
+
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
21314
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21315
|
+
return subTitle && !subTitle.isDisabled;
|
|
21316
|
+
});
|
|
21317
|
+
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
21318
|
+
var subTitle = ins.eleOrderList.find(function (e) { return e.key === 'title'; });
|
|
21319
|
+
return subTitle && subTitle.value;
|
|
21320
|
+
});
|
|
21321
|
+
if (!nGroupInsuranceId.value) {
|
|
21322
|
+
if (checkedInsurances) {
|
|
21323
|
+
nGroupInsuranceId.value = checkedInsurances.key;
|
|
21324
|
+
nGroupTitle.value = true;
|
|
21325
|
+
}
|
|
21326
|
+
else if (nGroupTitle.value) {
|
|
21327
|
+
if (notDisabledInsurances[0]) {
|
|
21328
|
+
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
21329
|
+
}
|
|
21330
|
+
}
|
|
21322
21331
|
}
|
|
21323
21332
|
}
|
|
21324
|
-
|
|
21325
|
-
item.obj[item.prop] = compacted;
|
|
21326
21333
|
}
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21334
|
+
if (nGroupInsuranceId) {
|
|
21335
|
+
if (nGroupInsuranceId.value) {
|
|
21336
|
+
if (nGroupInsuranceId.value.constructor === Array) {
|
|
21337
|
+
if (nGroupInsuranceId.opts) {
|
|
21338
|
+
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) { return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled; });
|
|
21339
|
+
}
|
|
21340
|
+
}
|
|
21341
|
+
else {
|
|
21342
|
+
var opt = nGroupInsuranceId.opts.find(function (o) { return o.val === nGroupInsuranceId.value; });
|
|
21343
|
+
if (opt && opt.isDisabled) {
|
|
21344
|
+
nGroupInsuranceId.value = '';
|
|
21345
|
+
}
|
|
21346
|
+
}
|
|
21347
|
+
}
|
|
21348
|
+
if (nGroupInsuranceId.value) {
|
|
21349
|
+
var checkedIns = prodData.mulInsOrderList.find(function (ins) { return ins.key === nGroupInsuranceId.value; });
|
|
21350
|
+
if (checkedIns) {
|
|
21351
|
+
for (var ck in checkedIns) {
|
|
21352
|
+
if (!['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name', 'accountData', 'reduceBaofData'].includes(ck)) {
|
|
21353
|
+
if (ck === 'eleOrderList') {
|
|
21354
|
+
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedIns[ck].filter(function (ele) { return ele.key !== 'title'; }));
|
|
21355
|
+
}
|
|
21356
|
+
else {
|
|
21357
|
+
newGroupInsMap[k][ck] = checkedIns[ck];
|
|
21358
|
+
}
|
|
21359
|
+
}
|
|
21360
|
+
}
|
|
21361
|
+
}
|
|
21362
|
+
}
|
|
21335
21363
|
}
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
var merge = function merge(target, source, options) {
|
|
21342
|
-
/* eslint no-param-reassign: 0 */
|
|
21343
|
-
if (!source) {
|
|
21344
|
-
return target;
|
|
21345
|
-
}
|
|
21346
|
-
|
|
21347
|
-
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
21348
|
-
if (isArray(target)) {
|
|
21349
|
-
target.push(source);
|
|
21350
|
-
} else if (target && typeof target === 'object') {
|
|
21351
|
-
if (
|
|
21352
|
-
(options && (options.plainObjects || options.allowPrototypes))
|
|
21353
|
-
|| !has.call(Object.prototype, source)
|
|
21354
|
-
) {
|
|
21355
|
-
target[source] = true;
|
|
21364
|
+
var index = -1;
|
|
21365
|
+
prodData.mulInsOrderList.forEach(function (ins, i) {
|
|
21366
|
+
if (ins.groupKey === k) {
|
|
21367
|
+
index = i;
|
|
21356
21368
|
}
|
|
21357
|
-
}
|
|
21358
|
-
|
|
21369
|
+
});
|
|
21370
|
+
if (index >= 0) {
|
|
21371
|
+
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
21359
21372
|
}
|
|
21360
|
-
|
|
21361
|
-
|
|
21373
|
+
};
|
|
21374
|
+
for (var k in newGroupInsMap) {
|
|
21375
|
+
_loop_2(k);
|
|
21362
21376
|
}
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21377
|
+
return prodData;
|
|
21378
|
+
}
|
|
21379
|
+
function isHideProduct(prodData, productVerifyData, personOrderList) {
|
|
21380
|
+
var ageRangeProd = {};
|
|
21381
|
+
if (prodData && productVerifyData && Object.keys(productVerifyData).length && personOrderList) {
|
|
21382
|
+
if (prodData.mulInsOrderList) {
|
|
21383
|
+
var hasRequiredIns_1 = prodData.mulInsOrderList.some(function (ins) { return !!ins.required && productVerifyData[ins.key]; });
|
|
21384
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
21385
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
21386
|
+
if (insuranceVerifyData) {
|
|
21387
|
+
if ((!ins.huomian || ins.huomian == 'beiHuomian') && (!hasRequiredIns_1 || (hasRequiredIns_1 && ins.required))) {
|
|
21388
|
+
insuranceVerifyData.forEach(function (verify) {
|
|
21389
|
+
ageRangeProd[verify.sex] = ageRangeProd[verify.sex] || [];
|
|
21390
|
+
ageRangeProd[verify.sex] = [
|
|
21391
|
+
Math.min(ageRangeProd[verify.sex][0] === undefined ? verify.minAge : ageRangeProd[verify.sex][0], verify.minAge),
|
|
21392
|
+
Math.max(ageRangeProd[verify.sex][1] === undefined ? verify.maxAge : ageRangeProd[verify.sex][1], verify.maxAge)
|
|
21393
|
+
];
|
|
21394
|
+
});
|
|
21395
|
+
}
|
|
21396
|
+
}
|
|
21397
|
+
});
|
|
21398
|
+
}
|
|
21399
|
+
var _a = personOrderList.find(function (p) { return p.key === 'insuredInfo'; }), sex = _a.sex, age = _a.age;
|
|
21400
|
+
if (ageRangeProd[sex] && age >= ageRangeProd[sex][0] && age <= ageRangeProd[sex][1]) {
|
|
21401
|
+
prodData.hide = false;
|
|
21402
|
+
}
|
|
21403
|
+
else {
|
|
21404
|
+
prodData.hadChoice = false;
|
|
21405
|
+
prodData.hide = true;
|
|
21406
|
+
prodData.totalBaof = null;
|
|
21407
|
+
}
|
|
21366
21408
|
}
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21370
|
-
|
|
21409
|
+
return ageRangeProd;
|
|
21410
|
+
}
|
|
21411
|
+
function verifyProductRules(_a) {
|
|
21412
|
+
var personData = _a.personData, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
21413
|
+
var errorMsg = '';
|
|
21414
|
+
var personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_5__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
21415
|
+
if (productData.restrictList && productData.restrictList.length) {
|
|
21416
|
+
errorMsg = restrictInsurancesInProduct({
|
|
21417
|
+
personOrderList: personOrderList,
|
|
21418
|
+
productData: productData,
|
|
21419
|
+
insData: insData,
|
|
21420
|
+
eleData: eleData
|
|
21421
|
+
});
|
|
21371
21422
|
}
|
|
21372
|
-
|
|
21373
|
-
|
|
21374
|
-
|
|
21375
|
-
|
|
21376
|
-
|
|
21377
|
-
|
|
21378
|
-
|
|
21379
|
-
|
|
21380
|
-
|
|
21423
|
+
if (!errorMsg && productData.mulInsOrderList) {
|
|
21424
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
21425
|
+
if (ins.eleOrderList) {
|
|
21426
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
21427
|
+
errorMsg =
|
|
21428
|
+
errorMsg ||
|
|
21429
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_6__[/* restrictElementsInInsurance */ "d"])({
|
|
21430
|
+
personOrderList: personOrderList,
|
|
21431
|
+
insData: ins,
|
|
21432
|
+
eleData: ele
|
|
21433
|
+
});
|
|
21434
|
+
});
|
|
21435
|
+
}
|
|
21436
|
+
});
|
|
21437
|
+
}
|
|
21438
|
+
return errorMsg;
|
|
21439
|
+
}
|
|
21440
|
+
function restrictInsurancesInProduct(_a) {
|
|
21441
|
+
var personOrderList = _a.personOrderList, productData = _a.productData, insData = _a.insData, eleData = _a.eleData;
|
|
21442
|
+
var errorMsg = '';
|
|
21443
|
+
var restrictList = productData.restrictList;
|
|
21444
|
+
if (restrictList && restrictList.length) {
|
|
21445
|
+
restrictList.forEach(function (restrict) {
|
|
21446
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
21447
|
+
var productInfo = convertProductData(productData);
|
|
21448
|
+
var prodVerifyData = {
|
|
21449
|
+
age: insuredInfo.age,
|
|
21450
|
+
sex: insuredInfo.sex,
|
|
21451
|
+
common: productInfo.common
|
|
21452
|
+
};
|
|
21453
|
+
productInfo.mulInsOrderList.forEach(function (ins) {
|
|
21454
|
+
prodVerifyData['i' + ins.key] = ins;
|
|
21455
|
+
});
|
|
21456
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'prodVerifyData.i$2$3');
|
|
21457
|
+
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'prodVerifyData.$2');
|
|
21458
|
+
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
21459
|
+
var curEle = curIns ? {} : null;
|
|
21460
|
+
if (curIns) {
|
|
21461
|
+
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
21462
|
+
}
|
|
21463
|
+
if (curEle) {
|
|
21464
|
+
switch (restrict.rType) {
|
|
21465
|
+
case 1:
|
|
21466
|
+
var isDisabled = curEle.isDisabled;
|
|
21467
|
+
var value = curEle.value;
|
|
21468
|
+
if (eval(restrict.rCondition)) {
|
|
21469
|
+
isDisabled = false;
|
|
21470
|
+
if (restrict.other && restrict.other.includes('required')) {
|
|
21471
|
+
value = true;
|
|
21472
|
+
isDisabled = true;
|
|
21473
|
+
}
|
|
21474
|
+
}
|
|
21475
|
+
else {
|
|
21476
|
+
isDisabled = true;
|
|
21477
|
+
if (restrict.other && restrict.other.includes('optional')) {
|
|
21478
|
+
isDisabled = false;
|
|
21479
|
+
}
|
|
21480
|
+
if (isDisabled) {
|
|
21481
|
+
value = false;
|
|
21482
|
+
}
|
|
21483
|
+
if (insData && eleData && restrict.rCondition.search(insData.key + '.' + eleData.key) !== -1) {
|
|
21484
|
+
value = false;
|
|
21485
|
+
}
|
|
21486
|
+
}
|
|
21487
|
+
curEle.isDisabled = isDisabled;
|
|
21488
|
+
curEle.value = value;
|
|
21489
|
+
break;
|
|
21490
|
+
case 2: {
|
|
21491
|
+
var rangeSelect_1 = eval(restrict.rCondition);
|
|
21492
|
+
if (rangeSelect_1 !== undefined && rangeSelect_1 !== null) {
|
|
21493
|
+
curEle.opts.forEach(function (opt) {
|
|
21494
|
+
var optNum = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(opt.val, prodVerifyData.age);
|
|
21495
|
+
var rangeSelectNum = rangeSelect_1.constructor === Array
|
|
21496
|
+
? [
|
|
21497
|
+
rangeSelect_1[0] && Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1[0], prodVerifyData.age),
|
|
21498
|
+
rangeSelect_1[1] && Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1[1], prodVerifyData.age)
|
|
21499
|
+
]
|
|
21500
|
+
: Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* getNumberFromYear */ "h"])(rangeSelect_1, prodVerifyData.age);
|
|
21501
|
+
if (rangeSelect_1) {
|
|
21502
|
+
if (rangeSelect_1.constructor === Array) {
|
|
21503
|
+
opt.isHide =
|
|
21504
|
+
(rangeSelect_1[0] && optNum < rangeSelectNum[0]) || (rangeSelect_1[1] && optNum > rangeSelectNum[1]);
|
|
21505
|
+
}
|
|
21506
|
+
else {
|
|
21507
|
+
opt.isHide = optNum > rangeSelectNum;
|
|
21508
|
+
}
|
|
21509
|
+
}
|
|
21510
|
+
});
|
|
21511
|
+
if (!(curEle.isHide && !curEle.isDisabled) && curEle.opts) {
|
|
21512
|
+
var validOptions = curEle.opts.filter(function (o) { return !o.isDisabled && !o.isHide && !o.isInvalid; });
|
|
21513
|
+
var activeOption = validOptions.find(function (o) { return o.val === curEle.value; });
|
|
21514
|
+
if (!activeOption && validOptions.length) {
|
|
21515
|
+
curEle.value = validOptions[0].val;
|
|
21516
|
+
}
|
|
21517
|
+
}
|
|
21518
|
+
}
|
|
21519
|
+
break;
|
|
21520
|
+
}
|
|
21521
|
+
case 3: {
|
|
21522
|
+
if ((!insData && !eleData) ||
|
|
21523
|
+
(restrict.rInsKey === insData.key && restrict.rEleKey === eleData.key) ||
|
|
21524
|
+
restrict.rCondition.search("prodVerifyData.i".concat(insData.key, ".").concat(eleData.key)) !== -1) {
|
|
21525
|
+
var rangeVal = eval(restrict.rCondition);
|
|
21526
|
+
if (rangeVal !== undefined && rangeVal !== null) {
|
|
21527
|
+
if (rangeVal.constructor === Array) {
|
|
21528
|
+
if (rangeVal[0] && curEle.value && curEle.value < rangeVal[0]) {
|
|
21529
|
+
errorMsg =
|
|
21530
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5C0F\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* converUnit10000 */ "b"])(rangeVal[0]));
|
|
21531
|
+
}
|
|
21532
|
+
if (rangeVal[1] && curEle.value && curEle.value > rangeVal[1]) {
|
|
21533
|
+
errorMsg =
|
|
21534
|
+
restrict.rMsg || "".concat(curIns.name, "\u7684").concat(curEle.labelName, "\u4E0D\u5F97\u5927\u4E8E").concat(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* converUnit10000 */ "b"])(rangeVal[1]));
|
|
21535
|
+
}
|
|
21536
|
+
}
|
|
21537
|
+
else if (rangeVal.constructor === String || rangeVal.constructor === Number) {
|
|
21538
|
+
if (rangeVal) {
|
|
21539
|
+
curEle.value = rangeVal;
|
|
21540
|
+
}
|
|
21541
|
+
}
|
|
21542
|
+
}
|
|
21543
|
+
}
|
|
21544
|
+
break;
|
|
21545
|
+
}
|
|
21381
21546
|
}
|
|
21382
|
-
} else {
|
|
21383
|
-
target[i] = item;
|
|
21384
21547
|
}
|
|
21385
21548
|
});
|
|
21386
|
-
return target;
|
|
21387
|
-
}
|
|
21388
|
-
|
|
21389
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
21390
|
-
var value = source[key];
|
|
21391
|
-
|
|
21392
|
-
if (has.call(acc, key)) {
|
|
21393
|
-
acc[key] = merge(acc[key], value, options);
|
|
21394
|
-
} else {
|
|
21395
|
-
acc[key] = value;
|
|
21396
|
-
}
|
|
21397
|
-
return acc;
|
|
21398
|
-
}, mergeTarget);
|
|
21399
|
-
};
|
|
21400
|
-
|
|
21401
|
-
var assign = function assignSingleSource(target, source) {
|
|
21402
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
21403
|
-
acc[key] = source[key];
|
|
21404
|
-
return acc;
|
|
21405
|
-
}, target);
|
|
21406
|
-
};
|
|
21407
|
-
|
|
21408
|
-
var decode = function (str, defaultDecoder, charset) {
|
|
21409
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
21410
|
-
if (charset === 'iso-8859-1') {
|
|
21411
|
-
// unescape never throws, no try...catch needed:
|
|
21412
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21413
|
-
}
|
|
21414
|
-
// utf-8
|
|
21415
|
-
try {
|
|
21416
|
-
return decodeURIComponent(strWithoutPlus);
|
|
21417
|
-
} catch (e) {
|
|
21418
|
-
return strWithoutPlus;
|
|
21419
|
-
}
|
|
21420
|
-
};
|
|
21421
|
-
|
|
21422
|
-
var limit = 1024;
|
|
21423
|
-
|
|
21424
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
21425
|
-
|
|
21426
|
-
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
21427
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
21428
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
21429
|
-
if (str.length === 0) {
|
|
21430
|
-
return str;
|
|
21431
21549
|
}
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
string = String(str);
|
|
21550
|
+
return errorMsg;
|
|
21551
|
+
}
|
|
21552
|
+
function convertProductData(prodData) {
|
|
21553
|
+
if (!prodData) {
|
|
21554
|
+
return prodData;
|
|
21438
21555
|
}
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
21442
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
21443
|
-
});
|
|
21556
|
+
if (!prodData.mulInsOrderList) {
|
|
21557
|
+
return prodData;
|
|
21444
21558
|
}
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
21452
|
-
var c = segment.charCodeAt(i);
|
|
21453
|
-
if (
|
|
21454
|
-
c === 0x2D // -
|
|
21455
|
-
|| c === 0x2E // .
|
|
21456
|
-
|| c === 0x5F // _
|
|
21457
|
-
|| c === 0x7E // ~
|
|
21458
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
21459
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
21460
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
21461
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
21462
|
-
) {
|
|
21463
|
-
arr[arr.length] = segment.charAt(i);
|
|
21464
|
-
continue;
|
|
21465
|
-
}
|
|
21466
|
-
|
|
21467
|
-
if (c < 0x80) {
|
|
21468
|
-
arr[arr.length] = hexTable[c];
|
|
21469
|
-
continue;
|
|
21470
|
-
}
|
|
21471
|
-
|
|
21472
|
-
if (c < 0x800) {
|
|
21473
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
21474
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21475
|
-
continue;
|
|
21476
|
-
}
|
|
21477
|
-
|
|
21478
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
21479
|
-
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
21480
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21481
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21482
|
-
continue;
|
|
21483
|
-
}
|
|
21484
|
-
|
|
21485
|
-
i += 1;
|
|
21486
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
21487
|
-
|
|
21488
|
-
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
21489
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
21490
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
21491
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
21559
|
+
var productData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, prodData), { common: {}, mulInsOrderList: [] });
|
|
21560
|
+
prodData.mulInsOrderList.forEach(function (insurance) {
|
|
21561
|
+
var insuranceData = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(insurance);
|
|
21562
|
+
if (insuranceData.key == 'common') {
|
|
21563
|
+
productData.common = insuranceData;
|
|
21564
|
+
return;
|
|
21492
21565
|
}
|
|
21493
|
-
|
|
21494
|
-
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
21507
|
-
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
var key = keys[j];
|
|
21511
|
-
var val = obj[key];
|
|
21512
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
21513
|
-
queue.push({ obj: obj, prop: key });
|
|
21514
|
-
refs.push(val);
|
|
21566
|
+
if (insuranceData.title && !insuranceData.groupKey) {
|
|
21567
|
+
if (insuranceData.isGroup) {
|
|
21568
|
+
var insuranceId = insuranceData.insuranceId.constructor == Array ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
21569
|
+
insuranceId.forEach(function (insId) {
|
|
21570
|
+
var checkedIns = prodData.mulInsOrderList.find(function (p) { return p.key === insId; });
|
|
21571
|
+
if (checkedIns) {
|
|
21572
|
+
var checkedInsData_1 = Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* convertEleOrderListToObj */ "c"])(checkedIns);
|
|
21573
|
+
insurance.eleOrderList &&
|
|
21574
|
+
insurance.eleOrderList.forEach(function (ele) {
|
|
21575
|
+
if (!['title', 'insuranceId'].includes(ele.key)) {
|
|
21576
|
+
checkedInsData_1[ele.key] = insuranceData[ele.key];
|
|
21577
|
+
}
|
|
21578
|
+
});
|
|
21579
|
+
productData.mulInsOrderList.push(Object(_common__WEBPACK_IMPORTED_MODULE_4__[/* deepCopy */ "d"])(checkedInsData_1));
|
|
21580
|
+
}
|
|
21581
|
+
});
|
|
21582
|
+
return;
|
|
21515
21583
|
}
|
|
21584
|
+
productData.mulInsOrderList.push(insuranceData);
|
|
21516
21585
|
}
|
|
21586
|
+
});
|
|
21587
|
+
return productData;
|
|
21588
|
+
}
|
|
21589
|
+
function clearAddAndTakeAndAdjustBaoeData(productData) {
|
|
21590
|
+
if (!productData) {
|
|
21591
|
+
return productData;
|
|
21517
21592
|
}
|
|
21518
|
-
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
|
-
return value;
|
|
21522
|
-
};
|
|
21523
|
-
|
|
21524
|
-
var isRegExp = function isRegExp(obj) {
|
|
21525
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
21526
|
-
};
|
|
21527
|
-
|
|
21528
|
-
var isBuffer = function isBuffer(obj) {
|
|
21529
|
-
if (!obj || typeof obj !== 'object') {
|
|
21530
|
-
return false;
|
|
21593
|
+
if (!productData.mulInsOrderList) {
|
|
21594
|
+
return productData;
|
|
21531
21595
|
}
|
|
21532
|
-
|
|
21533
|
-
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
};
|
|
21539
|
-
|
|
21540
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
21541
|
-
if (isArray(val)) {
|
|
21542
|
-
var mapped = [];
|
|
21543
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
21544
|
-
mapped.push(fn(val[i]));
|
|
21596
|
+
productData.adjustBaoeData = null;
|
|
21597
|
+
productData.mulInsOrderList.forEach(function (ins) {
|
|
21598
|
+
if (ins.accountData && ins.accountData.addAndTakeData) {
|
|
21599
|
+
ins.accountData.addAndTakeData.forEach(function (aat) {
|
|
21600
|
+
aat.adjustData = [];
|
|
21601
|
+
});
|
|
21545
21602
|
}
|
|
21546
|
-
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
};
|
|
21550
|
-
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
combine: combine,
|
|
21555
|
-
compact: compact,
|
|
21556
|
-
decode: decode,
|
|
21557
|
-
encode: encode,
|
|
21558
|
-
isBuffer: isBuffer,
|
|
21559
|
-
isRegExp: isRegExp,
|
|
21560
|
-
maybeMap: maybeMap,
|
|
21561
|
-
merge: merge
|
|
21562
|
-
};
|
|
21603
|
+
if (ins.reduceBaof && ins.reduceBaofData) {
|
|
21604
|
+
ins.reduceBaofData.addAndTakeData.forEach(function (aat) {
|
|
21605
|
+
aat.adjustData = [];
|
|
21606
|
+
});
|
|
21607
|
+
}
|
|
21608
|
+
});
|
|
21609
|
+
return productData;
|
|
21610
|
+
}
|
|
21563
21611
|
|
|
21564
21612
|
|
|
21565
21613
|
/***/ }),
|
|
@@ -21599,8 +21647,8 @@ module.exports = function(module) {
|
|
|
21599
21647
|
|
|
21600
21648
|
|
|
21601
21649
|
var getSideChannel = __webpack_require__(40);
|
|
21602
|
-
var utils = __webpack_require__(
|
|
21603
|
-
var formats = __webpack_require__(
|
|
21650
|
+
var utils = __webpack_require__(35);
|
|
21651
|
+
var formats = __webpack_require__(23);
|
|
21604
21652
|
var has = Object.prototype.hasOwnProperty;
|
|
21605
21653
|
|
|
21606
21654
|
var arrayPrefixGenerators = {
|
|
@@ -21961,10 +22009,10 @@ module.exports = function (object, opts) {
|
|
|
21961
22009
|
"use strict";
|
|
21962
22010
|
|
|
21963
22011
|
|
|
21964
|
-
var $TypeError = __webpack_require__(
|
|
21965
|
-
var inspect = __webpack_require__(
|
|
22012
|
+
var $TypeError = __webpack_require__(10);
|
|
22013
|
+
var inspect = __webpack_require__(16);
|
|
21966
22014
|
var getSideChannelList = __webpack_require__(42);
|
|
21967
|
-
var getSideChannelMap = __webpack_require__(
|
|
22015
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
21968
22016
|
var getSideChannelWeakMap = __webpack_require__(67);
|
|
21969
22017
|
|
|
21970
22018
|
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
@@ -22017,9 +22065,9 @@ module.exports = function getSideChannel() {
|
|
|
22017
22065
|
"use strict";
|
|
22018
22066
|
|
|
22019
22067
|
|
|
22020
|
-
var inspect = __webpack_require__(
|
|
22068
|
+
var inspect = __webpack_require__(16);
|
|
22021
22069
|
|
|
22022
|
-
var $TypeError = __webpack_require__(
|
|
22070
|
+
var $TypeError = __webpack_require__(10);
|
|
22023
22071
|
|
|
22024
22072
|
/*
|
|
22025
22073
|
* This function traverses the list returning the node corresponding to the given key.
|
|
@@ -22405,8 +22453,8 @@ module.exports = function hasSymbols() {
|
|
|
22405
22453
|
"use strict";
|
|
22406
22454
|
|
|
22407
22455
|
|
|
22408
|
-
var reflectGetProto = __webpack_require__(
|
|
22409
|
-
var originalGetProto = __webpack_require__(
|
|
22456
|
+
var reflectGetProto = __webpack_require__(30);
|
|
22457
|
+
var originalGetProto = __webpack_require__(31);
|
|
22410
22458
|
|
|
22411
22459
|
var getDunderProto = __webpack_require__(62);
|
|
22412
22460
|
|
|
@@ -22439,8 +22487,8 @@ module.exports = reflectGetProto
|
|
|
22439
22487
|
"use strict";
|
|
22440
22488
|
|
|
22441
22489
|
|
|
22442
|
-
var callBind = __webpack_require__(
|
|
22443
|
-
var gOPD = __webpack_require__(
|
|
22490
|
+
var callBind = __webpack_require__(32);
|
|
22491
|
+
var gOPD = __webpack_require__(29);
|
|
22444
22492
|
|
|
22445
22493
|
var hasProtoAccessor;
|
|
22446
22494
|
try {
|
|
@@ -22567,10 +22615,10 @@ module.exports = function bind(that) {
|
|
|
22567
22615
|
"use strict";
|
|
22568
22616
|
|
|
22569
22617
|
|
|
22570
|
-
var bind = __webpack_require__(
|
|
22618
|
+
var bind = __webpack_require__(17);
|
|
22571
22619
|
|
|
22572
|
-
var $apply = __webpack_require__(
|
|
22573
|
-
var $call = __webpack_require__(
|
|
22620
|
+
var $apply = __webpack_require__(33);
|
|
22621
|
+
var $call = __webpack_require__(22);
|
|
22574
22622
|
var $reflectApply = __webpack_require__(65);
|
|
22575
22623
|
|
|
22576
22624
|
/** @type {import('./actualApply')} */
|
|
@@ -22597,7 +22645,7 @@ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
|
22597
22645
|
|
|
22598
22646
|
var call = Function.prototype.call;
|
|
22599
22647
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
22600
|
-
var bind = __webpack_require__(
|
|
22648
|
+
var bind = __webpack_require__(17);
|
|
22601
22649
|
|
|
22602
22650
|
/** @type {import('.')} */
|
|
22603
22651
|
module.exports = bind.call(call, $hasOwn);
|
|
@@ -22610,12 +22658,12 @@ module.exports = bind.call(call, $hasOwn);
|
|
|
22610
22658
|
"use strict";
|
|
22611
22659
|
|
|
22612
22660
|
|
|
22613
|
-
var GetIntrinsic = __webpack_require__(
|
|
22614
|
-
var callBound = __webpack_require__(
|
|
22615
|
-
var inspect = __webpack_require__(
|
|
22616
|
-
var getSideChannelMap = __webpack_require__(
|
|
22661
|
+
var GetIntrinsic = __webpack_require__(21);
|
|
22662
|
+
var callBound = __webpack_require__(34);
|
|
22663
|
+
var inspect = __webpack_require__(16);
|
|
22664
|
+
var getSideChannelMap = __webpack_require__(27);
|
|
22617
22665
|
|
|
22618
|
-
var $TypeError = __webpack_require__(
|
|
22666
|
+
var $TypeError = __webpack_require__(10);
|
|
22619
22667
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
22620
22668
|
|
|
22621
22669
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
@@ -22701,7 +22749,7 @@ module.exports = $WeakMap
|
|
|
22701
22749
|
"use strict";
|
|
22702
22750
|
|
|
22703
22751
|
|
|
22704
|
-
var utils = __webpack_require__(
|
|
22752
|
+
var utils = __webpack_require__(35);
|
|
22705
22753
|
|
|
22706
22754
|
var has = Object.prototype.hasOwnProperty;
|
|
22707
22755
|
var isArray = Array.isArray;
|
|
@@ -23209,7 +23257,7 @@ var select_itemvue_type_script_lang_ts_BxtSelectItem = (function (_super) {
|
|
|
23209
23257
|
var select_itemvue_type_style_index_0_id_081d6d99_prod_lang_postcss = __webpack_require__(107);
|
|
23210
23258
|
|
|
23211
23259
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
23212
|
-
var componentNormalizer = __webpack_require__(
|
|
23260
|
+
var componentNormalizer = __webpack_require__(8);
|
|
23213
23261
|
|
|
23214
23262
|
// CONCATENATED MODULE: ./packages/components/form-item/select-item.vue
|
|
23215
23263
|
|
|
@@ -24040,7 +24088,7 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object
|
|
|
24040
24088
|
|
|
24041
24089
|
module.exports = freeGlobal;
|
|
24042
24090
|
|
|
24043
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
24091
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(26)))
|
|
24044
24092
|
|
|
24045
24093
|
/***/ }),
|
|
24046
24094
|
/* 145 */
|
|
@@ -26590,8 +26638,8 @@ module.exports = baseIsSet;
|
|
|
26590
26638
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
26591
26639
|
|
|
26592
26640
|
"use strict";
|
|
26593
|
-
/* harmony import */ var
|
|
26594
|
-
/* harmony import */ var
|
|
26641
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_66de96f1_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(158);
|
|
26642
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_66de96f1_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_66de96f1_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
26595
26643
|
/* unused harmony reexport * */
|
|
26596
26644
|
|
|
26597
26645
|
|
|
@@ -26638,7 +26686,7 @@ module.exports = baseIsSet;
|
|
|
26638
26686
|
// ESM COMPAT FLAG
|
|
26639
26687
|
__webpack_require__.r(__webpack_exports__);
|
|
26640
26688
|
|
|
26641
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/adjust-baoe/index.vue?vue&type=template&id=
|
|
26689
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/adjust-baoe/index.vue?vue&type=template&id=66de96f1
|
|
26642
26690
|
var render = function render() {
|
|
26643
26691
|
var _vm = this,
|
|
26644
26692
|
_c = _vm._self._c,
|
|
@@ -26779,13 +26827,13 @@ var render = function render() {
|
|
|
26779
26827
|
};
|
|
26780
26828
|
var staticRenderFns = [];
|
|
26781
26829
|
|
|
26782
|
-
// CONCATENATED MODULE: ./packages/adjust-baoe/index.vue?vue&type=template&id=
|
|
26830
|
+
// CONCATENATED MODULE: ./packages/adjust-baoe/index.vue?vue&type=template&id=66de96f1
|
|
26783
26831
|
|
|
26784
26832
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
26785
26833
|
var tslib_es6 = __webpack_require__(0);
|
|
26786
26834
|
|
|
26787
26835
|
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
26788
|
-
var lib = __webpack_require__(
|
|
26836
|
+
var lib = __webpack_require__(15);
|
|
26789
26837
|
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
26790
26838
|
|
|
26791
26839
|
// EXTERNAL MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js + 1 modules
|
|
@@ -26802,10 +26850,10 @@ var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ =
|
|
|
26802
26850
|
var bxs_ui_vue_lib = __webpack_require__(131);
|
|
26803
26851
|
|
|
26804
26852
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/index.ts
|
|
26805
|
-
var planbook = __webpack_require__(
|
|
26853
|
+
var planbook = __webpack_require__(20);
|
|
26806
26854
|
|
|
26807
26855
|
// EXTERNAL MODULE: ./src/js/variables.js
|
|
26808
|
-
var variables = __webpack_require__(
|
|
26856
|
+
var variables = __webpack_require__(7);
|
|
26809
26857
|
|
|
26810
26858
|
// EXTERNAL MODULE: ./packages/components/form-item/select-item.vue + 4 modules
|
|
26811
26859
|
var select_item = __webpack_require__(79);
|
|
@@ -26938,9 +26986,7 @@ var adjust_baoevue_type_script_lang_ts_AdjustBaoe = (function (_super) {
|
|
|
26938
26986
|
var _loop_1 = function (k) {
|
|
26939
26987
|
var insData = insList.find(function (ins) { return ins[ins.code ? 'code' : 'key'] == k.replace(/baoe_/, ''); });
|
|
26940
26988
|
if (insData) {
|
|
26941
|
-
adjustData[k] = /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name)
|
|
26942
|
-
? /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name)[2]
|
|
26943
|
-
: insData.name;
|
|
26989
|
+
adjustData[k] = /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name) ? /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name)[2] : insData.name;
|
|
26944
26990
|
}
|
|
26945
26991
|
};
|
|
26946
26992
|
for (var k in adjustRecord) {
|
|
@@ -26950,8 +26996,7 @@ var adjust_baoevue_type_script_lang_ts_AdjustBaoe = (function (_super) {
|
|
|
26950
26996
|
};
|
|
26951
26997
|
AdjustBaoe.prototype.isModifyValue = function (adjust, key) {
|
|
26952
26998
|
var _this = this;
|
|
26953
|
-
return
|
|
26954
|
-
this.adjustBaoeData.some(function (ad) { return ad.age === adjust.age && ad[key] !== _this.defaultAdjustRecord[key]; }));
|
|
26999
|
+
return this.adjustBaoeData && this.adjustBaoeData.some(function (ad) { return ad.age === adjust.age && ad[key] !== _this.defaultAdjustRecord[key]; });
|
|
26955
27000
|
};
|
|
26956
27001
|
AdjustBaoe.prototype.checkAdjustBaoe = function () {
|
|
26957
27002
|
var _this = this;
|
|
@@ -26963,34 +27008,17 @@ var adjust_baoevue_type_script_lang_ts_AdjustBaoe = (function (_super) {
|
|
|
26963
27008
|
if (!this.adjustBaoeData) {
|
|
26964
27009
|
return Promise.resolve();
|
|
26965
27010
|
}
|
|
26966
|
-
var deleteProdKeys = [
|
|
26967
|
-
'hadChoice',
|
|
26968
|
-
'hide',
|
|
26969
|
-
'totalBaof',
|
|
26970
|
-
'insShowArr',
|
|
26971
|
-
'autoImport',
|
|
26972
|
-
'accountData',
|
|
26973
|
-
'adjustBaoeData'
|
|
26974
|
-
];
|
|
27011
|
+
var deleteProdKeys = ['hadChoice', 'hide', 'totalBaof', 'insShowArr', 'autoImport', 'accountData', 'adjustBaoeData'];
|
|
26975
27012
|
deleteProdKeys.forEach(function (ele) {
|
|
26976
27013
|
delete cloneProductData[ele];
|
|
26977
27014
|
});
|
|
26978
27015
|
(_a = cloneProductData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins) {
|
|
26979
|
-
var deleteInsKeys = [
|
|
26980
|
-
'isFollowing',
|
|
26981
|
-
'pPeriodDesc',
|
|
26982
|
-
'baoeDesc',
|
|
26983
|
-
'baofDesc',
|
|
26984
|
-
'iDurationDesc',
|
|
26985
|
-
'isCheckbox',
|
|
26986
|
-
'groupKey',
|
|
26987
|
-
'groupName'
|
|
26988
|
-
];
|
|
27016
|
+
var deleteInsKeys = ['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'isCheckbox', 'groupKey', 'groupName'];
|
|
26989
27017
|
deleteInsKeys.forEach(function (ele) {
|
|
26990
27018
|
delete ins[ele];
|
|
26991
27019
|
});
|
|
26992
27020
|
});
|
|
26993
|
-
var url = "
|
|
27021
|
+
var url = "".concat(variables["d" /* PLANBOOK_API_HOSTNAME */], "/planBook/").concat(params.publicPbUuid ? 'public' : 'V2', "/validateAccount/-1/low");
|
|
26994
27022
|
return fetch(url, {
|
|
26995
27023
|
method: 'POST',
|
|
26996
27024
|
credentials: 'include',
|
|
@@ -27167,11 +27195,11 @@ var adjust_baoevue_type_script_lang_ts_AdjustBaoe = (function (_super) {
|
|
|
27167
27195
|
|
|
27168
27196
|
// CONCATENATED MODULE: ./packages/adjust-baoe/index.vue?vue&type=script&lang=ts
|
|
27169
27197
|
/* harmony default export */ var packages_adjust_baoevue_type_script_lang_ts = (adjust_baoevue_type_script_lang_ts);
|
|
27170
|
-
// EXTERNAL MODULE: ./packages/adjust-baoe/index.vue?vue&type=style&index=0&id=
|
|
27171
|
-
var
|
|
27198
|
+
// EXTERNAL MODULE: ./packages/adjust-baoe/index.vue?vue&type=style&index=0&id=66de96f1&prod&lang=css
|
|
27199
|
+
var adjust_baoevue_type_style_index_0_id_66de96f1_prod_lang_css = __webpack_require__(245);
|
|
27172
27200
|
|
|
27173
27201
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
27174
|
-
var componentNormalizer = __webpack_require__(
|
|
27202
|
+
var componentNormalizer = __webpack_require__(8);
|
|
27175
27203
|
|
|
27176
27204
|
// CONCATENATED MODULE: ./packages/adjust-baoe/index.vue
|
|
27177
27205
|
|