Object.defineProperty(exports, '__esModule', {
  value: true
});

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/** @babel */
/** @jsx etch.dom */
/* eslint-disable react/no-unknown-property */

var _atom = require('atom');

var _etch = require('etch');

var _etch2 = _interopRequireDefault(_etch);

var _etchComponent = require('../etch-component');

var _etchComponent2 = _interopRequireDefault(_etchComponent);

var AboutStatusBar = (function (_EtchComponent) {
  _inherits(AboutStatusBar, _EtchComponent);

  function AboutStatusBar() {
    _classCallCheck(this, AboutStatusBar);

    _get(Object.getPrototypeOf(AboutStatusBar.prototype), 'constructor', this).call(this);
    this.subscriptions = new _atom.CompositeDisposable();

    this.subscriptions.add(atom.tooltips.add(this.element, { title: 'An update will be installed the next time Atom is relaunched.<br/><br/>Click the squirrel icon for more information.' }));
  }

  _createClass(AboutStatusBar, [{
    key: 'handleClick',
    value: function handleClick() {
      atom.workspace.open('atom://about');
    }
  }, {
    key: 'render',
    value: function render() {
      return _etch2['default'].dom('span', { type: 'button', className: 'about-release-notes icon icon-squirrel inline-block', onclick: this.handleClick.bind(this) });
    }
  }, {
    key: 'destroy',
    value: function destroy() {
      _get(Object.getPrototypeOf(AboutStatusBar.prototype), 'destroy', this).call(this);
      this.subscriptions.dispose();
    }
  }]);

  return AboutStatusBar;
})(_etchComponent2['default']);

exports['default'] = AboutStatusBar;
module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9idWlsZC9hdG9tL3NyYy9hdG9tLTEuMjQuMC9vdXQvYXBwL25vZGVfbW9kdWxlcy9hYm91dC9saWIvY29tcG9uZW50cy9hYm91dC1zdGF0dXMtYmFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztvQkFJa0MsTUFBTTs7b0JBQ3ZCLE1BQU07Ozs7NkJBQ0csbUJBQW1COzs7O0lBRXhCLGNBQWM7WUFBZCxjQUFjOztBQUNyQixXQURPLGNBQWMsR0FDbEI7MEJBREksY0FBYzs7QUFFL0IsK0JBRmlCLGNBQWMsNkNBRXhCO0FBQ1AsUUFBSSxDQUFDLGFBQWEsR0FBRywrQkFBeUIsQ0FBQTs7QUFFOUMsUUFBSSxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxFQUFDLEtBQUssRUFBRSxzSEFBc0gsRUFBQyxDQUFDLENBQUMsQ0FBQTtHQUN6TDs7ZUFOa0IsY0F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