(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[6],{1364:function(e,t,r){e.exports={alert:"styles__alert___2RS_Y",visible:"styles__visible___su57r",empty:"styles__empty___3WCoC",regular:"styles__regular___3LK6C",success:"styles__success___vRTx5",info:"styles__info___CssRf",danger:"styles__danger___2vvNO",warning:"styles__warning___3Vy04",white:"styles__white___piYs_","alert-regular":"styles__alert-regular___2kAGz styles__alert___2RS_Y styles__regular___3LK6C",alertRegular:"styles__alert-regular___2kAGz styles__alert___2RS_Y styles__regular___3LK6C","alert-success":"styles__alert-success___11OXI styles__alert___2RS_Y styles__success___vRTx5",alertSuccess:"styles__alert-success___11OXI styles__alert___2RS_Y styles__success___vRTx5","alert-info":"styles__alert-info___3BV8G styles__alert___2RS_Y styles__info___CssRf",alertInfo:"styles__alert-info___3BV8G styles__alert___2RS_Y styles__info___CssRf","alert-danger":"styles__alert-danger___2J9t2 styles__alert___2RS_Y styles__danger___2vvNO",alertDanger:"styles__alert-danger___2J9t2 styles__alert___2RS_Y styles__danger___2vvNO","alert-warning":"styles__alert-warning___39RPX styles__alert___2RS_Y styles__warning___3Vy04",alertWarning:"styles__alert-warning___39RPX styles__alert___2RS_Y styles__warning___3Vy04","alert-white":"styles__alert-white___3bNLM styles__alert___2RS_Y styles__white___piYs_",alertWhite:"styles__alert-white___3bNLM styles__alert___2RS_Y styles__white___piYs_"}},685:function(e,t,r){"use strict";r.r(t);var _=r(0),s=r.n(_),n=r(83),o=r(2),o=r.n(o),l=r(1364),a=r.n(l),i=(r(14),r(4));var l=r(7),u=r.n(l);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(t,e){var r,_=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),_.push.apply(_,r)),_}function p(_){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?y(Object(s),!0).forEach(function(e){var t,r;t=_,r=s[e=e],(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach(function(e){Object.defineProperty(_,e,Object.getOwnPropertyDescriptor(s,e))})}return _}function f(e,t){for(var r=0;r<t.length;r++){var _=t[r];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(e,b(_.key),_)}}function b(e){e=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==c(e)?e:e+""}function g(e,t,r){t=v(t);var _=e,t=m()?Reflect.construct(t,r||[],v(e).constructor):t.apply(e,r);if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=_;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r=function(e){function t(e){if(this instanceof t)return(e=g(this,t,[e])).state={visible:!1,message:null,type:null,wipeTimeoutId:null},e;throw new TypeError("Cannot call a class as a function")}var r,_=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return _.prototype=Object.create(e&&e.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),e&&w(_,e),_=t,(e=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t,r=this;u()(e.message)||(u()(this.state.wipeTimeoutId)||clearTimeout(this.state.wipeTimeoutId),t=setTimeout(function(){r.setState({visible:!1}),r.props.alertWipeRequest(),setTimeout(function(){r.setState({mount:!1})},300)},4e3),this.setState(p(p({},this.state),{},{mount:!0,message:e.message,type:e.type,wipeTimeoutId:t})),setTimeout(function(){r.setState(p(p({},r.state),{},{visible:!0}))},100))}},{key:"render",value:function(){this.props.status;return this.state.mount?s.a.createElement("div",{className:[u()(this.state.type)?a.a.alert:a.a["alert-".concat(this.state.type)],this.state.visible?a.a.visible:""].join(" ")},s.a.createElement("div",{className:a.a.text},this.state.message)):s.a.createElement("span",{className:a.a.empty})}}])&&f(_.prototype,e),r&&f(_,r),Object.defineProperty(_,"prototype",{writable:!1}),_}(_.Component);r.propTypes={message:o.a.string,type:o.a.string,status:o.a.string,color:o.a.string};t.default=Object(n.b)(function(e){return{message:(e=e.alert).message,type:e.type}},function(e){return{alertWipeRequest:function(){e({type:i.b})}}})(r)}}]);