webpackJsonp([244],{b32Z: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 o=e&&e.prototype instanceof a?e:a,i=Object.create(o.prototype),c=new p(n||[]);return w(i,"_invoke",{value:s(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 a(){}function o(){}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(a,o,i,c){var u=r(t[a],t,o);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&m.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,i,c)},function(t){n("throw",t,i,c)}):e.resolve(f).then(function(t){s.value=t,i(s)},function(t){return n("throw",t,i,c)})}c(u.arg)}var a;w(this,"_invoke",{value:function(t,r){function o(){return new e(function(e,a){n(t,r,e,a)})}return a=a?a.then(o,o):o()}})}function s(t,e,n){var a="suspendedStart";return function(o,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===o)throw i;return y()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=f(c,n);if(u){if(u===E)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var s=r(t,e,n);if("normal"===s.type){if(a=n.done?"completed":"suspendedYield",s.arg===E)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a="completed",n.method="throw",n.arg=s.arg)}}}function f(t,e){var n=e.method,a=t.iterator[n];if(void 0===a)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,f(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),E;var o=r(a,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,E;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,E):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function l(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(l,this),this.reset(!0)}function v(t){if(t){var e=t[L];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 a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return e("end");if(a.tryLoc<=this.prev){var i=m.call(a,"catchLoc"),c=m.call(a,"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),E}},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 a=n.arg;h(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:v(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),E}},d}var a=r("ouCL");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(r("+TWC")),i=r("H/Zg"),c={namespace:"chart",state:{visitData:[],visitData2:[],salesData:[],searchData:[],offlineData:[],offlineChartData:[],salesTypeData:[],salesTypeDataOnline:[],salesTypeDataOffline:[],radarData:[]},effects:{fetch:function(t,e){var r=e.call,a=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,r(i.fakeChartData);case 2:return e=t.sent,t.next=5,a({type:"save",payload:e});case 5:case"end":return t.stop()}},t)})()},fetchSalesData:function(t,e){var r=e.call,a=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,r(i.fakeChartData);case 2:return e=t.sent,t.next=5,a({type:"save",payload:{salesData:e.salesData}});case 5:case"end":return t.stop()}},t)})()}},reducers:{save:function(t,e){var r=e.payload;return(0,o.default)({},t,r)},setter:function(t,e){var r=e.payload;return(0,o.default)({},t,r)},clear:function(){return{visitData:[],visitData2:[],salesData:[],searchData:[],offlineData:[],offlineChartData:[],salesTypeData:[],salesTypeDataOnline:[],salesTypeDataOffline:[],radarData:[]}}}};e.default=c}});