Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-notification

Package Overview
Dependencies
Maintainers
5
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-notification - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

2

dist/rc-notification.min.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports["rc-notification"]=n(require("react"),require("react-dom")):t["rc-notification"]=n(t.React,t.ReactDOM)}(this,function(t,n){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=109)}([function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(10),o=e(44),i=e(34),a=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(1),i=e(42),a=e(6),u=function(t,n,e){var s,c,f,l=t&u.F,p=t&u.G,d=t&u.S,v=t&u.P,h=t&u.B,y=t&u.W,m=p?o:o[n]||(o[n]={}),b=m.prototype,E=p?r:d?r[n]:(r[n]||{}).prototype;p&&(e=n);for(s in e)(c=!l&&E&&void 0!==E[s])&&s in m||(f=c?E[s]:e[s],m[s]=p&&"function"!=typeof E[s]?e[s]:h&&c?i(f,r):y&&E[s]==f?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[s]=f,t&u.R&&b&&!b[s]&&a(b,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,n,e){var r=e(4),o=e(20);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(45),o=e(24);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(32)("wks"),o=e(21),i=e(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(n,e){n.exports=t},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(37),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(60),i=r(o),a=e(59),u=r(a),s=e(17),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":(0,c.default)(n)));t.prototype=(0,u.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(i.default?(0,i.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(17),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(62),i=r(o),a=e(61),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};n.default="function"==typeof u.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,n,e){var r=e(49),o=e(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){t.exports=e(103)()},function(t,n,e){"use strict";n.__esModule=!0;var r=e(37),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t,n,e){return n in t?(0,o.default)(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n,e){var r=e(10),o=e(81),i=e(25),a=e(31)("IE_PROTO"),u=function(){},s=function(){var t,n=e(43)("iframe"),r=i.length;for(n.style.display="none",e(75).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(u.prototype=r(t),e=new u,u.prototype=null,e[a]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(4).f,o=e(3),i=e(9)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(32)("keys"),o=e(21);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(1),i=e(27),a=e(36),u=e(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:a.f(t)})}},function(t,n,e){n.f=e(9)},function(t,n,e){t.exports={default:e(67),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(58),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){var r,o;!function(){"use strict";function e(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(e.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=e:(r=[],void 0!==(o=function(){return e}.apply(n,r))&&(t.exports=o))}()},function(t,n){t.exports=function(t,n){if(t.indexOf)return t.indexOf(n);for(var e=0;e<t.length;++e)if(t[e]===n)return e;return-1}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(71);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(7),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(2)&&!e(11)(function(){return 7!=Object.defineProperty(e(43)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){"use strict";var r=e(27),o=e(5),i=e(50),a=e(6),u=e(3),s=e(26),c=e(77),f=e(30),l=e(83),p=e(9)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,h,y,m,b){c(e,n,h);var E,g,_,x=function(t){if(!d&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},O=n+" Iterator",T="values"==y,w=!1,k=t.prototype,S=k[p]||k["@@iterator"]||y&&k[y],A=!d&&S||x(y),L=y?T?x("entries"):A:void 0,j="Array"==n?k.entries||S:S;if(j&&(_=l(j.call(new t)))!==Object.prototype&&_.next&&(f(_,O,!0),r||u(_,p)||a(_,p,v)),T&&S&&"values"!==S.name&&(w=!0,A=function(){return S.call(this)}),r&&!b||!d&&!w&&k[p]||a(k,p,A),s[n]=A,s[O]=v,y)if(E={values:T?A:x("values"),keys:m?A:x("keys"),entries:L},b)for(g in E)g in k||i(k,g,E[g]);else o(o.P+o.F*(d||w),n,E);return E}},function(t,n,e){var r=e(19),o=e(20),i=e(8),a=e(34),u=e(3),s=e(44),c=Object.getOwnPropertyDescriptor;n.f=e(2)?c:function(t,n){if(t=i(t),n=a(n,!0),s)try{return c(t,n)}catch(t){}if(u(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(49),o=e(25).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(3),o=e(8),i=e(73)(!1),a=e(31)("IE_PROTO");t.exports=function(t,n){var e,u=o(t),s=0,c=[];for(e in u)e!=a&&r(u,e)&&c.push(e);for(;n.length>s;)r(u,e=n[s++])&&(~i(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(6)},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r={isAppearSupported:function(t){return t.transitionName&&t.transitionAppear||t.animation.appear},isEnterSupported:function(t){return t.transitionName&&t.transitionEnter||t.animation.enter},isLeaveSupported:function(t){return t.transitionName&&t.transitionLeave||t.animation.leave},allowAppearCallback:function(t){return t.transitionAppear||t.animation.appear},allowEnterCallback:function(t){return t.transitionEnter||t.animation.enter},allowLeaveCallback:function(t){return t.transitionLeave||t.animation.leave}};n.a=r},function(t,e){t.exports=n},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(57);n.default=r.a},function(t,n){},function(t,n,e){"use strict";var r=e(23),o=e.n(r),i=e(13),a=e.n(i),u=e(14),s=e.n(u),c=e(16),f=e.n(c),l=e(15),p=e.n(l),d=e(12),v=e.n(d),h=e(39),y=e.n(h),m=e(22),b=e.n(m),E=function(t){function n(){var t,e,r,o;a()(this,n);for(var i=arguments.length,u=Array(i),s=0;s<i;s++)u[s]=arguments[s];return e=r=f()(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(u))),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)},o=e,f()(r,o)}return p()(n,t),s()(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"render",value:function(){var t,n=this.props,e=n.prefixCls+"-notice",r=(t={},o()(t,""+e,1),o()(t,e+"-closable",n.closable),o()(t,n.className,!!n.className),t);return v.a.createElement("div",{className:y()(r),style:n.style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer},v.a.createElement("div",{className:e+"-content"},n.children),n.closable?v.a.createElement("a",{tabIndex:"0",onClick:this.close,className:e+"-close"},v.a.createElement("span",{className:e+"-close-x"})):null)}}]),n}(d.Component);E.propTypes={duration:b.a.number,onClose:b.a.func,children:b.a.any},E.defaultProps={onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}},n.a=E},function(t,n,e){"use strict";function r(){return"rcNotification_"+P+"_"+j++}var o=e(63),i=e.n(o),a=e(23),u=e.n(a),s=e(38),c=e.n(s),f=e(13),l=e.n(f),p=e(14),d=e.n(p),v=e(16),h=e.n(v),y=e(15),m=e.n(y),b=e(12),E=e.n(b),g=e(22),_=e.n(g),x=e(53),O=e.n(x),T=e(105),w=e(108),k=e.n(w),S=e(39),A=e.n(S),L=e(56),j=0,P=Date.now(),M=function(t){function n(){var t,e,o,i;l()(this,n);for(var a=arguments.length,u=Array(a),s=0;s<a;s++)u[s]=arguments[s];return e=o=h()(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(u))),o.state={notices:[]},o.add=function(t){var n=t.key=t.key||r();o.setState(function(e){var r=e.notices;if(!r.filter(function(t){return t.key===n}).length)return{notices:r.concat(t)}})},o.remove=function(t){o.setState(function(n){return{notices:n.notices.filter(function(n){return n.key!==t})}})},i=e,h()(o,i)}return m()(n,t),d()(n,[{key:"getTransitionName",value:function(){var t=this.props,n=t.transitionName;return!n&&t.animation&&(n=t.prefixCls+"-"+t.animation),n}},{key:"render",value:function(){var t,n=this,e=this.props,r=this.state.notices.map(function(t){var r=k()(n.remove.bind(n,t.key),t.onClose);return E.a.createElement(L.a,c()({prefixCls:e.prefixCls},t,{onClose:r}),t.content)}),o=(t={},u()(t,e.prefixCls,1),u()(t,e.className,!!e.className),t);return E.a.createElement("div",{className:A()(o),style:e.style},E.a.createElement(T.a,{transitionName:this.getTransitionName()},r))}}]),n}(b.Component);M.propTypes={prefixCls:_.a.string,transitionName:_.a.string,animation:_.a.oneOfType([_.a.string,_.a.object]),style:_.a.object},M.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},M.newInstance=function(t,n){function e(t){s||(s=!0,n({notice:function(n){t.add(n)},removeNotice:function(n){t.remove(n)},component:t,destroy:function(){O.a.unmountComponentAtNode(u),u.parentNode.removeChild(u)}}))}var r=t||{},o=r.getContainer,a=i()(r,["getContainer"]),u=document.createElement("div");if(o){o().appendChild(u)}else document.body.appendChild(u);var s=!1;O.a.render(E.a.createElement(M,c()({},a,{ref:e})),u)},n.a=M},function(t,n,e){t.exports={default:e(65),__esModule:!0}},function(t,n,e){t.exports={default:e(66),__esModule:!0}},function(t,n,e){t.exports={default:e(68),__esModule:!0}},function(t,n,e){t.exports={default:e(69),__esModule:!0}},function(t,n,e){t.exports={default:e(70),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(t,n,e){function r(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}try{var o=e(40)}catch(t){var o=e(40)}var i=/\s+/,a=Object.prototype.toString;t.exports=function(t){return new r(t)},r.prototype.add=function(t){if(this.list)return this.list.add(t),this;var n=this.array();return~o(n,t)||n.push(t),this.el.className=n.join(" "),this},r.prototype.remove=function(t){if("[object RegExp]"==a.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var n=this.array(),e=o(n,t);return~e&&n.splice(e,1),this.el.className=n.join(" "),this},r.prototype.removeMatching=function(t){for(var n=this.array(),e=0;e<n.length;e++)t.test(n[e])&&this.remove(n[e]);return this},r.prototype.toggle=function(t,n){return this.list?(void 0!==n?n!==this.list.toggle(t,n)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==n?n?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},r.prototype.array=function(){var t=this.el.getAttribute("class")||"",n=t.replace(/^\s+|\s+$/g,""),e=n.split(i);return""===e[0]&&e.shift(),e},r.prototype.has=r.prototype.contains=function(t){return this.list?this.list.contains(t):!!~o(this.array(),t)}},function(t,n,e){e(89),t.exports=e(1).Object.assign},function(t,n,e){e(90);var r=e(1).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(91);var r=e(1).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){e(92),t.exports=e(1).Object.setPrototypeOf},function(t,n,e){e(95),e(93),e(96),e(97),t.exports=e(1).Symbol},function(t,n,e){e(94),e(98),t.exports=e(36).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(8),o=e(87),i=e(86);t.exports=function(t){return function(n,e,a){var u,s=r(n),c=o(s.length),f=i(a,c);if(t&&e!=e){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(18),o=e(29),i=e(19);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var a,u=e(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&n.push(a);return n}},function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(41);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(28),o=e(20),i=e(30),a={};e(6)(a,e(9)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(a,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(21)("meta"),o=e(7),i=e(3),a=e(4).f,u=0,s=Object.isExtensible||function(){return!0},c=!e(11)(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){"use strict";var r=e(18),o=e(29),i=e(19),a=e(51),u=e(45),s=Object.assign;t.exports=!s||e(11)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=a(t),s=arguments.length,c=1,f=o.f,l=i.f;s>c;)for(var p,d=u(arguments[c++]),v=f?r(d).concat(f(d)):r(d),h=v.length,y=0;h>y;)l.call(d,p=v[y++])&&(e[p]=d[p]);return e}:s},function(t,n,e){var r=e(4),o=e(10),i=e(18);t.exports=e(2)?Object.defineProperties:function(t,n){o(t);for(var e,a=i(n),u=a.length,s=0;u>s;)r.f(t,e=a[s++],n[e]);return t}},function(t,n,e){var r=e(8),o=e(48).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,n,e){var r=e(3),o=e(51),i=e(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,n,e){var r=e(7),o=e(10),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(42)(Function.call,e(47).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(33),o=e(24);t.exports=function(t){return function(n,e){var i,a,u=String(o(n)),s=r(e),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,n,e){var r=e(33),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(72),o=e(78),i=e(26),a=e(8);t.exports=e(46)(Array,"Array",function(t,n){this._t=a(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(5);r(r.S+r.F,"Object",{assign:e(80)})},function(t,n,e){var r=e(5);r(r.S,"Object",{create:e(28)})},function(t,n,e){var r=e(5);r(r.S+r.F*!e(2),"Object",{defineProperty:e(4).f})},function(t,n,e){var r=e(5);r(r.S,"Object",{setPrototypeOf:e(84).set})},function(t,n){},function(t,n,e){"use strict";var r=e(85)(!0);e(46)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(0),o=e(3),i=e(2),a=e(5),u=e(50),s=e(79).KEY,c=e(11),f=e(32),l=e(30),p=e(21),d=e(9),v=e(36),h=e(35),y=e(74),m=e(76),b=e(10),E=e(7),g=e(8),_=e(34),x=e(20),O=e(28),T=e(82),w=e(47),k=e(4),S=e(18),A=w.f,L=k.f,j=T.f,P=r.Symbol,M=r.JSON,C=M&&M.stringify,N=d("_hidden"),R=d("toPrimitive"),F={}.propertyIsEnumerable,D=f("symbol-registry"),I=f("symbols"),W=f("op-symbols"),K=Object.prototype,V="function"==typeof P,G=r.QObject,q=!G||!G.prototype||!G.prototype.findChild,z=i&&c(function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=A(K,n);r&&delete K[n],L(t,n,e),r&&t!==K&&L(K,n,r)}:L,B=function(t){var n=I[t]=O(P.prototype);return n._k=t,n},U=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},H=function(t,n,e){return t===K&&H(W,n,e),b(t),n=_(n,!0),b(e),o(I,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=O(e,{enumerable:x(0,!1)})):(o(t,N)||L(t,N,x(1,{})),t[N][n]=!0),z(t,n,e)):L(t,n,e)},J=function(t,n){b(t);for(var e,r=y(n=g(n)),o=0,i=r.length;i>o;)H(t,e=r[o++],n[e]);return t},Y=function(t,n){return void 0===n?O(t):J(O(t),n)},Q=function(t){var n=F.call(this,t=_(t,!0));return!(this===K&&o(I,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(I,t)||o(this,N)&&this[N][t])||n)},$=function(t,n){if(t=g(t),n=_(n,!0),t!==K||!o(I,n)||o(W,n)){var e=A(t,n);return!e||!o(I,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},X=function(t){for(var n,e=j(g(t)),r=[],i=0;e.length>i;)o(I,n=e[i++])||n==N||n==s||r.push(n);return r},Z=function(t){for(var n,e=t===K,r=j(e?W:g(t)),i=[],a=0;r.length>a;)!o(I,n=r[a++])||e&&!o(K,n)||i.push(I[n]);return i};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===K&&n.call(W,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),z(this,t,x(1,e))};return i&&q&&z(K,t,{configurable:!0,set:n}),B(t)},u(P.prototype,"toString",function(){return this._k}),w.f=$,k.f=H,e(48).f=T.f=X,e(19).f=Q,e(29).f=Z,i&&!e(27)&&u(K,"propertyIsEnumerable",Q,!0),v.f=function(t){return B(d(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)d(tt[nt++]);for(var et=S(d.store),rt=0;et.length>rt;)h(et[rt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=P(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in D)if(D[n]===t)return n},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:Y,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),M&&a(a.S+a.F*(!V||c(function(){var t=P();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(E(n)||void 0!==t)&&!U(t))return m(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,C.apply(M,r)}}),P.prototype[R]||e(6)(P.prototype,R,P.prototype.valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(35)("asyncIterator")},function(t,n,e){e(35)("observable")},function(t,n,e){e(88);for(var r=e(0),o=e(6),i=e(26),a=e(9)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},function(t,n,e){"use strict";function r(t,n,e){t.addEventListener(n,e,!1)}function o(t,n,e){t.removeEventListener(n,e,!1)}var i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},a=[];"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var t=document.createElement("div"),n=t.style;"AnimationEvent"in window||delete i.animationend.animation,"TransitionEvent"in window||delete i.transitionend.transition;for(var e in i)if(i.hasOwnProperty(e)){var r=i[e];for(var o in r)if(o in n){a.push(r[o]);break}}}();var u={addEndEventListener:function(t,n){if(0===a.length)return void window.setTimeout(n,0);a.forEach(function(e){r(t,e,n)})},endEvents:a,removeEndEventListener:function(t,n){0!==a.length&&a.forEach(function(e){o(t,e,n)})}};n.a=u},function(t,n,e){"use strict";function r(t,n){for(var e=window.getComputedStyle(t,null),r="",o=0;o<d.length&&!(r=e.getPropertyValue(d[o]+n));o++);return r}function o(t){if(l){var n=parseFloat(r(t,"transition-delay"))||0,e=parseFloat(r(t,"transition-duration"))||0,o=parseFloat(r(t,"animation-delay"))||0,i=parseFloat(r(t,"animation-duration"))||0,a=Math.max(e+n,i+o);t.rcEndAnimTimeout=setTimeout(function(){t.rcEndAnimTimeout=null,t.rcEndListener&&t.rcEndListener()},1e3*a+200)}}function i(t){t.rcEndAnimTimeout&&(clearTimeout(t.rcEndAnimTimeout),t.rcEndAnimTimeout=null)}e.d(n,"a",function(){return l});var a=e(17),u=e.n(a),s=e(99),c=e(64),f=e.n(c),l=0!==s.a.endEvents.length,p=["Webkit","Moz","O","ms"],d=["-webkit-","-moz-","-o-","ms-",""],v=function(t,n,e){var r="object"===(void 0===n?"undefined":u()(n)),a=r?n.name:n,c=r?n.active:n+"-active",l=e,p=void 0,d=void 0,v=f()(t);return e&&"[object Object]"===Object.prototype.toString.call(e)&&(l=e.end,p=e.start,d=e.active),t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(n){n&&n.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),i(t),v.remove(a),v.remove(c),s.a.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,l&&l())},s.a.addEndEventListener(t,t.rcEndListener),p&&p(),v.add(a),t.rcAnimTimeout=setTimeout(function(){t.rcAnimTimeout=null,v.add(c),d&&setTimeout(d,0),o(t)},30),{stop:function(){t.rcEndListener&&t.rcEndListener()}}};v.style=function(t,n,e){t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(n){n&&n.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),i(t),s.a.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,e&&e())},s.a.addEndEventListener(t,t.rcEndListener),t.rcAnimTimeout=setTimeout(function(){for(var e in n)n.hasOwnProperty(e)&&(t.style[e]=n[e]);t.rcAnimTimeout=null,o(t)},0)},v.setTransition=function(t,n,e){var r=n,o=e;void 0===e&&(o=r,r=""),r=r||"",p.forEach(function(n){t.style[n+"Transition"+r]=o})},v.isCssAnimationSupported=l,n.b=v},function(t,n,e){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,n,e){"use strict";function r(t,n,e,r,i,a,u,s){if(o(n),!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[e,r,i,a,u,s],l=0;c=new Error(n.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};t.exports=r},function(t,n,e){"use strict";var r=e(101),o=e(102),i=e(104);t.exports=function(){function t(t,n,e,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return e.checkPropTypes=r,e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n,e){"use strict";function r(t){var n=t.children;return b.a.isValidElement(n)&&!n.key?b.a.cloneElement(n,{key:T}):n}function o(){}var i=e(38),a=e.n(i),u=e(23),s=e.n(u),c=e(13),f=e.n(c),l=e(14),p=e.n(l),d=e(16),v=e.n(d),h=e(15),y=e.n(h),m=e(12),b=e.n(m),E=e(22),g=e.n(E),_=e(107),x=e(106),O=e(52),T="rc_animate_"+Date.now(),w=function(t){function n(t){f()(this,n);var o=v()(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return k.call(o),o.currentlyAnimatingKeys={},o.keysToEnter=[],o.keysToLeave=[],o.state={children:e.i(_.a)(r(t))},o.childrenRefs={},o}return y()(n,t),p()(n,[{key:"componentDidMount",value:function(){var t=this,n=this.props.showProp,e=this.state.children;n&&(e=e.filter(function(t){return!!t.props[n]})),e.forEach(function(n){n&&t.performAppear(n.key)})}},{key:"componentWillReceiveProps",value:function(t){var n=this;this.nextProps=t;var o=e.i(_.a)(r(t)),i=this.props;i.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(t){n.stop(t)});var a=i.showProp,u=this.currentlyAnimatingKeys,c=i.exclusive?e.i(_.a)(r(i)):this.state.children,f=[];a?(c.forEach(function(t){var n=t&&e.i(_.b)(o,t.key),r=void 0;(r=n&&n.props[a]||!t.props[a]?n:b.a.cloneElement(n||t,s()({},a,!0)))&&f.push(r)}),o.forEach(function(t){t&&e.i(_.b)(c,t.key)||f.push(t)})):f=e.i(_.c)(c,o),this.setState({children:f}),o.forEach(function(t){var r=t&&t.key;if(!t||!u[r]){var o=t&&e.i(_.b)(c,r);if(a){var i=t.props[a];if(o){!e.i(_.d)(c,r,a)&&i&&n.keysToEnter.push(r)}else i&&n.keysToEnter.push(r)}else o||n.keysToEnter.push(r)}}),c.forEach(function(t){var r=t&&t.key;if(!t||!u[r]){var i=t&&e.i(_.b)(o,r);if(a){var s=t.props[a];if(i){!e.i(_.d)(o,r,a)&&s&&n.keysToLeave.push(r)}else s&&n.keysToLeave.push(r)}else i||n.keysToLeave.push(r)}})}},{key:"componentDidUpdate",value:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var n=this.keysToLeave;this.keysToLeave=[],n.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(t,n){var r=this.props.showProp;return r?e.i(_.d)(t,n,r):e.i(_.b)(t,n)}},{key:"stop",value:function(t){delete this.currentlyAnimatingKeys[t];var n=this.childrenRefs[t];n&&n.stop()}},{key:"render",value:function(){var t=this,n=this.props;this.nextProps=n;var e=this.state.children,r=null;e&&(r=e.map(function(e){if(null===e||void 0===e)return e;if(!e.key)throw new Error("must set key for <rc-animate> children");return b.a.createElement(x.a,{key:e.key,ref:function(n){return t.childrenRefs[e.key]=n},animation:n.animation,transitionName:n.transitionName,transitionEnter:n.transitionEnter,transitionAppear:n.transitionAppear,transitionLeave:n.transitionLeave},e)}));var o=n.component;if(o){var i=n;return"string"==typeof o&&(i=a()({className:n.className,style:n.style},n.componentProps)),b.a.createElement(o,i,r)}return r[0]||null}}]),n}(b.a.Component);w.isAnimate=!0,w.propTypes={component:g.a.any,componentProps:g.a.object,animation:g.a.object,transitionName:g.a.oneOfType([g.a.string,g.a.object]),transitionEnter:g.a.bool,transitionAppear:g.a.bool,exclusive:g.a.bool,transitionLeave:g.a.bool,onEnd:g.a.func,onEnter:g.a.func,onLeave:g.a.func,onAppear:g.a.func,showProp:g.a.string},w.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:o,onEnter:o,onLeave:o,onAppear:o};var k=function(){var t=this;this.performEnter=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillEnter(t.handleDoneAdding.bind(t,n,"enter")))},this.performAppear=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillAppear(t.handleDoneAdding.bind(t,n,"appear")))},this.handleDoneAdding=function(n,o){var i=t.props;if(delete t.currentlyAnimatingKeys[n],!i.exclusive||i===t.nextProps){var a=e.i(_.a)(r(i));t.isValidChildByKey(a,n)?"appear"===o?O.a.allowAppearCallback(i)&&(i.onAppear(n),i.onEnd(n,!0)):O.a.allowEnterCallback(i)&&(i.onEnter(n),i.onEnd(n,!0)):t.performLeave(n)}},this.performLeave=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillLeave(t.handleDoneLeaving.bind(t,n)))},this.handleDoneLeaving=function(n){var o=t.props;if(delete t.currentlyAnimatingKeys[n],!o.exclusive||o===t.nextProps){var i=e.i(_.a)(r(o));if(t.isValidChildByKey(i,n))t.performEnter(n);else{var a=function(){O.a.allowLeaveCallback(o)&&(o.onLeave(n),o.onEnd(n,!1))};e.i(_.e)(t.state.children,i,o.showProp)?a():t.setState({children:i},a)}}}};n.a=w},function(t,n,e){"use strict";var r=e(17),o=e.n(r),i=e(13),a=e.n(i),u=e(14),s=e.n(u),c=e(16),f=e.n(c),l=e(15),p=e.n(l),d=e(12),v=e.n(d),h=e(53),y=e.n(h),m=e(22),b=e.n(m),E=e(100),g=e(52),_={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},x=function(t){function n(){return a()(this,n),f()(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return p()(n,t),s()(n,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(t){g.a.isEnterSupported(this.props)?this.transition("enter",t):t()}},{key:"componentWillAppear",value:function(t){g.a.isAppearSupported(this.props)?this.transition("appear",t):t()}},{key:"componentWillLeave",value:function(t){g.a.isLeaveSupported(this.props)?this.transition("leave",t):t()}},{key:"transition",value:function(t,n){var r=this,i=y.a.findDOMNode(this),a=this.props,u=a.transitionName,s="object"===(void 0===u?"undefined":o()(u));this.stop();var c=function(){r.stopper=null,n()};if((E.a||!a.animation[t])&&u&&a[_[t]]){var f=s?u[t]:u+"-"+t,l=f+"-active";s&&u[t+"Active"]&&(l=u[t+"Active"]),this.stopper=e.i(E.b)(i,{name:f,active:l},c)}else this.stopper=a.animation[t](i,c)}},{key:"stop",value:function(){var t=this.stopper;t&&(this.stopper=null,t.stop())}},{key:"render",value:function(){return this.props.children}}]),n}(v.a.Component);x.propTypes={children:b.a.any},n.a=x},function(t,n,e){"use strict";function r(t){var n=[];return c.a.Children.forEach(t,function(t){n.push(t)}),n}function o(t,n){var e=null;return t&&t.forEach(function(t){e||t&&t.key===n&&(e=t)}),e}function i(t,n,e){var r=null;return t&&t.forEach(function(t){if(t&&t.key===n&&t.props[e]){if(r)throw new Error("two child with same key for <rc-animate> children");r=t}}),r}function a(t,n,e){var r=t.length===n.length;return r&&t.forEach(function(t,o){var i=n[o];t&&i&&(t&&!i||!t&&i?r=!1:t.key!==i.key?r=!1:e&&t.props[e]!==i.props[e]&&(r=!1))}),r}function u(t,n){var e=[],r={},i=[];return t.forEach(function(t){t&&o(n,t.key)?i.length&&(r[t.key]=i,i=[]):i.push(t)}),n.forEach(function(t){t&&r.hasOwnProperty(t.key)&&(e=e.concat(r[t.key])),e.push(t)}),e=e.concat(i)}n.a=r,n.b=o,n.d=i,n.e=a,n.c=u;var s=e(12),c=e.n(s)},function(t,n,e){"use strict";function r(){var t=[].slice.call(arguments,0);return 1===t.length?t[0]:function(){for(var n=0;n<t.length;n++)t[n]&&t[n].apply&&t[n].apply(this,arguments)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,t.exports=n.default},function(t,n,e){e(55),t.exports=e(54)}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports["rc-notification"]=n(require("react"),require("react-dom")):t["rc-notification"]=n(t.React,t.ReactDOM)}(this,function(t,n){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=109)}([function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(10),o=e(44),i=e(34),a=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(1),i=e(42),a=e(6),u=e(3),s=function(t,n,e){var c,f,l,p=t&s.F,d=t&s.G,v=t&s.S,h=t&s.P,y=t&s.B,m=t&s.W,b=d?o:o[n]||(o[n]={}),E=b.prototype,g=d?r:v?r[n]:(r[n]||{}).prototype;d&&(e=n);for(c in e)(f=!p&&g&&void 0!==g[c])&&u(b,c)||(l=f?g[c]:e[c],b[c]=d&&"function"!=typeof g[c]?e[c]:y&&f?i(l,r):m&&g[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((b.virtual||(b.virtual={}))[c]=l,t&s.R&&E&&!E[c]&&a(E,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(4),o=e(20);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(45),o=e(24);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(32)("wks"),o=e(21),i=e(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(n,e){n.exports=t},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(37),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(60),i=r(o),a=e(59),u=r(a),s=e(17),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":(0,c.default)(n)));t.prototype=(0,u.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(i.default?(0,i.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(17),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(62),i=r(o),a=e(61),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};n.default="function"==typeof u.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,n,e){var r=e(49),o=e(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){t.exports=e(103)()},function(t,n,e){"use strict";n.__esModule=!0;var r=e(37),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=function(t,n,e){return n in t?(0,o.default)(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n,e){var r=e(10),o=e(81),i=e(25),a=e(31)("IE_PROTO"),u=function(){},s=function(){var t,n=e(43)("iframe"),r=i.length;for(n.style.display="none",e(75).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(u.prototype=r(t),e=new u,u.prototype=null,e[a]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(4).f,o=e(3),i=e(9)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(32)("keys"),o=e(21);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(1),i=e(27),a=e(36),u=e(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:a.f(t)})}},function(t,n,e){n.f=e(9)},function(t,n,e){t.exports={default:e(67),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(58),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){var r,o;!function(){"use strict";function e(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(e.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=e:(r=[],void 0!==(o=function(){return e}.apply(n,r))&&(t.exports=o))}()},function(t,n){t.exports=function(t,n){if(t.indexOf)return t.indexOf(n);for(var e=0;e<t.length;++e)if(t[e]===n)return e;return-1}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(71);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(7),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(2)&&!e(11)(function(){return 7!=Object.defineProperty(e(43)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){"use strict";var r=e(27),o=e(5),i=e(50),a=e(6),u=e(26),s=e(77),c=e(30),f=e(83),l=e(9)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,n,e,v,h,y,m){s(e,n,v);var b,E,g,_=function(t){if(!p&&t in w)return w[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},x=n+" Iterator",O="values"==h,T=!1,w=t.prototype,k=w[l]||w["@@iterator"]||h&&w[h],S=k||_(h),A=h?O?_("entries"):S:void 0,L="Array"==n?w.entries||k:k;if(L&&(g=f(L.call(new t)))!==Object.prototype&&g.next&&(c(g,x,!0),r||"function"==typeof g[l]||a(g,l,d)),O&&k&&"values"!==k.name&&(T=!0,S=function(){return k.call(this)}),r&&!m||!p&&!T&&w[l]||a(w,l,S),u[n]=S,u[x]=d,h)if(b={values:O?S:_("values"),keys:y?S:_("keys"),entries:A},m)for(E in b)E in w||i(w,E,b[E]);else o(o.P+o.F*(p||T),n,b);return b}},function(t,n,e){var r=e(19),o=e(20),i=e(8),a=e(34),u=e(3),s=e(44),c=Object.getOwnPropertyDescriptor;n.f=e(2)?c:function(t,n){if(t=i(t),n=a(n,!0),s)try{return c(t,n)}catch(t){}if(u(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(49),o=e(25).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(3),o=e(8),i=e(73)(!1),a=e(31)("IE_PROTO");t.exports=function(t,n){var e,u=o(t),s=0,c=[];for(e in u)e!=a&&r(u,e)&&c.push(e);for(;n.length>s;)r(u,e=n[s++])&&(~i(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(6)},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r={isAppearSupported:function(t){return t.transitionName&&t.transitionAppear||t.animation.appear},isEnterSupported:function(t){return t.transitionName&&t.transitionEnter||t.animation.enter},isLeaveSupported:function(t){return t.transitionName&&t.transitionLeave||t.animation.leave},allowAppearCallback:function(t){return t.transitionAppear||t.animation.appear},allowEnterCallback:function(t){return t.transitionEnter||t.animation.enter},allowLeaveCallback:function(t){return t.transitionLeave||t.animation.leave}};n.a=r},function(t,e){t.exports=n},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(57);n.default=r.a},function(t,n){},function(t,n,e){"use strict";var r=e(23),o=e.n(r),i=e(13),a=e.n(i),u=e(14),s=e.n(u),c=e(16),f=e.n(c),l=e(15),p=e.n(l),d=e(12),v=e.n(d),h=e(39),y=e.n(h),m=e(22),b=e.n(m),E=function(t){function n(){var t,e,r,o;a()(this,n);for(var i=arguments.length,u=Array(i),s=0;s<i;s++)u[s]=arguments[s];return e=r=f()(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(u))),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)},o=e,f()(r,o)}return p()(n,t),s()(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(t){this.props.duration!==t.duration&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var t,n=this.props,e=n.prefixCls+"-notice",r=(t={},o()(t,""+e,1),o()(t,e+"-closable",n.closable),o()(t,n.className,!!n.className),t);return v.a.createElement("div",{className:y()(r),style:n.style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer},v.a.createElement("div",{className:e+"-content"},n.children),n.closable?v.a.createElement("a",{tabIndex:"0",onClick:this.close,className:e+"-close"},v.a.createElement("span",{className:e+"-close-x"})):null)}}]),n}(d.Component);E.propTypes={duration:b.a.number,onClose:b.a.func,children:b.a.any},E.defaultProps={onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}},n.a=E},function(t,n,e){"use strict";function r(){return"rcNotification_"+P+"_"+j++}var o=e(63),i=e.n(o),a=e(23),u=e.n(a),s=e(38),c=e.n(s),f=e(13),l=e.n(f),p=e(14),d=e.n(p),v=e(16),h=e.n(v),y=e(15),m=e.n(y),b=e(12),E=e.n(b),g=e(22),_=e.n(g),x=e(53),O=e.n(x),T=e(105),w=e(108),k=e.n(w),S=e(39),A=e.n(S),L=e(56),j=0,P=Date.now(),C=function(t){function n(){var t,e,o,i;l()(this,n);for(var a=arguments.length,u=Array(a),s=0;s<a;s++)u[s]=arguments[s];return e=o=h()(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(u))),o.state={notices:[]},o.add=function(t){var n=t.key=t.key||r();o.setState(function(e){var r=e.notices,o=r.map(function(t){return t.key}).indexOf(n),i=void 0;return-1===o?i=r.concat(t):(i=r.concat(),i.splice(o,1,t)),{notices:i}})},o.remove=function(t){o.setState(function(n){return{notices:n.notices.filter(function(n){return n.key!==t})}})},i=e,h()(o,i)}return m()(n,t),d()(n,[{key:"getTransitionName",value:function(){var t=this.props,n=t.transitionName;return!n&&t.animation&&(n=t.prefixCls+"-"+t.animation),n}},{key:"render",value:function(){var t,n=this,e=this.props,r=this.state.notices.map(function(t){var r=k()(n.remove.bind(n,t.key),t.onClose);return E.a.createElement(L.a,c()({prefixCls:e.prefixCls},t,{onClose:r}),t.content)}),o=(t={},u()(t,e.prefixCls,1),u()(t,e.className,!!e.className),t);return E.a.createElement("div",{className:A()(o),style:e.style},E.a.createElement(T.a,{transitionName:this.getTransitionName()},r))}}]),n}(b.Component);C.propTypes={prefixCls:_.a.string,transitionName:_.a.string,animation:_.a.oneOfType([_.a.string,_.a.object]),style:_.a.object},C.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},C.newInstance=function(t,n){function e(t){s||(s=!0,n({notice:function(n){t.add(n)},removeNotice:function(n){t.remove(n)},component:t,destroy:function(){O.a.unmountComponentAtNode(u),u.parentNode.removeChild(u)}}))}var r=t||{},o=r.getContainer,a=i()(r,["getContainer"]),u=document.createElement("div");if(o){o().appendChild(u)}else document.body.appendChild(u);var s=!1;O.a.render(E.a.createElement(C,c()({},a,{ref:e})),u)},n.a=C},function(t,n,e){t.exports={default:e(65),__esModule:!0}},function(t,n,e){t.exports={default:e(66),__esModule:!0}},function(t,n,e){t.exports={default:e(68),__esModule:!0}},function(t,n,e){t.exports={default:e(69),__esModule:!0}},function(t,n,e){t.exports={default:e(70),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(t,n,e){function r(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}try{var o=e(40)}catch(t){var o=e(40)}var i=/\s+/,a=Object.prototype.toString;t.exports=function(t){return new r(t)},r.prototype.add=function(t){if(this.list)return this.list.add(t),this;var n=this.array();return~o(n,t)||n.push(t),this.el.className=n.join(" "),this},r.prototype.remove=function(t){if("[object RegExp]"==a.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var n=this.array(),e=o(n,t);return~e&&n.splice(e,1),this.el.className=n.join(" "),this},r.prototype.removeMatching=function(t){for(var n=this.array(),e=0;e<n.length;e++)t.test(n[e])&&this.remove(n[e]);return this},r.prototype.toggle=function(t,n){return this.list?(void 0!==n?n!==this.list.toggle(t,n)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==n?n?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},r.prototype.array=function(){var t=this.el.getAttribute("class")||"",n=t.replace(/^\s+|\s+$/g,""),e=n.split(i);return""===e[0]&&e.shift(),e},r.prototype.has=r.prototype.contains=function(t){return this.list?this.list.contains(t):!!~o(this.array(),t)}},function(t,n,e){e(89),t.exports=e(1).Object.assign},function(t,n,e){e(90);var r=e(1).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(91);var r=e(1).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){e(92),t.exports=e(1).Object.setPrototypeOf},function(t,n,e){e(95),e(93),e(96),e(97),t.exports=e(1).Symbol},function(t,n,e){e(94),e(98),t.exports=e(36).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(8),o=e(87),i=e(86);t.exports=function(t){return function(n,e,a){var u,s=r(n),c=o(s.length),f=i(a,c);if(t&&e!=e){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(18),o=e(29),i=e(19);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var a,u=e(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&n.push(a);return n}},function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(41);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(28),o=e(20),i=e(30),a={};e(6)(a,e(9)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(a,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(21)("meta"),o=e(7),i=e(3),a=e(4).f,u=0,s=Object.isExtensible||function(){return!0},c=!e(11)(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){"use strict";var r=e(18),o=e(29),i=e(19),a=e(51),u=e(45),s=Object.assign;t.exports=!s||e(11)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=a(t),s=arguments.length,c=1,f=o.f,l=i.f;s>c;)for(var p,d=u(arguments[c++]),v=f?r(d).concat(f(d)):r(d),h=v.length,y=0;h>y;)l.call(d,p=v[y++])&&(e[p]=d[p]);return e}:s},function(t,n,e){var r=e(4),o=e(10),i=e(18);t.exports=e(2)?Object.defineProperties:function(t,n){o(t);for(var e,a=i(n),u=a.length,s=0;u>s;)r.f(t,e=a[s++],n[e]);return t}},function(t,n,e){var r=e(8),o=e(48).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,n,e){var r=e(3),o=e(51),i=e(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,n,e){var r=e(7),o=e(10),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(42)(Function.call,e(47).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(33),o=e(24);t.exports=function(t){return function(n,e){var i,a,u=String(o(n)),s=r(e),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,n,e){var r=e(33),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(72),o=e(78),i=e(26),a=e(8);t.exports=e(46)(Array,"Array",function(t,n){this._t=a(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(5);r(r.S+r.F,"Object",{assign:e(80)})},function(t,n,e){var r=e(5);r(r.S,"Object",{create:e(28)})},function(t,n,e){var r=e(5);r(r.S+r.F*!e(2),"Object",{defineProperty:e(4).f})},function(t,n,e){var r=e(5);r(r.S,"Object",{setPrototypeOf:e(84).set})},function(t,n){},function(t,n,e){"use strict";var r=e(85)(!0);e(46)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(0),o=e(3),i=e(2),a=e(5),u=e(50),s=e(79).KEY,c=e(11),f=e(32),l=e(30),p=e(21),d=e(9),v=e(36),h=e(35),y=e(74),m=e(76),b=e(10),E=e(7),g=e(8),_=e(34),x=e(20),O=e(28),T=e(82),w=e(47),k=e(4),S=e(18),A=w.f,L=k.f,j=T.f,P=r.Symbol,C=r.JSON,M=C&&C.stringify,N=d("_hidden"),R=d("toPrimitive"),D={}.propertyIsEnumerable,F=f("symbol-registry"),I=f("symbols"),W=f("op-symbols"),K=Object.prototype,V="function"==typeof P,G=r.QObject,q=!G||!G.prototype||!G.prototype.findChild,z=i&&c(function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=A(K,n);r&&delete K[n],L(t,n,e),r&&t!==K&&L(K,n,r)}:L,B=function(t){var n=I[t]=O(P.prototype);return n._k=t,n},U=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},H=function(t,n,e){return t===K&&H(W,n,e),b(t),n=_(n,!0),b(e),o(I,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=O(e,{enumerable:x(0,!1)})):(o(t,N)||L(t,N,x(1,{})),t[N][n]=!0),z(t,n,e)):L(t,n,e)},J=function(t,n){b(t);for(var e,r=y(n=g(n)),o=0,i=r.length;i>o;)H(t,e=r[o++],n[e]);return t},Y=function(t,n){return void 0===n?O(t):J(O(t),n)},Q=function(t){var n=D.call(this,t=_(t,!0));return!(this===K&&o(I,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(I,t)||o(this,N)&&this[N][t])||n)},$=function(t,n){if(t=g(t),n=_(n,!0),t!==K||!o(I,n)||o(W,n)){var e=A(t,n);return!e||!o(I,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},X=function(t){for(var n,e=j(g(t)),r=[],i=0;e.length>i;)o(I,n=e[i++])||n==N||n==s||r.push(n);return r},Z=function(t){for(var n,e=t===K,r=j(e?W:g(t)),i=[],a=0;r.length>a;)!o(I,n=r[a++])||e&&!o(K,n)||i.push(I[n]);return i};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===K&&n.call(W,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),z(this,t,x(1,e))};return i&&q&&z(K,t,{configurable:!0,set:n}),B(t)},u(P.prototype,"toString",function(){return this._k}),w.f=$,k.f=H,e(48).f=T.f=X,e(19).f=Q,e(29).f=Z,i&&!e(27)&&u(K,"propertyIsEnumerable",Q,!0),v.f=function(t){return B(d(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)d(tt[nt++]);for(var et=S(d.store),rt=0;et.length>rt;)h(et[rt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in F)if(F[n]===t)return n},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:Y,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),C&&a(a.S+a.F*(!V||c(function(){var t=P();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(E(n)||void 0!==t)&&!U(t))return m(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,M.apply(C,r)}}),P.prototype[R]||e(6)(P.prototype,R,P.prototype.valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(35)("asyncIterator")},function(t,n,e){e(35)("observable")},function(t,n,e){e(88);for(var r=e(0),o=e(6),i=e(26),a=e(9)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},function(t,n,e){"use strict";function r(t,n,e){t.addEventListener(n,e,!1)}function o(t,n,e){t.removeEventListener(n,e,!1)}var i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},a=[];"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var t=document.createElement("div"),n=t.style;"AnimationEvent"in window||delete i.animationend.animation,"TransitionEvent"in window||delete i.transitionend.transition;for(var e in i)if(i.hasOwnProperty(e)){var r=i[e];for(var o in r)if(o in n){a.push(r[o]);break}}}();var u={addEndEventListener:function(t,n){if(0===a.length)return void window.setTimeout(n,0);a.forEach(function(e){r(t,e,n)})},endEvents:a,removeEndEventListener:function(t,n){0!==a.length&&a.forEach(function(e){o(t,e,n)})}};n.a=u},function(t,n,e){"use strict";function r(t,n){for(var e=window.getComputedStyle(t,null),r="",o=0;o<d.length&&!(r=e.getPropertyValue(d[o]+n));o++);return r}function o(t){if(l){var n=parseFloat(r(t,"transition-delay"))||0,e=parseFloat(r(t,"transition-duration"))||0,o=parseFloat(r(t,"animation-delay"))||0,i=parseFloat(r(t,"animation-duration"))||0,a=Math.max(e+n,i+o);t.rcEndAnimTimeout=setTimeout(function(){t.rcEndAnimTimeout=null,t.rcEndListener&&t.rcEndListener()},1e3*a+200)}}function i(t){t.rcEndAnimTimeout&&(clearTimeout(t.rcEndAnimTimeout),t.rcEndAnimTimeout=null)}e.d(n,"a",function(){return l});var a=e(17),u=e.n(a),s=e(99),c=e(64),f=e.n(c),l=0!==s.a.endEvents.length,p=["Webkit","Moz","O","ms"],d=["-webkit-","-moz-","-o-","ms-",""],v=function(t,n,e){var r="object"===(void 0===n?"undefined":u()(n)),a=r?n.name:n,c=r?n.active:n+"-active",l=e,p=void 0,d=void 0,v=f()(t);return e&&"[object Object]"===Object.prototype.toString.call(e)&&(l=e.end,p=e.start,d=e.active),t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(n){n&&n.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),i(t),v.remove(a),v.remove(c),s.a.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,l&&l())},s.a.addEndEventListener(t,t.rcEndListener),p&&p(),v.add(a),t.rcAnimTimeout=setTimeout(function(){t.rcAnimTimeout=null,v.add(c),d&&setTimeout(d,0),o(t)},30),{stop:function(){t.rcEndListener&&t.rcEndListener()}}};v.style=function(t,n,e){t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(n){n&&n.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),i(t),s.a.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,e&&e())},s.a.addEndEventListener(t,t.rcEndListener),t.rcAnimTimeout=setTimeout(function(){for(var e in n)n.hasOwnProperty(e)&&(t.style[e]=n[e]);t.rcAnimTimeout=null,o(t)},0)},v.setTransition=function(t,n,e){var r=n,o=e;void 0===e&&(o=r,r=""),r=r||"",p.forEach(function(n){t.style[n+"Transition"+r]=o})},v.isCssAnimationSupported=l,n.b=v},function(t,n,e){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,n,e){"use strict";function r(t,n,e,r,i,a,u,s){if(o(n),!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[e,r,i,a,u,s],l=0;c=new Error(n.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};t.exports=r},function(t,n,e){"use strict";var r=e(101),o=e(102),i=e(104);t.exports=function(){function t(t,n,e,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return e.checkPropTypes=r,e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n,e){"use strict";function r(t){var n=t.children;return b.a.isValidElement(n)&&!n.key?b.a.cloneElement(n,{key:T}):n}function o(){}var i=e(38),a=e.n(i),u=e(23),s=e.n(u),c=e(13),f=e.n(c),l=e(14),p=e.n(l),d=e(16),v=e.n(d),h=e(15),y=e.n(h),m=e(12),b=e.n(m),E=e(22),g=e.n(E),_=e(107),x=e(106),O=e(52),T="rc_animate_"+Date.now(),w=function(t){function n(t){f()(this,n);var o=v()(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return k.call(o),o.currentlyAnimatingKeys={},o.keysToEnter=[],o.keysToLeave=[],o.state={children:e.i(_.a)(r(t))},o.childrenRefs={},o}return y()(n,t),p()(n,[{key:"componentDidMount",value:function(){var t=this,n=this.props.showProp,e=this.state.children;n&&(e=e.filter(function(t){return!!t.props[n]})),e.forEach(function(n){n&&t.performAppear(n.key)})}},{key:"componentWillReceiveProps",value:function(t){var n=this;this.nextProps=t;var o=e.i(_.a)(r(t)),i=this.props;i.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(t){n.stop(t)});var a=i.showProp,u=this.currentlyAnimatingKeys,c=i.exclusive?e.i(_.a)(r(i)):this.state.children,f=[];a?(c.forEach(function(t){var n=t&&e.i(_.b)(o,t.key),r=void 0;(r=n&&n.props[a]||!t.props[a]?n:b.a.cloneElement(n||t,s()({},a,!0)))&&f.push(r)}),o.forEach(function(t){t&&e.i(_.b)(c,t.key)||f.push(t)})):f=e.i(_.c)(c,o),this.setState({children:f}),o.forEach(function(t){var r=t&&t.key;if(!t||!u[r]){var o=t&&e.i(_.b)(c,r);if(a){var i=t.props[a];if(o){!e.i(_.d)(c,r,a)&&i&&n.keysToEnter.push(r)}else i&&n.keysToEnter.push(r)}else o||n.keysToEnter.push(r)}}),c.forEach(function(t){var r=t&&t.key;if(!t||!u[r]){var i=t&&e.i(_.b)(o,r);if(a){var s=t.props[a];if(i){!e.i(_.d)(o,r,a)&&s&&n.keysToLeave.push(r)}else s&&n.keysToLeave.push(r)}else i||n.keysToLeave.push(r)}})}},{key:"componentDidUpdate",value:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var n=this.keysToLeave;this.keysToLeave=[],n.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(t,n){var r=this.props.showProp;return r?e.i(_.d)(t,n,r):e.i(_.b)(t,n)}},{key:"stop",value:function(t){delete this.currentlyAnimatingKeys[t];var n=this.childrenRefs[t];n&&n.stop()}},{key:"render",value:function(){var t=this,n=this.props;this.nextProps=n;var e=this.state.children,r=null;e&&(r=e.map(function(e){if(null===e||void 0===e)return e;if(!e.key)throw new Error("must set key for <rc-animate> children");return b.a.createElement(x.a,{key:e.key,ref:function(n){return t.childrenRefs[e.key]=n},animation:n.animation,transitionName:n.transitionName,transitionEnter:n.transitionEnter,transitionAppear:n.transitionAppear,transitionLeave:n.transitionLeave},e)}));var o=n.component;if(o){var i=n;return"string"==typeof o&&(i=a()({className:n.className,style:n.style},n.componentProps)),b.a.createElement(o,i,r)}return r[0]||null}}]),n}(b.a.Component);w.isAnimate=!0,w.propTypes={component:g.a.any,componentProps:g.a.object,animation:g.a.object,transitionName:g.a.oneOfType([g.a.string,g.a.object]),transitionEnter:g.a.bool,transitionAppear:g.a.bool,exclusive:g.a.bool,transitionLeave:g.a.bool,onEnd:g.a.func,onEnter:g.a.func,onLeave:g.a.func,onAppear:g.a.func,showProp:g.a.string},w.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:o,onEnter:o,onLeave:o,onAppear:o};var k=function(){var t=this;this.performEnter=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillEnter(t.handleDoneAdding.bind(t,n,"enter")))},this.performAppear=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillAppear(t.handleDoneAdding.bind(t,n,"appear")))},this.handleDoneAdding=function(n,o){var i=t.props;if(delete t.currentlyAnimatingKeys[n],!i.exclusive||i===t.nextProps){var a=e.i(_.a)(r(i));t.isValidChildByKey(a,n)?"appear"===o?O.a.allowAppearCallback(i)&&(i.onAppear(n),i.onEnd(n,!0)):O.a.allowEnterCallback(i)&&(i.onEnter(n),i.onEnd(n,!0)):t.performLeave(n)}},this.performLeave=function(n){t.childrenRefs[n]&&(t.currentlyAnimatingKeys[n]=!0,t.childrenRefs[n].componentWillLeave(t.handleDoneLeaving.bind(t,n)))},this.handleDoneLeaving=function(n){var o=t.props;if(delete t.currentlyAnimatingKeys[n],!o.exclusive||o===t.nextProps){var i=e.i(_.a)(r(o));if(t.isValidChildByKey(i,n))t.performEnter(n);else{var a=function(){O.a.allowLeaveCallback(o)&&(o.onLeave(n),o.onEnd(n,!1))};e.i(_.e)(t.state.children,i,o.showProp)?a():t.setState({children:i},a)}}}};n.a=w},function(t,n,e){"use strict";var r=e(17),o=e.n(r),i=e(13),a=e.n(i),u=e(14),s=e.n(u),c=e(16),f=e.n(c),l=e(15),p=e.n(l),d=e(12),v=e.n(d),h=e(53),y=e.n(h),m=e(22),b=e.n(m),E=e(100),g=e(52),_={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},x=function(t){function n(){return a()(this,n),f()(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return p()(n,t),s()(n,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(t){g.a.isEnterSupported(this.props)?this.transition("enter",t):t()}},{key:"componentWillAppear",value:function(t){g.a.isAppearSupported(this.props)?this.transition("appear",t):t()}},{key:"componentWillLeave",value:function(t){g.a.isLeaveSupported(this.props)?this.transition("leave",t):t()}},{key:"transition",value:function(t,n){var r=this,i=y.a.findDOMNode(this),a=this.props,u=a.transitionName,s="object"===(void 0===u?"undefined":o()(u));this.stop();var c=function(){r.stopper=null,n()};if((E.a||!a.animation[t])&&u&&a[_[t]]){var f=s?u[t]:u+"-"+t,l=f+"-active";s&&u[t+"Active"]&&(l=u[t+"Active"]),this.stopper=e.i(E.b)(i,{name:f,active:l},c)}else this.stopper=a.animation[t](i,c)}},{key:"stop",value:function(){var t=this.stopper;t&&(this.stopper=null,t.stop())}},{key:"render",value:function(){return this.props.children}}]),n}(v.a.Component);x.propTypes={children:b.a.any},n.a=x},function(t,n,e){"use strict";function r(t){var n=[];return c.a.Children.forEach(t,function(t){n.push(t)}),n}function o(t,n){var e=null;return t&&t.forEach(function(t){e||t&&t.key===n&&(e=t)}),e}function i(t,n,e){var r=null;return t&&t.forEach(function(t){if(t&&t.key===n&&t.props[e]){if(r)throw new Error("two child with same key for <rc-animate> children");r=t}}),r}function a(t,n,e){var r=t.length===n.length;return r&&t.forEach(function(t,o){var i=n[o];t&&i&&(t&&!i||!t&&i?r=!1:t.key!==i.key?r=!1:e&&t.props[e]!==i.props[e]&&(r=!1))}),r}function u(t,n){var e=[],r={},i=[];return t.forEach(function(t){t&&o(n,t.key)?i.length&&(r[t.key]=i,i=[]):i.push(t)}),n.forEach(function(t){t&&r.hasOwnProperty(t.key)&&(e=e.concat(r[t.key])),e.push(t)}),e=e.concat(i)}n.a=r,n.b=o,n.d=i,n.e=a,n.c=u;var s=e(12),c=e.n(s)},function(t,n,e){"use strict";function r(){var t=[].slice.call(arguments,0);return 1===t.length?t[0]:function(){for(var n=0;n<t.length;n++)t[n]&&t[n].apply&&t[n].apply(this,arguments)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,t.exports=n.default},function(t,n,e){e(55),t.exports=e(54)}])});

@@ -47,2 +47,9 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
if (this.props.duration !== prevProps.duration) {
this.restartCloseTimer();
}
}
}, {
key: 'componentWillUnmount',

@@ -53,2 +60,8 @@ value: function componentWillUnmount() {

}, {
key: 'restartCloseTimer',
value: function restartCloseTimer() {
this.clearCloseTimer();
this.startCloseTimer();
}
}, {
key: 'render',

@@ -55,0 +68,0 @@ value: function render() {

@@ -43,9 +43,15 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';

var notices = previousState.notices;
if (!notices.filter(function (v) {
return v.key === key;
}).length) {
return {
notices: notices.concat(notice)
};
var noticeIndex = notices.map(function (v) {
return v.key;
}).indexOf(key);
var updatedNotices = void 0;
if (noticeIndex === -1) {
updatedNotices = notices.concat(notice);
} else {
updatedNotices = notices.concat();
updatedNotices.splice(noticeIndex, 1, notice);
}
return {
notices: updatedNotices
};
});

@@ -52,0 +58,0 @@ }, _this.remove = function (key) {

@@ -78,2 +78,9 @@ 'use strict';

}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
if (this.props.duration !== prevProps.duration) {
this.restartCloseTimer();
}
}
}, {
key: 'componentWillUnmount',

@@ -84,2 +91,8 @@ value: function componentWillUnmount() {

}, {
key: 'restartCloseTimer',
value: function restartCloseTimer() {
this.clearCloseTimer();
this.startCloseTimer();
}
}, {
key: 'render',

@@ -86,0 +99,0 @@ value: function render() {

@@ -92,9 +92,15 @@ 'use strict';

var notices = previousState.notices;
if (!notices.filter(function (v) {
return v.key === key;
}).length) {
return {
notices: notices.concat(notice)
};
var noticeIndex = notices.map(function (v) {
return v.key;
}).indexOf(key);
var updatedNotices = void 0;
if (noticeIndex === -1) {
updatedNotices = notices.concat(notice);
} else {
updatedNotices = notices.concat();
updatedNotices.splice(noticeIndex, 1, notice);
}
return {
notices: updatedNotices
};
});

@@ -101,0 +107,0 @@ }, _this.remove = function (key) {

{
"name": "rc-notification",
"version": "3.0.1",
"version": "3.1.0",
"description": "notification ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc