webpackJsonp([35],{"Bg/D":function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}function o(){function t(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}function e(t,e,r,o){var a=e&&e.prototype instanceof n?e:n,i=Object.create(a.prototype),c=new p(o||[]);return w(i,"_invoke",{value:l(t,r,c)}),i}function r(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function n(){}function a(){}function i(){}function c(e){["next","throw","return"].forEach(function(r){t(e,r,function(t){return this._invoke(r,t)})})}function u(t,e){function n(o,a,i,c){var u=r(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&m.call(s,"__await")?e.resolve(s.__await).then(function(t){n("next",t,i,c)},function(t){n("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return n("throw",t,i,c)})}c(u.arg)}var o;w(this,"_invoke",{value:function(t,r){function a(){return new e(function(e,o){n(t,r,e,o)})}return o=o?o.then(a,a):a()}})}function l(t,e,n){var o=L;return function(a,i){if(o===O)throw new Error("Generator is already running");if(o===j){if("throw"===a)throw i;return{value:y,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=s(c,n);if(u){if(u===P)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===L)throw o=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=O;var l=r(t,e,n);if("normal"===l.type){if(o=n.done?j:_,l.arg===P)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=j,n.method="throw",n.arg=l.arg)}}}function s(t,e){var n=e.method,o=t.iterator[n];if(o===y)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=y,s(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),P;var a=r(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,P;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,P):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function d(t){if(t||""===t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var i=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(i&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),h(r),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;h(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),P}},v}function a(t){var e=i();return function(){var r,n=(0,y.default)(t);if(e){var o=(0,y.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function c(t){var e=document.createElement("div");e.setAttribute("class","insurance_modal"),document.body.appendChild(e),g.default.render(v.default.createElement(w,t),e)}var u=r("ouCL");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=u(r("+TWC"));r("sRCI");var s=u(r("vnWH")),f=u(r("Q9dM")),h=u(r("wm7F")),p=u(r("QwVp")),d=u(r("F6AD")),y=u(r("fghW")),v=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var c=a?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=t[i]}return o.default=t,r&&r.set(t,o),o}(r("GiK3")),g=u(r("O27J")),m=(u(r("KSGD")),r("H/Zg")),w=function(t){function e(t,n){var o;return(0,f.default)(this,e),o=r.call(this,t,n),o._toggle=function(t){o.setState({visible:!o.state.visible},function(){"confirm"==t?o.props.okCallBack&&o.props.okCallBack():o.props.cancelCallBack&&o.props.cancelCallBack();var e=document.getElementsByClassName("insurance_modal");Reflect.apply(Array.prototype.forEach,e,[function(t){g.default.unmountComponentAtNode(t),document.body.removeChild(t)}])})},o.state={visible:!0},o}(0,p.default)(e,t);var r=a(e);return(0,h.default)(e,[{key:"render",value:function(){var t=this;return v.default.createElement(s.default,{title:this.props.title,maskClosable:!1,keyboard:!1,destroyOnClose:!0,okText:"\u9a6c\u4e0a\u529e\u7406",cancelButtonProps:{style:{display:"none"}},visible:this.state.visible,onOk:function(){t._toggle("confirm")},onCancel:function(){t._toggle()}},v.default.createElement("p",{style:{color:"#ff4d4f",fontSize:14}},this.props.warningText),v.default.createElement("p",{style:{fontSize:16}},this.props.contentText.split("count")[0],this.props.contentText.split("count")[1]&&v.default.createElement("span",{style:{color:"#ff4d4f"}},this.props.count),this.props.contentText.split("count")[1]||""))}}]),e}(v.Component);e.default={namespace:"insurance",state:{isShowPlanBook:!1,isShowQuitModal:!0},effects:{showQuitModal:function(t,e){var r=t.payload,n=e.put,a=e.call,i=e.select;return o().mark(function t(){var e,u;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i(function(t){return t.insurance});case 2:if(e=t.sent,u=e.isShowQuitModal,console.log(r.count,"payload.count>>>>"),"add"==r.type){t.next=16;break}return t.next=8,a(m.findYIncumbencyPerCount);case 8:if(countRes=t.sent,r.count=r.num||countRes.data+""||0,0==r.count||!u){t.next=14;break}return t.next=13,n({type:"setQuitModal",payload:!1});case 13:c(r);case 14:t.next=17;break;case 16:c(r);case 17:case"end":return t.stop()}},t)})()}},reducers:{showPlanBook:function(t,e){return(0,l.default)({},t,{isShowPlanBook:e.payload})},setQuitModal:function(t,e){return(0,l.default)({},t,{isShowQuitModal:e.payload})}}}}});