New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-toastify

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-toastify - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

2

dist/ReactToastify.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("classnames"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","classnames","react-dom"],e):"object"==typeof exports?exports.ReactToastify=e(require("prop-types"),require("react"),require("classnames"),require("react-dom")):t.ReactToastify=e(t["prop-types"],t.react,t.classnames,t["react-dom"])}(window,function(t,e,n,o){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";function o(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function r(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function s(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function i(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,i=null,a=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?a="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=t.displayName||t.name,u="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=o,e.componentWillReceiveProps=r),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=s;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}n.r(e),n.d(e,"polyfill",function(){return i}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=l(n(0)),s=l(n(1)),i=n(3),a=n(6);function l(t){return t&&t.__esModule?t:{default:t}}var u=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},c=(r.default.any,r.default.node,r.default.bool,r.default.bool,r.default.bool,r.default.func,function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),s=r.handleExited.bind(r);return r.state={handleExited:s,firstRender:!0},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},e.prototype.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(t,e){var n=e.children,o=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,o):(0,a.getNextChildMapping)(t,n,o),firstRender:!1}},e.prototype.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.setState(function(e){var n=o({},e.children);return delete n[t.key],{children:n}}))},e.prototype.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["component","childFactory"]),r=u(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?r:s.default.createElement(e,o,r)},e}(s.default.Component));c.childContextTypes={transitionGroup:r.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(t){return t}},e.default=(0,i.polyfill)(c),t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),r=a(n(1)),s=a(n(7)),i=n(3);n(8);function a(t){return t&&t.__esModule?t:{default:t}}var l=e.UNMOUNTED="unmounted",u=e.EXITED="exited",c=e.ENTERING="entering",p=e.ENTERED="entered",f=e.EXITING="exiting",d=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),s=o.transitionGroup,i=s&&!s.isMounting?n.enter:n.appear,a=void 0;return r.appearStatus=null,n.in?i?(a=u,r.appearStatus=c):a=p:a=n.unmountOnExit||n.mountOnEnter?l:u,r.state={status:a},r.nextCallback=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:u}:null},e.prototype.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.prototype.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==p&&(e=c):n!==c&&n!==p||(e=f)}this.updateStatus(!1,e)},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,o=void 0;return e=n=o=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,o=t.appear),{exit:e,enter:n,appear:o}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(null!==e){this.cancelNextCallback();var n=s.default.findDOMNode(this);e===c?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},e.prototype.performEnter=function(t,e){var n=this,o=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,s=this.getTimeouts();e||o?(this.props.onEnter(t,r),this.safeSetState({status:c},function(){n.props.onEntering(t,r),n.onTransitionEnd(t,s.enter,function(){n.safeSetState({status:p},function(){n.props.onEntered(t,r)})})})):this.safeSetState({status:p},function(){n.props.onEntered(t)})},e.prototype.performExit=function(t){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:f},function(){e.props.onExiting(t),e.onTransitionEnd(t,o.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(t)})})})):this.safeSetState({status:u},function(){e.props.onExited(t)})},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===l)return null;var e=this.props,n=e.children,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var s=r.default.Children.only(n);return r.default.cloneElement(s,o)},e}(r.default.Component);function h(){}d.contextTypes={transitionGroup:o.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4,e.default=(0,i.polyfill)(d)},function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=s,e.getInitialChildMapping=function(t,e){return r(t.children,function(n){return(0,o.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:i(n,"appear",t),enter:i(n,"enter",t),exit:i(n,"exit",t)})})},e.getNextChildMapping=function(t,e,n){var a=r(t.children),l=s(e,a);return Object.keys(l).forEach(function(r){var s=l[r];if((0,o.isValidElement)(s)){var u=r in e,c=r in a,p=e[r],f=(0,o.isValidElement)(p)&&!p.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,o.isValidElement)(p)&&(l[r]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:p.props.in,exit:i(s,"exit",t),enter:i(s,"enter",t)})):l[r]=(0,o.cloneElement)(s,{in:!1}):l[r]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:i(s,"exit",t),enter:i(s,"enter",t)})}}),l};var o=n(1);function r(t,e){var n=Object.create(null);return t&&o.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=function(t){return e&&(0,o.isValidElement)(t)?e(t):t}(t)}),n}function s(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var o=Object.create(null),r=[];for(var s in t)s in e?r.length&&(o[s]=r,r=[]):r.push(s);var i=void 0,a={};for(var l in e){if(o[l])for(i=0;i<o[l].length;i++){var u=o[l][i];a[o[l][i]]=n(u)}a[l]=n(l)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function i(t,e,n){return null!=n[e]?n[e]:t.props[e]}},function(t,e){t.exports=o},function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,e.transitionTimeout=function(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}};var o=function(t){return t&&t.__esModule?t:{default:t}}(n(0));e.timeoutsShape=o.default.oneOfType([o.default.number,o.default.shape({enter:o.default.number,exit:o.default.number}).isRequired]),e.classNamesShape=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,exit:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterDone:o.default.string,enterActive:o.default.string,exit:o.default.string,exitDone:o.default.string,exitActive:o.default.string})])},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n.n(o),s=n(0),i=n.n(s),a=n(2),l=n.n(a),u=n(4),c=n.n(u),p={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},f={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},d={SHOW:0,CLEAR:1,DID_MOUNT:2,WILL_UNMOUNT:3,ON_CHANGE:4};function h(t){return"number"==typeof t&&!isNaN(t)&&t>0}function y(t){return Object.keys(t).map(function(e){return t[e]})}function g(t){return t.isRequired=function(e,n,o){if(void 0===e[n])return new Error("The prop "+n+" is marked as required in \n "+o+", but its value is undefined.");t(e,n,o)},t}var m=g(function(t,e,n){var o=t[e];return!1===o||h(o)?null:new Error(n+" expect "+e+" \n to be a valid Number > 0 or equal to false. "+o+" given.")}),b=g(function(t,e,n){var r=t[e];return!1===r||Object(o.isValidElement)(r)?null:new Error(n+" expect "+e+" \n to be a valid react element or equal to false. "+r+" given.")});function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function E(t){var e,n=t.delay,o=t.isRunning,s=t.closeToast,i=t.type,a=t.hide,u=t.className,c=t.style,p=t.controlledProgress,f=t.progress,d=t.isProgressDone,h=t.rtl,y=v({},c,{animationDuration:n+"ms",animationPlayState:o?"running":"paused",opacity:a?0:1,transform:p?"scaleX("+f+")":null}),g=l()("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":h},u),m=((e={})[p&&d?"onTransitionEnd":"onAnimationEnd"]=p&&!d?null:s,e);return r.a.createElement("div",v({className:g,style:y},m))}E.propTypes={delay:m.isRequired,isRunning:i.a.bool.isRequired,closeToast:i.a.func.isRequired,rtl:i.a.bool.isRequired,type:i.a.string,hide:i.a.bool,className:i.a.oneOfType([i.a.string,i.a.object]),progress:i.a.number,controlledProgress:i.a.bool,isProgressDone:i.a.bool},E.defaultProps={type:f.DEFAULT,hide:!1};var T=E;function O(){return(O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function x(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}var C=function(){},_=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={isRunning:!0,preventExitTransition:!1},e.flag={canCloseOnClick:!0,canDrag:!1},e.drag={start:0,x:0,y:0,deltaX:0,removalDistance:0},e.ref=null,e.pauseToast=function(){e.props.autoClose&&e.setState({isRunning:!1})},e.playToast=function(){e.props.autoClose&&e.setState({isRunning:!0})},e.onDragStart=function(t){e.flag.canCloseOnClick=!0,e.flag.canDrag=!0,e.ref.style.transition="",e.drag.start=e.drag.x=x(t.nativeEvent),e.drag.removalDistance=e.ref.offsetWidth*(e.props.draggablePercent/100)},e.onDragMove=function(t){e.flag.canDrag&&(e.state.isRunning&&e.pauseToast(),e.drag.x=x(t),e.drag.deltaX=e.drag.x-e.drag.start,e.drag.start!==e.drag.x&&(e.flag.canCloseOnClick=!1),e.ref.style.transform="translateX("+e.drag.deltaX+"px)",e.ref.style.opacity=1-Math.abs(e.drag.deltaX/e.drag.removalDistance))},e.onDragEnd=function(t){if(e.flag.canDrag){if(e.flag.canDrag=!1,Math.abs(e.drag.deltaX)>e.drag.removalDistance)return void e.setState({preventExitTransition:!0},e.props.closeToast);e.drag.y=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}(t),e.ref.style.transition="transform 0.2s, opacity 0.2s",e.ref.style.transform="translateX(0)",e.ref.style.opacity=1}},e.onDragTransitionEnd=function(){var t=e.ref.getBoundingClientRect(),n=t.top,o=t.bottom,r=t.left,s=t.right;e.props.pauseOnHover&&e.drag.x>=r&&e.drag.x<=s&&e.drag.y>=n&&e.drag.y<=o?e.pauseToast():e.playToast()},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(t){t.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),t.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var t=this,e=this.props,n=e.closeButton,o=e.children,s=e.autoClose,i=e.pauseOnHover,a=e.closeOnClick,u=e.type,c=e.hideProgressBar,p=e.closeToast,f=e.transition,d=e.position,h=e.onExited,y=e.className,g=e.bodyClassName,m=e.progressClassName,b=e.progressStyle,v=e.updateId,E=e.role,x=e.progress,C=e.isProgressDone,_=e.rtl,N={className:l()("Toastify__toast","Toastify__toast--"+u,{"Toastify__toast--rtl":_},y)};s&&i&&(N.onMouseEnter=this.pauseToast,N.onMouseLeave=this.playToast),a&&(N.onClick=function(){return t.flag.canCloseOnClick&&p()});var S=parseFloat(x)===x;return r.a.createElement(f,{in:this.props.in,appear:!0,unmountOnExit:!0,onExited:h,position:d,preventExitTransition:this.state.preventExitTransition},r.a.createElement("div",O({},N,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onTransitionEnd:this.onDragTransitionEnd}),r.a.createElement("div",O({},this.props.in&&{role:E},{className:l()("Toastify__toast-body",g)}),o),n&&n,(s||S)&&r.a.createElement(T,O({},v&&!S?{key:"pb-"+v}:{},{rtl:_,delay:s,isRunning:this.state.isRunning,closeToast:p,hide:c,type:u,style:b,className:m,controlledProgress:S,isProgressDone:C,progress:x}))))},e}(o.Component);_.propTypes={closeButton:b.isRequired,autoClose:m.isRequired,children:i.a.node.isRequired,closeToast:i.a.func.isRequired,position:i.a.oneOf(y(p)).isRequired,pauseOnHover:i.a.bool.isRequired,pauseOnFocusLoss:i.a.bool.isRequired,closeOnClick:i.a.bool.isRequired,transition:i.a.func.isRequired,rtl:i.a.bool.isRequired,hideProgressBar:i.a.bool.isRequired,draggable:i.a.bool.isRequired,draggablePercent:i.a.number.isRequired,in:i.a.bool,onExited:i.a.func,onOpen:i.a.func,onClose:i.a.func,type:i.a.oneOf(y(f)),className:i.a.oneOfType([i.a.string,i.a.object]),bodyClassName:i.a.oneOfType([i.a.string,i.a.object]),progressClassName:i.a.oneOfType([i.a.string,i.a.object]),progressStyle:i.a.object,progress:i.a.number,isProgressDone:i.a.bool,updateId:i.a.oneOfType([i.a.string,i.a.number]),ariaLabel:i.a.string},_.defaultProps={type:f.DEFAULT,in:!0,onOpen:C,onClose:C,className:null,bodyClassName:null,progressClassName:null,updateId:null,role:"alert"};var N=_;function S(t){var e=t.closeToast,n=t.type,o=t.ariaLabel;return r.a.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:e,"aria-label":o},"✖")}S.propTypes={closeToast:i.a.func,arialLabel:i.a.string},S.defaultProps={ariaLabel:"close"};var D=S,P=n(5),w=n.n(P);function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var j=function(){},M=function(t){var e=t.enter,n=t.exit,o=t.duration,s=void 0===o?750:o,i=t.appendPosition,a=void 0!==i&&i;return function(t){var o,i,l=t.children,u=t.position,c=t.preventExitTransition,p=function(t,e){if(null==t)return{};var n,o,r={},s=Object.keys(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,["children","position","preventExitTransition"]),f=a?e+"--"+u:e,d=a?n+"--"+u:n;Array.isArray(s)&&2===s.length?(o=s[0],i=s[1]):o=i=s;return r.a.createElement(w.a,R({},p,{timeout:c?0:{enter:o,exit:i},onEnter:function(t){t.classList.add(f),t.style.animationFillMode="forwards",t.style.animationDuration=.001*o+"s"},onEntered:function(t){t.classList.remove(f),t.style.cssText=""},onExit:c?j:function(t){t.classList.add(d),t.style.animationFillMode="forwards",t.style.animationDuration=.001*i+"s"}}),l)}},I=M({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),k=M({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),L=M({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),F=M({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"}),U={list:new Map,on:function(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off:function(t){return this.list.delete(t),this},emit:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return!!this.list.has(t)&&(this.list.get(t).forEach(function(t){return setTimeout(function(){return t.call.apply(t,[null].concat(n))},0)}),!0)}};function A(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function W(){return(W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var q=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={toast:[]},e.toastKey=0,e.collection={},e.isToastActive=function(t){return-1!==e.state.toast.indexOf(t)},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this;U.on(d.SHOW,function(e,n){return t.show(e,n)}).on(d.CLEAR,function(e){return e?t.removeToast(e):t.clear()}).emit(d.DID_MOUNT,this)},n.componentWillUnmount=function(){U.off(d.SHOW).off(d.CLEAR).emit(d.WILL_UNMOUNT)},n.removeToast=function(t){this.setState({toast:this.state.toast.filter(function(e){return e!==t})},this.dispatchChange)},n.dispatchChange=function(){U.emit(d.ON_CHANGE,this.state.toast.length)},n.makeCloseButton=function(t,e,n){var r=this,s=this.props.closeButton;return(Object(o.isValidElement)(t)||!1===t)&&(s=t),!1!==s&&Object(o.cloneElement)(s,{closeToast:function(){return r.removeToast(e)},type:n})},n.getAutoCloseDelay=function(t){return!1===t||h(t)?t:this.props.autoClose},n.canBeRendered=function(t){return Object(o.isValidElement)(t)||"string"==typeof t||"number"==typeof t||"function"==typeof t},n.parseClassName=function(t){return"string"==typeof t?t:null!==t&&"object"==typeof t&&"toString"in t?t.toString():null},n.show=function(t,e){var n,r=this;if(!this.canBeRendered(t))throw new Error("The element you provided cannot be rendered. You provided an element of type "+typeof t);var s=e.toastId,i=function(){return r.removeToast(s)},a={id:s,key:e.key||this.toastKey++,type:e.type,closeToast:i,updateId:e.updateId,rtl:this.props.rtl,position:e.position||this.props.position,transition:e.transition||this.props.transition,className:this.parseClassName(e.className||this.props.toastClassName),bodyClassName:this.parseClassName(e.bodyClassName||this.props.bodyClassName),closeButton:this.makeCloseButton(e.closeButton,s,e.type),pauseOnHover:"boolean"==typeof e.pauseOnHover?e.pauseOnHover:this.props.pauseOnHover,pauseOnFocusLoss:"boolean"==typeof e.pauseOnFocusLoss?e.pauseOnFocusLoss:this.props.pauseOnFocusLoss,draggable:"boolean"==typeof e.draggable?e.draggable:this.props.draggable,draggablePercent:"number"!=typeof e.draggablePercent||isNaN(e.draggablePercent)?this.props.draggablePercent:e.draggablePercent,closeOnClick:"boolean"==typeof e.closeOnClick?e.closeOnClick:this.props.closeOnClick,progressClassName:this.parseClassName(e.progressClassName||this.props.progressClassName),progressStyle:this.props.progressStyle,autoClose:this.getAutoCloseDelay(e.autoClose),hideProgressBar:"boolean"==typeof e.hideProgressBar?e.hideProgressBar:this.props.hideProgressBar,progress:Number.parseFloat(e.progress),isProgressDone:e.isProgressDone};"function"==typeof e.onOpen&&(a.onOpen=e.onOpen),"function"==typeof e.onClose&&(a.onClose=e.onClose),Object(o.isValidElement)(t)&&"string"!=typeof t.type&&"number"!=typeof t.type?t=Object(o.cloneElement)(t,{closeToast:i}):"function"==typeof t&&(t=t({closeToast:i})),this.collection=W({},this.collection,((n={})[s]={position:a.position,options:a,content:t},n)),this.setState({toast:(a.updateId?A(this.state.toast):A(this.state.toast).concat([s])).filter(function(t){return t!==e.staleToastId})},this.dispatchChange)},n.makeToast=function(t,e){return r.a.createElement(N,W({},e,{isDocumentHidden:this.state.isDocumentHidden,key:"toast-"+e.key}),t)},n.clear=function(){this.setState({toast:[]})},n.renderToast=function(){var t=this,e={},n=this.props,o=n.className,s=n.style;return(n.newestOnTop?Object.keys(this.collection).reverse():Object.keys(this.collection)).forEach(function(n){var o=t.collection[n],r=o.position,s=o.options,i=o.content;e[r]||(e[r]=[]),-1!==t.state.toast.indexOf(s.id)?e[r].push(t.makeToast(i,s)):(e[r].push(null),delete t.collection[n])}),Object.keys(e).map(function(n){var i=1===e[n].length&&null===e[n][0],a={className:l()("Toastify__toast-container","Toastify__toast-container--"+n,{"Toastify__toast-container--rtl":t.props.rtl},t.parseClassName(o)),style:i?W({},s,{pointerEvents:"none"}):W({},s)};return r.a.createElement(c.a,W({},a,{key:"container-"+n}),e[n])})},n.render=function(){return r.a.createElement("div",{className:"Toastify"},this.renderToast())},e}(o.Component);q.propTypes={position:i.a.oneOf(y(p)),autoClose:m,closeButton:b,hideProgressBar:i.a.bool,pauseOnHover:i.a.bool,closeOnClick:i.a.bool,newestOnTop:i.a.bool,className:i.a.oneOfType([i.a.string,i.a.object]),style:i.a.object,toastClassName:i.a.oneOfType([i.a.string,i.a.object]),bodyClassName:i.a.oneOfType([i.a.string,i.a.object]),progressClassName:i.a.oneOfType([i.a.string,i.a.object]),progressStyle:i.a.object,transition:i.a.func,rtl:i.a.bool,draggable:i.a.bool,draggablePercent:i.a.number,pauseOnFocusLoss:i.a.bool},q.defaultProps={position:p.TOP_RIGHT,transition:I,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:r.a.createElement(D,null),pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,className:null,style:null,toastClassName:null,bodyClassName:null,progressClassName:null,progressStyle:null};var B=q;function G(){return(G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var H=null,X=[],V=function(){return!1};function Y(t,e){return G({},t,{type:e,toastId:function(t){if(t&&("string"==typeof t.toastId||"number"==typeof t.toastId&&!isNaN(t.toastId)))return t.toastId;return z()}(t)})}function z(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function K(t,e){return null!==H?U.emit(d.SHOW,t,e):X.push({action:d.SHOW,content:t,options:e}),e.toastId}var Z=G(function(t,e){return K(t,Y(e,e&&e.type||f.DEFAULT))},{success:function(t,e){return K(t,Y(e,f.SUCCESS))},info:function(t,e){return K(t,Y(e,f.INFO))},warn:function(t,e){return K(t,Y(e,f.WARNING))},warning:function(t,e){return K(t,Y(e,f.WARNING))},error:function(t,e){return K(t,Y(e,f.ERROR))},dismiss:function(t){return void 0===t&&(t=null),H&&U.emit(d.CLEAR,t)},isActive:V,update:function(t,e){setTimeout(function(){if(H&&void 0!==H.collection[t]){var n=H.collection[t],o=n.options,r=n.content,s=G({},o,e,{toastId:e.toastId||t});e.toastId&&e.toastId!==t?s.staleToastId=t:s.updateId=z();var i=void 0!==s.render?s.render:r;delete s.render,K(i,s)}},0)},done:function(t,e){void 0===e&&(e=1),Z.update(t,{progress:e,isProgressDone:!0})},onChange:function(t){"function"==typeof t&&U.on(d.ON_CHANGE,t)},POSITION:p,TYPE:f});U.on(d.DID_MOUNT,function(t){H=t,Z.isActive=function(t){return H.isToastActive(t)},X.forEach(function(t){U.emit(t.action,t.content,t.options)}),X=[]}).on(d.WILL_UNMOUNT,function(){H=null,Z.isActive=V});var J=Z;n.d(e,"ToastContainer",function(){return B}),n.d(e,"toast",function(){return J}),n.d(e,"cssTransition",function(){return M}),n.d(e,"Bounce",function(){return I}),n.d(e,"Slide",function(){return k}),n.d(e,"Zoom",function(){return L}),n.d(e,"Flip",function(){return F}),n.d(e,"ToastPosition",function(){return p}),n.d(e,"ToastType",function(){return f})}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("classnames"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","classnames","react-dom"],e):"object"==typeof exports?exports.ReactToastify=e(require("prop-types"),require("react"),require("classnames"),require("react-dom")):t.ReactToastify=e(t["prop-types"],t.react,t.classnames,t["react-dom"])}(window,function(t,e,n,o){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";function o(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function r(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function s(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function i(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,i=null,a=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?a="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=t.displayName||t.name,u="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=o,e.componentWillReceiveProps=r),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=s;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}n.r(e),n.d(e,"polyfill",function(){return i}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=l(n(0)),s=l(n(1)),i=n(3),a=n(6);function l(t){return t&&t.__esModule?t:{default:t}}var u=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},c=(r.default.any,r.default.node,r.default.bool,r.default.bool,r.default.bool,r.default.func,function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),s=r.handleExited.bind(r);return r.state={handleExited:s,firstRender:!0},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},e.prototype.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(t,e){var n=e.children,o=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,o):(0,a.getNextChildMapping)(t,n,o),firstRender:!1}},e.prototype.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.setState(function(e){var n=o({},e.children);return delete n[t.key],{children:n}}))},e.prototype.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["component","childFactory"]),r=u(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?r:s.default.createElement(e,o,r)},e}(s.default.Component));c.childContextTypes={transitionGroup:r.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(t){return t}},e.default=(0,i.polyfill)(c),t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),r=a(n(1)),s=a(n(7)),i=n(3);n(8);function a(t){return t&&t.__esModule?t:{default:t}}var l=e.UNMOUNTED="unmounted",u=e.EXITED="exited",c=e.ENTERING="entering",p=e.ENTERED="entered",f=e.EXITING="exiting",d=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),s=o.transitionGroup,i=s&&!s.isMounting?n.enter:n.appear,a=void 0;return r.appearStatus=null,n.in?i?(a=u,r.appearStatus=c):a=p:a=n.unmountOnExit||n.mountOnEnter?l:u,r.state={status:a},r.nextCallback=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:u}:null},e.prototype.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.prototype.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==p&&(e=c):n!==c&&n!==p||(e=f)}this.updateStatus(!1,e)},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,o=void 0;return e=n=o=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,o=t.appear),{exit:e,enter:n,appear:o}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(null!==e){this.cancelNextCallback();var n=s.default.findDOMNode(this);e===c?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},e.prototype.performEnter=function(t,e){var n=this,o=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,s=this.getTimeouts();e||o?(this.props.onEnter(t,r),this.safeSetState({status:c},function(){n.props.onEntering(t,r),n.onTransitionEnd(t,s.enter,function(){n.safeSetState({status:p},function(){n.props.onEntered(t,r)})})})):this.safeSetState({status:p},function(){n.props.onEntered(t)})},e.prototype.performExit=function(t){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:f},function(){e.props.onExiting(t),e.onTransitionEnd(t,o.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(t)})})})):this.safeSetState({status:u},function(){e.props.onExited(t)})},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===l)return null;var e=this.props,n=e.children,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var s=r.default.Children.only(n);return r.default.cloneElement(s,o)},e}(r.default.Component);function h(){}d.contextTypes={transitionGroup:o.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4,e.default=(0,i.polyfill)(d)},function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=s,e.getInitialChildMapping=function(t,e){return r(t.children,function(n){return(0,o.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:i(n,"appear",t),enter:i(n,"enter",t),exit:i(n,"exit",t)})})},e.getNextChildMapping=function(t,e,n){var a=r(t.children),l=s(e,a);return Object.keys(l).forEach(function(r){var s=l[r];if((0,o.isValidElement)(s)){var u=r in e,c=r in a,p=e[r],f=(0,o.isValidElement)(p)&&!p.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,o.isValidElement)(p)&&(l[r]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:p.props.in,exit:i(s,"exit",t),enter:i(s,"enter",t)})):l[r]=(0,o.cloneElement)(s,{in:!1}):l[r]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:i(s,"exit",t),enter:i(s,"enter",t)})}}),l};var o=n(1);function r(t,e){var n=Object.create(null);return t&&o.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=function(t){return e&&(0,o.isValidElement)(t)?e(t):t}(t)}),n}function s(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var o=Object.create(null),r=[];for(var s in t)s in e?r.length&&(o[s]=r,r=[]):r.push(s);var i=void 0,a={};for(var l in e){if(o[l])for(i=0;i<o[l].length;i++){var u=o[l][i];a[o[l][i]]=n(u)}a[l]=n(l)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function i(t,e,n){return null!=n[e]?n[e]:t.props[e]}},function(t,e){t.exports=o},function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,e.transitionTimeout=function(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}};var o=function(t){return t&&t.__esModule?t:{default:t}}(n(0));e.timeoutsShape=o.default.oneOfType([o.default.number,o.default.shape({enter:o.default.number,exit:o.default.number}).isRequired]),e.classNamesShape=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,exit:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterDone:o.default.string,enterActive:o.default.string,exit:o.default.string,exitDone:o.default.string,exitActive:o.default.string})])},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n.n(o),s=n(0),i=n.n(s),a=n(2),l=n.n(a),u=n(4),c=n.n(u),p={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},f={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},d={SHOW:0,CLEAR:1,DID_MOUNT:2,WILL_UNMOUNT:3,ON_CHANGE:4};function h(t){return"number"==typeof t&&!isNaN(t)&&t>0}function y(t){return Object.keys(t).map(function(e){return t[e]})}function g(t){return t.isRequired=function(e,n,o){if(void 0===e[n])return new Error("The prop "+n+" is marked as required in \n "+o+", but its value is undefined.");t(e,n,o)},t}var m=g(function(t,e,n){var o=t[e];return!1===o||h(o)?null:new Error(n+" expect "+e+" \n to be a valid Number > 0 or equal to false. "+o+" given.")}),b=g(function(t,e,n){var r=t[e];return!1===r||Object(o.isValidElement)(r)?null:new Error(n+" expect "+e+" \n to be a valid react element or equal to false. "+r+" given.")});function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function E(t){var e,n=t.delay,o=t.isRunning,s=t.closeToast,i=t.type,a=t.hide,u=t.className,c=t.style,p=t.controlledProgress,f=t.progress,d=t.isProgressDone,h=t.rtl,y=v({},c,{animationDuration:n+"ms",animationPlayState:o?"running":"paused",opacity:a?0:1,transform:p?"scaleX("+f+")":null}),g=l()("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":h},u),m=((e={})[p&&d?"onTransitionEnd":"onAnimationEnd"]=p&&!d?null:s,e);return r.a.createElement("div",v({className:g,style:y},m))}E.propTypes={delay:m.isRequired,isRunning:i.a.bool.isRequired,closeToast:i.a.func.isRequired,rtl:i.a.bool.isRequired,type:i.a.string,hide:i.a.bool,className:i.a.oneOfType([i.a.string,i.a.object]),progress:i.a.number,controlledProgress:i.a.bool,isProgressDone:i.a.bool},E.defaultProps={type:f.DEFAULT,hide:!1};var T=E;function O(){return(O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function x(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}var C=function(){},_=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={isRunning:!0,preventExitTransition:!1},e.flag={canCloseOnClick:!0,canDrag:!1},e.drag={start:0,x:0,y:0,deltaX:0,removalDistance:0},e.ref=null,e.pauseToast=function(){e.props.autoClose&&e.setState({isRunning:!1})},e.playToast=function(){e.props.autoClose&&e.setState({isRunning:!0})},e.onDragStart=function(t){e.flag.canCloseOnClick=!0,e.flag.canDrag=!0,e.ref.style.transition="",e.drag.start=e.drag.x=x(t.nativeEvent),e.drag.removalDistance=e.ref.offsetWidth*(e.props.draggablePercent/100)},e.onDragMove=function(t){e.flag.canDrag&&(e.state.isRunning&&e.pauseToast(),e.drag.x=x(t),e.drag.deltaX=e.drag.x-e.drag.start,e.drag.start!==e.drag.x&&(e.flag.canCloseOnClick=!1),e.ref.style.transform="translateX("+e.drag.deltaX+"px)",e.ref.style.opacity=1-Math.abs(e.drag.deltaX/e.drag.removalDistance))},e.onDragEnd=function(t){if(e.flag.canDrag){if(e.flag.canDrag=!1,Math.abs(e.drag.deltaX)>e.drag.removalDistance)return void e.setState({preventExitTransition:!0},e.props.closeToast);e.drag.y=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}(t),e.ref.style.transition="transform 0.2s, opacity 0.2s",e.ref.style.transform="translateX(0)",e.ref.style.opacity=1}},e.onDragTransitionEnd=function(){var t=e.ref.getBoundingClientRect(),n=t.top,o=t.bottom,r=t.left,s=t.right;e.props.pauseOnHover&&e.drag.x>=r&&e.drag.x<=s&&e.drag.y>=n&&e.drag.y<=o?e.pauseToast():e.playToast()},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(t){t.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),t.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var t=this,e=this.props,n=e.closeButton,o=e.children,s=e.autoClose,i=e.pauseOnHover,a=e.closeOnClick,u=e.type,c=e.hideProgressBar,p=e.closeToast,f=e.transition,d=e.position,h=e.onExited,y=e.className,g=e.bodyClassName,m=e.progressClassName,b=e.progressStyle,v=e.updateId,E=e.role,x=e.progress,C=e.isProgressDone,_=e.rtl,N={className:l()("Toastify__toast","Toastify__toast--"+u,{"Toastify__toast--rtl":_},y)};s&&i&&(N.onMouseEnter=this.pauseToast,N.onMouseLeave=this.playToast),a&&(N.onClick=function(){return t.flag.canCloseOnClick&&p()});var S=parseFloat(x)===x;return r.a.createElement(f,{in:this.props.in,appear:!0,unmountOnExit:!0,onExited:h,position:d,preventExitTransition:this.state.preventExitTransition},r.a.createElement("div",O({},N,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onTransitionEnd:this.onDragTransitionEnd}),r.a.createElement("div",O({},this.props.in&&{role:E},{className:l()("Toastify__toast-body",g)}),o),n&&n,(s||S)&&r.a.createElement(T,O({},v&&!S?{key:"pb-"+v}:{},{rtl:_,delay:s,isRunning:this.state.isRunning,closeToast:p,hide:c,type:u,style:b,className:m,controlledProgress:S,isProgressDone:C,progress:x}))))},e}(o.Component);_.propTypes={closeButton:b.isRequired,autoClose:m.isRequired,children:i.a.node.isRequired,closeToast:i.a.func.isRequired,position:i.a.oneOf(y(p)).isRequired,pauseOnHover:i.a.bool.isRequired,pauseOnFocusLoss:i.a.bool.isRequired,closeOnClick:i.a.bool.isRequired,transition:i.a.func.isRequired,rtl:i.a.bool.isRequired,hideProgressBar:i.a.bool.isRequired,draggable:i.a.bool.isRequired,draggablePercent:i.a.number.isRequired,in:i.a.bool,onExited:i.a.func,onOpen:i.a.func,onClose:i.a.func,type:i.a.oneOf(y(f)),className:i.a.oneOfType([i.a.string,i.a.object]),bodyClassName:i.a.oneOfType([i.a.string,i.a.object]),progressClassName:i.a.oneOfType([i.a.string,i.a.object]),progressStyle:i.a.object,progress:i.a.number,isProgressDone:i.a.bool,updateId:i.a.oneOfType([i.a.string,i.a.number]),ariaLabel:i.a.string},_.defaultProps={type:f.DEFAULT,in:!0,onOpen:C,onClose:C,className:null,bodyClassName:null,progressClassName:null,updateId:null,role:"alert"};var N=_;function S(t){var e=t.closeToast,n=t.type,o=t.ariaLabel;return r.a.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:e,"aria-label":o},"✖")}S.propTypes={closeToast:i.a.func,arialLabel:i.a.string},S.defaultProps={ariaLabel:"close"};var D=S,P=n(5),w=n.n(P);function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var j=function(){},M=function(t){var e=t.enter,n=t.exit,o=t.duration,s=void 0===o?750:o,i=t.appendPosition,a=void 0!==i&&i;return function(t){var o,i,l=t.children,u=t.position,c=t.preventExitTransition,p=function(t,e){if(null==t)return{};var n,o,r={},s=Object.keys(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,["children","position","preventExitTransition"]),f=a?e+"--"+u:e,d=a?n+"--"+u:n;Array.isArray(s)&&2===s.length?(o=s[0],i=s[1]):o=i=s;return r.a.createElement(w.a,R({},p,{timeout:c?0:{enter:o,exit:i},onEnter:function(t){t.classList.add(f),t.style.animationFillMode="forwards",t.style.animationDuration=.001*o+"s"},onEntered:function(t){t.classList.remove(f),t.style.cssText=""},onExit:c?j:function(t){t.classList.add(d),t.style.animationFillMode="forwards",t.style.animationDuration=.001*i+"s"}}),l)}},I=M({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),k=M({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),L=M({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),F=M({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"}),U={list:new Map,on:function(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off:function(t){return this.list.delete(t),this},emit:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return!!this.list.has(t)&&(this.list.get(t).forEach(function(t){return setTimeout(function(){return t.call.apply(t,[null].concat(n))},0)}),!0)}};function A(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function W(){return(W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var q=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={toast:[]},e.toastKey=1,e.collection={},e.isToastActive=function(t){return-1!==e.state.toast.indexOf(t)},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this;U.on(d.SHOW,function(e,n){return t.show(e,n)}).on(d.CLEAR,function(e){return e?t.removeToast(e):t.clear()}).emit(d.DID_MOUNT,this)},n.componentWillUnmount=function(){U.off(d.SHOW).off(d.CLEAR).emit(d.WILL_UNMOUNT)},n.removeToast=function(t){this.setState({toast:this.state.toast.filter(function(e){return e!==t})},this.dispatchChange)},n.dispatchChange=function(){U.emit(d.ON_CHANGE,this.state.toast.length)},n.makeCloseButton=function(t,e,n){var r=this,s=this.props.closeButton;return(Object(o.isValidElement)(t)||!1===t)&&(s=t),!1!==s&&Object(o.cloneElement)(s,{closeToast:function(){return r.removeToast(e)},type:n})},n.getAutoCloseDelay=function(t){return!1===t||h(t)?t:this.props.autoClose},n.canBeRendered=function(t){return Object(o.isValidElement)(t)||"string"==typeof t||"number"==typeof t||"function"==typeof t},n.parseClassName=function(t){return"string"==typeof t?t:null!==t&&"object"==typeof t&&"toString"in t?t.toString():null},n.show=function(t,e){var n,r=this;if(!this.canBeRendered(t))throw new Error("The element you provided cannot be rendered. You provided an element of type "+typeof t);var s=e.toastId,i=function(){return r.removeToast(s)},a={id:s,key:e.key||this.toastKey++,type:e.type,closeToast:i,updateId:e.updateId,rtl:this.props.rtl,position:e.position||this.props.position,transition:e.transition||this.props.transition,className:this.parseClassName(e.className||this.props.toastClassName),bodyClassName:this.parseClassName(e.bodyClassName||this.props.bodyClassName),closeButton:this.makeCloseButton(e.closeButton,s,e.type),pauseOnHover:"boolean"==typeof e.pauseOnHover?e.pauseOnHover:this.props.pauseOnHover,pauseOnFocusLoss:"boolean"==typeof e.pauseOnFocusLoss?e.pauseOnFocusLoss:this.props.pauseOnFocusLoss,draggable:"boolean"==typeof e.draggable?e.draggable:this.props.draggable,draggablePercent:"number"!=typeof e.draggablePercent||isNaN(e.draggablePercent)?this.props.draggablePercent:e.draggablePercent,closeOnClick:"boolean"==typeof e.closeOnClick?e.closeOnClick:this.props.closeOnClick,progressClassName:this.parseClassName(e.progressClassName||this.props.progressClassName),progressStyle:this.props.progressStyle,autoClose:this.getAutoCloseDelay(e.autoClose),hideProgressBar:"boolean"==typeof e.hideProgressBar?e.hideProgressBar:this.props.hideProgressBar,progress:Number.parseFloat(e.progress),isProgressDone:e.isProgressDone};"function"==typeof e.onOpen&&(a.onOpen=e.onOpen),"function"==typeof e.onClose&&(a.onClose=e.onClose),Object(o.isValidElement)(t)&&"string"!=typeof t.type&&"number"!=typeof t.type?t=Object(o.cloneElement)(t,{closeToast:i}):"function"==typeof t&&(t=t({closeToast:i})),this.collection=W({},this.collection,((n={})[s]={position:a.position,options:a,content:t},n)),this.setState({toast:(a.updateId?A(this.state.toast):A(this.state.toast).concat([s])).filter(function(t){return t!==e.staleToastId})},this.dispatchChange)},n.makeToast=function(t,e){return r.a.createElement(N,W({},e,{isDocumentHidden:this.state.isDocumentHidden,key:"toast-"+e.key}),t)},n.clear=function(){this.setState({toast:[]})},n.renderToast=function(){var t=this,e={},n=this.props,o=n.className,s=n.style;return(n.newestOnTop?Object.keys(this.collection).reverse():Object.keys(this.collection)).forEach(function(n){var o=t.collection[n],r=o.position,s=o.options,i=o.content;e[r]||(e[r]=[]),-1!==t.state.toast.indexOf(s.id)?e[r].push(t.makeToast(i,s)):(e[r].push(null),delete t.collection[n])}),Object.keys(e).map(function(n){var i=1===e[n].length&&null===e[n][0],a={className:l()("Toastify__toast-container","Toastify__toast-container--"+n,{"Toastify__toast-container--rtl":t.props.rtl},t.parseClassName(o)),style:i?W({},s,{pointerEvents:"none"}):W({},s)};return r.a.createElement(c.a,W({},a,{key:"container-"+n}),e[n])})},n.render=function(){return r.a.createElement("div",{className:"Toastify"},this.renderToast())},e}(o.Component);q.propTypes={position:i.a.oneOf(y(p)),autoClose:m,closeButton:b,hideProgressBar:i.a.bool,pauseOnHover:i.a.bool,closeOnClick:i.a.bool,newestOnTop:i.a.bool,className:i.a.oneOfType([i.a.string,i.a.object]),style:i.a.object,toastClassName:i.a.oneOfType([i.a.string,i.a.object]),bodyClassName:i.a.oneOfType([i.a.string,i.a.object]),progressClassName:i.a.oneOfType([i.a.string,i.a.object]),progressStyle:i.a.object,transition:i.a.func,rtl:i.a.bool,draggable:i.a.bool,draggablePercent:i.a.number,pauseOnFocusLoss:i.a.bool},q.defaultProps={position:p.TOP_RIGHT,transition:I,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:r.a.createElement(D,null),pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,className:null,style:null,toastClassName:null,bodyClassName:null,progressClassName:null,progressStyle:null};var B=q;function G(){return(G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var H=null,X=[],V=function(){return!1};function Y(t,e){return G({},t,{type:e,toastId:function(t){if(t&&("string"==typeof t.toastId||"number"==typeof t.toastId&&!isNaN(t.toastId)))return t.toastId;return z()}(t)})}function z(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function K(t,e){return null!==H?U.emit(d.SHOW,t,e):X.push({action:d.SHOW,content:t,options:e}),e.toastId}var Z=G(function(t,e){return K(t,Y(e,e&&e.type||f.DEFAULT))},{success:function(t,e){return K(t,Y(e,f.SUCCESS))},info:function(t,e){return K(t,Y(e,f.INFO))},warn:function(t,e){return K(t,Y(e,f.WARNING))},warning:function(t,e){return K(t,Y(e,f.WARNING))},error:function(t,e){return K(t,Y(e,f.ERROR))},dismiss:function(t){return void 0===t&&(t=null),H&&U.emit(d.CLEAR,t)},isActive:V,update:function(t,e){setTimeout(function(){if(H&&void 0!==H.collection[t]){var n=H.collection[t],o=n.options,r=n.content,s=G({},o,e,{toastId:e.toastId||t});e.toastId&&e.toastId!==t?s.staleToastId=t:s.updateId=z();var i=void 0!==s.render?s.render:r;delete s.render,K(i,s)}},0)},done:function(t,e){void 0===e&&(e=1),Z.update(t,{progress:e,isProgressDone:!0})},onChange:function(t){"function"==typeof t&&U.on(d.ON_CHANGE,t)},POSITION:p,TYPE:f});U.on(d.DID_MOUNT,function(t){H=t,Z.isActive=function(t){return H.isToastActive(t)},X.forEach(function(t){U.emit(t.action,t.content,t.options)}),X=[]}).on(d.WILL_UNMOUNT,function(){H=null,Z.isActive=V});var J=Z;n.d(e,"ToastContainer",function(){return B}),n.d(e,"toast",function(){return J}),n.d(e,"cssTransition",function(){return M}),n.d(e,"Bounce",function(){return I}),n.d(e,"Slide",function(){return k}),n.d(e,"Zoom",function(){return L}),n.d(e,"Flip",function(){return F}),n.d(e,"ToastPosition",function(){return p}),n.d(e,"ToastType",function(){return f})}])});
//# sourceMappingURL=ReactToastify.js.map

@@ -58,3 +58,3 @@ "use strict";

};
_this.toastKey = 0;
_this.toastKey = 1;
_this.collection = {};

@@ -148,2 +148,3 @@

id: toastId,
// ⚠️ if no options.key, this.toastKey - 1 is assigned
key: options.key || this.toastKey++,

@@ -150,0 +151,0 @@ type: options.type,

{
"name": "react-toastify",
"version": "4.5.0",
"version": "4.5.1",
"description": "React notification made easy",

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

@@ -145,3 +145,3 @@ import React, { Component, isValidElement, cloneElement } from 'react';

*/
toastKey = 0;
toastKey = 1;

@@ -240,2 +240,3 @@ /**

id: toastId,
// ⚠️ if no options.key, this.toastKey - 1 is assigned
key: options.key || this.toastKey++,

@@ -242,0 +243,0 @@ type: options.type,

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