'use strict';

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

var _templateObject = _taggedTemplateLiteral(['background-color: ', ';'], ['background-color: ', ';']),
    _templateObject2 = _taggedTemplateLiteral(['animation-delay: 0s;'], ['animation-delay: 0s;']),
    _templateObject3 = _taggedTemplateLiteral(['animation-delay: 0.0.5s;'], ['animation-delay: 0.0.5s;']),
    _templateObject4 = _taggedTemplateLiteral(['animation-delay: 0.2s;'], ['animation-delay: 0.2s;']),
    _templateObject5 = _taggedTemplateLiteral(['animation-delay: 0.3s;'], ['animation-delay: 0.3s;']),
    _templateObject6 = _taggedTemplateLiteral(['animation-delay: 0.4s;'], ['animation-delay: 0.4s;']),
    _templateObject7 = _taggedTemplateLiteral(['animation-delay: 0.5s;'], ['animation-delay: 0.5s;']),
    _templateObject8 = _taggedTemplateLiteral(['animation-delay: 0.6s;'], ['animation-delay: 0.6s;']),
    _templateObject9 = _taggedTemplateLiteral(['animation-delay: 0.7s;'], ['animation-delay: 0.7s;']),
    _templateObject10 = _taggedTemplateLiteral(['animation-delay: 0.8s;'], ['animation-delay: 0.8s;']);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

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

function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

var scaleDelay = (0, _styledComponents.keyframes)(['0%,50%,100%{transform:scale3D(1,1,1);}25%{transform:scale3D(0,0,1);}']);
var Wrapper = _styledComponents2.default.div.withConfig({
  displayName: 'BlockchainLoader__Wrapper'
})(['position:relative;width:', ';height:', ';transform:rotate(-45deg);border-radius:10%;overflow:hidden;'], function (props) {
  return props.width;
}, function (props) {
  return props.height;
});
var Container = _styledComponents2.default.div.withConfig({
  displayName: 'BlockchainLoader__Container'
})(['width:100%;height:100%;']);
var Square = _styledComponents2.default.div.withConfig({
  displayName: 'BlockchainLoader__Square'
})(['display:inline-block;width:20%;height:20%;float:left;border:0;animation:', ' 3s infinite ease-in-out;'], scaleDelay);
var SquareMarketingSecondary = Square.extend(_templateObject, function (props) {
  return props.theme['marketing-secondary'];
});
var SquareTransferred = Square.extend(_templateObject, function (props) {
  return props.theme['transferred'];
});
var SquareMarketingPrimary = Square.extend(_templateObject, function (props) {
  return props.theme['marketing-primary'];
});
var SquareBrandTertiary = Square.extend(_templateObject, function (props) {
  return props.theme['brand-tertiary'];
});
var SquareBrandSecondary = Square.extend(_templateObject, function (props) {
  return props.theme['brand-secondary'];
});

var Square1 = SquareMarketingSecondary.extend(_templateObject2);
var Square2 = SquareMarketingSecondary.extend(_templateObject3);
var Square3 = SquareMarketingSecondary.extend(_templateObject4);
var Square4 = SquareTransferred.extend(_templateObject5);
var Square5 = SquareTransferred.extend(_templateObject6);

var Square6 = SquareMarketingSecondary.extend(_templateObject3);
var Square7 = SquareMarketingSecondary.extend(_templateObject4);
var Square8 = SquareMarketingSecondary.extend(_templateObject5);
var Square9 = SquareTransferred.extend(_templateObject6);
var Square10 = SquareTransferred.extend(_templateObject7);

var Square11 = SquareBrandSecondary.extend(_templateObject4);
var Square12 = SquareBrandSecondary.extend(_templateObject5);
var Square13 = SquareBrandSecondary.extend(_templateObject6);
var Square14 = SquareMarketingPrimary.extend(_templateObject7);
var Square15 = SquareMarketingPrimary.extend(_templateObject8);

var Square16 = SquareBrandSecondary.extend(_templateObject5);
var Square17 = SquareBrandSecondary.extend(_templateObject6);
var Square18 = SquareBrandSecondary.extend(_templateObject7);
var Square19 = SquareMarketingPrimary.extend(_templateObject8);
var Square20 = SquareMarketingPrimary.extend(_templateObject9);

var Square21 = SquareBrandSecondary.extend(_templateObject6);
var Square22 = SquareBrandSecondary.extend(_templateObject7);
var Square23 = SquareBrandSecondary.extend(_templateObject8);
var Square24 = SquareBrandTertiary.extend(_templateObject9);
var Square25 = SquareBrandTertiary.extend(_templateObject10);

var BlockchainLoader = function BlockchainLoader(props) {
  return _react2.default.createElement(
    Wrapper,
    props,
    _react2.default.createElement(
      Container,
      null,
      _react2.default.createElement(Square1, null),
      _react2.default.createElement(Square2, null),
      _react2.default.createElement(Square3, null),
      _react2.default.createElement(Square4, null),
      _react2.default.createElement(Square5, null),
      _react2.default.createElement(Square6, null),
      _react2.default.createElement(Square7, null),
      _react2.default.createElement(Square8, null),
      _react2.default.createElement(Square9, null),
      _react2.default.createElement(Square10, null),
      _react2.default.createElement(Square11, null),
      _react2.default.createElement(Square12, null),
      _react2.default.createElement(Square13, null),
      _react2.default.createElement(Square14, null),
      _react2.default.createElement(Square15, null),
      _react2.default.createElement(Square16, null),
      _react2.default.createElement(Square17, null),
      _react2.default.createElement(Square18, null),
      _react2.default.createElement(Square19, null),
      _react2.default.createElement(Square20, null),
      _react2.default.createElement(Square21, null),
      _react2.default.createElement(Square22, null),
      _react2.default.createElement(Square23, null),
      _react2.default.createElement(Square24, null),
      _react2.default.createElement(Square25, null)
    )
  );
};

BlockchainLoader.propTypes = {
  width: _propTypes2.default.string.isRequired,
  height: _propTypes2.default.string.isRequired
};

BlockchainLoader.defaultProps = {
  width: '150px',
  height: '150px'
};

exports.default = BlockchainLoader;