import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/FloatingHelper/test/FloatingHelper.visual.jsx",
  _this = this;
import React from 'react';
import { storiesOf } from '@storybook/react';
import FloatingHelper from '../FloatingHelper';
import Box from '../../Box';
import { floatingHelperSkin, appendToOptions, placementOptions } from '../constants';
var body = 'In order to sell your music you need to choose a payment method. ';
var requiredProps = {
  content: /*#__PURE__*/React.createElement(FloatingHelper.Content, {
    body: body,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 16,
      columnNumber: 12
    }
  }),
  target: /*#__PURE__*/React.createElement("span", {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 11
    }
  }, "I am a FloatingHelper target"),
  placement: placementOptions.right
};
var defaultProps = {
  appearance: floatingHelperSkin.dark,
  appendTo: 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;
    storiesOf("FloatingHelper".concat(describe ? '/' + describe : ''), module).add(it, function () {
      return /*#__PURE__*/React.createElement(Box, {
        paddingLeft: "450px",
        paddingTop: "150px",
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 45,
          columnNumber: 9
        }
      }, /*#__PURE__*/React.createElement(FloatingHelper, _extends({}, defaultProps, requiredProps, props, {
        __self: _this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 46,
          columnNumber: 11
        }
      })));
    });
  });
});