text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _react = _interopRequireDefault(require("react"));
  
  var _propTypes = _interopRequireDefault(require("prop-types"));
  
  var _Flex = _interopRequireDefault(require("./Flex"));
  
  var _utils = require("./shared/utils");
  
  var _propTypes2 = require("./shared/propTypes");
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
  
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  
  var TileGroup = function TileGroup(_ref) {
    var className = _ref.className,
        count = _ref.count,
        dateTransform = _ref.dateTransform,
        dateType = _ref.dateType,
        end = _ref.end,
        hover = _ref.hover,
        offset = _ref.offset,
        start = _ref.start,
        step = _ref.step,
        Tile = _ref.tile,
        value = _ref.value,
        valueType = _ref.valueType,
        tileProps = _objectWithoutProperties(_ref, ["className", "count", "dateTransform", "dateType", "end", "hover", "offset", "start", "step", "tile", "value", "valueType"]);
  
    var tiles = [];
  
    for (var point = start; point <= end; point += step) {
      var date = dateTransform(point);
      tiles.push(_react.default.createElement(Tile, _extends({
        classes: (0, _utils.getTileClasses)({
          value: value,
          valueType: valueType,
          date: date,
          dateType: dateType,
          hover: hover
        }),
        date: date,
        point: point,
        key: date.getTime()
      }, tileProps)));
    }
  
    return _react.default.createElement(_Flex.default, {
      className: className,
      count: count,
      offset: offset,
      wrap: true
    }, tiles);
  };
  
  TileGroup.propTypes = _objectSpread({}, _propTypes2.tileGroupProps, {
    activeStartDate: _propTypes.default.instanceOf(Date),
    count: _propTypes.default.number,
    dateTransform: _propTypes.default.func.isRequired,
    offset: _propTypes.default.number,
    tile: _propTypes.default.func.isRequired,
    step: _propTypes.default.number
  });
  TileGroup.defaultProps = {
    count: 3,
    step: 1
  };
  var _default = TileGroup;
  exports.default = _default;