"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _styledComponents = _interopRequireWildcard(require("styled-components"));

//  strict
var stretchAnimation =
/*#__PURE__*/
(0, _styledComponents.keyframes)(["\n  0%,\n  40%,\n  100% { opacity: 1; }\n  20% { opacity: 0; }\n"]);

var Container =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "zh6cqq-0"
})(["\n  display: flex;\n  justify-content: space-around;\n  width: ", ";\n  height: ", ";\n  text-align: center;\n  font-size: 10px;\n"], function (props) {
  return props.width;
}, function (props) {
  return props.height;
});

var Rectangle =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "zh6cqq-1"
})(["\n  display: inline-block;\n  width: 15%;\n  height: 100%;\n  background-color: ", ";\n  animation: ", " 1.2s infinite ease-in-out;\n"], function (props) {
  return props.theme['loaderColor'];
}, stretchAnimation);

var Rectangle1 =
/*#__PURE__*/
(0, _styledComponents.default)(Rectangle).withConfig({
  componentId: "zh6cqq-2"
})(["\n  animation-delay: -1.1s;\n"]);
var Rectangle2 =
/*#__PURE__*/
(0, _styledComponents.default)(Rectangle).withConfig({
  componentId: "zh6cqq-3"
})(["\n  animation-delay: -1s;\n"]);
var Rectangle3 =
/*#__PURE__*/
(0, _styledComponents.default)(Rectangle).withConfig({
  componentId: "zh6cqq-4"
})(["\n  animation-delay: -0.9s;\n"]);
var Rectangle4 =
/*#__PURE__*/
(0, _styledComponents.default)(Rectangle).withConfig({
  componentId: "zh6cqq-5"
})(["\n  animation-delay: -0.8s;\n"]);
var Rectangle5 =
/*#__PURE__*/
(0, _styledComponents.default)(Rectangle).withConfig({
  componentId: "zh6cqq-6"
})(["\n  animation-delay: -0.7s;\n"]);

var FlatLoader = function FlatLoader(props) {
  return _react.default.createElement(Container, props, _react.default.createElement(Rectangle1, null), _react.default.createElement(Rectangle2, null), _react.default.createElement(Rectangle3, null), _react.default.createElement(Rectangle4, null), _react.default.createElement(Rectangle5, null));
};

FlatLoader.propTypes = process.env.NODE_ENV !== "production" ? {
  height: _propTypes.default.string.isRequired,
  width: _propTypes.default.string.isRequired
} : {};
FlatLoader.defaultProps = {
  height: '30px',
  width: '50px'
};
var _default = FlatLoader;
exports.default = _default;