"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _CalendarPanel = _interopRequireDefault(require("../CalendarPanel"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/CalendarPanel/test/CalendarPanel.visual.jsx",
  _this = void 0;
var tests = [{
  describe: 'CalendarPanel',
  its: [{
    it: 'no presets',
    props: {
      presets: [],
      value: new Date(1990, 3, 29),
      footer: false
    }
  }, {
    it: 'with presets',
    props: {
      presets: [{
        id: 1,
        value: 'a day',
        selectedDays: new Date(2018, 1, 1)
      }, {
        id: 2,
        value: 'a range',
        selectedDays: {
          from: new Date(2018, 1, 1),
          to: new Date(2018, 2, 1)
        }
      }],
      value: new Date(1990, 3, 29),
      footer: false
    }
  }]
}];
tests.forEach(function (_ref) {
  var describe = _ref.describe,
    its = _ref.its;
  its.forEach(function (_ref2) {
    var it = _ref2.it,
      props = _ref2.props;
    (0, _react2.storiesOf)("CalendarPanel".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_CalendarPanel["default"], (0, _extends2["default"])({}, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 44,
          columnNumber: 13
        }
      }));
    });
  });
});