"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 _TestimonialList = _interopRequireDefault(require("../TestimonialList"));
var _RTLWrapper = require("../../../stories/utils/RTLWrapper");
var _Avatar = _interopRequireDefault(require("../../Avatar"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/TestimonialList/test/TestimonialList.visual.jsx",
  _this = void 0;
var commonProps = {
  testimonials: [{
    avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
      name: "Guy in glasses",
      size: "size60",
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 10,
        columnNumber: 15
      }
    }),
    text: 'I love it! This product is exactly what I needed.',
    authorName: 'Guy in glasses'
  }, {
    avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
      name: "Person with a hat",
      size: "size60",
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 15,
        columnNumber: 15
      }
    }),
    text: 'Amazing! It helped me to solve my problems.',
    authorName: 'Person with a hat'
  }, {
    avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
      name: "Smiling lady",
      size: "size60",
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 20,
        columnNumber: 15
      }
    }),
    text: 'A perfect tool for my every day tasks.',
    authorName: 'Smiling lady'
  }]
};
var tests = [{
  describe: 'sanity',
  its: [{
    it: 'default',
    props: {}
  }, {
    it: 'no avatar',
    props: {
      testimonials: [{
        text: 'I love it! This product is exactly what I needed.',
        authorName: 'Guy in glasses'
      }, {
        text: 'Amazing! It helped me to solve my problems.',
        authorName: 'Person with a hat'
      }, {
        text: 'A perfect tool for my every day tasks.',
        authorName: 'Smiling lady'
      }]
    }
  }, {
    it: 'no text',
    props: {
      testimonials: [{
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Guy in glasses",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 59,
            columnNumber: 23
          }
        }),
        authorName: 'Guy in glasses'
      }, {
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Person with a hat",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 63,
            columnNumber: 23
          }
        }),
        authorName: 'Person with a hat'
      }, {
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Smiling lady",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 67,
            columnNumber: 23
          }
        }),
        authorName: 'Smiling lady'
      }]
    }
  }, {
    it: 'no authorName',
    props: {
      testimonials: [{
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Guy in glasses",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 78,
            columnNumber: 23
          }
        }),
        text: 'I love it! This product is exactly what I needed.'
      }, {
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Person with a hat",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 82,
            columnNumber: 23
          }
        }),
        text: 'Amazing! It helped me to solve my problems.'
      }, {
        avatar: /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
          name: "Smiling lady",
          size: "size60",
          __self: void 0,
          __source: {
            fileName: _jsxFileName,
            lineNumber: 86,
            columnNumber: 23
          }
        }),
        text: 'A perfect tool for my every day tasks.'
      }]
    }
  }]
}];
var rtlTests = [{
  describe: 'rtl',
  its: [{
    it: 'rtl',
    props: {}
  }]
}];
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)("".concat(_TestimonialList["default"].displayName).concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_TestimonialList["default"], (0, _extends2["default"])({}, commonProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 113,
          columnNumber: 21
        }
      }));
    });
  });
});
rtlTests.forEach(function (_ref3) {
  var describe = _ref3.describe,
    its = _ref3.its;
  its.forEach(function (_ref4) {
    var it = _ref4.it,
      props = _ref4.props;
    (0, _react2.storiesOf)("".concat(_TestimonialList["default"].displayName).concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_RTLWrapper.RTLWrapper, {
        rtl: true,
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 123,
          columnNumber: 7
        }
      }, /*#__PURE__*/_react["default"].createElement(_TestimonialList["default"], (0, _extends2["default"])({}, commonProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 124,
          columnNumber: 9
        }
      })));
    });
  });
});