26.async.js 7.96 KB
Newer Older
nikogu's avatar
Updates  
nikogu committed
1
webpackJsonp([26],{539:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),o=r(a),i=n(81),c=r(i),u=n(864),s=r(u);n(868);var l=n(232),f=n(237);t.default={namespace:"form",state:{step:{},regularFormSubmitting:!1,stepFormSubmitting:!1,advancedFormSubmitting:!1},effects:{submitRegularForm:c.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeRegularFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"changeRegularFormSubmitting",payload:!1});case 6:s.default.success("\u63d0\u4ea4\u6210\u529f");case 7:case"end":return e.stop()}},e,this)}),submitStepForm:c.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeStepFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"saveStepFormData",payload:r});case 6:return e.next=8,o({type:"changeStepFormSubmitting",payload:!1});case 8:return e.next=10,o(l.routerRedux.push("/form/step-form/result"));case 10:case"end":return e.stop()}},e,this)}),submitAdvancedForm:c.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeAdvancedFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"changeAdvancedFormSubmitting",payload:!1});case 6:s.default.success("\u63d0\u4ea4\u6210\u529f");case 7:case"end":return e.stop()}},e,this)})},reducers:{saveStepFormData:function(e,t){var n=t.payload;return(0,o.default)({},e,{step:(0,o.default)({},e.step,n)})},changeRegularFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{regularFormSubmitting:n})},changeStepFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{stepFormSubmitting:n})},changeAdvancedFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{advancedFormSubmitting:n})}}},e.exports=t.default},580:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),a=n.n(r),o=n(123),i=n.n(o),c=n(0),u=n.n(c),s=n(227),l=n.n(s),f=n(229),p=function(e){var t=e.type,n=e.className,r=void 0===n?"":n,o=e.spin,c=l()(i()({anticon:!0,"anticon-spin":!!o||"loading"===t},"anticon-"+t,!0),r);return u.a.createElement("i",a()({},Object(f.a)(e,["type","spin"]),{className:c}))};t.default=p},796:function(e,t,n){"use strict";function r(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}t.a=r},864:function(e,t,n){"use strict";function r(e){if(f)return void e(f);c.a.newInstance({prefixCls:m,transitionName:"move-up",style:{top:l},getContainer:d},function(t){f=t,e(t)})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments[2],a=arguments[3],o={info:"info-circle",success:"check-circle",error:"cross-circle",warning:"exclamation-circle",loading:"loading"}[n];return"function"==typeof t&&(a=t,t=s),r(function(r){r.notice({key:p,duration:t,style:{},content:i.a.createElement("div",{className:m+"-custom-content "+m+"-"+n},i.a.createElement(u.default,{type:o}),i.a.createElement("span",null,e)),onClose:a})}),function(){var e=p++;return function(){f&&f.removeNotice(e)}}()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n.n(o),c=n(865),u=n(581),s=3,l=void 0,f=void 0,p=1,m="ant-message",d=void 0;t.default={info:function(e,t,n){return a(e,t,"info",n)},success:function(e,t,n){return a(e,t,"success",n)},error:function(e,t,n){return a(e,t,"error",n)},warn:function(e,t,n){return a(e,t,"warning",n)},warning:function(e,t,n){return a(e,t,"warning",n)},loading:function(e,t,n){return a(e,t,"loading",n)},config:function(e){void 0!==e.top&&(l=e.top,f=null),void 0!==e.duration&&(s=e.duration),void 0!==e.prefixCls&&(m=e.prefixCls),void 0!==e.getContainer&&(d=e.getContainer)},destroy:function(){f&&(f.destroy(),f=null)}}},865:function(e,t,n){"use strict";var r=n(866);t.a=r.a},866:function(e,t,n){"use strict";function r(){return"rcNotification_"+O+"_"+E++}var a=n(580),o=n.n(a),i=n(123),c=n.n(i),u=n(5),s=n.n(u),l=n(28),f=n.n(l),p=n(29),m=n.n(p),d=n(39),v=n.n(d),y=n(40),g=n.n(y),h=n(0),b=n.n(h),C=n(2),x=n.n(C),S=n(124),F=n.n(S),N=n(230),_=n(796),k=n(227),T=n.n(k),w=n(867),E=0,O=Date.now(),j=function(e){function t(){var e,n,a,o;f()(this,t);for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];return n=a=v()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.state={notices:[]},a.add=function(e){var t=e.key=e.key||r();a.setState(function(n){var r=n.notices;if(!r.filter(function(e){return e.key===t}).length)return{notices:r.concat(e)}})},a.remove=function(e){a.setState(function(t){return{notices:t.notices.filter(function(t){return t.key!==e})}})},o=n,v()(a,o)}return g()(t,e),m()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,r=this.state.notices.map(function(e){var r=Object(_.a)(t.remove.bind(t,e.key),e.onClose);return b.a.createElement(w.a,s()({prefixCls:n.prefixCls},e,{onClose:r}),e.content)}),a=(e={},c()(e,n.prefixCls,1),c()(e,n.className,!!n.className),e);return b.a.createElement("div",{className:T()(a),style:n.style},b.a.createElement(N.a,{transitionName:this.getTransitionName()},r))}}]),t}(h.Component);j.propTypes={prefixCls:x.a.string,transitionName:x.a.string,animation:x.a.oneOfType([x.a.string,x.a.object]),style:x.a.object},j.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},j.newInstance=function(e,t){function n(e){u||(u=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){F.a.unmountComponentAtNode(c),a||document.body.removeChild(c)}}))}var r=e||{},a=r.getContainer,i=o()(r,["getContainer"]),c=void 0;a?c=a():(c=document.createElement("div"),document.body.appendChild(c));var u=!1;F.a.render(b.a.createElement(j,s()({},i,{ref:n})),c)},t.a=j},867:function(e,t,n){"use strict";var r=n(123),a=n.n(r),o=n(28),i=n.n(o),c=n(29),u=n.n(c),s=n(39),l=n.n(s),f=n(40),p=n.n(f),m=n(0),d=n.n(m),v=n(227),y=n.n(v),g=n(2),h=n.n(g),b=function(e){function t(){var e,n,r,a;i()(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=l()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.close=function(){r.clearCloseTimer(),r.props.onClose()},r.startCloseTimer=function(){r.props.duration&&(r.closeTimer=setTimeout(function(){r.close()},1e3*r.props.duration))},r.clearCloseTimer=function(){r.closeTimer&&(clearTimeout(r.closeTimer),r.closeTimer=null)},a=n,l()(r,a)}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls+"-notice",r=(e={},a()(e,""+n,1),a()(e,n+"-closable",t.closable),a()(e,t.className,!!t.className),e);return d.a.createElement("div",{className:y()(r),style:t.style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer},d.a.createElement("div",{className:n+"-content"},t.children),t.closable?d.a.createElement("a",{tabIndex:"0",onClick:this.close,className:n+"-close"},d.a.createElement("span",{className:n+"-close-x"})):null)}}]),t}(m.Component);b.propTypes={duration:h.a.number,onClose:h.a.func,children:h.a.any},b.defaultProps={onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}},t.a=b},868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(228),a=(n.n(r),n(869));n.n(a)},869:function(e,t){}});