"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 _MobilePreviewWidget = _interopRequireDefault(require("../MobilePreviewWidget"));
var _Box = _interopRequireDefault(require("../../Box"));
var _Text = _interopRequireDefault(require("../../Text"));
var _constants = require("../constants");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/MobilePreviewWidget/test/MobilePreviewWidget.visual.jsx",
  _this = void 0;
var commonProps = {
  children: /*#__PURE__*/_react["default"].createElement(_Box["default"], {
    align: "center",
    verticalAlign: "middle",
    height: "100%",
    padding: "20px",
    backgroundColor: "Y30",
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react["default"].createElement(_Text["default"], {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 7
    }
  }, "Content goes here"))
};
var tests = [{
  describe: 'Skins',
  its: [{
    it: _constants.skins.neutral,
    props: {
      skin: _constants.skins.neutral
    }
  }, {
    it: _constants.skins.gradient,
    props: {
      skin: _constants.skins.gradient
    }
  }, {
    it: _constants.skins.custom,
    props: {
      skin: _constants.skins.custom,
      backgroundColor: 'B10'
    }
  }]
}, {
  describe: 'Custom Size',
  its: [{
    it: 'height',
    props: {
      height: '750px'
    }
  }, {
    it: 'width',
    props: {
      width: '550px'
    }
  }]
}, {
  describe: 'Scroll',
  its: [{
    it: 'Large Content ',
    props: {
      children: /*#__PURE__*/_react["default"].createElement(_Box["default"], {
        align: "center",
        verticalAlign: "middle",
        height: "600px",
        backgroundColor: "Y30",
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 71,
          columnNumber: 13
        }
      }, /*#__PURE__*/_react["default"].createElement(_Text["default"], {
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 77,
          columnNumber: 15
        }
      }, "Content goes here"))
    }
  }]
}];
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)("MobilePreviewWidget".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_MobilePreviewWidget["default"], (0, _extends2["default"])({}, commonProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 91,
          columnNumber: 21
        }
      }));
    });
  });
});