'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactBootstrap = require('react-bootstrap');

var _reactFontawesome = require('react-fontawesome');

var _reactFontawesome2 = _interopRequireDefault(_reactFontawesome);

var _main = require('./main');

var _main2 = _interopRequireDefault(_main);

var _display = require('./display');

var _display2 = _interopRequireDefault(_display);

var _network = require('./network');

var _network2 = _interopRequireDefault(_network);

var _plugin = require('./plugin');

var _plugin2 = _interopRequireDefault(_plugin);

var _misc = require('./misc');

var _misc2 = _interopRequireDefault(_misc);

require('./assets/settings.css');

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

const { i18n } = window;
const __ = i18n.setting.__.bind(i18n.setting);

function _ref(nextProps, nextState) {
  return false;
}

exports.default = {
  name: 'SettingsView',
  displayName: _react2.default.createElement(
    'span',
    null,
    _react2.default.createElement(_reactFontawesome2.default, { name: 'cog' }),
    __(" Settings")
  ),
  reactClass: class reactClass extends _react2.default.Component {
    constructor(...args) {
      var _temp;

      return _temp = super(...args), this.shouldComponentUpdate = _ref, _temp;
    }

    render() {
      return _react2.default.createElement(
        _reactBootstrap.Tabs,
        { bsStyle: 'pills', defaultActiveKey: 0, animation: false, justified: true, id: 'settings-view-tabs' },
        _react2.default.createElement(
          _reactBootstrap.Tab,
          { eventKey: 0, title: __("Common"), className: 'poi-settings-Tab' },
          _react2.default.createElement(_main2.default, null)
        ),
        _react2.default.createElement(
          _reactBootstrap.Tab,
          { eventKey: 1, title: __("Display"), className: 'poi-settings-Tab' },
          _react2.default.createElement(_display2.default, null)
        ),
        _react2.default.createElement(
          _reactBootstrap.Tab,
          { eventKey: 2, title: __("Proxy"), className: 'poi-settings-Tab' },
          _react2.default.createElement(_network2.default, null)
        ),
        _react2.default.createElement(
          _reactBootstrap.Tab,
          { eventKey: 3, title: __("Plugins"), className: 'poi-settings-Tab' },
          _react2.default.createElement(_plugin2.default, null)
        ),
        _react2.default.createElement(
          _reactBootstrap.Tab,
          { eventKey: -1, title: __("About"), className: 'poi-settings-Tab' },
          _react2.default.createElement(_misc2.default, null)
        )
      );
    }
  }
};
module.exports = exports['default'];