'use strict';

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

var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');

var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

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, _class2, _temp2;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _classnames = require('classnames');

var _classnames2 = _interopRequireDefault(_classnames);

var _pureRenderDecorator = require('pure-render-decorator');

var _pureRenderDecorator2 = _interopRequireDefault(_pureRenderDecorator);

var _patternLoaderIcon = require('./pattern-loader-icon');

var _patternLoaderIcon2 = _interopRequireDefault(_patternLoaderIcon);

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

var PatternLoader = (0, _pureRenderDecorator2.default)(_class = (_temp2 = _class2 = function (_React$Component) {
	(0, _inherits3.default)(PatternLoader, _React$Component);

	function PatternLoader() {
		var _ref;

		var _temp, _this, _ret;

		(0, _classCallCheck3.default)(this, PatternLoader);

		for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
			args[_key] = arguments[_key];
		}

		return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = PatternLoader.__proto__ || (0, _getPrototypeOf2.default)(PatternLoader)).call.apply(_ref, [this].concat(args))), _this), _this.displayName = 'PatternLoader', _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
	}

	(0, _createClass3.default)(PatternLoader, [{
		key: 'render',
		value: function render() {
			var className = (0, _classnames2.default)('pattern-loader', {
				'pattern-error': this.props.error,
				'pattern-loader--hidden': this.props.hidden
			});

			return _react2.default.createElement(
				'div',
				{ className: className },
				_react2.default.createElement(_patternLoaderIcon2.default, {
					base: this.props.base,
					width: 200,
					height: 200,
					inverted: this.props.inverted
				})
			);
		}
	}]);
	return PatternLoader;
}(_react2.default.Component), _class2.defaultProps = {
	error: false
}, _temp2)) || _class;

exports.default = PatternLoader;
module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NvdXJjZS9hcHBsaWNhdGlvbi9jb21wb25lbnRzL3BhdHRlcm4vcGF0dGVybi1sb2FkZXIuanMiXSwibmFtZXMiOlsiUGF0dGVybkxvYWRlciIsImRpc3BsYXlOYW1lIiwiY2xhc3NOYW1lIiwicHJvcHMiLCJlcnJvciIsImhpZGRlbiIsImJhc2UiLCJpbnZlcnRlZCIsIkNvbXBvbmVudCIsImRlZmF1bHRQcm9wcyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBOzs7Ozs7SUFHTUEsYTs7Ozs7Ozs7Ozs7Ozs7d05BQ0xDLFcsR0FBYyxlOzs7OzsyQkFhTDtBQUNSLE9BQU1DLFlBQVksMEJBQVcsZ0JBQVgsRUFBNkI7QUFDOUMscUJBQWlCLEtBQUtDLEtBQUwsQ0FBV0MsS0FEa0I7QUFFOUMsOEJBQTBCLEtBQUtELEtBQUwsQ0FBV0U7QUFGUyxJQUE3QixDQUFsQjs7QUFLQSxVQUNDO0FBQUE7QUFBQSxNQUFLLFdBQVdILFNBQWhCO0FBQ0M7QUFDQyxXQUFNLEtBQUtDLEtBQUwsQ0FBV0csSUFEbEI7QUFFQyxZQUFPLEdBRlI7QUFHQyxhQUFRLEdBSFQ7QUFJQyxlQUFVLEtBQUtILEtBQUwsQ0FBV0k7QUFKdEI7QUFERCxJQUREO0FBVUE7OztFQTlC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