import _extends from "@babel/runtime/helpers/extends";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/CounterBadge/test/CounterBadge.visual.jsx",
  _this = this;
import React from 'react';
import { snap, story, visualize } from 'storybook-snapper';
import CounterBadge from '../CounterBadge';
var skins = ['general', 'standard', 'neutralStandard', 'danger', 'warning', 'warningLight', 'urgent', 'success', 'light', 'neutralLight'];
var sizes = ['small', 'medium'];
var tests = [{
  describe: 'skin',
  its: skins.map(function (skin) {
    return {
      it: skin,
      props: {
        skin: skin
      }
    };
  })
}, {
  describe: 'size',
  its: sizes.map(function (size) {
    return {
      it: size,
      props: {
        size: size
      }
    };
  })
}, {
  describe: 'showShadow',
  its: [{
    it: 'showShadow',
    props: {
      showShadow: true
    }
  }]
}, {
  describe: 'long number',
  its: [{
    it: 'truncated',
    props: {
      truncate: true
    }
  }, {
    it: 'not truncated',
    props: {
      truncate: false
    }
  }]
}];
visualize(CounterBadge.displayName, function () {
  tests.forEach(function (_ref) {
    var describe = _ref.describe,
      its = _ref.its;
    story(describe, function () {
      its.map(function (_ref2) {
        var it = _ref2.it,
          props = _ref2.props;
        return snap(it, function () {
          return /*#__PURE__*/React.createElement("div", {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 64,
              columnNumber: 11
            }
          }, /*#__PURE__*/React.createElement("div", {
            style: {
              display: 'flex',
              width: '600px',
              justifyContent: 'space-around'
            },
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 65,
              columnNumber: 13
            }
          }, /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "8"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 72,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "32"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 73,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "128"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 74,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "512"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 75,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "2048"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 76,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "8192"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 77,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "32768"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 78,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "131072"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 79,
              columnNumber: 15
            }
          })), /*#__PURE__*/React.createElement(CounterBadge, _extends({
            children: "524288"
          }, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 80,
              columnNumber: 15
            }
          }))));
        });
      });
    });
  });
});