26.a606649f.async.js 7.96 KB
Newer Older
afc163's avatar
Updates  
afc163 committed
1
webpackJsonp([26],{533: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(866),s=r(u);n(870);var l=n(231),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},573: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}},575: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),n(226)),s=n.n(u),l=n(228),f=function(e){var t=e.type,n=e.className,r=void 0===n?"":n,o=e.spin,u=s()(i()({anticon:!0,"anticon-spin":!!o||"loading"===t},"anticon-"+t,!0),r);return c.createElement("i",a()({},Object(l.a)(e,["type","spin"]),{className:u}))};t.default=f},794: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},866:function(e,t,n){"use strict";function r(e){if(l)return void e(l);i.a.newInstance({prefixCls:p,transitionName:"move-up",style:{top:s},getContainer:m},function(t){if(l)return void e(l);l=t,e(t)})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=arguments[2],a=arguments[3],i={info:"info-circle",success:"check-circle",error:"cross-circle",warning:"exclamation-circle",loading:"loading"}[n];"function"==typeof t&&(a=t,t=u);var s=f++;return r(function(r){r.notice({key:s,duration:t,style:{},content:o.createElement("div",{className:p+"-custom-content "+p+"-"+n},o.createElement(c.default,{type:i}),o.createElement("span",null,e)),onClose:a})}),function(){l&&l.removeNotice(s)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=(n.n(o),n(867)),c=n(575),u=3,s=void 0,l=void 0,f=1,p="ant-message",m=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&&(s=e.top,l=null),void 0!==e.duration&&(u=e.duration),void 0!==e.prefixCls&&(p=e.prefixCls),void 0!==e.getContainer&&(m=e.getContainer)},destroy:function(){l&&(l.destroy(),l=null)}}},867:function(e,t,n){"use strict";var r=n(868);t.a=r.a},868:function(e,t,n){"use strict";function r(){return"rcNotification_"+O+"_"+E++}var a=n(573),o=n.n(a),i=n(123),c=n.n(i),u=n(5),s=n.n(u),l=n(27),f=n.n(l),p=n(28),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(229),_=n(794),k=n(226),T=n.n(k),w=n(869),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},869:function(e,t,n){"use strict";var r=n(123),a=n.n(r),o=n(27),i=n.n(o),c=n(28),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(226),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},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(227),a=(n.n(r),n(871));n.n(a)},871:function(e,t){}});