webpackJsonp([34],{qF0w:function(t,e,r){"use strict";function n(){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,n){var a=e&&e.prototype instanceof o?e:o,i=Object.create(a.prototype),u=new p(n||[]);return w(i,"_invoke",{value:l(t,r,u)}),i}function r(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function a(){}function i(){}function u(e){["next","throw","return"].forEach(function(r){t(e,r,function(t){return this._invoke(r,t)})})}function c(t,e){function n(o,a,i,u){var c=r(t[o],t,a);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==typeof s&&m.call(s,"__await")?e.resolve(s.__await).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return n("throw",t,i,u)})}u(c.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=_;return function(a,i){if(o===S)throw new Error("Generator is already running");if(o===j){if("throw"===a)throw i;return{value:v,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=s(u,n);if(c){if(c===k)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===_)throw o=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=S;var l=r(t,e,n);if("normal"===l.type){if(o=n.done?j:O,l.arg===k)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===v)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=v,s(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),k;var a=r(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,k;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=v),e.delegate=null,k):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,k)}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 y(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"),u=m.call(o,"finallyLoc");if(i&&u){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),k}},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:y(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=v),k}},d}var o=r("ouCL");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(r("+TWC")),i=r("7xWd"),u=r("H/Zg");e.default={namespace:"login",state:{status:void 0,loginAccount:""},effects:{accountSubmit:function(t,e){var r=t.payload,o=e.put;return n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:"changeSubmitting",payload:(0,a.default)({},r,{value:!0})});case 2:return t.next=4,o({type:"changeSubmitting",payload:(0,a.default)({},r,{value:!1})});case 4:case"end":return t.stop()}},t)})()},mobileSubmit:function(t,e){var r=t.payload,o=e.call,i=e.put;return n().mark(function t(){var e;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({type:"changeSubmitting",payload:(0,a.default)({},r,{value:!0})});case 2:return t.next=4,o(u.fakeMobileLogin);case 4:return e=t.sent,t.next=7,i({type:"changeLoginStatus",payload:e});case 7:return t.next=9,i({type:"changeSubmitting",payload:(0,a.default)({},r,{value:!1})});case 9:case"end":return t.stop()}},t)})()},logout:function(t,e){var r=e.put;return n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r({type:"changeLoginStatus",payload:{status:!1}});case 2:return t.next=4,r(i.routerRedux.push("/user/logOn"));case 4:case"end":return t.stop()}},t)})()}},reducers:{changeLoginStatus:function(t,e){var r=e.payload;return(0,a.default)({},t,{status:r.status,type:r.type})},changeSubmitting:function(t,e){var r=e.payload;return(0,a.default)({},t,{submitting:r.value,loginAccount:r.username})}}}}});