'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports['default'] = undefined;

var _modalContainer = require('choerodon-hap-ui/lib/modal-container');

var _modalContainer2 = _interopRequireDefault(_modalContainer);

var _spin = require('choerodon-hap-ui/lib/spin');

var _spin2 = _interopRequireDefault(_spin);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _class;

require('choerodon-hap-ui/lib/modal-container/style');

require('choerodon-hap-ui/lib/spin/style');

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouterDom = require('react-router-dom');

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

var Loading = (0, _reactRouterDom.withRouter)(_class = function (_Component) {
  (0, _inherits3['default'])(Loading, _Component);

  function Loading() {
    (0, _classCallCheck3['default'])(this, Loading);
    return (0, _possibleConstructorReturn3['default'])(this, (Loading.__proto__ || Object.getPrototypeOf(Loading)).apply(this, arguments));
  }

  (0, _createClass3['default'])(Loading, [{
    key: 'render',
    value: function render() {
      return [_react2['default'].createElement(
        'div',
        { key: 'entry-loading', style: { position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, margin: 'auto', width: 30, height: 30 } },
        _react2['default'].createElement(_spin2['default'], null)
      ), _react2['default'].createElement(_modalContainer2['default'], { key: 'entry-modal-container' })];
    }
  }]);
  return Loading;
}(_react.Component)) || _class;

exports['default'] = Loading;