"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 _FloatingHelper = _interopRequireDefault(require("../FloatingHelper"));
var _Box = _interopRequireDefault(require("../../Box"));
var _constants = require("../constants");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/FloatingHelper/test/FloatingHelper.visual.jsx",
  _this = void 0;
var body = 'In order to sell your music you need to choose a payment method. ';
var requiredProps = {
  content: /*#__PURE__*/_react["default"].createElement(_FloatingHelper["default"].Content, {
    body: body,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 16,
      columnNumber: 12
    }
  }),
  target: /*#__PURE__*/_react["default"].createElement("span", {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 11
    }
  }, "I am a FloatingHelper target"),
  placement: _constants.placementOptions.right
};
var defaultProps = {
  appearance: _constants.floatingHelperSkin.dark,
  appendTo: _constants.appendToOptions.window,
  initiallyOpened: true,
  width: '444px'
};
var tests = [{
  describe: 'initiallyOpened',
  its: [{
    it: 'false',
    props: {
      initiallyOpened: 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)("FloatingHelper".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/_react["default"].createElement(_Box["default"], {
        paddingLeft: "450px",
        paddingTop: "150px",
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 45,
          columnNumber: 9
        }
      }, /*#__PURE__*/_react["default"].createElement(_FloatingHelper["default"], (0, _extends2["default"])({}, defaultProps, requiredProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 46,
          columnNumber: 11
        }
      })));
    });
  });
});