{"version":3,"sources":["webpack:///./node_modules/react-notification-system/dist/constants.js","webpack:///./node_modules/react-notification-system/dist/NotificationSystem.js","webpack:///./node_modules/react-notification-system/dist/NotificationContainer.js","webpack:///./node_modules/react-notification-system/dist/NotificationItem.js","webpack:///./node_modules/react-notification-system/dist/helpers.js","webpack:///./node_modules/react-notification-system/dist/styles.js"],"names":["module","exports","positions","tl","tr","tc","bl","br","bc","levels","success","error","warning","info","notification","title","message","level","position","autoDismiss","dismissible","action","React","createReactClass","PropTypes","merge","NotificationContainer","Constants","Styles","NotificationSystem","uid","_isMounted","_getStyles","overrideStyle","overrideWidth","setOverrideStyle","style","this","wrapper","Wrapper","container","override","Containers","DefaultStyle","width","elements","messageWrapper","dismiss","actionWrapper","byElement","element","self","_element","_didNotificationRemoved","notifications","state","filter","toCheck","setState","onRemove","getInitialState","propTypes","oneOfType","bool","object","noAnimation","allowHTML","getDefaultProps","addNotification","i","_notification","Error","Object","keys","indexOf","isNaN","toLowerCase","parseInt","ref","length","push","onAdd","getNotificationRef","foundNotification","refs","forEach","removeNotification","_hideNotification","editNotification","newNotification","newNotifications","stateNotification","clearNotifications","componentDidMount","props","componentWillUnmount","render","containers","map","_notifications","createElement","key","getStyles","className","NotificationItem","string","isRequired","array","_style","componentWillMount","marginLeft","reverse","children","ReactDOM","Helpers","whichTransitionEvent","transition","el","document","transitions","OTransition","MozTransition","WebkitTransition","transitionKey","undefined","func","visible","removed","_noAnimation","_styles","cursor","_notificationTimer","_height","_removeCount","_getCssPropertyByPosition","css","property","value","_defaultAction","event","preventDefault","callback","clear","_removeNotification","_dismiss","_showNotification","setTimeout","_onTransitionEnd","transitionEvent","findDOMNode","offsetHeight","addEventListener","Timer","_handleMouseEnter","pause","_handleMouseLeave","resume","removeEventListener","_allowHTML","__html","notificationStyle","cssByPos","actionButton","height","overlay","marginTop","paddingTop","paddingBottom","opacity","isVisible","isHidden","dangerouslySetInnerHTML","onClick","label","onMouseEnter","onMouseLeave","delay","timerId","start","remaining","clearTimeout","Date","defaultColors","rgb","hex","STYLES","fontFamily","padding","zIndex","WebkitBoxSizing","MozBoxSizing","boxSizing","top","bottom","left","right","margin","borderRadius","fontSize","display","WebkitTransform","transform","willChange","borderTop","backgroundColor","color","WebkitBoxShadow","MozBoxShadow","boxShadow","Title","fontWeight","MessageWrapper","Dismiss","lineHeight","textAlign","Action","background","border","ActionWrapper"],"mappings":"6EAiCAA,EAAOC,QAjCS,CAGdC,UAAW,CACTC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,MAINC,OAAQ,CACNC,QAAS,UACTC,MAAO,QACPC,QAAS,UACTC,KAAM,QAIRC,aAAc,CACZC,MAAO,KACPC,QAAS,KACTC,MAAO,KACPC,SAAU,KACVC,YAAa,EACbC,aAAa,EACbC,OAAQ,Q,oBC5BZ,IAAIC,EAAQ,EAAQ,GAChBC,EAAmB,EAAQ,KAC3BC,EAAY,EAAQ,GACpBC,EAAQ,EAAQ,KAChBC,EAAwB,EAAQ,KAChCC,EAAY,EAAQ,KACpBC,EAAS,EAAQ,KAEjBC,EAAqBN,EAAiB,CAExCO,IAAK,KAELC,YAAY,EAEZC,WAAY,CACVC,cAAe,GAEfC,cAAe,KAEfC,iBAAkB,SAASC,GACzBC,KAAKJ,cAAgBG,GAGvBE,QAAS,WACP,OAAKD,KAAKJ,cACHR,EAAM,GAAIG,EAAOW,QAASF,KAAKJ,cAAcM,SADpB,IAIlCC,UAAW,SAAStB,GAClB,IAAIuB,EAAWJ,KAAKJ,cAAcS,YAAc,GAChD,OAAKL,KAAKJ,eAEVI,KAAKH,cAAgBN,EAAOc,WAAWC,aAAaC,MAEhDH,EAASE,cAAgBF,EAASE,aAAaC,QACjDP,KAAKH,cAAgBO,EAASE,aAAaC,OAGzCH,EAASvB,IAAauB,EAASvB,GAAU0B,QAC3CP,KAAKH,cAAgBO,EAASvB,GAAU0B,OAGnCnB,EAAM,GAAIG,EAAOc,WAAWC,aAAcf,EAAO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uH,OAAQ,OACR+C,WAAY,OACZI,UAAW,UAGb5M,QAAS,CACPmM,MAAO,UACPD,gBAAiB,WAGnBjM,MAAO,CACLkM,MAAO,UACPD,gBAAiB,WAGnBhM,QAAS,CACPiM,MAAO,UACPD,gBAAiB,WAGnB/L,KAAM,CACJgM,MAAO,UACPD,gBAAiB,YAIrBW,OAAQ,CACN5K,aAAc,CACZ6K,WAAY,UACZnB,aAAc,MACdV,QAAS,WACTuB,WAAY,OACZd,OAAQ,aACRqB,OAAQ,GAGV/M,QAAS,CACPkM,gBAAiBtB,EAAsBE,IACvCqB,MAAO,WAGTlM,MAAO,CACLiM,gBAAiBtB,EAAoBE,IACrCqB,MAAO,WAGTjM,QAAS,CACPgM,gBAAiBtB,EAAsBE,IACvCqB,MAAO,WAGThM,KAAM,CACJ+L,gBAAiBtB,EAAmBE,IACpCqB,MAAO,YAIXa,cAAe,CACb/K,aAAc,CACZyJ,OAAQ,EACRT,QAAS,KAKf3L,EAAOC,QAAUwL","file":"npm.react-notification-system-0c7ecea71a5a26254773.js","sourcesContent":["var CONSTANTS = {\n\n  // Positions\n  positions: {\n    tl: 'tl',\n    tr: 'tr',\n    tc: 'tc',\n    bl: 'bl',\n    br: 'br',\n    bc: 'bc'\n  },\n\n  // Levels\n  levels: {\n    success: 'success',\n    error: 'error',\n    warning: 'warning',\n    info: 'info'\n  },\n\n  // Notification defaults\n  notification: {\n    title: null,\n    message: null,\n    level: null,\n    position: 'tr',\n    autoDismiss: 5,\n    dismissible: true,\n    action: null\n  }\n};\n\n\nmodule.exports = CONSTANTS;\n","var React = require('react');\nvar createReactClass = require('create-react-class');\nvar PropTypes = require('prop-types');\nvar merge = require('object-assign');\nvar NotificationContainer = require('./NotificationContainer');\nvar Constants = require('./constants');\nvar Styles = require('./styles');\n\nvar NotificationSystem = createReactClass({\n\n  uid: 3400,\n\n  _isMounted: false,\n\n  _getStyles: {\n    overrideStyle: {},\n\n    overrideWidth: null,\n\n    setOverrideStyle: function(style) {\n      this.overrideStyle = style;\n    },\n\n    wrapper: function() {\n      if (!this.overrideStyle) return {};\n      return merge({}, Styles.Wrapper, this.overrideStyle.Wrapper);\n    },\n\n    container: function(position) {\n      var override = this.overrideStyle.Containers || {};\n      if (!this.overrideStyle) return {};\n\n      this.overrideWidth = Styles.Containers.DefaultStyle.width;\n\n      if (override.DefaultStyle && override.DefaultStyle.width) {\n        this.overrideWidth = override.DefaultStyle.width;\n      }\n\n      if (override[position] && override[position].width) {\n        this.overrideWidth = override[position].width;\n      }\n\n      return merge({}, Styles.Containers.DefaultStyle, Styles.Containers[position], override.DefaultStyle, override[position]);\n    },\n\n    elements: {\n      notification: 'NotificationItem',\n      title: 'Title',\n      messageWrapper: 'MessageWrapper',\n      dismiss: 'Dismiss',\n      action: 'Action',\n      actionWrapper: 'ActionWrapper'\n    },\n\n    byElement: function(element) {\n      var self = this;\n      return function(level) {\n        var _element = self.elements[element];\n        var override = self.overrideStyle[_element] || {};\n        if (!self.overrideStyle) return {};\n        return merge({}, Styles[_element].DefaultStyle, Styles[_element][level], override.DefaultStyle, override[level]);\n      };\n    }\n  },\n\n  _didNotificationRemoved: function(uid) {\n    var notification;\n    var notifications = this.state.notifications.filter(function(toCheck) {\n      if (toCheck.uid === uid) {\n        notification = toCheck;\n        return false;\n      }\n      return true;\n    });\n\n    if (this._isMounted) {\n      this.setState({ notifications: notifications });\n    }\n\n    if (notification && notification.onRemove) {\n      notification.onRemove(notification);\n    }\n  },\n\n  getInitialState: function() {\n    return {\n      notifications: []\n    };\n  },\n\n  propTypes: {\n    style: PropTypes.oneOfType([\n      PropTypes.bool,\n      PropTypes.object\n    ]),\n    noAnimation: PropTypes.bool,\n    allowHTML: PropTypes.bool\n  },\n\n  getDefaultProps: function() {\n    return {\n      style: {},\n      noAnimation: false,\n      allowHTML: false\n    };\n  },\n\n  addNotification: function(notification) {\n    var _notification = merge({}, Constants.notification, notification);\n    var notifications = this.state.notifications;\n    var i;\n\n    if (!_notification.level) {\n      throw new Error('notification level is required.');\n    }\n\n    if (Object.keys(Constants.levels).indexOf(_notification.level) === -1) {\n      throw new Error('\\'' + _notification.level + '\\' is not a valid level.');\n    }\n\n    if (isNaN(_notification.autoDismiss)) {\n      throw new Error('\\'autoDismiss\\' must be a number.');\n    }\n\n    if (Object.keys(Constants.positions).indexOf(_notification.position) === -1) {\n      throw new Error('\\'' + _notification.position + '\\' is not a valid position.');\n    }\n\n    // Some preparations\n    _notification.position = _notification.position.toLowerCase();\n    _notification.level = _notification.level.toLowerCase();\n    _notification.autoDismiss = parseInt(_notification.autoDismiss, 10);\n\n    _notification.uid = _notification.uid || this.uid;\n    _notification.ref = 'notification-' + _notification.uid;\n    this.uid += 1;\n\n    // do not add if the notification already exists based on supplied uid\n    for (i = 0; i < notifications.length; i++) {\n      if (notifications[i].uid === _notification.uid) {\n        return false;\n      }\n    }\n\n    notifications.push(_notification);\n\n    if (typeof _notification.onAdd === 'function') {\n      notification.onAdd(_notification);\n    }\n\n    this.setState({\n      notifications: notifications\n    });\n\n    return _notification;\n  },\n\n  getNotificationRef: function(notification) {\n    var self = this;\n    var foundNotification = null;\n\n    Object.keys(this.refs).forEach(function(container) {\n      if (container.indexOf('container') > -1) {\n        Object.keys(self.refs[container].refs).forEach(function(_notification) {\n          var uid = notification.uid ? notification.uid : notification;\n          if (_notification === 'notification-' + uid) {\n            // NOTE: Stop iterating further and return the found notification.\n            // Since UIDs are uniques and there won't be another notification found.\n            foundNotification = self.refs[container].refs[_notification];\n            return;\n          }\n        });\n      }\n    });\n\n    return foundNotification;\n  },\n\n  removeNotification: function(notification) {\n    var foundNotification = this.getNotificationRef(notification);\n    return foundNotification && foundNotification._hideNotification();\n  },\n\n  editNotification: function(notification, newNotification) {\n    var foundNotification = null;\n    // NOTE: Find state notification to update by using\n    // `setState` and forcing React to re-render the component.\n    var uid = notification.uid ? notification.uid : notification;\n\n    var newNotifications = this.state.notifications.filter(function(stateNotification) {\n      if (uid === stateNotification.uid) {\n        foundNotification = stateNotification;\n        return false;\n      }\n\n      return true;\n    });\n\n\n    if (!foundNotification) {\n      return;\n    }\n\n    newNotifications.push(\n      merge(\n        {},\n        foundNotification,\n        newNotification\n      )\n    );\n\n    this.setState({\n      notifications: newNotifications\n    });\n  },\n\n  clearNotifications: function() {\n    var self = this;\n    Object.keys(this.refs).forEach(function(container) {\n      if (container.indexOf('container') > -1) {\n        Object.keys(self.refs[container].refs).forEach(function(_notification) {\n          self.refs[container].refs[_notification]._hideNotification();\n        });\n      }\n    });\n  },\n\n  componentDidMount: function() {\n    this._getStyles.setOverrideStyle(this.props.style);\n    this._isMounted = true;\n  },\n\n  componentWillUnmount: function() {\n    this._isMounted = false;\n  },\n\n  render: function() {\n    var self = this;\n    var containers = null;\n    var notifications = this.state.notifications;\n\n    if (notifications.length) {\n      containers = Object.keys(Constants.positions).map(function(position) {\n        var _notifications = notifications.filter(function(notification) {\n          return position === notification.position;\n        });\n\n        if (!_notifications.length) {\n          return null;\n        }\n\n        return (\n          React.createElement(NotificationContainer, {\n            ref:  'container-' + position, \n            key:  position, \n            position:  position, \n            notifications:  _notifications, \n            getStyles:  self._getStyles, \n            onRemove:  self._didNotificationRemoved, \n            noAnimation:  self.props.noAnimation, \n            allowHTML:  self.props.allowHTML}\n          )\n        );\n      });\n    }\n\n\n    return (\n      React.createElement(\"div\", {className: \"notifications-wrapper\", style:  this._getStyles.wrapper() }, \n         containers \n      )\n    );\n  }\n});\n\nmodule.exports = NotificationSystem;\n","var React = require('react');\nvar createReactClass = require('create-react-class');\nvar PropTypes = require('prop-types');\nvar NotificationItem = require('./NotificationItem');\nvar Constants = require('./constants');\n\nvar NotificationContainer = createReactClass({\n\n  propTypes: {\n    position: PropTypes.string.isRequired,\n    notifications: PropTypes.array.isRequired,\n    getStyles: PropTypes.object\n  },\n\n  _style: {},\n\n  componentWillMount: function() {\n    // Fix position if width is overrided\n    this._style = this.props.getStyles.container(this.props.position);\n\n    if (this.props.getStyles.overrideWidth && (this.props.position === Constants.positions.tc || this.props.position === Constants.positions.bc)) {\n      this._style.marginLeft = -(this.props.getStyles.overrideWidth / 2);\n    }\n  },\n\n  render: function() {\n    var self = this;\n    var notifications;\n\n    if ([Constants.positions.bl, Constants.positions.br, Constants.positions.bc].indexOf(this.props.position) > -1) {\n      this.props.notifications.reverse();\n    }\n\n    notifications = this.props.notifications.map(function(notification) {\n      return (\n        React.createElement(NotificationItem, {\n          ref:  'notification-' + notification.uid, \n          key:  notification.uid, \n          notification:  notification, \n          getStyles:  self.props.getStyles, \n          onRemove:  self.props.onRemove, \n          noAnimation:  self.props.noAnimation, \n          allowHTML:  self.props.allowHTML, \n          children:  self.props.children}\n        )\n      );\n    });\n\n    return (\n      React.createElement(\"div\", {className:  'notifications-' + this.props.position, style:  this._style}, \n         notifications \n      )\n    );\n  }\n});\n\n\nmodule.exports = NotificationContainer;\n","var React = require('react');\nvar createReactClass = require('create-react-class');\nvar PropTypes = require('prop-types');\nvar ReactDOM = require('react-dom');\nvar Constants = require('./constants');\nvar Helpers = require('./helpers');\nvar merge = require('object-assign');\n\n/* From Modernizr */\nvar whichTransitionEvent = function() {\n  var el = document.createElement('fakeelement');\n  var transition;\n  var transitions = {\n    transition: 'transitionend',\n    OTransition: 'oTransitionEnd',\n    MozTransition: 'transitionend',\n    WebkitTransition: 'webkitTransitionEnd'\n  };\n\n  Object.keys(transitions).forEach(function(transitionKey) {\n    if (el.style[transitionKey] !== undefined) {\n      transition = transitions[transitionKey];\n    }\n  });\n\n  return transition;\n};\n\nvar NotificationItem = createReactClass({\n\n  propTypes: {\n    notification: PropTypes.object,\n    getStyles: PropTypes.object,\n    onRemove: PropTypes.func,\n    allowHTML: PropTypes.bool,\n    noAnimation: PropTypes.bool,\n    children: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.element\n    ])\n  },\n\n  getDefaultProps: function() {\n    return {\n      noAnimation: false,\n      onRemove: function() {},\n      allowHTML: false\n    };\n  },\n\n  getInitialState: function() {\n    return {\n      visible: undefined,\n      removed: false\n    };\n  },\n\n  componentWillMount: function() {\n    var getStyles = this.props.getStyles;\n    var level = this.props.notification.level;\n\n    this._noAnimation = this.props.noAnimation;\n\n    this._styles = {\n      notification: getStyles.byElement('notification')(level),\n      title: getStyles.byElement('title')(level),\n      dismiss: getStyles.byElement('dismiss')(level),\n      messageWrapper: getStyles.byElement('messageWrapper')(level),\n      actionWrapper: getStyles.byElement('actionWrapper')(level),\n      action: getStyles.byElement('action')(level)\n    };\n\n    if (!this.props.notification.dismissible) {\n      this._styles.notification.cursor = 'default';\n    }\n  },\n\n  _styles: {},\n\n  _notificationTimer: null,\n\n  _height: 0,\n\n  _noAnimation: null,\n\n  _isMounted: false,\n\n  _removeCount: 0,\n\n  _getCssPropertyByPosition: function() {\n    var position = this.props.notification.position;\n    var css = {};\n\n    switch (position) {\n    case Constants.positions.tl:\n    case Constants.positions.bl:\n      css = {\n        property: 'left',\n        value: -200\n      };\n      break;\n\n    case Constants.positions.tr:\n    case Constants.positions.br:\n      css = {\n        property: 'right',\n        value: -200\n      };\n      break;\n\n    case Constants.positions.tc:\n      css = {\n        property: 'top',\n        value: -100\n      };\n      break;\n\n    case Constants.positions.bc:\n      css = {\n        property: 'bottom',\n        value: -100\n      };\n      break;\n\n    default:\n    }\n\n    return css;\n  },\n\n  _defaultAction: function(event) {\n    var notification = this.props.notification;\n\n    event.preventDefault();\n    this._hideNotification();\n    if (typeof notification.action.callback === 'function') {\n      notification.action.callback();\n    }\n  },\n\n  _hideNotification: function() {\n    if (this._notificationTimer) {\n      this._notificationTimer.clear();\n    }\n\n    if (this._isMounted) {\n      this.setState({\n        visible: false,\n        removed: true\n      });\n    }\n\n    if (this._noAnimation) {\n      this._removeNotification();\n    }\n  },\n\n  _removeNotification: function() {\n    this.props.onRemove(this.props.notification.uid);\n  },\n\n  _dismiss: function() {\n    if (!this.props.notification.dismissible) {\n      return;\n    }\n\n    this._hideNotification();\n  },\n\n  _showNotification: function() {\n    var self = this;\n    setTimeout(function() {\n      if (self._isMounted) {\n        self.setState({\n          visible: true\n        });\n      }\n    }, 50);\n  },\n\n  _onTransitionEnd: function() {\n    if (this._removeCount > 0) return;\n    if (this.state.removed) {\n      this._removeCount++;\n      this._removeNotification();\n    }\n  },\n\n  componentDidMount: function() {\n    var self = this;\n    var transitionEvent = whichTransitionEvent();\n    var notification = this.props.notification;\n    var element = ReactDOM.findDOMNode(this);\n\n    this._height = element.offsetHeight;\n\n    this._isMounted = true;\n\n    // Watch for transition end\n    if (!this._noAnimation) {\n      if (transitionEvent) {\n        element.addEventListener(transitionEvent, this._onTransitionEnd);\n      } else {\n        this._noAnimation = true;\n      }\n    }\n\n\n    if (notification.autoDismiss) {\n      this._notificationTimer = new Helpers.Timer(function() {\n        self._hideNotification();\n      }, notification.autoDismiss * 1000);\n    }\n\n    this._showNotification();\n  },\n\n  _handleMouseEnter: function() {\n    var notification = this.props.notification;\n    if (notification.autoDismiss) {\n      this._notificationTimer.pause();\n    }\n  },\n\n  _handleMouseLeave: function() {\n    var notification = this.props.notification;\n    if (notification.autoDismiss) {\n      this._notificationTimer.resume();\n    }\n  },\n\n  componentWillUnmount: function() {\n    var element = ReactDOM.findDOMNode(this);\n    var transitionEvent = whichTransitionEvent();\n    element.removeEventListener(transitionEvent, this._onTransitionEnd);\n    this._isMounted = false;\n  },\n\n  _allowHTML: function(string) {\n    return { __html: string };\n  },\n\n  render: function() {\n    var notification = this.props.notification;\n    var className = 'notification notification-' + notification.level;\n    var notificationStyle = merge({}, this._styles.notification);\n    var cssByPos = this._getCssPropertyByPosition();\n    var dismiss = null;\n    var actionButton = null;\n    var title = null;\n    var message = null;\n\n    if (this.state.visible) {\n      className += ' notification-visible';\n    } else if (this.state.visible === false) {\n      className += ' notification-hidden';\n    }\n\n    if (!notification.dismissible) {\n      className += ' notification-not-dismissible';\n    }\n\n    if (this.props.getStyles.overrideStyle) {\n      if (!this.state.visible && !this.state.removed) {\n        notificationStyle[cssByPos.property] = cssByPos.value;\n      }\n\n      if (this.state.visible && !this.state.removed) {\n        notificationStyle.height = this._height;\n        notificationStyle[cssByPos.property] = 0;\n      }\n\n      if (this.state.removed) {\n        notificationStyle.overlay = 'hidden';\n        notificationStyle.height = 0;\n        notificationStyle.marginTop = 0;\n        notificationStyle.paddingTop = 0;\n        notificationStyle.paddingBottom = 0;\n      }\n      notificationStyle.opacity = this.state.visible ? this._styles.notification.isVisible.opacity : this._styles.notification.isHidden.opacity;\n    }\n\n    if (notification.title) {\n      title = React.createElement(\"h4\", {className: \"notification-title\", style:  this._styles.title},  notification.title);\n    }\n\n    if (notification.message) {\n      if (this.props.allowHTML) {\n        message = (\n          React.createElement(\"div\", {className: \"notification-message\", style:  this._styles.messageWrapper, dangerouslySetInnerHTML:  this._allowHTML(notification.message) })\n        );\n      } else {\n        message = (\n          React.createElement(\"div\", {className: \"notification-message\", style:  this._styles.messageWrapper},  notification.message)\n        );\n      }\n    }\n\n    if (notification.dismissible) {\n      dismiss = React.createElement(\"span\", {className: \"notification-dismiss\", style:  this._styles.dismiss}, \"×\");\n    }\n\n    if (notification.action) {\n      actionButton = (\n        React.createElement(\"div\", {className: \"notification-action-wrapper\", style:  this._styles.actionWrapper}, \n          React.createElement(\"button\", {className: \"notification-action-button\", \n            onClick:  this._defaultAction, \n            style:  this._styles.action}, \n               notification.action.label\n          )\n        )\n      );\n    }\n\n    if (notification.children) {\n      actionButton = notification.children;\n    }\n\n    return (\n      React.createElement(\"div\", {className:  className, onClick:  this._dismiss, onMouseEnter:  this._handleMouseEnter, onMouseLeave:  this._handleMouseLeave, style:  notificationStyle }, \n         title, \n         message, \n         dismiss, \n         actionButton \n      )\n    );\n  }\n\n});\n\nmodule.exports = NotificationItem;\n","var Helpers = {\n  Timer: function(callback, delay) {\n    var timerId;\n    var start;\n    var remaining = delay;\n\n    this.pause = function() {\n      clearTimeout(timerId);\n      remaining -= new Date() - start;\n    };\n\n    this.resume = function() {\n      start = new Date();\n      clearTimeout(timerId);\n      timerId = setTimeout(callback, remaining);\n    };\n\n    this.clear = function() {\n      clearTimeout(timerId);\n    };\n\n    this.resume();\n  }\n};\n\nmodule.exports = Helpers;\n","// Used for calculations\nvar defaultWidth = 320;\nvar defaultColors = {\n  success: {\n    rgb: '94, 164, 0',\n    hex: '#5ea400'\n  },\n  error: {\n    rgb: '236, 61, 61',\n    hex: '#ec3d3d'\n  },\n  warning: {\n    rgb: '235, 173, 23',\n    hex: '#ebad1a'\n  },\n  info: {\n    rgb: '54, 156, 199',\n    hex: '#369cc7'\n  }\n};\nvar defaultShadowOpacity = '0.9';\n\nvar STYLES = {\n\n  Wrapper: {},\n  Containers: {\n    DefaultStyle: {\n      fontFamily: 'inherit',\n      position: 'fixed',\n      width: defaultWidth,\n      padding: '0 10px 10px 10px',\n      zIndex: 9998,\n      WebkitBoxSizing: 'border-box',\n      MozBoxSizing: 'border-box',\n      boxSizing: 'border-box',\n      height: 'auto'\n    },\n\n    tl: {\n      top: '0px',\n      bottom: 'auto',\n      left: '0px',\n      right: 'auto'\n    },\n\n    tr: {\n      top: '0px',\n      bottom: 'auto',\n      left: 'auto',\n      right: '0px'\n    },\n\n    tc: {\n      top: '0px',\n      bottom: 'auto',\n      margin: '0 auto',\n      left: '50%',\n      marginLeft: -(defaultWidth / 2)\n    },\n\n    bl: {\n      top: 'auto',\n      bottom: '0px',\n      left: '0px',\n      right: 'auto'\n    },\n\n    br: {\n      top: 'auto',\n      bottom: '0px',\n      left: 'auto',\n      right: '0px'\n    },\n\n    bc: {\n      top: 'auto',\n      bottom: '0px',\n      margin: '0 auto',\n      left: '50%',\n      marginLeft: -(defaultWidth / 2)\n    }\n\n  },\n\n  NotificationItem: {\n    DefaultStyle: {\n      position: 'relative',\n      width: '100%',\n      cursor: 'pointer',\n      borderRadius: '2px',\n      fontSize: '13px',\n      margin: '10px 0 0',\n      padding: '10px',\n      display: 'block',\n      WebkitBoxSizing: 'border-box',\n      MozBoxSizing: 'border-box',\n      boxSizing: 'border-box',\n      opacity: 0,\n      transition: '0.3s ease-in-out',\n      WebkitTransform: 'translate3d(0, 0, 0)',\n      transform: 'translate3d(0, 0, 0)',\n      willChange: 'transform, opacity',\n\n      isHidden: {\n        opacity: 0\n      },\n\n      isVisible: {\n        opacity: 1\n      }\n    },\n\n    success: {\n      borderTop: '2px solid ' + defaultColors.success.hex,\n      backgroundColor: '#f0f5ea',\n      color: '#4b583a',\n      WebkitBoxShadow: '0 0 1px rgba(' + defaultColors.success.rgb + ',' + defaultShadowOpacity + ')',\n      MozBoxShadow: '0 0 1px rgba(' + defaultColors.success.rgb + ',' + defaultShadowOpacity + ')',\n      boxShadow: '0 0 1px rgba(' + defaultColors.success.rgb + ',' + defaultShadowOpacity + ')'\n    },\n\n    error: {\n      borderTop: '2px solid ' + defaultColors.error.hex,\n      backgroundColor: '#f4e9e9',\n      color: '#412f2f',\n      WebkitBoxShadow: '0 0 1px rgba(' + defaultColors.error.rgb + ',' + defaultShadowOpacity + ')',\n      MozBoxShadow: '0 0 1px rgba(' + defaultColors.error.rgb + ',' + defaultShadowOpacity + ')',\n      boxShadow: '0 0 1px rgba(' + defaultColors.error.rgb + ',' + defaultShadowOpacity + ')'\n    },\n\n    warning: {\n      borderTop: '2px solid ' + defaultColors.warning.hex,\n      backgroundColor: '#f9f6f0',\n      color: '#5a5343',\n      WebkitBoxShadow: '0 0 1px rgba(' + defaultColors.warning.rgb + ',' + defaultShadowOpacity + ')',\n      MozBoxShadow: '0 0 1px rgba(' + defaultColors.warning.rgb + ',' + defaultShadowOpacity + ')',\n      boxShadow: '0 0 1px rgba(' + defaultColors.warning.rgb + ',' + defaultShadowOpacity + ')'\n    },\n\n    info: {\n      borderTop: '2px solid ' + defaultColors.info.hex,\n      backgroundColor: '#e8f0f4',\n      color: '#41555d',\n      WebkitBoxShadow: '0 0 1px rgba(' + defaultColors.info.rgb + ',' + defaultShadowOpacity + ')',\n      MozBoxShadow: '0 0 1px rgba(' + defaultColors.info.rgb + ',' + defaultShadowOpacity + ')',\n      boxShadow: '0 0 1px rgba(' + defaultColors.info.rgb + ',' + defaultShadowOpacity + ')'\n    }\n  },\n\n  Title: {\n    DefaultStyle: {\n      fontSize: '14px',\n      margin: '0 0 5px 0',\n      padding: 0,\n      fontWeight: 'bold'\n    },\n\n    success: {\n      color: defaultColors.success.hex\n    },\n\n    error: {\n      color: defaultColors.error.hex\n    },\n\n    warning: {\n      color: defaultColors.warning.hex\n    },\n\n    info: {\n      color: defaultColors.info.hex\n    }\n\n  },\n\n  MessageWrapper: {\n    DefaultStyle: {\n      margin: 0,\n      padding: 0\n    }\n  },\n\n  Dismiss: {\n    DefaultStyle: {\n      fontFamily: 'Arial',\n      fontSize: '17px',\n      position: 'absolute',\n      top: '4px',\n      right: '5px',\n      lineHeight: '15px',\n      backgroundColor: '#dededf',\n      color: '#ffffff',\n      borderRadius: '50%',\n      width: '14px',\n      height: '14px',\n      fontWeight: 'bold',\n      textAlign: 'center'\n    },\n\n    success: {\n      color: '#f0f5ea',\n      backgroundColor: '#b0ca92'\n    },\n\n    error: {\n      color: '#f4e9e9',\n      backgroundColor: '#e4bebe'\n    },\n\n    warning: {\n      color: '#f9f6f0',\n      backgroundColor: '#e1cfac'\n    },\n\n    info: {\n      color: '#e8f0f4',\n      backgroundColor: '#a4becb'\n    }\n  },\n\n  Action: {\n    DefaultStyle: {\n      background: '#ffffff',\n      borderRadius: '2px',\n      padding: '6px 20px',\n      fontWeight: 'bold',\n      margin: '10px 0 0 0',\n      border: 0\n    },\n\n    success: {\n      backgroundColor: defaultColors.success.hex,\n      color: '#ffffff'\n    },\n\n    error: {\n      backgroundColor: defaultColors.error.hex,\n      color: '#ffffff'\n    },\n\n    warning: {\n      backgroundColor: defaultColors.warning.hex,\n      color: '#ffffff'\n    },\n\n    info: {\n      backgroundColor: defaultColors.info.hex,\n      color: '#ffffff'\n    }\n  },\n\n  ActionWrapper: {\n    DefaultStyle: {\n      margin: 0,\n      padding: 0\n    }\n  }\n};\n\nmodule.exports = STYLES;\n"],"sourceRoot":""}