bxs-tools-ui 1.2.9 → 1.2.11
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 +441 -401
- package/lib/adjust-baoe/index.js +462 -421
- package/lib/business-card/index.js +17 -17
- package/lib/bxs-utils/index.js +966 -963
- package/lib/canvas-poster/index.js +17 -17
- package/lib/index.css +67 -35
- package/lib/index.js +8316 -587
- package/lib/insure-calculate/index.js +1609 -1609
- package/lib/person-info/index.css +46 -39
- package/lib/person-info/index.js +4536 -4611
- package/lib/product-info/index.css +67 -35
- package/lib/product-info/index.js +13011 -5138
- package/package.json +1 -1
- package/packages/components/form-item/title-item.css +34 -33
- package/packages/components/form-item/title-item.vue +37 -27
- package/packages/product-info/index.css +27 -1
- package/packages/product-info/index.vue +88 -1
|
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 243);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
@@ -495,1009 +495,370 @@ function getAgeFromBirth(birth, cDate) {
|
|
|
495
495
|
|
|
496
496
|
/***/ }),
|
|
497
497
|
|
|
498
|
-
/***/
|
|
499
|
-
/***/ (function(module,
|
|
500
|
-
|
|
501
|
-
"use strict";
|
|
502
|
-
// ESM COMPAT FLAG
|
|
503
|
-
__webpack_require__.r(__webpack_exports__);
|
|
498
|
+
/***/ 11:
|
|
499
|
+
/***/ (function(module, exports) {
|
|
504
500
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
__webpack_require__.d(__webpack_exports__, "calcTotalBaof", function() { return /* reexport */ planbook["a" /* calcTotalBaof */]; });
|
|
508
|
-
__webpack_require__.d(__webpack_exports__, "getHuomianPeriodValue", function() { return /* reexport */ planbook["j" /* getHuomianPeriodValue */]; });
|
|
509
|
-
__webpack_require__.d(__webpack_exports__, "getNumberFromYear", function() { return /* reexport */ planbook["l" /* getNumberFromYear */]; });
|
|
510
|
-
__webpack_require__.d(__webpack_exports__, "converUnit10000", function() { return /* reexport */ planbook["c" /* converUnit10000 */]; });
|
|
511
|
-
__webpack_require__.d(__webpack_exports__, "deepCopy", function() { return /* reexport */ planbook["g" /* deepCopy */]; });
|
|
512
|
-
__webpack_require__.d(__webpack_exports__, "getAgeFromBirth", function() { return /* reexport */ planbook["h" /* getAgeFromBirth */]; });
|
|
513
|
-
__webpack_require__.d(__webpack_exports__, "initPersonData", function() { return /* reexport */ planbook["o" /* initPersonData */]; });
|
|
514
|
-
__webpack_require__.d(__webpack_exports__, "personDataHandler", function() { return /* reexport */ planbook["s" /* personDataHandler */]; });
|
|
515
|
-
__webpack_require__.d(__webpack_exports__, "getInsuredAgeRange", function() { return /* reexport */ planbook["k" /* getInsuredAgeRange */]; });
|
|
516
|
-
__webpack_require__.d(__webpack_exports__, "setPersonAgeOptions", function() { return /* reexport */ planbook["y" /* setPersonAgeOptions */]; });
|
|
517
|
-
__webpack_require__.d(__webpack_exports__, "convertPersonData", function() { return /* reexport */ planbook["e" /* convertPersonData */]; });
|
|
518
|
-
__webpack_require__.d(__webpack_exports__, "initProductData", function() { return /* reexport */ planbook["p" /* initProductData */]; });
|
|
519
|
-
__webpack_require__.d(__webpack_exports__, "productDataHandler", function() { return /* reexport */ planbook["t" /* productDataHandler */]; });
|
|
520
|
-
__webpack_require__.d(__webpack_exports__, "getElementVerifyFromProductVerify", function() { return /* reexport */ planbook["i" /* getElementVerifyFromProductVerify */]; });
|
|
521
|
-
__webpack_require__.d(__webpack_exports__, "setCommonInfo", function() { return /* reexport */ planbook["w" /* setCommonInfo */]; });
|
|
522
|
-
__webpack_require__.d(__webpack_exports__, "setGroupInsurance", function() { return /* reexport */ planbook["x" /* setGroupInsurance */]; });
|
|
523
|
-
__webpack_require__.d(__webpack_exports__, "isHideProduct", function() { return /* reexport */ planbook["r" /* isHideProduct */]; });
|
|
524
|
-
__webpack_require__.d(__webpack_exports__, "verifyProductRules", function() { return /* reexport */ planbook["z" /* verifyProductRules */]; });
|
|
525
|
-
__webpack_require__.d(__webpack_exports__, "restrictInsurancesInProduct", function() { return /* reexport */ planbook["v" /* restrictInsurancesInProduct */]; });
|
|
526
|
-
__webpack_require__.d(__webpack_exports__, "convertProductData", function() { return /* reexport */ planbook["f" /* convertProductData */]; });
|
|
527
|
-
__webpack_require__.d(__webpack_exports__, "clearAddAndTakeAndAdjustBaoeData", function() { return /* reexport */ planbook["b" /* clearAddAndTakeAndAdjustBaoeData */]; });
|
|
528
|
-
__webpack_require__.d(__webpack_exports__, "initInsuranceData", function() { return /* reexport */ planbook["n" /* initInsuranceData */]; });
|
|
529
|
-
__webpack_require__.d(__webpack_exports__, "insuranceDataHandler", function() { return /* reexport */ planbook["q" /* insuranceDataHandler */]; });
|
|
530
|
-
__webpack_require__.d(__webpack_exports__, "initElementValidateRules", function() { return /* reexport */ planbook["m" /* initElementValidateRules */]; });
|
|
531
|
-
__webpack_require__.d(__webpack_exports__, "restrictElementsInInsurance", function() { return /* reexport */ planbook["u" /* restrictElementsInInsurance */]; });
|
|
532
|
-
__webpack_require__.d(__webpack_exports__, "getAddress", function() { return /* reexport */ getAddress; });
|
|
533
|
-
__webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ getUuid; });
|
|
534
|
-
__webpack_require__.d(__webpack_exports__, "hasPlanParams", function() { return /* reexport */ hasPlanParams; });
|
|
535
|
-
__webpack_require__.d(__webpack_exports__, "insureCalculate", function() { return /* reexport */ insureCalculate; });
|
|
536
|
-
__webpack_require__.d(__webpack_exports__, "checkInsureCalculate", function() { return /* reexport */ checkInsureCalculate; });
|
|
537
|
-
__webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function() { return /* reexport */ checkInsureCalculateIn; });
|
|
501
|
+
function _typeof(obj) {
|
|
502
|
+
"@babel/helpers - typeof";
|
|
538
503
|
|
|
539
|
-
|
|
540
|
-
|
|
504
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
505
|
+
return typeof obj;
|
|
506
|
+
} : function (obj) {
|
|
507
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
508
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
509
|
+
}
|
|
541
510
|
|
|
542
|
-
|
|
543
|
-
var asyncToGenerator = __webpack_require__(28);
|
|
544
|
-
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
511
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
545
512
|
|
|
546
|
-
|
|
547
|
-
var helpers_typeof = __webpack_require__(9);
|
|
548
|
-
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
|
513
|
+
/***/ }),
|
|
549
514
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
515
|
+
/***/ 12:
|
|
516
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
553
517
|
|
|
554
|
-
|
|
555
|
-
var
|
|
556
|
-
|
|
518
|
+
"use strict";
|
|
519
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
520
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["a"]; });
|
|
557
521
|
|
|
558
|
-
|
|
559
|
-
// import { gotoLogin } from './utils.js'
|
|
522
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["b"]; });
|
|
560
523
|
|
|
561
|
-
|
|
562
|
-
var env = null;
|
|
524
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["c"]; });
|
|
563
525
|
|
|
564
|
-
|
|
565
|
-
env = 'https://app.winbaoxian.com';
|
|
566
|
-
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
567
|
-
env = 'https://app.winbaoxian.cn';
|
|
568
|
-
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost/) !== -1) {
|
|
569
|
-
env = 'https://app.winbaoxian.cn';
|
|
570
|
-
}
|
|
526
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "g", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["d"]; });
|
|
571
527
|
|
|
572
|
-
|
|
573
|
-
}(); // 创建axios实例
|
|
528
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "h", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["e"]; });
|
|
574
529
|
|
|
530
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "j", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["f"]; });
|
|
575
531
|
|
|
576
|
-
|
|
577
|
-
baseURL: BASE_API,
|
|
578
|
-
withCredentials: true,
|
|
579
|
-
timeout: 10000,
|
|
580
|
-
// 请求超时时间
|
|
581
|
-
headers: {
|
|
582
|
-
'X-Requested-With': 'XMLHttpRequest'
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
var loadingTimer = null;
|
|
532
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "l", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["g"]; });
|
|
586
533
|
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
if (show) {
|
|
590
|
-
appBridge.showLoading();
|
|
591
|
-
} else {
|
|
592
|
-
appBridge.hideLoading();
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}; // request拦截器
|
|
534
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
535
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
596
536
|
|
|
537
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "k", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
597
538
|
|
|
598
|
-
|
|
599
|
-
if (loadingTimer) clearTimeout(loadingTimer);
|
|
600
|
-
loadingTimer = setTimeout(function () {
|
|
601
|
-
loading(true);
|
|
602
|
-
}, 300);
|
|
603
|
-
return config;
|
|
604
|
-
}, function (error) {
|
|
605
|
-
// Do something with request error
|
|
606
|
-
console.log(error); // for debug
|
|
539
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "o", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["c"]; });
|
|
607
540
|
|
|
608
|
-
|
|
609
|
-
}); // respone拦截器
|
|
541
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "s", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["d"]; });
|
|
610
542
|
|
|
611
|
-
|
|
612
|
-
if (loadingTimer) clearTimeout(loadingTimer);
|
|
613
|
-
loading(false);
|
|
614
|
-
var res = response.data;
|
|
543
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "y", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["e"]; });
|
|
615
544
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
return Promise.reject('login');
|
|
619
|
-
}
|
|
545
|
+
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
|
546
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
620
547
|
|
|
621
|
-
|
|
622
|
-
}, function (error) {
|
|
623
|
-
if (loadingTimer) clearTimeout(loadingTimer);
|
|
624
|
-
loading(false);
|
|
548
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
625
549
|
|
|
626
|
-
|
|
627
|
-
// gotoLogin()
|
|
628
|
-
return Promise.reject('login');
|
|
629
|
-
}
|
|
550
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "i", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["c"]; });
|
|
630
551
|
|
|
631
|
-
|
|
552
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "p", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["d"]; });
|
|
632
553
|
|
|
633
|
-
|
|
634
|
-
});
|
|
635
|
-
/* harmony default export */ var request = (service);
|
|
636
|
-
// CONCATENATED MODULE: ./packages/bxs-utils/trade/insureCalculate.js
|
|
554
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "r", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["e"]; });
|
|
637
555
|
|
|
556
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "t", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["f"]; });
|
|
638
557
|
|
|
558
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["g"]; });
|
|
639
559
|
|
|
560
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "w", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["h"]; });
|
|
640
561
|
|
|
641
|
-
|
|
642
|
-
* @Author: watson
|
|
643
|
-
* @Date: 2020-12-23
|
|
644
|
-
* @LastEditors: watson
|
|
645
|
-
* @description: 保费试算
|
|
646
|
-
* @param {*} params: 必传
|
|
647
|
-
* @return {*} 试算结果
|
|
648
|
-
*/
|
|
562
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "x", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["i"]; });
|
|
649
563
|
|
|
564
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["j"]; });
|
|
650
565
|
|
|
651
|
-
var
|
|
652
|
-
|
|
566
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
567
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
653
568
|
|
|
654
|
-
|
|
655
|
-
env = 'https://insurance2a-api.wyins.net';
|
|
656
|
-
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
657
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
658
|
-
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost|0\.0\.0\.0/) !== -1) {
|
|
659
|
-
env = '//insurance2a-api.wyins.net.cn';
|
|
660
|
-
}
|
|
569
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "n", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["b"]; });
|
|
661
570
|
|
|
662
|
-
|
|
663
|
-
}();
|
|
664
|
-
/**
|
|
665
|
-
* **获取地址信息**
|
|
666
|
-
* @ignore
|
|
667
|
-
* @author watson
|
|
668
|
-
* @date 2022-04-26
|
|
669
|
-
* @param {string} fetchUrl api url
|
|
670
|
-
* @param {object} data 接口传参
|
|
671
|
-
* @returns {object} addressData
|
|
672
|
-
*/
|
|
571
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "q", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["c"]; });
|
|
673
572
|
|
|
573
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "u", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["d"]; });
|
|
674
574
|
|
|
675
|
-
function getAddress(fetchUrl, data) {
|
|
676
|
-
return new Promise(function (resolve, reject) {
|
|
677
|
-
request({
|
|
678
|
-
baseURL: fetchUrl,
|
|
679
|
-
url: undefined,
|
|
680
|
-
method: 'POST',
|
|
681
|
-
urlParams: undefined,
|
|
682
|
-
data: data
|
|
683
|
-
}).then(function (res) {
|
|
684
|
-
resolve(res);
|
|
685
|
-
}).catch(function (err) {
|
|
686
|
-
reject(err);
|
|
687
|
-
});
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
* **获取用户信息**
|
|
692
|
-
* @ignore
|
|
693
|
-
* @author watson
|
|
694
|
-
* @date 2022-04-26
|
|
695
|
-
* @param {string} fetchUrl api url
|
|
696
|
-
* @returns {promise}
|
|
697
|
-
*/
|
|
698
575
|
|
|
699
|
-
function getUuid(fetchUrl) {
|
|
700
|
-
return new Promise(function (resolve, reject) {
|
|
701
|
-
request({
|
|
702
|
-
baseURL: fetchUrl,
|
|
703
|
-
url: undefined,
|
|
704
|
-
method: 'GET',
|
|
705
|
-
urlParams: undefined,
|
|
706
|
-
data: null
|
|
707
|
-
}).then(function (res) {
|
|
708
|
-
resolve(res);
|
|
709
|
-
}).catch(function (err) {
|
|
710
|
-
reject(err);
|
|
711
|
-
});
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* **计划书初始化参数**
|
|
716
|
-
* @ignore
|
|
717
|
-
* @author watson
|
|
718
|
-
* @date 2022-04-26
|
|
719
|
-
* @param {any} planParams 计划书初始化参数
|
|
720
|
-
* @param {any} planParams.detail_age 被保人生日
|
|
721
|
-
* @param {any} planParams.detail_sex 被保人性别
|
|
722
|
-
* @param {any} planParams.detail_relation 投被保人关系
|
|
723
|
-
* @param {any} planParams.detail_applicant_age 投保人生日
|
|
724
|
-
* @param {any} planParams.detail_applicant_sex 投保人性别
|
|
725
|
-
* @returns {boolean} 是否有计划书参数
|
|
726
|
-
*/
|
|
727
576
|
|
|
728
|
-
function hasPlanParams(planParams) {
|
|
729
|
-
var type = false;
|
|
730
577
|
|
|
731
|
-
if (planParams && (planParams.detail_age || planParams.detail_sex || planParams.detail_relation || planParams.detail_applicant_age || planParams.detail_applicant_sex)) {
|
|
732
|
-
type = true;
|
|
733
|
-
}
|
|
734
578
|
|
|
735
|
-
|
|
579
|
+
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
580
|
+
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
736
581
|
}
|
|
737
|
-
/**
|
|
738
|
-
* **转换计划书数据**
|
|
739
|
-
* @ignore
|
|
740
|
-
* @author watson
|
|
741
|
-
* @date 2022-04-26
|
|
742
|
-
* @param {array} widgets 页面渲染数据
|
|
743
|
-
* @param {object} currentData 试算参数
|
|
744
|
-
* @param {object} planParams 计划书初始化参数
|
|
745
|
-
* @returns {void}
|
|
746
|
-
*/
|
|
747
582
|
|
|
748
|
-
function translatePlanData(widgets, currentData, planParams) {
|
|
749
|
-
widgets.forEach(function (item) {
|
|
750
|
-
var current; // 增加current字段,保存current_data的数据
|
|
751
|
-
|
|
752
|
-
if (item.duty) {
|
|
753
|
-
current = currentData.find(function (it) {
|
|
754
|
-
return it.k === item.key && it.risk === item.riskCode && item.duty === it.d;
|
|
755
|
-
});
|
|
756
|
-
} else {
|
|
757
|
-
current = currentData.find(function (it) {
|
|
758
|
-
return it.k === item.key && it.risk === item.riskCode;
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
if (planParams) {
|
|
763
|
-
// 被保人生日 / 年龄
|
|
764
|
-
if (planParams.detail_age && item.key === 'detail_age') {
|
|
765
|
-
if (/-/.test(planParams.detail_age)) {
|
|
766
|
-
// 被保人生日
|
|
767
|
-
item.type = 'v-text';
|
|
768
|
-
item.name = planParams.detail_age;
|
|
769
|
-
current.v = planParams.detail_age;
|
|
770
|
-
} else if (/岁/.test(planParams.detail_age)) {
|
|
771
|
-
// 被保人年龄
|
|
772
|
-
item.type = 'v-text';
|
|
773
|
-
item.name = planParams.detail_age;
|
|
774
|
-
item.label = item.label + '(年龄)';
|
|
775
|
-
current.v = planParams.detail_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
776
|
-
}
|
|
777
|
-
} // 被保人性别
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
if (planParams.detail_sex && item.key === 'detail_sex') {
|
|
781
|
-
item.type = 'v-text';
|
|
782
|
-
item.name = planParams.detail_sex === '1' ? '男' : '女';
|
|
783
|
-
current.v = planParams.detail_sex;
|
|
784
|
-
} // 投被保人关系
|
|
785
|
-
// 初始化
|
|
786
|
-
// if (
|
|
787
|
-
// item.key === 'detail_relation' &&
|
|
788
|
-
// planParams.detail_sex &&
|
|
789
|
-
// planParams.detail_applicant_sex &&
|
|
790
|
-
// String(planParams.detail_sex) ===
|
|
791
|
-
// String(planParams.detail_applicant_sex)
|
|
792
|
-
// ) {
|
|
793
|
-
// let otemp = [];
|
|
794
|
-
// item.opts[item.key].forEach(i => {
|
|
795
|
-
// if (
|
|
796
|
-
// String(planParams.detail_sex) === '1' &&
|
|
797
|
-
// String(planParams.detail_applicant_sex) === '1'
|
|
798
|
-
// ) {
|
|
799
|
-
// // 投被保人 - 男 1
|
|
800
|
-
// if (['1', '14', '16', '18'].includes(String(i.value))) {
|
|
801
|
-
// otemp.push(i);
|
|
802
|
-
// }
|
|
803
|
-
// } else if (
|
|
804
|
-
// String(planParams.detail_sex) === '2' &&
|
|
805
|
-
// String(planParams.detail_applicant_sex) === '2'
|
|
806
|
-
// ) {
|
|
807
|
-
// // 投被保人 - 女 2
|
|
808
|
-
// if (['1', '15', '17', '19'].includes(String(i.value))) {
|
|
809
|
-
// otemp.push(i);
|
|
810
|
-
// }
|
|
811
|
-
// }
|
|
812
|
-
// });
|
|
813
|
-
// item.opts[item.key] = otemp;
|
|
814
|
-
// console.log('otemp', otemp);
|
|
815
|
-
// }
|
|
816
583
|
|
|
584
|
+
/***/ }),
|
|
817
585
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
if (planParams.detail_relation === '-1' || planParams.detail_relation === -1) {
|
|
821
|
-
// 非本人
|
|
822
|
-
var temp = [];
|
|
823
|
-
item.opts[item.key].forEach(function (i) {
|
|
824
|
-
if (String(i.value) != '1') {
|
|
825
|
-
temp.push(i);
|
|
826
|
-
}
|
|
827
|
-
});
|
|
828
|
-
item.name = temp[0] && temp[0].name ? temp[0].name : '';
|
|
829
|
-
item.opts[item.key] = temp;
|
|
830
|
-
} else if (planParams.detail_relation) {
|
|
831
|
-
// 指定人 - 本人 其他人
|
|
832
|
-
item.type = 'v-text';
|
|
833
|
-
current.v = planParams.detail_relation;
|
|
834
|
-
var _temp = [];
|
|
835
|
-
item.opts[item.key].forEach(function (i) {
|
|
836
|
-
if (String(i.value) === String(planParams.detail_relation)) {
|
|
837
|
-
_temp.push(i);
|
|
586
|
+
/***/ 14:
|
|
587
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
838
588
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
589
|
+
"use strict";
|
|
590
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
591
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
593
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
594
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
595
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
596
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
597
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
598
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
599
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
600
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
601
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
602
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
603
|
+
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
845
604
|
|
|
846
605
|
|
|
847
|
-
if (planParams.detail_applicant_age && item.key === 'detail_applicant_age') {
|
|
848
|
-
if (/-/.test(planParams.detail_applicant_age)) {
|
|
849
|
-
// 被保人生日
|
|
850
|
-
item.type = 'v-text';
|
|
851
|
-
item.name = planParams.detail_applicant_age;
|
|
852
|
-
current.v = planParams.detail_applicant_age;
|
|
853
|
-
} else if (/岁/.test(planParams.detail_applicant_age)) {
|
|
854
|
-
// 被保人年龄
|
|
855
|
-
item.type = 'v-text';
|
|
856
|
-
item.name = planParams.detail_applicant_age;
|
|
857
|
-
item.label = item.label + '(年龄)';
|
|
858
|
-
current.v = planParams.detail_applicant_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
859
|
-
}
|
|
860
|
-
} // 投保人性别
|
|
861
606
|
|
|
862
607
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
608
|
+
function initProductData(prodData) {
|
|
609
|
+
prodData.hadChoice = false;
|
|
610
|
+
prodData.insShowArr = null;
|
|
611
|
+
prodData.totalBaof = null;
|
|
612
|
+
if (!prodData.mulInsOrderList) {
|
|
613
|
+
return prodData;
|
|
868
614
|
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* **试算参数转化**
|
|
873
|
-
* @ignore
|
|
874
|
-
* @author watson
|
|
875
|
-
* @date 2022-04-26
|
|
876
|
-
* @param {object} currentData
|
|
877
|
-
* @param {object} planParams
|
|
878
|
-
* @returns {object}
|
|
879
|
-
*/
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
function tranlateCurrentData(currentData, planParams) {
|
|
883
|
-
var currentDataCopy = JSON.parse(JSON.stringify(currentData));
|
|
884
|
-
currentDataCopy.forEach(function (item) {
|
|
885
|
-
var current = item;
|
|
886
|
-
|
|
887
|
-
if (planParams) {
|
|
888
|
-
if (planParams.detail_age && item.k === 'detail_age') {
|
|
889
|
-
if (/-/.test(planParams.detail_age)) {
|
|
890
|
-
// 被保人生日
|
|
891
|
-
current.v = planParams.detail_age;
|
|
892
|
-
} else if (/岁/.test(planParams.detail_age)) {
|
|
893
|
-
// 被保人年龄
|
|
894
|
-
current.v = planParams.detail_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
895
|
-
}
|
|
896
|
-
} // 被保人性别
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
if (planParams.detail_sex && item.k === 'detail_sex') {
|
|
900
|
-
current.v = planParams.detail_sex;
|
|
901
|
-
} // 投被保人关系
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
if (planParams.detail_relation && item.k === 'detail_relation') {
|
|
905
|
-
if (planParams.detail_relation != -1 || planParams.detail_relation != '-1') {
|
|
906
|
-
current.v = planParams.detail_relation;
|
|
907
|
-
}
|
|
908
|
-
} // 投保人出生日期
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
if (planParams.detail_applicant_age && item.k === 'detail_applicant_age') {
|
|
912
|
-
if (/-/.test(planParams.detail_applicant_age)) {
|
|
913
|
-
// 被保人生日
|
|
914
|
-
current.v = planParams.detail_applicant_age;
|
|
915
|
-
} else if (/岁/.test(planParams.detail_applicant_age)) {
|
|
916
|
-
// 被保人年龄
|
|
917
|
-
current.v = planParams.detail_applicant_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
918
|
-
}
|
|
919
|
-
} // 投保人性别
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
if (planParams.detail_applicant_sex && item.k === 'detail_applicant_sex') {
|
|
923
|
-
current.v = planParams.detail_applicant_sex;
|
|
924
|
-
}
|
|
615
|
+
if (prodData.mulInsOrderList.some(function (ins) { return !!ins.adjustBaoe; })) {
|
|
616
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
925
617
|
}
|
|
926
|
-
|
|
927
|
-
|
|
618
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
619
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "b"])(ins);
|
|
620
|
+
});
|
|
621
|
+
return prodData;
|
|
928
622
|
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
623
|
+
function productDataHandler(prodData, productVerifyData, personData) {
|
|
624
|
+
var _a;
|
|
625
|
+
var hasProduct = prodData && prodData.mulInsOrderList;
|
|
626
|
+
var hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
627
|
+
var hasPersonData = personData && personData.personOrderList;
|
|
628
|
+
var personOrderList = null;
|
|
629
|
+
if (hasProduct && hasVerifyData && hasPersonData) {
|
|
630
|
+
personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_2__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
631
|
+
setCommonInfo(prodData);
|
|
632
|
+
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
633
|
+
var _a, _b, _c;
|
|
634
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
635
|
+
var insuranceVerifyData = productVerifyData[ins.key];
|
|
636
|
+
if (!insuranceVerifyData) {
|
|
637
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
638
|
+
console.log(prodData.titleName + "-" + prodData.key + " -> " + ins.name + "-" + ins.key + ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868");
|
|
639
|
+
}
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
var isTouHuomianIns = ins.huomian === 'touHuomian' || ins.huomian === 'shuangHuomian';
|
|
643
|
+
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
644
|
+
var applicantInfo = personOrderList.find(function (p) { return p.key === 'applicantInfo'; });
|
|
645
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
646
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
647
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
648
|
+
}
|
|
649
|
+
var targetPerson = personOrderList.find(function (p) { return p.key === personType; });
|
|
650
|
+
var personCondition = null;
|
|
651
|
+
if (targetPerson) {
|
|
652
|
+
personCondition = insuranceVerifyData.find(function (v) {
|
|
653
|
+
return targetPerson.sex === v.sex && targetPerson.age >= v.minAge && targetPerson.age <= v.maxAge;
|
|
654
|
+
});
|
|
655
|
+
if (personCondition) {
|
|
656
|
+
personCondition = personCondition.conditionData;
|
|
657
|
+
var isSamePerson = isTouHuomianIns && ins.allowSamePerson && personCondition.key === 'samePerson';
|
|
658
|
+
if (isSamePerson) {
|
|
659
|
+
personCondition = personCondition.samePerson.find(function (c) { return c.value == (applicantInfo.title ? 0 : 1); });
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
var curCondition = personCondition;
|
|
664
|
+
var eleTitle = (_a = ins.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
665
|
+
var _loop_1 = function () {
|
|
666
|
+
var isNotAllowSelect = !curCondition ||
|
|
667
|
+
(isTouHuomianIns && !ins.allowSamePerson && (!targetPerson.title || targetPerson.applicantAndInsuredSame));
|
|
668
|
+
if (isNotAllowSelect) {
|
|
669
|
+
eleTitle.isDisabled = true;
|
|
670
|
+
eleTitle.value = false;
|
|
671
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
672
|
+
console.log(curCondition ? eleTitle.labelName + "-" + 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" : eleTitle.labelName + "-" + ins.key + ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01");
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
else {
|
|
676
|
+
eleTitle.isDisabled = false;
|
|
677
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
678
|
+
eleTitle.value = true;
|
|
679
|
+
eleTitle.isDisabled = true;
|
|
680
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
681
|
+
console.log(eleTitle.labelName + "-" + 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)");
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if (!curCondition) {
|
|
686
|
+
return "break";
|
|
687
|
+
}
|
|
688
|
+
var eleData = (_b = ins.eleOrderList) === null || _b === void 0 ? void 0 : _b.find(function (e) { return e.key === curCondition.key; });
|
|
689
|
+
var commonData = insList.find(function (ins) { return ins.key === 'common'; });
|
|
690
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
691
|
+
eleData = commonData.eleOrderList.find(function (e) { return e.key === curCondition.key; });
|
|
692
|
+
}
|
|
693
|
+
if (!eleData) {
|
|
694
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
695
|
+
console.log(ins.name + " - " + (curCondition && curCondition.key) + "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A");
|
|
696
|
+
}
|
|
697
|
+
curCondition = null;
|
|
698
|
+
return "break";
|
|
699
|
+
}
|
|
700
|
+
var eleCondi = curCondition[curCondition.key];
|
|
701
|
+
var isBeGovernedEle = eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && Number(ins.refInsuranceId) !== -2;
|
|
702
|
+
if (isBeGovernedEle) {
|
|
703
|
+
var refInsData = null;
|
|
704
|
+
if (Number(ins.refInsuranceId) === -1) {
|
|
705
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
709
|
+
}
|
|
710
|
+
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
711
|
+
if (refEleData) {
|
|
712
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
713
|
+
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* getHuomianPeriodValue */ "f"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
eleData.value = refEleData.value;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
721
|
+
console.log(ins.name + "-" + ins.key + "\uFF1A\u5173\u8054\u9669\u79CD" + ins.refInsuranceId + "\u4E0D\u5B58\u5728");
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
else {
|
|
726
|
+
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
727
|
+
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
728
|
+
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
729
|
+
return {
|
|
730
|
+
val: c.value,
|
|
731
|
+
desc: c.desc,
|
|
732
|
+
isHide: (option && option.isHide) || null,
|
|
733
|
+
isDisabled: (option && option.isDisabled) || null,
|
|
734
|
+
isInvalid: null
|
|
735
|
+
};
|
|
736
|
+
});
|
|
737
|
+
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
738
|
+
if (isNoOption) {
|
|
739
|
+
if (eleData.key === 'pPeriod') {
|
|
740
|
+
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
741
|
+
if (filterOpts && filterOpts.length) {
|
|
742
|
+
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
else {
|
|
746
|
+
if (eleData.opts && eleData.opts.length) {
|
|
747
|
+
eleData.value = eleData.opts[0].val;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
753
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
754
|
+
var prevElement;
|
|
755
|
+
if (eleIndex >= 1) {
|
|
756
|
+
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
757
|
+
}
|
|
758
|
+
if (prevElement) {
|
|
759
|
+
if (!curCondition) {
|
|
760
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
761
|
+
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; }); });
|
|
762
|
+
if (onePrevEleVerify) {
|
|
763
|
+
prevElement.value = onePrevEleVerify.value;
|
|
764
|
+
curCondition = onePrevEleVerify[eleData.key];
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if (!curCondition) {
|
|
768
|
+
eleTitle.isDisabled = true;
|
|
769
|
+
eleTitle.value = false;
|
|
770
|
+
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
771
|
+
console.log(eleTitle.labelName + "-" + ins.key + ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01");
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
775
|
+
if (isNeedReverseFilter) {
|
|
776
|
+
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
777
|
+
if (prevEleVerify) {
|
|
778
|
+
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
779
|
+
var _a;
|
|
780
|
+
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
781
|
+
insuranceKey: ins.key,
|
|
782
|
+
elementKey: eleData.key
|
|
783
|
+
},
|
|
784
|
+
_a[prevElement.key] = v.value,
|
|
785
|
+
_a));
|
|
786
|
+
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
787
|
+
}).map(function (v) { return ({
|
|
788
|
+
val: v.value,
|
|
789
|
+
desc: v.desc,
|
|
790
|
+
isHide: null,
|
|
791
|
+
isDisabled: null,
|
|
792
|
+
isInvalid: null
|
|
793
|
+
}); });
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
do {
|
|
799
|
+
var state_1 = _loop_1();
|
|
800
|
+
if (state_1 === "break")
|
|
801
|
+
break;
|
|
802
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
997
803
|
});
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
reject(err);
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
804
|
+
}
|
|
805
|
+
setGroupInsurance(prodData);
|
|
806
|
+
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
807
|
+
return prodData;
|
|
1005
808
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
809
|
+
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
810
|
+
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
811
|
+
return verify;
|
|
812
|
+
}
|
|
813
|
+
var insuranceInfo = {};
|
|
814
|
+
insurances.forEach(function (ins) {
|
|
815
|
+
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
816
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* convertEleOrderListToObj */ "c"])(ins));
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), option);
|
|
820
|
+
var temp = verify;
|
|
821
|
+
var hasElementKey = verify.key === option.elementKey;
|
|
822
|
+
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
823
|
+
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
824
|
+
if (temp && temp.key === option.elementKey) {
|
|
825
|
+
hasElementKey = true;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
if (!hasElementKey) {
|
|
829
|
+
return null;
|
|
830
|
+
}
|
|
831
|
+
if (temp && temp[option.elementKey]) {
|
|
832
|
+
return temp[option.elementKey];
|
|
833
|
+
}
|
|
834
|
+
return temp ? [temp] : null;
|
|
1018
835
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
* @author watson
|
|
1023
|
-
* @date 2022-04-26
|
|
1024
|
-
* @param {object} urlParams
|
|
1025
|
-
* @param {object} postParams
|
|
1026
|
-
* @param {object} planParams
|
|
1027
|
-
* @returns {promise}
|
|
1028
|
-
*/
|
|
1029
|
-
|
|
1030
|
-
function _checkInsureCalculate() {
|
|
1031
|
-
_checkInsureCalculate = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(urlParams, postParams, planParams) {
|
|
1032
|
-
var res, data;
|
|
1033
|
-
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
1034
|
-
while (1) {
|
|
1035
|
-
switch (_context.prev = _context.next) {
|
|
1036
|
-
case 0:
|
|
1037
|
-
_context.next = 2;
|
|
1038
|
-
return checkInsureCalculateIn(urlParams, postParams, planParams);
|
|
1039
|
-
|
|
1040
|
-
case 2:
|
|
1041
|
-
res = _context.sent;
|
|
1042
|
-
|
|
1043
|
-
if (!(postParams && !postParams.current_data)) {
|
|
1044
|
-
_context.next = 15;
|
|
1045
|
-
break;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
data = JSON.parse(JSON.stringify(res.data));
|
|
1049
|
-
postParams.current_data = data.current_data; // 重新试算
|
|
1050
|
-
|
|
1051
|
-
_context.prev = 6;
|
|
1052
|
-
_context.next = 9;
|
|
1053
|
-
return checkInsureCalculateIn(urlParams, postParams, planParams);
|
|
1054
|
-
|
|
1055
|
-
case 9:
|
|
1056
|
-
res = _context.sent;
|
|
1057
|
-
_context.next = 15;
|
|
1058
|
-
break;
|
|
1059
|
-
|
|
1060
|
-
case 12:
|
|
1061
|
-
_context.prev = 12;
|
|
1062
|
-
_context.t0 = _context["catch"](6);
|
|
1063
|
-
res = _context.t0;
|
|
1064
|
-
|
|
1065
|
-
case 15:
|
|
1066
|
-
if (!(res && res.code === 200)) {
|
|
1067
|
-
_context.next = 19;
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
return _context.abrupt("return", res);
|
|
1072
|
-
|
|
1073
|
-
case 19:
|
|
1074
|
-
return _context.abrupt("return", Promise.reject(res));
|
|
1075
|
-
|
|
1076
|
-
case 20:
|
|
1077
|
-
case "end":
|
|
1078
|
-
return _context.stop();
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}, _callee, null, [[6, 12]]);
|
|
1082
|
-
}));
|
|
1083
|
-
return _checkInsureCalculate.apply(this, arguments);
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
1087
|
-
if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
|
|
1088
|
-
return Promise.reject({
|
|
1089
|
-
code: 400,
|
|
1090
|
-
msg: 'postParams参数非法'
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
if (postParams && !postParams.scenario) {
|
|
1095
|
-
postParams.scenario = 'h5Widget';
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
var url = '/api/product/data/calculate';
|
|
1099
|
-
|
|
1100
|
-
if (urlParams && urlParams.uuid) {
|
|
1101
|
-
url += "?userUuid=".concat(urlParams.uuid);
|
|
1102
|
-
} else if (urlParams && urlParams.openId) {
|
|
1103
|
-
url += "?userUuid=".concat(urlParams.openId);
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
if (urlParams && urlParams.appid) {
|
|
1107
|
-
if (url.indexOf('?') > -1) {
|
|
1108
|
-
url += "&appId=".concat(urlParams.appid);
|
|
1109
|
-
} else {
|
|
1110
|
-
url += "?appId=".concat(urlParams.appid);
|
|
836
|
+
function setCommonInfo(prodData) {
|
|
837
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
838
|
+
return prodData;
|
|
1111
839
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
data: postParams
|
|
1125
|
-
}).then(function (res) {
|
|
1126
|
-
if (res.code === 200) {
|
|
1127
|
-
// if (postParams && !postParams.current_data) {
|
|
1128
|
-
// let data = JSON.parse(JSON.stringify(res.data));
|
|
1129
|
-
// postParams.current_data = data.current_data
|
|
1130
|
-
// // 重新试算
|
|
1131
|
-
// checkInsureCalculate(urlParams, postParams, planParams)
|
|
1132
|
-
// }
|
|
1133
|
-
resolve({
|
|
1134
|
-
code: 200,
|
|
1135
|
-
data: res.data
|
|
840
|
+
var common = {
|
|
841
|
+
key: 'common',
|
|
842
|
+
eleOrderList: []
|
|
843
|
+
};
|
|
844
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
845
|
+
if (!ins.eleOrderList) {
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
849
|
+
if (ele.common && common.eleOrderList.every(function (e) { return e.key !== ele.key; })) {
|
|
850
|
+
common.eleOrderList.push(ele);
|
|
851
|
+
}
|
|
1136
852
|
});
|
|
1137
|
-
|
|
1138
|
-
reject(res);
|
|
1139
|
-
}
|
|
1140
|
-
}).catch(function (err) {
|
|
1141
|
-
reject(err);
|
|
853
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) { return !ele.common; });
|
|
1142
854
|
});
|
|
1143
|
-
|
|
1144
|
-
}
|
|
1145
|
-
// CONCATENATED MODULE: ./packages/bxs-utils/trade/index.js
|
|
1146
|
-
|
|
1147
|
-
// CONCATENATED MODULE: ./packages/bxs-utils/index.ts
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
/***/ }),
|
|
1153
|
-
|
|
1154
|
-
/***/ 11:
|
|
1155
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1156
|
-
|
|
1157
|
-
"use strict";
|
|
1158
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
1159
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["a"]; });
|
|
1160
|
-
|
|
1161
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["b"]; });
|
|
1162
|
-
|
|
1163
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["c"]; });
|
|
1164
|
-
|
|
1165
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "g", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["d"]; });
|
|
1166
|
-
|
|
1167
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "h", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["e"]; });
|
|
1168
|
-
|
|
1169
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "j", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["f"]; });
|
|
1170
|
-
|
|
1171
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "l", function() { return _common__WEBPACK_IMPORTED_MODULE_0__["g"]; });
|
|
1172
|
-
|
|
1173
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
|
1174
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
1175
|
-
|
|
1176
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "k", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
1177
|
-
|
|
1178
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "o", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["c"]; });
|
|
1179
|
-
|
|
1180
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "s", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["d"]; });
|
|
1181
|
-
|
|
1182
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "y", function() { return _person__WEBPACK_IMPORTED_MODULE_1__["e"]; });
|
|
1183
|
-
|
|
1184
|
-
/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
1185
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
1186
|
-
|
|
1187
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
1188
|
-
|
|
1189
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "i", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["c"]; });
|
|
1190
|
-
|
|
1191
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "p", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["d"]; });
|
|
1192
|
-
|
|
1193
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "r", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["e"]; });
|
|
1194
|
-
|
|
1195
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "t", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["f"]; });
|
|
1196
|
-
|
|
1197
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["g"]; });
|
|
1198
|
-
|
|
1199
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "w", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["h"]; });
|
|
1200
|
-
|
|
1201
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "x", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["i"]; });
|
|
1202
|
-
|
|
1203
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["j"]; });
|
|
1204
|
-
|
|
1205
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
1206
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
1207
|
-
|
|
1208
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "n", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["b"]; });
|
|
1209
|
-
|
|
1210
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "q", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["c"]; });
|
|
1211
|
-
|
|
1212
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "u", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["d"]; });
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
1219
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
/***/ }),
|
|
1224
|
-
|
|
1225
|
-
/***/ 13:
|
|
1226
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1227
|
-
|
|
1228
|
-
"use strict";
|
|
1229
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initProductData; });
|
|
1230
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return productDataHandler; });
|
|
1231
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getElementVerifyFromProductVerify; });
|
|
1232
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setCommonInfo; });
|
|
1233
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setGroupInsurance; });
|
|
1234
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isHideProduct; });
|
|
1235
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return verifyProductRules; });
|
|
1236
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return restrictInsurancesInProduct; });
|
|
1237
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertProductData; });
|
|
1238
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clearAddAndTakeAndAdjustBaoeData; });
|
|
1239
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1240
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
1241
|
-
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
|
|
1242
|
-
/* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
function initProductData(prodData) {
|
|
1248
|
-
prodData.hadChoice = false;
|
|
1249
|
-
prodData.insShowArr = null;
|
|
1250
|
-
prodData.totalBaof = null;
|
|
1251
|
-
if (!prodData.mulInsOrderList) {
|
|
855
|
+
if (!common.eleOrderList.length) {
|
|
1252
856
|
return prodData;
|
|
1253
857
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "b"])(ins);
|
|
1259
|
-
});
|
|
1260
|
-
return prodData;
|
|
1261
|
-
}
|
|
1262
|
-
function productDataHandler(prodData, productVerifyData, personData) {
|
|
1263
|
-
var _a;
|
|
1264
|
-
var hasProduct = prodData && prodData.mulInsOrderList;
|
|
1265
|
-
var hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
1266
|
-
var hasPersonData = personData && personData.personOrderList;
|
|
1267
|
-
var personOrderList = null;
|
|
1268
|
-
if (hasProduct && hasVerifyData && hasPersonData) {
|
|
1269
|
-
personOrderList = Object(_person__WEBPACK_IMPORTED_MODULE_2__[/* convertPersonData */ "a"])(personData, personData.personOrderList.map(function (p) { return p.key; }));
|
|
1270
|
-
setCommonInfo(prodData);
|
|
1271
|
-
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
1272
|
-
var _a, _b, _c;
|
|
1273
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
1274
|
-
var insuranceVerifyData = productVerifyData[ins.key];
|
|
1275
|
-
if (!insuranceVerifyData) {
|
|
1276
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1277
|
-
console.log(prodData.titleName + "-" + prodData.key + " -> " + ins.name + "-" + ins.key + ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868");
|
|
1278
|
-
}
|
|
1279
|
-
return;
|
|
1280
|
-
}
|
|
1281
|
-
var isTouHuomianIns = ins.huomian === 'touHuomian' || ins.huomian === 'shuangHuomian';
|
|
1282
|
-
var insuredInfo = personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
|
|
1283
|
-
var applicantInfo = personOrderList.find(function (p) { return p.key === 'applicantInfo'; });
|
|
1284
|
-
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
1285
|
-
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
1286
|
-
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
1287
|
-
}
|
|
1288
|
-
var targetPerson = personOrderList.find(function (p) { return p.key === personType; });
|
|
1289
|
-
var personCondition = null;
|
|
1290
|
-
if (targetPerson) {
|
|
1291
|
-
personCondition = insuranceVerifyData.find(function (v) {
|
|
1292
|
-
return targetPerson.sex === v.sex && targetPerson.age >= v.minAge && targetPerson.age <= v.maxAge;
|
|
1293
|
-
});
|
|
1294
|
-
if (personCondition) {
|
|
1295
|
-
personCondition = personCondition.conditionData;
|
|
1296
|
-
var isSamePerson = isTouHuomianIns && ins.allowSamePerson && personCondition.key === 'samePerson';
|
|
1297
|
-
if (isSamePerson) {
|
|
1298
|
-
personCondition = personCondition.samePerson.find(function (c) { return c.value == (applicantInfo.title ? 0 : 1); });
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
var curCondition = personCondition;
|
|
1303
|
-
var eleTitle = (_a = ins.eleOrderList) === null || _a === void 0 ? void 0 : _a.find(function (e) { return e.key === 'title'; });
|
|
1304
|
-
var _loop_1 = function () {
|
|
1305
|
-
var isNotAllowSelect = !curCondition ||
|
|
1306
|
-
(isTouHuomianIns && !ins.allowSamePerson && (!targetPerson.title || targetPerson.applicantAndInsuredSame));
|
|
1307
|
-
if (isNotAllowSelect) {
|
|
1308
|
-
eleTitle.isDisabled = true;
|
|
1309
|
-
eleTitle.value = false;
|
|
1310
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1311
|
-
console.log(curCondition ? eleTitle.labelName + "-" + 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" : eleTitle.labelName + "-" + ins.key + ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01");
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
else {
|
|
1315
|
-
eleTitle.isDisabled = false;
|
|
1316
|
-
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
1317
|
-
eleTitle.value = true;
|
|
1318
|
-
eleTitle.isDisabled = true;
|
|
1319
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1320
|
-
console.log(eleTitle.labelName + "-" + 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)");
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
if (!curCondition) {
|
|
1325
|
-
return "break";
|
|
1326
|
-
}
|
|
1327
|
-
var eleData = (_b = ins.eleOrderList) === null || _b === void 0 ? void 0 : _b.find(function (e) { return e.key === curCondition.key; });
|
|
1328
|
-
var commonData = insList.find(function (ins) { return ins.key === 'common'; });
|
|
1329
|
-
if (!eleData && commonData && commonData.eleOrderList) {
|
|
1330
|
-
eleData = commonData.eleOrderList.find(function (e) { return e.key === curCondition.key; });
|
|
1331
|
-
}
|
|
1332
|
-
if (!eleData) {
|
|
1333
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1334
|
-
console.log(ins.name + " - " + (curCondition && curCondition.key) + "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A");
|
|
1335
|
-
}
|
|
1336
|
-
curCondition = null;
|
|
1337
|
-
return "break";
|
|
1338
|
-
}
|
|
1339
|
-
var eleCondi = curCondition[curCondition.key];
|
|
1340
|
-
var isBeGovernedEle = eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && Number(ins.refInsuranceId) !== -2;
|
|
1341
|
-
if (isBeGovernedEle) {
|
|
1342
|
-
var refInsData = null;
|
|
1343
|
-
if (Number(ins.refInsuranceId) === -1) {
|
|
1344
|
-
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
1345
|
-
}
|
|
1346
|
-
else {
|
|
1347
|
-
refInsData = insList.find(function (ins) { return ins.key == ins.refInsuranceId; });
|
|
1348
|
-
}
|
|
1349
|
-
var refEleData = refInsData && refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) { return e.key === eleData.key; });
|
|
1350
|
-
if (refEleData) {
|
|
1351
|
-
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
1352
|
-
eleData.value = Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* getHuomianPeriodValue */ "f"])(refEleData.value, ins.pMinus, ins.huomian === 'touHuomian' ? insuredInfo.age : targetPerson.age);
|
|
1353
|
-
}
|
|
1354
|
-
else {
|
|
1355
|
-
eleData.value = refEleData.value;
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
else {
|
|
1359
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1360
|
-
console.log(ins.name + "-" + ins.key + "\uFF1A\u5173\u8054\u9669\u79CD" + ins.refInsuranceId + "\u4E0D\u5B58\u5728");
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
else {
|
|
1365
|
-
var backupOpts_1 = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
1366
|
-
eleData.opts = eleCondi.filter(function (c) { return c.value !== undefined && c.desc !== undefined; }).map(function (c) {
|
|
1367
|
-
var option = backupOpts_1.find(function (o) { return o.val == c.value; });
|
|
1368
|
-
return {
|
|
1369
|
-
val: c.value,
|
|
1370
|
-
desc: c.desc,
|
|
1371
|
-
isHide: (option && option.isHide) || null,
|
|
1372
|
-
isDisabled: (option && option.isDisabled) || null,
|
|
1373
|
-
isInvalid: null
|
|
1374
|
-
};
|
|
1375
|
-
});
|
|
1376
|
-
var isNoOption = eleData.opts && eleData.opts.length && eleData.opts.every(function (ele) { return ele.val != eleData.value; });
|
|
1377
|
-
if (isNoOption) {
|
|
1378
|
-
if (eleData.key === 'pPeriod') {
|
|
1379
|
-
var filterOpts = (_c = eleData.opts) === null || _c === void 0 ? void 0 : _c.filter(function (opt) { return !opt.isHide && !opt.isDisabled; });
|
|
1380
|
-
if (filterOpts && filterOpts.length) {
|
|
1381
|
-
eleData.value = filterOpts[filterOpts.length - 1].val;
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
else {
|
|
1385
|
-
if (eleData.opts && eleData.opts.length) {
|
|
1386
|
-
eleData.value = eleData.opts[0].val;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
curCondition = eleCondi.find(function (eleCondi) { return eleCondi.value == eleData.value; });
|
|
1392
|
-
var eleIndex = ins.eleOrderList.findIndex(function (ele) { return ele.key === eleData.key; });
|
|
1393
|
-
var prevElement;
|
|
1394
|
-
if (eleIndex >= 1) {
|
|
1395
|
-
prevElement = ins.eleOrderList[eleIndex - 1];
|
|
1396
|
-
}
|
|
1397
|
-
if (prevElement) {
|
|
1398
|
-
if (!curCondition) {
|
|
1399
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
1400
|
-
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; }); });
|
|
1401
|
-
if (onePrevEleVerify) {
|
|
1402
|
-
prevElement.value = onePrevEleVerify.value;
|
|
1403
|
-
curCondition = onePrevEleVerify[eleData.key];
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
if (!curCondition) {
|
|
1407
|
-
eleTitle.isDisabled = true;
|
|
1408
|
-
eleTitle.value = false;
|
|
1409
|
-
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
1410
|
-
console.log(eleTitle.labelName + "-" + ins.key + ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01");
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
var isNeedReverseFilter = eleData.isHide && !eleData.isDisabled && prevElement.opts && prevElement.opts.length;
|
|
1414
|
-
if (isNeedReverseFilter) {
|
|
1415
|
-
var prevEleVerify = getElementVerifyFromProductVerify(personCondition, insList, { insuranceKey: ins.key, elementKey: prevElement.key });
|
|
1416
|
-
if (prevEleVerify) {
|
|
1417
|
-
prevElement.opts = prevEleVerify.filter(function (v) {
|
|
1418
|
-
var _a;
|
|
1419
|
-
var elementVerify = getElementVerifyFromProductVerify(personCondition, insList, (_a = {
|
|
1420
|
-
insuranceKey: ins.key,
|
|
1421
|
-
elementKey: eleData.key
|
|
1422
|
-
},
|
|
1423
|
-
_a[prevElement.key] = v.value,
|
|
1424
|
-
_a));
|
|
1425
|
-
return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
|
|
1426
|
-
}).map(function (v) { return ({
|
|
1427
|
-
val: v.value,
|
|
1428
|
-
desc: v.desc,
|
|
1429
|
-
isHide: null,
|
|
1430
|
-
isDisabled: null,
|
|
1431
|
-
isInvalid: null
|
|
1432
|
-
}); });
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
};
|
|
1437
|
-
do {
|
|
1438
|
-
var state_1 = _loop_1();
|
|
1439
|
-
if (state_1 === "break")
|
|
1440
|
-
break;
|
|
1441
|
-
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
setGroupInsurance(prodData);
|
|
1445
|
-
isHideProduct(prodData, productVerifyData, personOrderList);
|
|
1446
|
-
return prodData;
|
|
1447
|
-
}
|
|
1448
|
-
function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
1449
|
-
if (!verify || !verify.key || !verify[verify.key] || !insurances || !option) {
|
|
1450
|
-
return verify;
|
|
1451
|
-
}
|
|
1452
|
-
var insuranceInfo = {};
|
|
1453
|
-
insurances.forEach(function (ins) {
|
|
1454
|
-
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
1455
|
-
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* convertEleOrderListToObj */ "c"])(ins));
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
insuranceInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, insuranceInfo), option);
|
|
1459
|
-
var temp = verify;
|
|
1460
|
-
var hasElementKey = verify.key === option.elementKey;
|
|
1461
|
-
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
1462
|
-
temp = temp[temp.key].find(function (v) { return v.value == insuranceInfo[temp.key]; });
|
|
1463
|
-
if (temp && temp.key === option.elementKey) {
|
|
1464
|
-
hasElementKey = true;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
if (!hasElementKey) {
|
|
1468
|
-
return null;
|
|
1469
|
-
}
|
|
1470
|
-
if (temp && temp[option.elementKey]) {
|
|
1471
|
-
return temp[option.elementKey];
|
|
1472
|
-
}
|
|
1473
|
-
return temp ? [temp] : null;
|
|
1474
|
-
}
|
|
1475
|
-
function setCommonInfo(prodData) {
|
|
1476
|
-
if (!prodData || !prodData.mulInsOrderList) {
|
|
1477
|
-
return prodData;
|
|
1478
|
-
}
|
|
1479
|
-
var common = {
|
|
1480
|
-
key: 'common',
|
|
1481
|
-
eleOrderList: []
|
|
1482
|
-
};
|
|
1483
|
-
prodData.mulInsOrderList.forEach(function (ins) {
|
|
1484
|
-
if (!ins.eleOrderList) {
|
|
1485
|
-
return;
|
|
1486
|
-
}
|
|
1487
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
1488
|
-
if (ele.common && common.eleOrderList.every(function (e) { return e.key !== ele.key; })) {
|
|
1489
|
-
common.eleOrderList.push(ele);
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
ins.eleOrderList = ins.eleOrderList.filter(function (ele) { return !ele.common; });
|
|
1493
|
-
});
|
|
1494
|
-
if (!common.eleOrderList.length) {
|
|
1495
|
-
return prodData;
|
|
1496
|
-
}
|
|
1497
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
1498
|
-
prodData.mulInsOrderList.unshift(common);
|
|
1499
|
-
if (prodData.mulInsOrderList[1]) {
|
|
1500
|
-
prodData.mulInsOrderList[1].isFollowing = true;
|
|
858
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) { return ins.key !== 'common'; });
|
|
859
|
+
prodData.mulInsOrderList.unshift(common);
|
|
860
|
+
if (prodData.mulInsOrderList[1]) {
|
|
861
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
1501
862
|
}
|
|
1502
863
|
return prodData;
|
|
1503
864
|
}
|
|
@@ -1869,12 +1230,12 @@ function clearAddAndTakeAndAdjustBaoeData(productData) {
|
|
|
1869
1230
|
|
|
1870
1231
|
/***/ }),
|
|
1871
1232
|
|
|
1872
|
-
/***/
|
|
1233
|
+
/***/ 17:
|
|
1873
1234
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1874
1235
|
|
|
1875
1236
|
// TODO(Babel 8): Remove this file.
|
|
1876
1237
|
|
|
1877
|
-
var runtime = __webpack_require__(
|
|
1238
|
+
var runtime = __webpack_require__(55)();
|
|
1878
1239
|
module.exports = runtime;
|
|
1879
1240
|
|
|
1880
1241
|
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
@@ -1891,22 +1252,11 @@ try {
|
|
|
1891
1252
|
|
|
1892
1253
|
/***/ }),
|
|
1893
1254
|
|
|
1894
|
-
/***/
|
|
1255
|
+
/***/ 181:
|
|
1895
1256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1896
1257
|
|
|
1897
1258
|
// extracted by mini-css-extract-plugin
|
|
1898
1259
|
|
|
1899
|
-
/***/ }),
|
|
1900
|
-
|
|
1901
|
-
/***/ 192:
|
|
1902
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1903
|
-
|
|
1904
|
-
"use strict";
|
|
1905
|
-
/* 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_609ff0c1_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(171);
|
|
1906
|
-
/* 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_609ff0c1_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_609ff0c1_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
1907
|
-
/* unused harmony reexport * */
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
1260
|
/***/ }),
|
|
1911
1261
|
|
|
1912
1262
|
/***/ 2:
|
|
@@ -2528,7 +1878,18 @@ function isPromise(obj) {
|
|
|
2528
1878
|
|
|
2529
1879
|
/***/ }),
|
|
2530
1880
|
|
|
2531
|
-
/***/
|
|
1881
|
+
/***/ 205:
|
|
1882
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1883
|
+
|
|
1884
|
+
"use strict";
|
|
1885
|
+
/* 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_609ff0c1_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(181);
|
|
1886
|
+
/* 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_609ff0c1_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_609ff0c1_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
1887
|
+
/* unused harmony reexport * */
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
/***/ }),
|
|
1891
|
+
|
|
1892
|
+
/***/ 22:
|
|
2532
1893
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2533
1894
|
|
|
2534
1895
|
"use strict";
|
|
@@ -2547,30 +1908,121 @@ module.exports = function bind(fn, thisArg) {
|
|
|
2547
1908
|
|
|
2548
1909
|
/***/ }),
|
|
2549
1910
|
|
|
2550
|
-
/***/
|
|
2551
|
-
/***/ (function(module,
|
|
1911
|
+
/***/ 23:
|
|
1912
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2552
1913
|
|
|
2553
1914
|
"use strict";
|
|
2554
|
-
// ESM COMPAT FLAG
|
|
2555
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2556
1915
|
|
|
2557
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=609ff0c1&
|
|
2558
|
-
var render = function render() {
|
|
2559
|
-
var _vm = this,
|
|
2560
|
-
_c = _vm._self._c,
|
|
2561
|
-
_setup = _vm._self._setupProxy;
|
|
2562
1916
|
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
1917
|
+
var utils = __webpack_require__(5);
|
|
1918
|
+
|
|
1919
|
+
function encode(val) {
|
|
1920
|
+
return encodeURIComponent(val).
|
|
1921
|
+
replace(/%3A/gi, ':').
|
|
1922
|
+
replace(/%24/g, '$').
|
|
1923
|
+
replace(/%2C/gi, ',').
|
|
1924
|
+
replace(/%20/g, '+').
|
|
1925
|
+
replace(/%5B/gi, '[').
|
|
1926
|
+
replace(/%5D/gi, ']');
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Build a URL by appending params to the end
|
|
1931
|
+
*
|
|
1932
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
1933
|
+
* @param {object} [params] The params to be appended
|
|
1934
|
+
* @returns {string} The formatted url
|
|
1935
|
+
*/
|
|
1936
|
+
module.exports = function buildURL(url, params, paramsSerializer) {
|
|
1937
|
+
/*eslint no-param-reassign:0*/
|
|
1938
|
+
if (!params) {
|
|
1939
|
+
return url;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
var serializedParams;
|
|
1943
|
+
if (paramsSerializer) {
|
|
1944
|
+
serializedParams = paramsSerializer(params);
|
|
1945
|
+
} else if (utils.isURLSearchParams(params)) {
|
|
1946
|
+
serializedParams = params.toString();
|
|
1947
|
+
} else {
|
|
1948
|
+
var parts = [];
|
|
1949
|
+
|
|
1950
|
+
utils.forEach(params, function serialize(val, key) {
|
|
1951
|
+
if (val === null || typeof val === 'undefined') {
|
|
1952
|
+
return;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
if (utils.isArray(val)) {
|
|
1956
|
+
key = key + '[]';
|
|
1957
|
+
} else {
|
|
1958
|
+
val = [val];
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
utils.forEach(val, function parseValue(v) {
|
|
1962
|
+
if (utils.isDate(v)) {
|
|
1963
|
+
v = v.toISOString();
|
|
1964
|
+
} else if (utils.isObject(v)) {
|
|
1965
|
+
v = JSON.stringify(v);
|
|
1966
|
+
}
|
|
1967
|
+
parts.push(encode(key) + '=' + encode(v));
|
|
1968
|
+
});
|
|
1969
|
+
});
|
|
1970
|
+
|
|
1971
|
+
serializedParams = parts.join('&');
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
if (serializedParams) {
|
|
1975
|
+
var hashmarkIndex = url.indexOf('#');
|
|
1976
|
+
if (hashmarkIndex !== -1) {
|
|
1977
|
+
url = url.slice(0, hashmarkIndex);
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
return url;
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
/***/ }),
|
|
1988
|
+
|
|
1989
|
+
/***/ 24:
|
|
1990
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1991
|
+
|
|
1992
|
+
"use strict";
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
module.exports = function isCancel(value) {
|
|
1996
|
+
return !!(value && value.__CANCEL__);
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
/***/ }),
|
|
2001
|
+
|
|
2002
|
+
/***/ 243:
|
|
2003
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2004
|
+
|
|
2005
|
+
"use strict";
|
|
2006
|
+
// ESM COMPAT FLAG
|
|
2007
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2008
|
+
|
|
2009
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=609ff0c1&
|
|
2010
|
+
var render = function render() {
|
|
2011
|
+
var _vm = this,
|
|
2012
|
+
_c = _vm._self._c,
|
|
2013
|
+
_setup = _vm._self._setupProxy;
|
|
2014
|
+
|
|
2015
|
+
return _c('div', {
|
|
2016
|
+
staticClass: "bxt-calculate"
|
|
2017
|
+
}, [_vm.showHeader ? _c('div', {
|
|
2018
|
+
ref: "header"
|
|
2019
|
+
}, [_vm._t("header", function () {
|
|
2020
|
+
return [_c('header', {
|
|
2021
|
+
staticClass: "bxt-component-header"
|
|
2022
|
+
}, [_c('span', {
|
|
2023
|
+
staticClass: "bxt-component-header_title"
|
|
2024
|
+
}, [_vm._v(_vm._s(_vm.title))]), _c('span', {
|
|
2025
|
+
on: {
|
|
2574
2026
|
"click": _vm.closeInsureCalculate
|
|
2575
2027
|
}
|
|
2576
2028
|
}, [_c('bxs-icon', {
|
|
@@ -2869,16 +2321,16 @@ var tslib_es6 = __webpack_require__(0);
|
|
|
2869
2321
|
var vue_property_decorator = __webpack_require__(2);
|
|
2870
2322
|
|
|
2871
2323
|
// EXTERNAL MODULE: ./src/js/utils.js
|
|
2872
|
-
var utils = __webpack_require__(
|
|
2324
|
+
var utils = __webpack_require__(41);
|
|
2873
2325
|
|
|
2874
2326
|
// EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
|
|
2875
2327
|
var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(3);
|
|
2876
2328
|
|
|
2877
2329
|
// EXTERNAL MODULE: ./node_modules/bxs-ui-vue/lib/index.css
|
|
2878
|
-
var lib = __webpack_require__(
|
|
2330
|
+
var lib = __webpack_require__(94);
|
|
2879
2331
|
|
|
2880
2332
|
// EXTERNAL MODULE: ./packages/bxs-utils/index.ts + 3 modules
|
|
2881
|
-
var bxs_utils = __webpack_require__(
|
|
2333
|
+
var bxs_utils = __webpack_require__(7);
|
|
2882
2334
|
|
|
2883
2335
|
// CONCATENATED MODULE: ./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=script&lang=ts&
|
|
2884
2336
|
var insure_calculatevue_type_script_lang_ts_a;
|
|
@@ -3703,10 +3155,10 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
3703
3155
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=script&lang=ts&
|
|
3704
3156
|
/* harmony default export */ var packages_insure_calculatevue_type_script_lang_ts_ = (insure_calculatevue_type_script_lang_ts_);
|
|
3705
3157
|
// EXTERNAL MODULE: ./packages/insure-calculate/index.vue?vue&type=style&index=0&id=609ff0c1&prod&lang=css&
|
|
3706
|
-
var insure_calculatevue_type_style_index_0_id_609ff0c1_prod_lang_css_ = __webpack_require__(
|
|
3158
|
+
var insure_calculatevue_type_style_index_0_id_609ff0c1_prod_lang_css_ = __webpack_require__(205);
|
|
3707
3159
|
|
|
3708
3160
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
3709
|
-
var componentNormalizer = __webpack_require__(
|
|
3161
|
+
var componentNormalizer = __webpack_require__(8);
|
|
3710
3162
|
|
|
3711
3163
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue
|
|
3712
3164
|
|
|
@@ -3732,105 +3184,14 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3732
3184
|
|
|
3733
3185
|
/***/ }),
|
|
3734
3186
|
|
|
3735
|
-
/***/
|
|
3736
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3737
|
-
|
|
3738
|
-
"use strict";
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
var utils = __webpack_require__(5);
|
|
3742
|
-
|
|
3743
|
-
function encode(val) {
|
|
3744
|
-
return encodeURIComponent(val).
|
|
3745
|
-
replace(/%3A/gi, ':').
|
|
3746
|
-
replace(/%24/g, '$').
|
|
3747
|
-
replace(/%2C/gi, ',').
|
|
3748
|
-
replace(/%20/g, '+').
|
|
3749
|
-
replace(/%5B/gi, '[').
|
|
3750
|
-
replace(/%5D/gi, ']');
|
|
3751
|
-
}
|
|
3752
|
-
|
|
3753
|
-
/**
|
|
3754
|
-
* Build a URL by appending params to the end
|
|
3755
|
-
*
|
|
3756
|
-
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
3757
|
-
* @param {object} [params] The params to be appended
|
|
3758
|
-
* @returns {string} The formatted url
|
|
3759
|
-
*/
|
|
3760
|
-
module.exports = function buildURL(url, params, paramsSerializer) {
|
|
3761
|
-
/*eslint no-param-reassign:0*/
|
|
3762
|
-
if (!params) {
|
|
3763
|
-
return url;
|
|
3764
|
-
}
|
|
3765
|
-
|
|
3766
|
-
var serializedParams;
|
|
3767
|
-
if (paramsSerializer) {
|
|
3768
|
-
serializedParams = paramsSerializer(params);
|
|
3769
|
-
} else if (utils.isURLSearchParams(params)) {
|
|
3770
|
-
serializedParams = params.toString();
|
|
3771
|
-
} else {
|
|
3772
|
-
var parts = [];
|
|
3773
|
-
|
|
3774
|
-
utils.forEach(params, function serialize(val, key) {
|
|
3775
|
-
if (val === null || typeof val === 'undefined') {
|
|
3776
|
-
return;
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (utils.isArray(val)) {
|
|
3780
|
-
key = key + '[]';
|
|
3781
|
-
} else {
|
|
3782
|
-
val = [val];
|
|
3783
|
-
}
|
|
3784
|
-
|
|
3785
|
-
utils.forEach(val, function parseValue(v) {
|
|
3786
|
-
if (utils.isDate(v)) {
|
|
3787
|
-
v = v.toISOString();
|
|
3788
|
-
} else if (utils.isObject(v)) {
|
|
3789
|
-
v = JSON.stringify(v);
|
|
3790
|
-
}
|
|
3791
|
-
parts.push(encode(key) + '=' + encode(v));
|
|
3792
|
-
});
|
|
3793
|
-
});
|
|
3794
|
-
|
|
3795
|
-
serializedParams = parts.join('&');
|
|
3796
|
-
}
|
|
3797
|
-
|
|
3798
|
-
if (serializedParams) {
|
|
3799
|
-
var hashmarkIndex = url.indexOf('#');
|
|
3800
|
-
if (hashmarkIndex !== -1) {
|
|
3801
|
-
url = url.slice(0, hashmarkIndex);
|
|
3802
|
-
}
|
|
3803
|
-
|
|
3804
|
-
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
3805
|
-
}
|
|
3806
|
-
|
|
3807
|
-
return url;
|
|
3808
|
-
};
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
/***/ }),
|
|
3812
|
-
|
|
3813
|
-
/***/ 22:
|
|
3814
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3815
|
-
|
|
3816
|
-
"use strict";
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
module.exports = function isCancel(value) {
|
|
3820
|
-
return !!(value && value.__CANCEL__);
|
|
3821
|
-
};
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
/***/ }),
|
|
3825
|
-
|
|
3826
|
-
/***/ 23:
|
|
3187
|
+
/***/ 25:
|
|
3827
3188
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3828
3189
|
|
|
3829
3190
|
"use strict";
|
|
3830
3191
|
/* WEBPACK VAR INJECTION */(function(process) {
|
|
3831
3192
|
|
|
3832
3193
|
var utils = __webpack_require__(5);
|
|
3833
|
-
var normalizeHeaderName = __webpack_require__(
|
|
3194
|
+
var normalizeHeaderName = __webpack_require__(62);
|
|
3834
3195
|
|
|
3835
3196
|
var DEFAULT_CONTENT_TYPE = {
|
|
3836
3197
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -3846,10 +3207,10 @@ function getDefaultAdapter() {
|
|
|
3846
3207
|
var adapter;
|
|
3847
3208
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
3848
3209
|
// For browsers use XHR adapter
|
|
3849
|
-
adapter = __webpack_require__(
|
|
3210
|
+
adapter = __webpack_require__(26);
|
|
3850
3211
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
3851
3212
|
// For node use HTTP adapter
|
|
3852
|
-
adapter = __webpack_require__(
|
|
3213
|
+
adapter = __webpack_require__(26);
|
|
3853
3214
|
}
|
|
3854
3215
|
return adapter;
|
|
3855
3216
|
}
|
|
@@ -3926,24 +3287,24 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
3926
3287
|
|
|
3927
3288
|
module.exports = defaults;
|
|
3928
3289
|
|
|
3929
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3290
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(61)))
|
|
3930
3291
|
|
|
3931
3292
|
/***/ }),
|
|
3932
3293
|
|
|
3933
|
-
/***/
|
|
3294
|
+
/***/ 26:
|
|
3934
3295
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3935
3296
|
|
|
3936
3297
|
"use strict";
|
|
3937
3298
|
|
|
3938
3299
|
|
|
3939
3300
|
var utils = __webpack_require__(5);
|
|
3940
|
-
var settle = __webpack_require__(
|
|
3941
|
-
var cookies = __webpack_require__(
|
|
3942
|
-
var buildURL = __webpack_require__(
|
|
3943
|
-
var buildFullPath = __webpack_require__(
|
|
3944
|
-
var parseHeaders = __webpack_require__(
|
|
3945
|
-
var isURLSameOrigin = __webpack_require__(
|
|
3946
|
-
var createError = __webpack_require__(
|
|
3301
|
+
var settle = __webpack_require__(63);
|
|
3302
|
+
var cookies = __webpack_require__(65);
|
|
3303
|
+
var buildURL = __webpack_require__(23);
|
|
3304
|
+
var buildFullPath = __webpack_require__(66);
|
|
3305
|
+
var parseHeaders = __webpack_require__(69);
|
|
3306
|
+
var isURLSameOrigin = __webpack_require__(70);
|
|
3307
|
+
var createError = __webpack_require__(27);
|
|
3947
3308
|
|
|
3948
3309
|
module.exports = function xhrAdapter(config) {
|
|
3949
3310
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -4124,13 +3485,13 @@ module.exports = function xhrAdapter(config) {
|
|
|
4124
3485
|
|
|
4125
3486
|
/***/ }),
|
|
4126
3487
|
|
|
4127
|
-
/***/
|
|
3488
|
+
/***/ 27:
|
|
4128
3489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4129
3490
|
|
|
4130
3491
|
"use strict";
|
|
4131
3492
|
|
|
4132
3493
|
|
|
4133
|
-
var enhanceError = __webpack_require__(
|
|
3494
|
+
var enhanceError = __webpack_require__(64);
|
|
4134
3495
|
|
|
4135
3496
|
/**
|
|
4136
3497
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -4150,7 +3511,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
4150
3511
|
|
|
4151
3512
|
/***/ }),
|
|
4152
3513
|
|
|
4153
|
-
/***/
|
|
3514
|
+
/***/ 28:
|
|
4154
3515
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4155
3516
|
|
|
4156
3517
|
"use strict";
|
|
@@ -4245,7 +3606,7 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
4245
3606
|
|
|
4246
3607
|
/***/ }),
|
|
4247
3608
|
|
|
4248
|
-
/***/
|
|
3609
|
+
/***/ 29:
|
|
4249
3610
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4250
3611
|
|
|
4251
3612
|
"use strict";
|
|
@@ -4272,7 +3633,14 @@ module.exports = Cancel;
|
|
|
4272
3633
|
|
|
4273
3634
|
/***/ }),
|
|
4274
3635
|
|
|
4275
|
-
/***/
|
|
3636
|
+
/***/ 3:
|
|
3637
|
+
/***/ (function(module, exports) {
|
|
3638
|
+
|
|
3639
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
|
|
3640
|
+
|
|
3641
|
+
/***/ }),
|
|
3642
|
+
|
|
3643
|
+
/***/ 30:
|
|
4276
3644
|
/***/ (function(module, exports) {
|
|
4277
3645
|
|
|
4278
3646
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -4315,21 +3683,21 @@ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exp
|
|
|
4315
3683
|
|
|
4316
3684
|
/***/ }),
|
|
4317
3685
|
|
|
4318
|
-
/***/
|
|
3686
|
+
/***/ 31:
|
|
4319
3687
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4320
3688
|
|
|
4321
|
-
module.exports = __webpack_require__(
|
|
3689
|
+
module.exports = __webpack_require__(56);
|
|
4322
3690
|
|
|
4323
3691
|
/***/ }),
|
|
4324
3692
|
|
|
4325
|
-
/***/
|
|
3693
|
+
/***/ 4:
|
|
4326
3694
|
/***/ (function(module, exports) {
|
|
4327
3695
|
|
|
4328
|
-
module.exports =
|
|
3696
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
4329
3697
|
|
|
4330
3698
|
/***/ }),
|
|
4331
3699
|
|
|
4332
|
-
/***/
|
|
3700
|
+
/***/ 40:
|
|
4333
3701
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4334
3702
|
|
|
4335
3703
|
"use strict";
|
|
@@ -4342,15 +3710,15 @@ var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1
|
|
|
4342
3710
|
|
|
4343
3711
|
/***/ }),
|
|
4344
3712
|
|
|
4345
|
-
/***/
|
|
3713
|
+
/***/ 41:
|
|
4346
3714
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4347
3715
|
|
|
4348
3716
|
"use strict";
|
|
4349
3717
|
/* unused harmony export deepCopy */
|
|
4350
3718
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseTime; });
|
|
4351
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3719
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
4352
3720
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
4353
|
-
/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3721
|
+
/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40);
|
|
4354
3722
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _variables__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
4355
3723
|
|
|
4356
3724
|
|
|
@@ -4453,20 +3821,13 @@ function parseTime(time, cFormat) {
|
|
|
4453
3821
|
|
|
4454
3822
|
/***/ }),
|
|
4455
3823
|
|
|
4456
|
-
/***/ 4:
|
|
4457
|
-
/***/ (function(module, exports) {
|
|
4458
|
-
|
|
4459
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
4460
|
-
|
|
4461
|
-
/***/ }),
|
|
4462
|
-
|
|
4463
3824
|
/***/ 5:
|
|
4464
3825
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4465
3826
|
|
|
4466
3827
|
"use strict";
|
|
4467
3828
|
|
|
4468
3829
|
|
|
4469
|
-
var bind = __webpack_require__(
|
|
3830
|
+
var bind = __webpack_require__(22);
|
|
4470
3831
|
|
|
4471
3832
|
/*global toString:true*/
|
|
4472
3833
|
|
|
@@ -4819,10 +4180,10 @@ module.exports = {
|
|
|
4819
4180
|
|
|
4820
4181
|
/***/ }),
|
|
4821
4182
|
|
|
4822
|
-
/***/
|
|
4183
|
+
/***/ 55:
|
|
4823
4184
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4824
4185
|
|
|
4825
|
-
var _typeof = __webpack_require__(
|
|
4186
|
+
var _typeof = __webpack_require__(11)["default"];
|
|
4826
4187
|
|
|
4827
4188
|
function _regeneratorRuntime() {
|
|
4828
4189
|
"use strict";
|
|
@@ -5179,17 +4540,17 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
|
5179
4540
|
|
|
5180
4541
|
/***/ }),
|
|
5181
4542
|
|
|
5182
|
-
/***/
|
|
4543
|
+
/***/ 56:
|
|
5183
4544
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5184
4545
|
|
|
5185
4546
|
"use strict";
|
|
5186
4547
|
|
|
5187
4548
|
|
|
5188
4549
|
var utils = __webpack_require__(5);
|
|
5189
|
-
var bind = __webpack_require__(
|
|
5190
|
-
var Axios = __webpack_require__(
|
|
5191
|
-
var mergeConfig = __webpack_require__(
|
|
5192
|
-
var defaults = __webpack_require__(
|
|
4550
|
+
var bind = __webpack_require__(22);
|
|
4551
|
+
var Axios = __webpack_require__(57);
|
|
4552
|
+
var mergeConfig = __webpack_require__(28);
|
|
4553
|
+
var defaults = __webpack_require__(25);
|
|
5193
4554
|
|
|
5194
4555
|
/**
|
|
5195
4556
|
* Create an instance of Axios
|
|
@@ -5222,15 +4583,15 @@ axios.create = function create(instanceConfig) {
|
|
|
5222
4583
|
};
|
|
5223
4584
|
|
|
5224
4585
|
// Expose Cancel & CancelToken
|
|
5225
|
-
axios.Cancel = __webpack_require__(
|
|
5226
|
-
axios.CancelToken = __webpack_require__(
|
|
5227
|
-
axios.isCancel = __webpack_require__(
|
|
4586
|
+
axios.Cancel = __webpack_require__(29);
|
|
4587
|
+
axios.CancelToken = __webpack_require__(71);
|
|
4588
|
+
axios.isCancel = __webpack_require__(24);
|
|
5228
4589
|
|
|
5229
4590
|
// Expose all/spread
|
|
5230
4591
|
axios.all = function all(promises) {
|
|
5231
4592
|
return Promise.all(promises);
|
|
5232
4593
|
};
|
|
5233
|
-
axios.spread = __webpack_require__(
|
|
4594
|
+
axios.spread = __webpack_require__(72);
|
|
5234
4595
|
|
|
5235
4596
|
module.exports = axios;
|
|
5236
4597
|
|
|
@@ -5240,17 +4601,17 @@ module.exports.default = axios;
|
|
|
5240
4601
|
|
|
5241
4602
|
/***/ }),
|
|
5242
4603
|
|
|
5243
|
-
/***/
|
|
4604
|
+
/***/ 57:
|
|
5244
4605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5245
4606
|
|
|
5246
4607
|
"use strict";
|
|
5247
4608
|
|
|
5248
4609
|
|
|
5249
4610
|
var utils = __webpack_require__(5);
|
|
5250
|
-
var buildURL = __webpack_require__(
|
|
5251
|
-
var InterceptorManager = __webpack_require__(
|
|
5252
|
-
var dispatchRequest = __webpack_require__(
|
|
5253
|
-
var mergeConfig = __webpack_require__(
|
|
4611
|
+
var buildURL = __webpack_require__(23);
|
|
4612
|
+
var InterceptorManager = __webpack_require__(58);
|
|
4613
|
+
var dispatchRequest = __webpack_require__(59);
|
|
4614
|
+
var mergeConfig = __webpack_require__(28);
|
|
5254
4615
|
|
|
5255
4616
|
/**
|
|
5256
4617
|
* Create a new instance of Axios
|
|
@@ -5342,7 +4703,7 @@ module.exports = Axios;
|
|
|
5342
4703
|
|
|
5343
4704
|
/***/ }),
|
|
5344
4705
|
|
|
5345
|
-
/***/
|
|
4706
|
+
/***/ 58:
|
|
5346
4707
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5347
4708
|
|
|
5348
4709
|
"use strict";
|
|
@@ -5402,16 +4763,16 @@ module.exports = InterceptorManager;
|
|
|
5402
4763
|
|
|
5403
4764
|
/***/ }),
|
|
5404
4765
|
|
|
5405
|
-
/***/
|
|
4766
|
+
/***/ 59:
|
|
5406
4767
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5407
4768
|
|
|
5408
4769
|
"use strict";
|
|
5409
4770
|
|
|
5410
4771
|
|
|
5411
4772
|
var utils = __webpack_require__(5);
|
|
5412
|
-
var transformData = __webpack_require__(
|
|
5413
|
-
var isCancel = __webpack_require__(
|
|
5414
|
-
var defaults = __webpack_require__(
|
|
4773
|
+
var transformData = __webpack_require__(60);
|
|
4774
|
+
var isCancel = __webpack_require__(24);
|
|
4775
|
+
var defaults = __webpack_require__(25);
|
|
5415
4776
|
|
|
5416
4777
|
/**
|
|
5417
4778
|
* Throws a `Cancel` if cancellation has been requested.
|
|
@@ -5489,255 +4850,16 @@ module.exports = function dispatchRequest(config) {
|
|
|
5489
4850
|
|
|
5490
4851
|
/***/ }),
|
|
5491
4852
|
|
|
5492
|
-
/***/
|
|
5493
|
-
/***/ (function(module,
|
|
4853
|
+
/***/ 6:
|
|
4854
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5494
4855
|
|
|
5495
4856
|
"use strict";
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
*
|
|
5503
|
-
* @param {Object|String} data The data to be transformed
|
|
5504
|
-
* @param {Array} headers The headers for the request or response
|
|
5505
|
-
* @param {Array|Function} fns A single function or Array of functions
|
|
5506
|
-
* @returns {*} The resulting transformed data
|
|
5507
|
-
*/
|
|
5508
|
-
module.exports = function transformData(data, headers, fns) {
|
|
5509
|
-
/*eslint no-param-reassign:0*/
|
|
5510
|
-
utils.forEach(fns, function transform(fn) {
|
|
5511
|
-
data = fn(data, headers);
|
|
5512
|
-
});
|
|
5513
|
-
|
|
5514
|
-
return data;
|
|
5515
|
-
};
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
/***/ }),
|
|
5519
|
-
|
|
5520
|
-
/***/ 58:
|
|
5521
|
-
/***/ (function(module, exports) {
|
|
5522
|
-
|
|
5523
|
-
// shim for using process in browser
|
|
5524
|
-
var process = module.exports = {};
|
|
5525
|
-
|
|
5526
|
-
// cached from whatever global is present so that test runners that stub it
|
|
5527
|
-
// don't break things. But we need to wrap it in a try catch in case it is
|
|
5528
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
5529
|
-
// function because try/catches deoptimize in certain engines.
|
|
5530
|
-
|
|
5531
|
-
var cachedSetTimeout;
|
|
5532
|
-
var cachedClearTimeout;
|
|
5533
|
-
|
|
5534
|
-
function defaultSetTimout() {
|
|
5535
|
-
throw new Error('setTimeout has not been defined');
|
|
5536
|
-
}
|
|
5537
|
-
function defaultClearTimeout () {
|
|
5538
|
-
throw new Error('clearTimeout has not been defined');
|
|
5539
|
-
}
|
|
5540
|
-
(function () {
|
|
5541
|
-
try {
|
|
5542
|
-
if (typeof setTimeout === 'function') {
|
|
5543
|
-
cachedSetTimeout = setTimeout;
|
|
5544
|
-
} else {
|
|
5545
|
-
cachedSetTimeout = defaultSetTimout;
|
|
5546
|
-
}
|
|
5547
|
-
} catch (e) {
|
|
5548
|
-
cachedSetTimeout = defaultSetTimout;
|
|
5549
|
-
}
|
|
5550
|
-
try {
|
|
5551
|
-
if (typeof clearTimeout === 'function') {
|
|
5552
|
-
cachedClearTimeout = clearTimeout;
|
|
5553
|
-
} else {
|
|
5554
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
5555
|
-
}
|
|
5556
|
-
} catch (e) {
|
|
5557
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
5558
|
-
}
|
|
5559
|
-
} ())
|
|
5560
|
-
function runTimeout(fun) {
|
|
5561
|
-
if (cachedSetTimeout === setTimeout) {
|
|
5562
|
-
//normal enviroments in sane situations
|
|
5563
|
-
return setTimeout(fun, 0);
|
|
5564
|
-
}
|
|
5565
|
-
// if setTimeout wasn't available but was latter defined
|
|
5566
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
5567
|
-
cachedSetTimeout = setTimeout;
|
|
5568
|
-
return setTimeout(fun, 0);
|
|
5569
|
-
}
|
|
5570
|
-
try {
|
|
5571
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5572
|
-
return cachedSetTimeout(fun, 0);
|
|
5573
|
-
} catch(e){
|
|
5574
|
-
try {
|
|
5575
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5576
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
5577
|
-
} catch(e){
|
|
5578
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
5579
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
5580
|
-
}
|
|
5581
|
-
}
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
}
|
|
5585
|
-
function runClearTimeout(marker) {
|
|
5586
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
5587
|
-
//normal enviroments in sane situations
|
|
5588
|
-
return clearTimeout(marker);
|
|
5589
|
-
}
|
|
5590
|
-
// if clearTimeout wasn't available but was latter defined
|
|
5591
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
5592
|
-
cachedClearTimeout = clearTimeout;
|
|
5593
|
-
return clearTimeout(marker);
|
|
5594
|
-
}
|
|
5595
|
-
try {
|
|
5596
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5597
|
-
return cachedClearTimeout(marker);
|
|
5598
|
-
} catch (e){
|
|
5599
|
-
try {
|
|
5600
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5601
|
-
return cachedClearTimeout.call(null, marker);
|
|
5602
|
-
} catch (e){
|
|
5603
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
5604
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
5605
|
-
return cachedClearTimeout.call(this, marker);
|
|
5606
|
-
}
|
|
5607
|
-
}
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
}
|
|
5612
|
-
var queue = [];
|
|
5613
|
-
var draining = false;
|
|
5614
|
-
var currentQueue;
|
|
5615
|
-
var queueIndex = -1;
|
|
5616
|
-
|
|
5617
|
-
function cleanUpNextTick() {
|
|
5618
|
-
if (!draining || !currentQueue) {
|
|
5619
|
-
return;
|
|
5620
|
-
}
|
|
5621
|
-
draining = false;
|
|
5622
|
-
if (currentQueue.length) {
|
|
5623
|
-
queue = currentQueue.concat(queue);
|
|
5624
|
-
} else {
|
|
5625
|
-
queueIndex = -1;
|
|
5626
|
-
}
|
|
5627
|
-
if (queue.length) {
|
|
5628
|
-
drainQueue();
|
|
5629
|
-
}
|
|
5630
|
-
}
|
|
5631
|
-
|
|
5632
|
-
function drainQueue() {
|
|
5633
|
-
if (draining) {
|
|
5634
|
-
return;
|
|
5635
|
-
}
|
|
5636
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
5637
|
-
draining = true;
|
|
5638
|
-
|
|
5639
|
-
var len = queue.length;
|
|
5640
|
-
while(len) {
|
|
5641
|
-
currentQueue = queue;
|
|
5642
|
-
queue = [];
|
|
5643
|
-
while (++queueIndex < len) {
|
|
5644
|
-
if (currentQueue) {
|
|
5645
|
-
currentQueue[queueIndex].run();
|
|
5646
|
-
}
|
|
5647
|
-
}
|
|
5648
|
-
queueIndex = -1;
|
|
5649
|
-
len = queue.length;
|
|
5650
|
-
}
|
|
5651
|
-
currentQueue = null;
|
|
5652
|
-
draining = false;
|
|
5653
|
-
runClearTimeout(timeout);
|
|
5654
|
-
}
|
|
5655
|
-
|
|
5656
|
-
process.nextTick = function (fun) {
|
|
5657
|
-
var args = new Array(arguments.length - 1);
|
|
5658
|
-
if (arguments.length > 1) {
|
|
5659
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5660
|
-
args[i - 1] = arguments[i];
|
|
5661
|
-
}
|
|
5662
|
-
}
|
|
5663
|
-
queue.push(new Item(fun, args));
|
|
5664
|
-
if (queue.length === 1 && !draining) {
|
|
5665
|
-
runTimeout(drainQueue);
|
|
5666
|
-
}
|
|
5667
|
-
};
|
|
5668
|
-
|
|
5669
|
-
// v8 likes predictible objects
|
|
5670
|
-
function Item(fun, array) {
|
|
5671
|
-
this.fun = fun;
|
|
5672
|
-
this.array = array;
|
|
5673
|
-
}
|
|
5674
|
-
Item.prototype.run = function () {
|
|
5675
|
-
this.fun.apply(null, this.array);
|
|
5676
|
-
};
|
|
5677
|
-
process.title = 'browser';
|
|
5678
|
-
process.browser = true;
|
|
5679
|
-
process.env = {};
|
|
5680
|
-
process.argv = [];
|
|
5681
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
5682
|
-
process.versions = {};
|
|
5683
|
-
|
|
5684
|
-
function noop() {}
|
|
5685
|
-
|
|
5686
|
-
process.on = noop;
|
|
5687
|
-
process.addListener = noop;
|
|
5688
|
-
process.once = noop;
|
|
5689
|
-
process.off = noop;
|
|
5690
|
-
process.removeListener = noop;
|
|
5691
|
-
process.removeAllListeners = noop;
|
|
5692
|
-
process.emit = noop;
|
|
5693
|
-
process.prependListener = noop;
|
|
5694
|
-
process.prependOnceListener = noop;
|
|
5695
|
-
|
|
5696
|
-
process.listeners = function (name) { return [] }
|
|
5697
|
-
|
|
5698
|
-
process.binding = function (name) {
|
|
5699
|
-
throw new Error('process.binding is not supported');
|
|
5700
|
-
};
|
|
5701
|
-
|
|
5702
|
-
process.cwd = function () { return '/' };
|
|
5703
|
-
process.chdir = function (dir) {
|
|
5704
|
-
throw new Error('process.chdir is not supported');
|
|
5705
|
-
};
|
|
5706
|
-
process.umask = function() { return 0; };
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
/***/ }),
|
|
5710
|
-
|
|
5711
|
-
/***/ 59:
|
|
5712
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5713
|
-
|
|
5714
|
-
"use strict";
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
var utils = __webpack_require__(5);
|
|
5718
|
-
|
|
5719
|
-
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
5720
|
-
utils.forEach(headers, function processHeader(value, name) {
|
|
5721
|
-
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
5722
|
-
headers[normalizedName] = value;
|
|
5723
|
-
delete headers[name];
|
|
5724
|
-
}
|
|
5725
|
-
});
|
|
5726
|
-
};
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
/***/ }),
|
|
5730
|
-
|
|
5731
|
-
/***/ 6:
|
|
5732
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5733
|
-
|
|
5734
|
-
"use strict";
|
|
5735
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initInsuranceData; });
|
|
5736
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insuranceDataHandler; });
|
|
5737
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initElementValidateRules; });
|
|
5738
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return restrictElementsInInsurance; });
|
|
5739
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
5740
|
-
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
4857
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initInsuranceData; });
|
|
4858
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insuranceDataHandler; });
|
|
4859
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initElementValidateRules; });
|
|
4860
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return restrictElementsInInsurance; });
|
|
4861
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
4862
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
5741
4863
|
|
|
5742
4864
|
|
|
5743
4865
|
function initInsuranceData(insData) {
|
|
@@ -5985,290 +5107,1185 @@ function restrictElementsInInsurance(_a) {
|
|
|
5985
5107
|
}
|
|
5986
5108
|
}
|
|
5987
5109
|
}
|
|
5988
|
-
return errorMsg;
|
|
5989
|
-
}
|
|
5110
|
+
return errorMsg;
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
|
|
5114
|
+
/***/ }),
|
|
5115
|
+
|
|
5116
|
+
/***/ 60:
|
|
5117
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5118
|
+
|
|
5119
|
+
"use strict";
|
|
5120
|
+
|
|
5121
|
+
|
|
5122
|
+
var utils = __webpack_require__(5);
|
|
5123
|
+
|
|
5124
|
+
/**
|
|
5125
|
+
* Transform the data for a request or a response
|
|
5126
|
+
*
|
|
5127
|
+
* @param {Object|String} data The data to be transformed
|
|
5128
|
+
* @param {Array} headers The headers for the request or response
|
|
5129
|
+
* @param {Array|Function} fns A single function or Array of functions
|
|
5130
|
+
* @returns {*} The resulting transformed data
|
|
5131
|
+
*/
|
|
5132
|
+
module.exports = function transformData(data, headers, fns) {
|
|
5133
|
+
/*eslint no-param-reassign:0*/
|
|
5134
|
+
utils.forEach(fns, function transform(fn) {
|
|
5135
|
+
data = fn(data, headers);
|
|
5136
|
+
});
|
|
5137
|
+
|
|
5138
|
+
return data;
|
|
5139
|
+
};
|
|
5140
|
+
|
|
5141
|
+
|
|
5142
|
+
/***/ }),
|
|
5143
|
+
|
|
5144
|
+
/***/ 61:
|
|
5145
|
+
/***/ (function(module, exports) {
|
|
5146
|
+
|
|
5147
|
+
// shim for using process in browser
|
|
5148
|
+
var process = module.exports = {};
|
|
5149
|
+
|
|
5150
|
+
// cached from whatever global is present so that test runners that stub it
|
|
5151
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
5152
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
5153
|
+
// function because try/catches deoptimize in certain engines.
|
|
5154
|
+
|
|
5155
|
+
var cachedSetTimeout;
|
|
5156
|
+
var cachedClearTimeout;
|
|
5157
|
+
|
|
5158
|
+
function defaultSetTimout() {
|
|
5159
|
+
throw new Error('setTimeout has not been defined');
|
|
5160
|
+
}
|
|
5161
|
+
function defaultClearTimeout () {
|
|
5162
|
+
throw new Error('clearTimeout has not been defined');
|
|
5163
|
+
}
|
|
5164
|
+
(function () {
|
|
5165
|
+
try {
|
|
5166
|
+
if (typeof setTimeout === 'function') {
|
|
5167
|
+
cachedSetTimeout = setTimeout;
|
|
5168
|
+
} else {
|
|
5169
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5170
|
+
}
|
|
5171
|
+
} catch (e) {
|
|
5172
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5173
|
+
}
|
|
5174
|
+
try {
|
|
5175
|
+
if (typeof clearTimeout === 'function') {
|
|
5176
|
+
cachedClearTimeout = clearTimeout;
|
|
5177
|
+
} else {
|
|
5178
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5179
|
+
}
|
|
5180
|
+
} catch (e) {
|
|
5181
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5182
|
+
}
|
|
5183
|
+
} ())
|
|
5184
|
+
function runTimeout(fun) {
|
|
5185
|
+
if (cachedSetTimeout === setTimeout) {
|
|
5186
|
+
//normal enviroments in sane situations
|
|
5187
|
+
return setTimeout(fun, 0);
|
|
5188
|
+
}
|
|
5189
|
+
// if setTimeout wasn't available but was latter defined
|
|
5190
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
5191
|
+
cachedSetTimeout = setTimeout;
|
|
5192
|
+
return setTimeout(fun, 0);
|
|
5193
|
+
}
|
|
5194
|
+
try {
|
|
5195
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5196
|
+
return cachedSetTimeout(fun, 0);
|
|
5197
|
+
} catch(e){
|
|
5198
|
+
try {
|
|
5199
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5200
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
5201
|
+
} catch(e){
|
|
5202
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
5203
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5207
|
+
|
|
5208
|
+
}
|
|
5209
|
+
function runClearTimeout(marker) {
|
|
5210
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
5211
|
+
//normal enviroments in sane situations
|
|
5212
|
+
return clearTimeout(marker);
|
|
5213
|
+
}
|
|
5214
|
+
// if clearTimeout wasn't available but was latter defined
|
|
5215
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
5216
|
+
cachedClearTimeout = clearTimeout;
|
|
5217
|
+
return clearTimeout(marker);
|
|
5218
|
+
}
|
|
5219
|
+
try {
|
|
5220
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5221
|
+
return cachedClearTimeout(marker);
|
|
5222
|
+
} catch (e){
|
|
5223
|
+
try {
|
|
5224
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5225
|
+
return cachedClearTimeout.call(null, marker);
|
|
5226
|
+
} catch (e){
|
|
5227
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
5228
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
5229
|
+
return cachedClearTimeout.call(this, marker);
|
|
5230
|
+
}
|
|
5231
|
+
}
|
|
5232
|
+
|
|
5233
|
+
|
|
5234
|
+
|
|
5235
|
+
}
|
|
5236
|
+
var queue = [];
|
|
5237
|
+
var draining = false;
|
|
5238
|
+
var currentQueue;
|
|
5239
|
+
var queueIndex = -1;
|
|
5240
|
+
|
|
5241
|
+
function cleanUpNextTick() {
|
|
5242
|
+
if (!draining || !currentQueue) {
|
|
5243
|
+
return;
|
|
5244
|
+
}
|
|
5245
|
+
draining = false;
|
|
5246
|
+
if (currentQueue.length) {
|
|
5247
|
+
queue = currentQueue.concat(queue);
|
|
5248
|
+
} else {
|
|
5249
|
+
queueIndex = -1;
|
|
5250
|
+
}
|
|
5251
|
+
if (queue.length) {
|
|
5252
|
+
drainQueue();
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
function drainQueue() {
|
|
5257
|
+
if (draining) {
|
|
5258
|
+
return;
|
|
5259
|
+
}
|
|
5260
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
5261
|
+
draining = true;
|
|
5262
|
+
|
|
5263
|
+
var len = queue.length;
|
|
5264
|
+
while(len) {
|
|
5265
|
+
currentQueue = queue;
|
|
5266
|
+
queue = [];
|
|
5267
|
+
while (++queueIndex < len) {
|
|
5268
|
+
if (currentQueue) {
|
|
5269
|
+
currentQueue[queueIndex].run();
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
queueIndex = -1;
|
|
5273
|
+
len = queue.length;
|
|
5274
|
+
}
|
|
5275
|
+
currentQueue = null;
|
|
5276
|
+
draining = false;
|
|
5277
|
+
runClearTimeout(timeout);
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
process.nextTick = function (fun) {
|
|
5281
|
+
var args = new Array(arguments.length - 1);
|
|
5282
|
+
if (arguments.length > 1) {
|
|
5283
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
5284
|
+
args[i - 1] = arguments[i];
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
queue.push(new Item(fun, args));
|
|
5288
|
+
if (queue.length === 1 && !draining) {
|
|
5289
|
+
runTimeout(drainQueue);
|
|
5290
|
+
}
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
// v8 likes predictible objects
|
|
5294
|
+
function Item(fun, array) {
|
|
5295
|
+
this.fun = fun;
|
|
5296
|
+
this.array = array;
|
|
5297
|
+
}
|
|
5298
|
+
Item.prototype.run = function () {
|
|
5299
|
+
this.fun.apply(null, this.array);
|
|
5300
|
+
};
|
|
5301
|
+
process.title = 'browser';
|
|
5302
|
+
process.browser = true;
|
|
5303
|
+
process.env = {};
|
|
5304
|
+
process.argv = [];
|
|
5305
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
5306
|
+
process.versions = {};
|
|
5307
|
+
|
|
5308
|
+
function noop() {}
|
|
5309
|
+
|
|
5310
|
+
process.on = noop;
|
|
5311
|
+
process.addListener = noop;
|
|
5312
|
+
process.once = noop;
|
|
5313
|
+
process.off = noop;
|
|
5314
|
+
process.removeListener = noop;
|
|
5315
|
+
process.removeAllListeners = noop;
|
|
5316
|
+
process.emit = noop;
|
|
5317
|
+
process.prependListener = noop;
|
|
5318
|
+
process.prependOnceListener = noop;
|
|
5319
|
+
|
|
5320
|
+
process.listeners = function (name) { return [] }
|
|
5321
|
+
|
|
5322
|
+
process.binding = function (name) {
|
|
5323
|
+
throw new Error('process.binding is not supported');
|
|
5324
|
+
};
|
|
5325
|
+
|
|
5326
|
+
process.cwd = function () { return '/' };
|
|
5327
|
+
process.chdir = function (dir) {
|
|
5328
|
+
throw new Error('process.chdir is not supported');
|
|
5329
|
+
};
|
|
5330
|
+
process.umask = function() { return 0; };
|
|
5331
|
+
|
|
5332
|
+
|
|
5333
|
+
/***/ }),
|
|
5334
|
+
|
|
5335
|
+
/***/ 62:
|
|
5336
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5337
|
+
|
|
5338
|
+
"use strict";
|
|
5339
|
+
|
|
5340
|
+
|
|
5341
|
+
var utils = __webpack_require__(5);
|
|
5342
|
+
|
|
5343
|
+
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
5344
|
+
utils.forEach(headers, function processHeader(value, name) {
|
|
5345
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
5346
|
+
headers[normalizedName] = value;
|
|
5347
|
+
delete headers[name];
|
|
5348
|
+
}
|
|
5349
|
+
});
|
|
5350
|
+
};
|
|
5351
|
+
|
|
5352
|
+
|
|
5353
|
+
/***/ }),
|
|
5354
|
+
|
|
5355
|
+
/***/ 63:
|
|
5356
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5357
|
+
|
|
5358
|
+
"use strict";
|
|
5359
|
+
|
|
5360
|
+
|
|
5361
|
+
var createError = __webpack_require__(27);
|
|
5362
|
+
|
|
5363
|
+
/**
|
|
5364
|
+
* Resolve or reject a Promise based on response status.
|
|
5365
|
+
*
|
|
5366
|
+
* @param {Function} resolve A function that resolves the promise.
|
|
5367
|
+
* @param {Function} reject A function that rejects the promise.
|
|
5368
|
+
* @param {object} response The response.
|
|
5369
|
+
*/
|
|
5370
|
+
module.exports = function settle(resolve, reject, response) {
|
|
5371
|
+
var validateStatus = response.config.validateStatus;
|
|
5372
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
5373
|
+
resolve(response);
|
|
5374
|
+
} else {
|
|
5375
|
+
reject(createError(
|
|
5376
|
+
'Request failed with status code ' + response.status,
|
|
5377
|
+
response.config,
|
|
5378
|
+
null,
|
|
5379
|
+
response.request,
|
|
5380
|
+
response
|
|
5381
|
+
));
|
|
5382
|
+
}
|
|
5383
|
+
};
|
|
5384
|
+
|
|
5385
|
+
|
|
5386
|
+
/***/ }),
|
|
5387
|
+
|
|
5388
|
+
/***/ 64:
|
|
5389
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5390
|
+
|
|
5391
|
+
"use strict";
|
|
5392
|
+
|
|
5393
|
+
|
|
5394
|
+
/**
|
|
5395
|
+
* Update an Error with the specified config, error code, and response.
|
|
5396
|
+
*
|
|
5397
|
+
* @param {Error} error The error to update.
|
|
5398
|
+
* @param {Object} config The config.
|
|
5399
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
5400
|
+
* @param {Object} [request] The request.
|
|
5401
|
+
* @param {Object} [response] The response.
|
|
5402
|
+
* @returns {Error} The error.
|
|
5403
|
+
*/
|
|
5404
|
+
module.exports = function enhanceError(error, config, code, request, response) {
|
|
5405
|
+
error.config = config;
|
|
5406
|
+
if (code) {
|
|
5407
|
+
error.code = code;
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
error.request = request;
|
|
5411
|
+
error.response = response;
|
|
5412
|
+
error.isAxiosError = true;
|
|
5413
|
+
|
|
5414
|
+
error.toJSON = function toJSON() {
|
|
5415
|
+
return {
|
|
5416
|
+
// Standard
|
|
5417
|
+
message: this.message,
|
|
5418
|
+
name: this.name,
|
|
5419
|
+
// Microsoft
|
|
5420
|
+
description: this.description,
|
|
5421
|
+
number: this.number,
|
|
5422
|
+
// Mozilla
|
|
5423
|
+
fileName: this.fileName,
|
|
5424
|
+
lineNumber: this.lineNumber,
|
|
5425
|
+
columnNumber: this.columnNumber,
|
|
5426
|
+
stack: this.stack,
|
|
5427
|
+
// Axios
|
|
5428
|
+
config: this.config,
|
|
5429
|
+
code: this.code
|
|
5430
|
+
};
|
|
5431
|
+
};
|
|
5432
|
+
return error;
|
|
5433
|
+
};
|
|
5434
|
+
|
|
5435
|
+
|
|
5436
|
+
/***/ }),
|
|
5437
|
+
|
|
5438
|
+
/***/ 65:
|
|
5439
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5440
|
+
|
|
5441
|
+
"use strict";
|
|
5442
|
+
|
|
5443
|
+
|
|
5444
|
+
var utils = __webpack_require__(5);
|
|
5445
|
+
|
|
5446
|
+
module.exports = (
|
|
5447
|
+
utils.isStandardBrowserEnv() ?
|
|
5448
|
+
|
|
5449
|
+
// Standard browser envs support document.cookie
|
|
5450
|
+
(function standardBrowserEnv() {
|
|
5451
|
+
return {
|
|
5452
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
5453
|
+
var cookie = [];
|
|
5454
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
|
5455
|
+
|
|
5456
|
+
if (utils.isNumber(expires)) {
|
|
5457
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
if (utils.isString(path)) {
|
|
5461
|
+
cookie.push('path=' + path);
|
|
5462
|
+
}
|
|
5463
|
+
|
|
5464
|
+
if (utils.isString(domain)) {
|
|
5465
|
+
cookie.push('domain=' + domain);
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
if (secure === true) {
|
|
5469
|
+
cookie.push('secure');
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5472
|
+
document.cookie = cookie.join('; ');
|
|
5473
|
+
},
|
|
5474
|
+
|
|
5475
|
+
read: function read(name) {
|
|
5476
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
5477
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
|
5478
|
+
},
|
|
5479
|
+
|
|
5480
|
+
remove: function remove(name) {
|
|
5481
|
+
this.write(name, '', Date.now() - 86400000);
|
|
5482
|
+
}
|
|
5483
|
+
};
|
|
5484
|
+
})() :
|
|
5485
|
+
|
|
5486
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
5487
|
+
(function nonStandardBrowserEnv() {
|
|
5488
|
+
return {
|
|
5489
|
+
write: function write() {},
|
|
5490
|
+
read: function read() { return null; },
|
|
5491
|
+
remove: function remove() {}
|
|
5492
|
+
};
|
|
5493
|
+
})()
|
|
5494
|
+
);
|
|
5495
|
+
|
|
5496
|
+
|
|
5497
|
+
/***/ }),
|
|
5498
|
+
|
|
5499
|
+
/***/ 66:
|
|
5500
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5501
|
+
|
|
5502
|
+
"use strict";
|
|
5503
|
+
|
|
5504
|
+
|
|
5505
|
+
var isAbsoluteURL = __webpack_require__(67);
|
|
5506
|
+
var combineURLs = __webpack_require__(68);
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
5510
|
+
* only when the requestedURL is not already an absolute URL.
|
|
5511
|
+
* If the requestURL is absolute, this function returns the requestedURL untouched.
|
|
5512
|
+
*
|
|
5513
|
+
* @param {string} baseURL The base URL
|
|
5514
|
+
* @param {string} requestedURL Absolute or relative URL to combine
|
|
5515
|
+
* @returns {string} The combined full path
|
|
5516
|
+
*/
|
|
5517
|
+
module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
5518
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
5519
|
+
return combineURLs(baseURL, requestedURL);
|
|
5520
|
+
}
|
|
5521
|
+
return requestedURL;
|
|
5522
|
+
};
|
|
5523
|
+
|
|
5524
|
+
|
|
5525
|
+
/***/ }),
|
|
5526
|
+
|
|
5527
|
+
/***/ 67:
|
|
5528
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5529
|
+
|
|
5530
|
+
"use strict";
|
|
5531
|
+
|
|
5532
|
+
|
|
5533
|
+
/**
|
|
5534
|
+
* Determines whether the specified URL is absolute
|
|
5535
|
+
*
|
|
5536
|
+
* @param {string} url The URL to test
|
|
5537
|
+
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
5538
|
+
*/
|
|
5539
|
+
module.exports = function isAbsoluteURL(url) {
|
|
5540
|
+
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
5541
|
+
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
5542
|
+
// by any combination of letters, digits, plus, period, or hyphen.
|
|
5543
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5546
|
+
|
|
5547
|
+
/***/ }),
|
|
5548
|
+
|
|
5549
|
+
/***/ 68:
|
|
5550
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5551
|
+
|
|
5552
|
+
"use strict";
|
|
5553
|
+
|
|
5554
|
+
|
|
5555
|
+
/**
|
|
5556
|
+
* Creates a new URL by combining the specified URLs
|
|
5557
|
+
*
|
|
5558
|
+
* @param {string} baseURL The base URL
|
|
5559
|
+
* @param {string} relativeURL The relative URL
|
|
5560
|
+
* @returns {string} The combined URL
|
|
5561
|
+
*/
|
|
5562
|
+
module.exports = function combineURLs(baseURL, relativeURL) {
|
|
5563
|
+
return relativeURL
|
|
5564
|
+
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
5565
|
+
: baseURL;
|
|
5566
|
+
};
|
|
5567
|
+
|
|
5568
|
+
|
|
5569
|
+
/***/ }),
|
|
5570
|
+
|
|
5571
|
+
/***/ 69:
|
|
5572
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5573
|
+
|
|
5574
|
+
"use strict";
|
|
5575
|
+
|
|
5576
|
+
|
|
5577
|
+
var utils = __webpack_require__(5);
|
|
5578
|
+
|
|
5579
|
+
// Headers whose duplicates are ignored by node
|
|
5580
|
+
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
5581
|
+
var ignoreDuplicateOf = [
|
|
5582
|
+
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
|
5583
|
+
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
|
5584
|
+
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
|
5585
|
+
'referer', 'retry-after', 'user-agent'
|
|
5586
|
+
];
|
|
5587
|
+
|
|
5588
|
+
/**
|
|
5589
|
+
* Parse headers into an object
|
|
5590
|
+
*
|
|
5591
|
+
* ```
|
|
5592
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
5593
|
+
* Content-Type: application/json
|
|
5594
|
+
* Connection: keep-alive
|
|
5595
|
+
* Transfer-Encoding: chunked
|
|
5596
|
+
* ```
|
|
5597
|
+
*
|
|
5598
|
+
* @param {String} headers Headers needing to be parsed
|
|
5599
|
+
* @returns {Object} Headers parsed into an object
|
|
5600
|
+
*/
|
|
5601
|
+
module.exports = function parseHeaders(headers) {
|
|
5602
|
+
var parsed = {};
|
|
5603
|
+
var key;
|
|
5604
|
+
var val;
|
|
5605
|
+
var i;
|
|
5606
|
+
|
|
5607
|
+
if (!headers) { return parsed; }
|
|
5608
|
+
|
|
5609
|
+
utils.forEach(headers.split('\n'), function parser(line) {
|
|
5610
|
+
i = line.indexOf(':');
|
|
5611
|
+
key = utils.trim(line.substr(0, i)).toLowerCase();
|
|
5612
|
+
val = utils.trim(line.substr(i + 1));
|
|
5613
|
+
|
|
5614
|
+
if (key) {
|
|
5615
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
5616
|
+
return;
|
|
5617
|
+
}
|
|
5618
|
+
if (key === 'set-cookie') {
|
|
5619
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
5620
|
+
} else {
|
|
5621
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
});
|
|
5625
|
+
|
|
5626
|
+
return parsed;
|
|
5627
|
+
};
|
|
5628
|
+
|
|
5629
|
+
|
|
5630
|
+
/***/ }),
|
|
5631
|
+
|
|
5632
|
+
/***/ 7:
|
|
5633
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5634
|
+
|
|
5635
|
+
"use strict";
|
|
5636
|
+
// ESM COMPAT FLAG
|
|
5637
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5638
|
+
|
|
5639
|
+
// EXPORTS
|
|
5640
|
+
__webpack_require__.d(__webpack_exports__, "convertEleOrderListToObj", function() { return /* reexport */ planbook["d" /* convertEleOrderListToObj */]; });
|
|
5641
|
+
__webpack_require__.d(__webpack_exports__, "calcTotalBaof", function() { return /* reexport */ planbook["a" /* calcTotalBaof */]; });
|
|
5642
|
+
__webpack_require__.d(__webpack_exports__, "getHuomianPeriodValue", function() { return /* reexport */ planbook["j" /* getHuomianPeriodValue */]; });
|
|
5643
|
+
__webpack_require__.d(__webpack_exports__, "getNumberFromYear", function() { return /* reexport */ planbook["l" /* getNumberFromYear */]; });
|
|
5644
|
+
__webpack_require__.d(__webpack_exports__, "converUnit10000", function() { return /* reexport */ planbook["c" /* converUnit10000 */]; });
|
|
5645
|
+
__webpack_require__.d(__webpack_exports__, "deepCopy", function() { return /* reexport */ planbook["g" /* deepCopy */]; });
|
|
5646
|
+
__webpack_require__.d(__webpack_exports__, "getAgeFromBirth", function() { return /* reexport */ planbook["h" /* getAgeFromBirth */]; });
|
|
5647
|
+
__webpack_require__.d(__webpack_exports__, "initPersonData", function() { return /* reexport */ planbook["o" /* initPersonData */]; });
|
|
5648
|
+
__webpack_require__.d(__webpack_exports__, "personDataHandler", function() { return /* reexport */ planbook["s" /* personDataHandler */]; });
|
|
5649
|
+
__webpack_require__.d(__webpack_exports__, "getInsuredAgeRange", function() { return /* reexport */ planbook["k" /* getInsuredAgeRange */]; });
|
|
5650
|
+
__webpack_require__.d(__webpack_exports__, "setPersonAgeOptions", function() { return /* reexport */ planbook["y" /* setPersonAgeOptions */]; });
|
|
5651
|
+
__webpack_require__.d(__webpack_exports__, "convertPersonData", function() { return /* reexport */ planbook["e" /* convertPersonData */]; });
|
|
5652
|
+
__webpack_require__.d(__webpack_exports__, "initProductData", function() { return /* reexport */ planbook["p" /* initProductData */]; });
|
|
5653
|
+
__webpack_require__.d(__webpack_exports__, "productDataHandler", function() { return /* reexport */ planbook["t" /* productDataHandler */]; });
|
|
5654
|
+
__webpack_require__.d(__webpack_exports__, "getElementVerifyFromProductVerify", function() { return /* reexport */ planbook["i" /* getElementVerifyFromProductVerify */]; });
|
|
5655
|
+
__webpack_require__.d(__webpack_exports__, "setCommonInfo", function() { return /* reexport */ planbook["w" /* setCommonInfo */]; });
|
|
5656
|
+
__webpack_require__.d(__webpack_exports__, "setGroupInsurance", function() { return /* reexport */ planbook["x" /* setGroupInsurance */]; });
|
|
5657
|
+
__webpack_require__.d(__webpack_exports__, "isHideProduct", function() { return /* reexport */ planbook["r" /* isHideProduct */]; });
|
|
5658
|
+
__webpack_require__.d(__webpack_exports__, "verifyProductRules", function() { return /* reexport */ planbook["z" /* verifyProductRules */]; });
|
|
5659
|
+
__webpack_require__.d(__webpack_exports__, "restrictInsurancesInProduct", function() { return /* reexport */ planbook["v" /* restrictInsurancesInProduct */]; });
|
|
5660
|
+
__webpack_require__.d(__webpack_exports__, "convertProductData", function() { return /* reexport */ planbook["f" /* convertProductData */]; });
|
|
5661
|
+
__webpack_require__.d(__webpack_exports__, "clearAddAndTakeAndAdjustBaoeData", function() { return /* reexport */ planbook["b" /* clearAddAndTakeAndAdjustBaoeData */]; });
|
|
5662
|
+
__webpack_require__.d(__webpack_exports__, "initInsuranceData", function() { return /* reexport */ planbook["n" /* initInsuranceData */]; });
|
|
5663
|
+
__webpack_require__.d(__webpack_exports__, "insuranceDataHandler", function() { return /* reexport */ planbook["q" /* insuranceDataHandler */]; });
|
|
5664
|
+
__webpack_require__.d(__webpack_exports__, "initElementValidateRules", function() { return /* reexport */ planbook["m" /* initElementValidateRules */]; });
|
|
5665
|
+
__webpack_require__.d(__webpack_exports__, "restrictElementsInInsurance", function() { return /* reexport */ planbook["u" /* restrictElementsInInsurance */]; });
|
|
5666
|
+
__webpack_require__.d(__webpack_exports__, "getAddress", function() { return /* reexport */ getAddress; });
|
|
5667
|
+
__webpack_require__.d(__webpack_exports__, "getUuid", function() { return /* reexport */ getUuid; });
|
|
5668
|
+
__webpack_require__.d(__webpack_exports__, "hasPlanParams", function() { return /* reexport */ hasPlanParams; });
|
|
5669
|
+
__webpack_require__.d(__webpack_exports__, "insureCalculate", function() { return /* reexport */ insureCalculate; });
|
|
5670
|
+
__webpack_require__.d(__webpack_exports__, "checkInsureCalculate", function() { return /* reexport */ checkInsureCalculate; });
|
|
5671
|
+
__webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function() { return /* reexport */ checkInsureCalculateIn; });
|
|
5672
|
+
|
|
5673
|
+
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/index.ts
|
|
5674
|
+
var planbook = __webpack_require__(12);
|
|
5675
|
+
|
|
5676
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
5677
|
+
var asyncToGenerator = __webpack_require__(30);
|
|
5678
|
+
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
5679
|
+
|
|
5680
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
|
|
5681
|
+
var helpers_typeof = __webpack_require__(11);
|
|
5682
|
+
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
|
5683
|
+
|
|
5684
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
5685
|
+
var regenerator = __webpack_require__(17);
|
|
5686
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
5687
|
+
|
|
5688
|
+
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
5689
|
+
var axios = __webpack_require__(31);
|
|
5690
|
+
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
5691
|
+
|
|
5692
|
+
// CONCATENATED MODULE: ./src/js/request.js
|
|
5693
|
+
// import { gotoLogin } from './utils.js'
|
|
5694
|
+
|
|
5695
|
+
var BASE_API = function () {
|
|
5696
|
+
var env = null;
|
|
5697
|
+
|
|
5698
|
+
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
5699
|
+
env = 'https://app.winbaoxian.com';
|
|
5700
|
+
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
5701
|
+
env = 'https://app.winbaoxian.cn';
|
|
5702
|
+
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost/) !== -1) {
|
|
5703
|
+
env = 'https://app.winbaoxian.cn';
|
|
5704
|
+
}
|
|
5705
|
+
|
|
5706
|
+
return env;
|
|
5707
|
+
}(); // 创建axios实例
|
|
5708
|
+
|
|
5709
|
+
|
|
5710
|
+
var service = axios_default.a.create({
|
|
5711
|
+
baseURL: BASE_API,
|
|
5712
|
+
withCredentials: true,
|
|
5713
|
+
timeout: 10000,
|
|
5714
|
+
// 请求超时时间
|
|
5715
|
+
headers: {
|
|
5716
|
+
'X-Requested-With': 'XMLHttpRequest'
|
|
5717
|
+
}
|
|
5718
|
+
});
|
|
5719
|
+
var loadingTimer = null;
|
|
5720
|
+
|
|
5721
|
+
var loading = function loading(show) {
|
|
5722
|
+
if (window.appBridge && appBridge.showLoading) {
|
|
5723
|
+
if (show) {
|
|
5724
|
+
appBridge.showLoading();
|
|
5725
|
+
} else {
|
|
5726
|
+
appBridge.hideLoading();
|
|
5727
|
+
}
|
|
5728
|
+
}
|
|
5729
|
+
}; // request拦截器
|
|
5990
5730
|
|
|
5991
5731
|
|
|
5992
|
-
|
|
5732
|
+
service.interceptors.request.use(function (config) {
|
|
5733
|
+
if (loadingTimer) clearTimeout(loadingTimer);
|
|
5734
|
+
loadingTimer = setTimeout(function () {
|
|
5735
|
+
loading(true);
|
|
5736
|
+
}, 300);
|
|
5737
|
+
return config;
|
|
5738
|
+
}, function (error) {
|
|
5739
|
+
// Do something with request error
|
|
5740
|
+
console.log(error); // for debug
|
|
5993
5741
|
|
|
5994
|
-
|
|
5995
|
-
|
|
5742
|
+
Promise.reject(error);
|
|
5743
|
+
}); // respone拦截器
|
|
5996
5744
|
|
|
5997
|
-
|
|
5745
|
+
service.interceptors.response.use(function (response) {
|
|
5746
|
+
if (loadingTimer) clearTimeout(loadingTimer);
|
|
5747
|
+
loading(false);
|
|
5748
|
+
var res = response.data;
|
|
5998
5749
|
|
|
5750
|
+
if (res.code === 401 || res.status === 401) {
|
|
5751
|
+
// gotoLogin()
|
|
5752
|
+
return Promise.reject('login');
|
|
5753
|
+
}
|
|
5999
5754
|
|
|
6000
|
-
|
|
5755
|
+
return res;
|
|
5756
|
+
}, function (error) {
|
|
5757
|
+
if (loadingTimer) clearTimeout(loadingTimer);
|
|
5758
|
+
loading(false);
|
|
6001
5759
|
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
* @param {Function} resolve A function that resolves the promise.
|
|
6006
|
-
* @param {Function} reject A function that rejects the promise.
|
|
6007
|
-
* @param {object} response The response.
|
|
6008
|
-
*/
|
|
6009
|
-
module.exports = function settle(resolve, reject, response) {
|
|
6010
|
-
var validateStatus = response.config.validateStatus;
|
|
6011
|
-
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
6012
|
-
resolve(response);
|
|
6013
|
-
} else {
|
|
6014
|
-
reject(createError(
|
|
6015
|
-
'Request failed with status code ' + response.status,
|
|
6016
|
-
response.config,
|
|
6017
|
-
null,
|
|
6018
|
-
response.request,
|
|
6019
|
-
response
|
|
6020
|
-
));
|
|
5760
|
+
if (error.response && error.response.status == 401) {
|
|
5761
|
+
// gotoLogin()
|
|
5762
|
+
return Promise.reject('login');
|
|
6021
5763
|
}
|
|
6022
|
-
};
|
|
6023
5764
|
|
|
5765
|
+
console.log('err' + error); // for debug
|
|
6024
5766
|
|
|
6025
|
-
|
|
5767
|
+
return Promise.reject(error);
|
|
5768
|
+
});
|
|
5769
|
+
/* harmony default export */ var request = (service);
|
|
5770
|
+
// CONCATENATED MODULE: ./packages/bxs-utils/trade/insureCalculate.js
|
|
6026
5771
|
|
|
6027
|
-
/***/ 61:
|
|
6028
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6029
5772
|
|
|
6030
|
-
"use strict";
|
|
6031
5773
|
|
|
6032
5774
|
|
|
6033
5775
|
/**
|
|
6034
|
-
*
|
|
6035
|
-
*
|
|
6036
|
-
* @
|
|
6037
|
-
* @
|
|
6038
|
-
* @param {
|
|
6039
|
-
* @
|
|
6040
|
-
* @param {Object} [response] The response.
|
|
6041
|
-
* @returns {Error} The error.
|
|
5776
|
+
* @Author: watson
|
|
5777
|
+
* @Date: 2020-12-23
|
|
5778
|
+
* @LastEditors: watson
|
|
5779
|
+
* @description: 保费试算
|
|
5780
|
+
* @param {*} params: 必传
|
|
5781
|
+
* @return {*} 试算结果
|
|
6042
5782
|
*/
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
5783
|
+
|
|
5784
|
+
|
|
5785
|
+
var baseURL = function () {
|
|
5786
|
+
var env = null;
|
|
5787
|
+
|
|
5788
|
+
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
5789
|
+
env = 'https://insurance2a-api.wyins.net';
|
|
5790
|
+
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
5791
|
+
env = '//insurance2a-api.wyins.net.cn';
|
|
5792
|
+
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost|0\.0\.0\.0/) !== -1) {
|
|
5793
|
+
env = '//insurance2a-api.wyins.net.cn';
|
|
6047
5794
|
}
|
|
6048
5795
|
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
5796
|
+
return env;
|
|
5797
|
+
}();
|
|
5798
|
+
/**
|
|
5799
|
+
* **获取地址信息**
|
|
5800
|
+
* @ignore
|
|
5801
|
+
* @author watson
|
|
5802
|
+
* @date 2022-04-26
|
|
5803
|
+
* @param {string} fetchUrl api url
|
|
5804
|
+
* @param {object} data 接口传参
|
|
5805
|
+
* @returns {object} addressData
|
|
5806
|
+
*/
|
|
6052
5807
|
|
|
6053
|
-
error.toJSON = function toJSON() {
|
|
6054
|
-
return {
|
|
6055
|
-
// Standard
|
|
6056
|
-
message: this.message,
|
|
6057
|
-
name: this.name,
|
|
6058
|
-
// Microsoft
|
|
6059
|
-
description: this.description,
|
|
6060
|
-
number: this.number,
|
|
6061
|
-
// Mozilla
|
|
6062
|
-
fileName: this.fileName,
|
|
6063
|
-
lineNumber: this.lineNumber,
|
|
6064
|
-
columnNumber: this.columnNumber,
|
|
6065
|
-
stack: this.stack,
|
|
6066
|
-
// Axios
|
|
6067
|
-
config: this.config,
|
|
6068
|
-
code: this.code
|
|
6069
|
-
};
|
|
6070
|
-
};
|
|
6071
|
-
return error;
|
|
6072
|
-
};
|
|
6073
5808
|
|
|
5809
|
+
function getAddress(fetchUrl, data) {
|
|
5810
|
+
return new Promise(function (resolve, reject) {
|
|
5811
|
+
request({
|
|
5812
|
+
baseURL: fetchUrl,
|
|
5813
|
+
url: undefined,
|
|
5814
|
+
method: 'POST',
|
|
5815
|
+
urlParams: undefined,
|
|
5816
|
+
data: data
|
|
5817
|
+
}).then(function (res) {
|
|
5818
|
+
resolve(res);
|
|
5819
|
+
}).catch(function (err) {
|
|
5820
|
+
reject(err);
|
|
5821
|
+
});
|
|
5822
|
+
});
|
|
5823
|
+
}
|
|
5824
|
+
/**
|
|
5825
|
+
* **获取用户信息**
|
|
5826
|
+
* @ignore
|
|
5827
|
+
* @author watson
|
|
5828
|
+
* @date 2022-04-26
|
|
5829
|
+
* @param {string} fetchUrl api url
|
|
5830
|
+
* @returns {promise}
|
|
5831
|
+
*/
|
|
5832
|
+
|
|
5833
|
+
function getUuid(fetchUrl) {
|
|
5834
|
+
return new Promise(function (resolve, reject) {
|
|
5835
|
+
request({
|
|
5836
|
+
baseURL: fetchUrl,
|
|
5837
|
+
url: undefined,
|
|
5838
|
+
method: 'GET',
|
|
5839
|
+
urlParams: undefined,
|
|
5840
|
+
data: null
|
|
5841
|
+
}).then(function (res) {
|
|
5842
|
+
resolve(res);
|
|
5843
|
+
}).catch(function (err) {
|
|
5844
|
+
reject(err);
|
|
5845
|
+
});
|
|
5846
|
+
});
|
|
5847
|
+
}
|
|
5848
|
+
/**
|
|
5849
|
+
* **计划书初始化参数**
|
|
5850
|
+
* @ignore
|
|
5851
|
+
* @author watson
|
|
5852
|
+
* @date 2022-04-26
|
|
5853
|
+
* @param {any} planParams 计划书初始化参数
|
|
5854
|
+
* @param {any} planParams.detail_age 被保人生日
|
|
5855
|
+
* @param {any} planParams.detail_sex 被保人性别
|
|
5856
|
+
* @param {any} planParams.detail_relation 投被保人关系
|
|
5857
|
+
* @param {any} planParams.detail_applicant_age 投保人生日
|
|
5858
|
+
* @param {any} planParams.detail_applicant_sex 投保人性别
|
|
5859
|
+
* @returns {boolean} 是否有计划书参数
|
|
5860
|
+
*/
|
|
5861
|
+
|
|
5862
|
+
function hasPlanParams(planParams) {
|
|
5863
|
+
var type = false;
|
|
5864
|
+
|
|
5865
|
+
if (planParams && (planParams.detail_age || planParams.detail_sex || planParams.detail_relation || planParams.detail_applicant_age || planParams.detail_applicant_sex)) {
|
|
5866
|
+
type = true;
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
return type;
|
|
5870
|
+
}
|
|
5871
|
+
/**
|
|
5872
|
+
* **转换计划书数据**
|
|
5873
|
+
* @ignore
|
|
5874
|
+
* @author watson
|
|
5875
|
+
* @date 2022-04-26
|
|
5876
|
+
* @param {array} widgets 页面渲染数据
|
|
5877
|
+
* @param {object} currentData 试算参数
|
|
5878
|
+
* @param {object} planParams 计划书初始化参数
|
|
5879
|
+
* @returns {void}
|
|
5880
|
+
*/
|
|
5881
|
+
|
|
5882
|
+
function translatePlanData(widgets, currentData, planParams) {
|
|
5883
|
+
widgets.forEach(function (item) {
|
|
5884
|
+
var current; // 增加current字段,保存current_data的数据
|
|
6074
5885
|
|
|
6075
|
-
|
|
5886
|
+
if (item.duty) {
|
|
5887
|
+
current = currentData.find(function (it) {
|
|
5888
|
+
return it.k === item.key && it.risk === item.riskCode && item.duty === it.d;
|
|
5889
|
+
});
|
|
5890
|
+
} else {
|
|
5891
|
+
current = currentData.find(function (it) {
|
|
5892
|
+
return it.k === item.key && it.risk === item.riskCode;
|
|
5893
|
+
});
|
|
5894
|
+
}
|
|
6076
5895
|
|
|
6077
|
-
|
|
6078
|
-
|
|
5896
|
+
if (planParams) {
|
|
5897
|
+
// 被保人生日 / 年龄
|
|
5898
|
+
if (planParams.detail_age && item.key === 'detail_age') {
|
|
5899
|
+
if (/-/.test(planParams.detail_age)) {
|
|
5900
|
+
// 被保人生日
|
|
5901
|
+
item.type = 'v-text';
|
|
5902
|
+
item.name = planParams.detail_age;
|
|
5903
|
+
current.v = planParams.detail_age;
|
|
5904
|
+
} else if (/岁/.test(planParams.detail_age)) {
|
|
5905
|
+
// 被保人年龄
|
|
5906
|
+
item.type = 'v-text';
|
|
5907
|
+
item.name = planParams.detail_age;
|
|
5908
|
+
item.label = item.label + '(年龄)';
|
|
5909
|
+
current.v = planParams.detail_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
5910
|
+
}
|
|
5911
|
+
} // 被保人性别
|
|
6079
5912
|
|
|
6080
|
-
"use strict";
|
|
6081
5913
|
|
|
5914
|
+
if (planParams.detail_sex && item.key === 'detail_sex') {
|
|
5915
|
+
item.type = 'v-text';
|
|
5916
|
+
item.name = planParams.detail_sex === '1' ? '男' : '女';
|
|
5917
|
+
current.v = planParams.detail_sex;
|
|
5918
|
+
} // 投被保人关系
|
|
5919
|
+
// 初始化
|
|
5920
|
+
// if (
|
|
5921
|
+
// item.key === 'detail_relation' &&
|
|
5922
|
+
// planParams.detail_sex &&
|
|
5923
|
+
// planParams.detail_applicant_sex &&
|
|
5924
|
+
// String(planParams.detail_sex) ===
|
|
5925
|
+
// String(planParams.detail_applicant_sex)
|
|
5926
|
+
// ) {
|
|
5927
|
+
// let otemp = [];
|
|
5928
|
+
// item.opts[item.key].forEach(i => {
|
|
5929
|
+
// if (
|
|
5930
|
+
// String(planParams.detail_sex) === '1' &&
|
|
5931
|
+
// String(planParams.detail_applicant_sex) === '1'
|
|
5932
|
+
// ) {
|
|
5933
|
+
// // 投被保人 - 男 1
|
|
5934
|
+
// if (['1', '14', '16', '18'].includes(String(i.value))) {
|
|
5935
|
+
// otemp.push(i);
|
|
5936
|
+
// }
|
|
5937
|
+
// } else if (
|
|
5938
|
+
// String(planParams.detail_sex) === '2' &&
|
|
5939
|
+
// String(planParams.detail_applicant_sex) === '2'
|
|
5940
|
+
// ) {
|
|
5941
|
+
// // 投被保人 - 女 2
|
|
5942
|
+
// if (['1', '15', '17', '19'].includes(String(i.value))) {
|
|
5943
|
+
// otemp.push(i);
|
|
5944
|
+
// }
|
|
5945
|
+
// }
|
|
5946
|
+
// });
|
|
5947
|
+
// item.opts[item.key] = otemp;
|
|
5948
|
+
// console.log('otemp', otemp);
|
|
5949
|
+
// }
|
|
6082
5950
|
|
|
6083
|
-
var utils = __webpack_require__(5);
|
|
6084
5951
|
|
|
6085
|
-
|
|
6086
|
-
|
|
5952
|
+
if (planParams.detail_relation && item.key === 'detail_relation') {
|
|
5953
|
+
// 条件检索
|
|
5954
|
+
if (planParams.detail_relation === '-1' || planParams.detail_relation === -1) {
|
|
5955
|
+
// 非本人
|
|
5956
|
+
var temp = [];
|
|
5957
|
+
item.opts[item.key].forEach(function (i) {
|
|
5958
|
+
if (String(i.value) != '1') {
|
|
5959
|
+
temp.push(i);
|
|
5960
|
+
}
|
|
5961
|
+
});
|
|
5962
|
+
item.name = temp[0] && temp[0].name ? temp[0].name : '';
|
|
5963
|
+
item.opts[item.key] = temp;
|
|
5964
|
+
} else if (planParams.detail_relation) {
|
|
5965
|
+
// 指定人 - 本人 其他人
|
|
5966
|
+
item.type = 'v-text';
|
|
5967
|
+
current.v = planParams.detail_relation;
|
|
5968
|
+
var _temp = [];
|
|
5969
|
+
item.opts[item.key].forEach(function (i) {
|
|
5970
|
+
if (String(i.value) === String(planParams.detail_relation)) {
|
|
5971
|
+
_temp.push(i);
|
|
6087
5972
|
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
5973
|
+
item.name = i.name;
|
|
5974
|
+
}
|
|
5975
|
+
});
|
|
5976
|
+
item.opts[item.key] = _temp;
|
|
5977
|
+
}
|
|
5978
|
+
} // 投保人出生日期
|
|
6094
5979
|
|
|
6095
|
-
if (utils.isNumber(expires)) {
|
|
6096
|
-
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
6097
|
-
}
|
|
6098
5980
|
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
5981
|
+
if (planParams.detail_applicant_age && item.key === 'detail_applicant_age') {
|
|
5982
|
+
if (/-/.test(planParams.detail_applicant_age)) {
|
|
5983
|
+
// 被保人生日
|
|
5984
|
+
item.type = 'v-text';
|
|
5985
|
+
item.name = planParams.detail_applicant_age;
|
|
5986
|
+
current.v = planParams.detail_applicant_age;
|
|
5987
|
+
} else if (/岁/.test(planParams.detail_applicant_age)) {
|
|
5988
|
+
// 被保人年龄
|
|
5989
|
+
item.type = 'v-text';
|
|
5990
|
+
item.name = planParams.detail_applicant_age;
|
|
5991
|
+
item.label = item.label + '(年龄)';
|
|
5992
|
+
current.v = planParams.detail_applicant_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
5993
|
+
}
|
|
5994
|
+
} // 投保人性别
|
|
6102
5995
|
|
|
6103
|
-
if (utils.isString(domain)) {
|
|
6104
|
-
cookie.push('domain=' + domain);
|
|
6105
|
-
}
|
|
6106
5996
|
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
5997
|
+
if (planParams.detail_applicant_sex && item.key === 'detail_applicant_sex') {
|
|
5998
|
+
item.type = 'v-text';
|
|
5999
|
+
item.name = planParams.detail_applicant_sex === '1' ? '男' : '女';
|
|
6000
|
+
current.v = planParams.detail_applicant_sex;
|
|
6001
|
+
}
|
|
6002
|
+
}
|
|
6003
|
+
});
|
|
6004
|
+
}
|
|
6005
|
+
/**
|
|
6006
|
+
* **试算参数转化**
|
|
6007
|
+
* @ignore
|
|
6008
|
+
* @author watson
|
|
6009
|
+
* @date 2022-04-26
|
|
6010
|
+
* @param {object} currentData
|
|
6011
|
+
* @param {object} planParams
|
|
6012
|
+
* @returns {object}
|
|
6013
|
+
*/
|
|
6110
6014
|
|
|
6111
|
-
document.cookie = cookie.join('; ');
|
|
6112
|
-
},
|
|
6113
6015
|
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6016
|
+
function tranlateCurrentData(currentData, planParams) {
|
|
6017
|
+
var currentDataCopy = JSON.parse(JSON.stringify(currentData));
|
|
6018
|
+
currentDataCopy.forEach(function (item) {
|
|
6019
|
+
var current = item;
|
|
6118
6020
|
|
|
6119
|
-
|
|
6120
|
-
|
|
6021
|
+
if (planParams) {
|
|
6022
|
+
if (planParams.detail_age && item.k === 'detail_age') {
|
|
6023
|
+
if (/-/.test(planParams.detail_age)) {
|
|
6024
|
+
// 被保人生日
|
|
6025
|
+
current.v = planParams.detail_age;
|
|
6026
|
+
} else if (/岁/.test(planParams.detail_age)) {
|
|
6027
|
+
// 被保人年龄
|
|
6028
|
+
current.v = planParams.detail_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
6121
6029
|
}
|
|
6122
|
-
}
|
|
6123
|
-
})() :
|
|
6030
|
+
} // 被保人性别
|
|
6124
6031
|
|
|
6125
|
-
// Non standard browser env (web workers, react-native) lack needed support.
|
|
6126
|
-
(function nonStandardBrowserEnv() {
|
|
6127
|
-
return {
|
|
6128
|
-
write: function write() {},
|
|
6129
|
-
read: function read() { return null; },
|
|
6130
|
-
remove: function remove() {}
|
|
6131
|
-
};
|
|
6132
|
-
})()
|
|
6133
|
-
);
|
|
6134
6032
|
|
|
6033
|
+
if (planParams.detail_sex && item.k === 'detail_sex') {
|
|
6034
|
+
current.v = planParams.detail_sex;
|
|
6035
|
+
} // 投被保人关系
|
|
6135
6036
|
|
|
6136
|
-
/***/ }),
|
|
6137
6037
|
|
|
6138
|
-
|
|
6139
|
-
|
|
6038
|
+
if (planParams.detail_relation && item.k === 'detail_relation') {
|
|
6039
|
+
if (planParams.detail_relation != -1 || planParams.detail_relation != '-1') {
|
|
6040
|
+
current.v = planParams.detail_relation;
|
|
6041
|
+
}
|
|
6042
|
+
} // 投保人出生日期
|
|
6140
6043
|
|
|
6141
|
-
"use strict";
|
|
6142
6044
|
|
|
6045
|
+
if (planParams.detail_applicant_age && item.k === 'detail_applicant_age') {
|
|
6046
|
+
if (/-/.test(planParams.detail_applicant_age)) {
|
|
6047
|
+
// 被保人生日
|
|
6048
|
+
current.v = planParams.detail_applicant_age;
|
|
6049
|
+
} else if (/岁/.test(planParams.detail_applicant_age)) {
|
|
6050
|
+
// 被保人年龄
|
|
6051
|
+
current.v = planParams.detail_applicant_age.replace('周', '').replace('岁', '').replace('Y', '') + 'Y';
|
|
6052
|
+
}
|
|
6053
|
+
} // 投保人性别
|
|
6143
6054
|
|
|
6144
|
-
var isAbsoluteURL = __webpack_require__(64);
|
|
6145
|
-
var combineURLs = __webpack_require__(65);
|
|
6146
6055
|
|
|
6056
|
+
if (planParams.detail_applicant_sex && item.k === 'detail_applicant_sex') {
|
|
6057
|
+
current.v = planParams.detail_applicant_sex;
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
});
|
|
6061
|
+
return currentDataCopy;
|
|
6062
|
+
}
|
|
6147
6063
|
/**
|
|
6148
|
-
*
|
|
6149
|
-
*
|
|
6150
|
-
*
|
|
6151
|
-
*
|
|
6152
|
-
* @param {
|
|
6153
|
-
* @param {
|
|
6154
|
-
* @returns {
|
|
6064
|
+
* 险种计算
|
|
6065
|
+
* @author watson
|
|
6066
|
+
* @date 2022-04-26
|
|
6067
|
+
* @param {object} urlParams 接口URL上面的参数,c端必传uuid
|
|
6068
|
+
* @param {object} postParams 试算用的参数,product_id, current_data 和 scenario: 'h5Widget'
|
|
6069
|
+
* @param {object} planParams 计划书初始化参数
|
|
6070
|
+
* @returns {promise} 试算结果
|
|
6155
6071
|
*/
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6072
|
+
|
|
6073
|
+
|
|
6074
|
+
function insureCalculate(urlParams, postParams, planParams) {
|
|
6075
|
+
if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
|
|
6076
|
+
return postParams;
|
|
6159
6077
|
}
|
|
6160
|
-
return requestedURL;
|
|
6161
|
-
};
|
|
6162
6078
|
|
|
6079
|
+
if (postParams && !postParams.scenario) {
|
|
6080
|
+
postParams.scenario = 'h5Widget';
|
|
6081
|
+
}
|
|
6163
6082
|
|
|
6164
|
-
|
|
6083
|
+
var url = '/api/product/data/calculate';
|
|
6084
|
+
|
|
6085
|
+
if (urlParams && urlParams.uuid) {
|
|
6086
|
+
url += "?userUuid=".concat(urlParams.uuid);
|
|
6087
|
+
} else if (urlParams && urlParams.openId) {
|
|
6088
|
+
url += "?userUuid=".concat(urlParams.openId);
|
|
6089
|
+
}
|
|
6090
|
+
|
|
6091
|
+
if (urlParams && urlParams.appid) {
|
|
6092
|
+
if (url.indexOf('?') > -1) {
|
|
6093
|
+
url += "&appId=".concat(urlParams.appid);
|
|
6094
|
+
} else {
|
|
6095
|
+
url += "?appId=".concat(urlParams.appid);
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6098
|
+
|
|
6099
|
+
if (hasPlanParams(planParams) && postParams.current_data) {
|
|
6100
|
+
postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
|
|
6101
|
+
}
|
|
6165
6102
|
|
|
6166
|
-
|
|
6167
|
-
|
|
6103
|
+
return new Promise(function (resolve, reject) {
|
|
6104
|
+
request({
|
|
6105
|
+
baseURL: baseURL,
|
|
6106
|
+
url: url,
|
|
6107
|
+
method: 'POST',
|
|
6108
|
+
urlParams: urlParams,
|
|
6109
|
+
data: postParams
|
|
6110
|
+
}).then(function (res) {
|
|
6111
|
+
if (res.code === 200) {
|
|
6112
|
+
var data = JSON.parse(JSON.stringify(res.data));
|
|
6168
6113
|
|
|
6169
|
-
|
|
6114
|
+
if (hasPlanParams(planParams)) {
|
|
6115
|
+
var widgets = data.widgets;
|
|
6116
|
+
var currentData = data.current_data;
|
|
6117
|
+
translatePlanData(widgets, currentData, planParams);
|
|
6118
|
+
}
|
|
6170
6119
|
|
|
6120
|
+
var cData = {
|
|
6121
|
+
widgets: data.widgets,
|
|
6122
|
+
total_premium: data.total_premium,
|
|
6123
|
+
terms: data.terms,
|
|
6124
|
+
product_id: data.product_id,
|
|
6125
|
+
current_data: data.current_data,
|
|
6126
|
+
risk_premiums: data.risk_premiums
|
|
6127
|
+
};
|
|
6128
|
+
resolve({
|
|
6129
|
+
code: 200,
|
|
6130
|
+
data: cData
|
|
6131
|
+
});
|
|
6132
|
+
} else {
|
|
6133
|
+
reject(res);
|
|
6134
|
+
}
|
|
6135
|
+
}).catch(function (err) {
|
|
6136
|
+
reject(err);
|
|
6137
|
+
});
|
|
6138
|
+
});
|
|
6139
|
+
}
|
|
6140
|
+
/**
|
|
6141
|
+
* **检查险种计算**
|
|
6142
|
+
* @author watson
|
|
6143
|
+
* @date 2022-04-26
|
|
6144
|
+
* @param {object} urlParams 接口URL上面的参数,c端必传uuid
|
|
6145
|
+
* @param {object} postParams 试算用的参数,product_id, current_data 和 scenario: 'h5Widget'
|
|
6146
|
+
* @param {object} planParams 计划书初始化参数
|
|
6147
|
+
* @returns {promise} 试算结果
|
|
6148
|
+
*/
|
|
6171
6149
|
|
|
6150
|
+
function checkInsureCalculate(_x, _x2, _x3) {
|
|
6151
|
+
return _checkInsureCalculate.apply(this, arguments);
|
|
6152
|
+
}
|
|
6172
6153
|
/**
|
|
6173
|
-
*
|
|
6174
|
-
*
|
|
6175
|
-
* @
|
|
6176
|
-
* @
|
|
6154
|
+
* 描述
|
|
6155
|
+
* @ignore
|
|
6156
|
+
* @author watson
|
|
6157
|
+
* @date 2022-04-26
|
|
6158
|
+
* @param {object} urlParams
|
|
6159
|
+
* @param {object} postParams
|
|
6160
|
+
* @param {object} planParams
|
|
6161
|
+
* @returns {promise}
|
|
6177
6162
|
*/
|
|
6178
|
-
module.exports = function isAbsoluteURL(url) {
|
|
6179
|
-
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
6180
|
-
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
6181
|
-
// by any combination of letters, digits, plus, period, or hyphen.
|
|
6182
|
-
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
6183
|
-
};
|
|
6184
6163
|
|
|
6164
|
+
function _checkInsureCalculate() {
|
|
6165
|
+
_checkInsureCalculate = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(urlParams, postParams, planParams) {
|
|
6166
|
+
var res, data;
|
|
6167
|
+
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
6168
|
+
while (1) {
|
|
6169
|
+
switch (_context.prev = _context.next) {
|
|
6170
|
+
case 0:
|
|
6171
|
+
_context.next = 2;
|
|
6172
|
+
return checkInsureCalculateIn(urlParams, postParams, planParams);
|
|
6185
6173
|
|
|
6186
|
-
|
|
6174
|
+
case 2:
|
|
6175
|
+
res = _context.sent;
|
|
6187
6176
|
|
|
6188
|
-
|
|
6189
|
-
|
|
6177
|
+
if (!(postParams && !postParams.current_data)) {
|
|
6178
|
+
_context.next = 15;
|
|
6179
|
+
break;
|
|
6180
|
+
}
|
|
6190
6181
|
|
|
6191
|
-
|
|
6182
|
+
data = JSON.parse(JSON.stringify(res.data));
|
|
6183
|
+
postParams.current_data = data.current_data; // 重新试算
|
|
6192
6184
|
|
|
6185
|
+
_context.prev = 6;
|
|
6186
|
+
_context.next = 9;
|
|
6187
|
+
return checkInsureCalculateIn(urlParams, postParams, planParams);
|
|
6193
6188
|
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
6204
|
-
: baseURL;
|
|
6205
|
-
};
|
|
6189
|
+
case 9:
|
|
6190
|
+
res = _context.sent;
|
|
6191
|
+
_context.next = 15;
|
|
6192
|
+
break;
|
|
6193
|
+
|
|
6194
|
+
case 12:
|
|
6195
|
+
_context.prev = 12;
|
|
6196
|
+
_context.t0 = _context["catch"](6);
|
|
6197
|
+
res = _context.t0;
|
|
6206
6198
|
|
|
6199
|
+
case 15:
|
|
6200
|
+
if (!(res && res.code === 200)) {
|
|
6201
|
+
_context.next = 19;
|
|
6202
|
+
break;
|
|
6203
|
+
}
|
|
6207
6204
|
|
|
6208
|
-
|
|
6205
|
+
return _context.abrupt("return", res);
|
|
6209
6206
|
|
|
6210
|
-
|
|
6211
|
-
|
|
6207
|
+
case 19:
|
|
6208
|
+
return _context.abrupt("return", Promise.reject(res));
|
|
6212
6209
|
|
|
6213
|
-
|
|
6210
|
+
case 20:
|
|
6211
|
+
case "end":
|
|
6212
|
+
return _context.stop();
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
}, _callee, null, [[6, 12]]);
|
|
6216
|
+
}));
|
|
6217
|
+
return _checkInsureCalculate.apply(this, arguments);
|
|
6218
|
+
}
|
|
6214
6219
|
|
|
6220
|
+
function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
6221
|
+
if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
|
|
6222
|
+
return Promise.reject({
|
|
6223
|
+
code: 400,
|
|
6224
|
+
msg: 'postParams参数非法'
|
|
6225
|
+
});
|
|
6226
|
+
}
|
|
6215
6227
|
|
|
6216
|
-
|
|
6228
|
+
if (postParams && !postParams.scenario) {
|
|
6229
|
+
postParams.scenario = 'h5Widget';
|
|
6230
|
+
}
|
|
6217
6231
|
|
|
6218
|
-
|
|
6219
|
-
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
6220
|
-
var ignoreDuplicateOf = [
|
|
6221
|
-
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
|
6222
|
-
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
|
6223
|
-
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
|
6224
|
-
'referer', 'retry-after', 'user-agent'
|
|
6225
|
-
];
|
|
6232
|
+
var url = '/api/product/data/calculate';
|
|
6226
6233
|
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
* Content-Type: application/json
|
|
6233
|
-
* Connection: keep-alive
|
|
6234
|
-
* Transfer-Encoding: chunked
|
|
6235
|
-
* ```
|
|
6236
|
-
*
|
|
6237
|
-
* @param {String} headers Headers needing to be parsed
|
|
6238
|
-
* @returns {Object} Headers parsed into an object
|
|
6239
|
-
*/
|
|
6240
|
-
module.exports = function parseHeaders(headers) {
|
|
6241
|
-
var parsed = {};
|
|
6242
|
-
var key;
|
|
6243
|
-
var val;
|
|
6244
|
-
var i;
|
|
6234
|
+
if (urlParams && urlParams.uuid) {
|
|
6235
|
+
url += "?userUuid=".concat(urlParams.uuid);
|
|
6236
|
+
} else if (urlParams && urlParams.openId) {
|
|
6237
|
+
url += "?userUuid=".concat(urlParams.openId);
|
|
6238
|
+
}
|
|
6245
6239
|
|
|
6246
|
-
if (
|
|
6240
|
+
if (urlParams && urlParams.appid) {
|
|
6241
|
+
if (url.indexOf('?') > -1) {
|
|
6242
|
+
url += "&appId=".concat(urlParams.appid);
|
|
6243
|
+
} else {
|
|
6244
|
+
url += "?appId=".concat(urlParams.appid);
|
|
6245
|
+
}
|
|
6246
|
+
}
|
|
6247
6247
|
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
val = utils.trim(line.substr(i + 1));
|
|
6248
|
+
if (hasPlanParams(planParams) && postParams.current_data) {
|
|
6249
|
+
postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
|
|
6250
|
+
}
|
|
6252
6251
|
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6252
|
+
return new Promise(function (resolve, reject) {
|
|
6253
|
+
request({
|
|
6254
|
+
baseURL: baseURL,
|
|
6255
|
+
url: url,
|
|
6256
|
+
method: 'POST',
|
|
6257
|
+
urlParams: urlParams,
|
|
6258
|
+
data: postParams
|
|
6259
|
+
}).then(function (res) {
|
|
6260
|
+
if (res.code === 200) {
|
|
6261
|
+
// if (postParams && !postParams.current_data) {
|
|
6262
|
+
// let data = JSON.parse(JSON.stringify(res.data));
|
|
6263
|
+
// postParams.current_data = data.current_data
|
|
6264
|
+
// // 重新试算
|
|
6265
|
+
// checkInsureCalculate(urlParams, postParams, planParams)
|
|
6266
|
+
// }
|
|
6267
|
+
resolve({
|
|
6268
|
+
code: 200,
|
|
6269
|
+
data: res.data
|
|
6270
|
+
});
|
|
6259
6271
|
} else {
|
|
6260
|
-
|
|
6272
|
+
reject(res);
|
|
6261
6273
|
}
|
|
6262
|
-
}
|
|
6274
|
+
}).catch(function (err) {
|
|
6275
|
+
reject(err);
|
|
6276
|
+
});
|
|
6263
6277
|
});
|
|
6278
|
+
}
|
|
6279
|
+
// CONCATENATED MODULE: ./packages/bxs-utils/trade/index.js
|
|
6280
|
+
|
|
6281
|
+
// CONCATENATED MODULE: ./packages/bxs-utils/index.ts
|
|
6282
|
+
|
|
6264
6283
|
|
|
6265
|
-
return parsed;
|
|
6266
|
-
};
|
|
6267
6284
|
|
|
6268
6285
|
|
|
6269
6286
|
/***/ }),
|
|
6270
6287
|
|
|
6271
|
-
/***/
|
|
6288
|
+
/***/ 70:
|
|
6272
6289
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6273
6290
|
|
|
6274
6291
|
"use strict";
|
|
@@ -6344,13 +6361,13 @@ module.exports = (
|
|
|
6344
6361
|
|
|
6345
6362
|
/***/ }),
|
|
6346
6363
|
|
|
6347
|
-
/***/
|
|
6364
|
+
/***/ 71:
|
|
6348
6365
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6349
6366
|
|
|
6350
6367
|
"use strict";
|
|
6351
6368
|
|
|
6352
6369
|
|
|
6353
|
-
var Cancel = __webpack_require__(
|
|
6370
|
+
var Cancel = __webpack_require__(29);
|
|
6354
6371
|
|
|
6355
6372
|
/**
|
|
6356
6373
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
@@ -6409,7 +6426,7 @@ module.exports = CancelToken;
|
|
|
6409
6426
|
|
|
6410
6427
|
/***/ }),
|
|
6411
6428
|
|
|
6412
|
-
/***/
|
|
6429
|
+
/***/ 72:
|
|
6413
6430
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6414
6431
|
|
|
6415
6432
|
"use strict";
|
|
@@ -6444,7 +6461,7 @@ module.exports = function spread(callback) {
|
|
|
6444
6461
|
|
|
6445
6462
|
/***/ }),
|
|
6446
6463
|
|
|
6447
|
-
/***/
|
|
6464
|
+
/***/ 8:
|
|
6448
6465
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6449
6466
|
|
|
6450
6467
|
"use strict";
|
|
@@ -6549,7 +6566,7 @@ function normalizeComponent(
|
|
|
6549
6566
|
|
|
6550
6567
|
/***/ }),
|
|
6551
6568
|
|
|
6552
|
-
/***/
|
|
6569
|
+
/***/ 9:
|
|
6553
6570
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6554
6571
|
|
|
6555
6572
|
"use strict";
|
|
@@ -6863,28 +6880,11 @@ function convertPersonData(allPersonsData, type) {
|
|
|
6863
6880
|
|
|
6864
6881
|
/***/ }),
|
|
6865
6882
|
|
|
6866
|
-
/***/
|
|
6883
|
+
/***/ 94:
|
|
6867
6884
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6868
6885
|
|
|
6869
6886
|
// extracted by mini-css-extract-plugin
|
|
6870
6887
|
|
|
6871
|
-
/***/ }),
|
|
6872
|
-
|
|
6873
|
-
/***/ 9:
|
|
6874
|
-
/***/ (function(module, exports) {
|
|
6875
|
-
|
|
6876
|
-
function _typeof(obj) {
|
|
6877
|
-
"@babel/helpers - typeof";
|
|
6878
|
-
|
|
6879
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
6880
|
-
return typeof obj;
|
|
6881
|
-
} : function (obj) {
|
|
6882
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
6883
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
6884
|
-
}
|
|
6885
|
-
|
|
6886
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6887
|
-
|
|
6888
6888
|
/***/ })
|
|
6889
6889
|
|
|
6890
6890
|
/******/ });
|