"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _typeof = require("@babel/runtime/helpers/typeof");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.Invalid = exports.Focused = exports.Disabled = exports.DefaultStateWithModifications = exports.DefaultState = exports.Broken = exports.ActiveWithCountableSelection = exports.ActiveWithClearableSelection = exports.Active = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _react = _interopRequireDefault(require("react"));

var _utils = require("../../../.storybook/utils");

var _FilterSelection = _interopRequireWildcard(require("./FilterSelection"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

var _default = {
  component: _FilterSelection.default,
  title: (0, _utils.addStoryInGroup)(_utils.COMPOSITIONS, 'FilterSelection')
};
exports.default = _default;

var DefaultState = function DefaultState(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, args);
};

exports.DefaultState = DefaultState;
DefaultState.args = {
  label: 'default',
  status: _FilterSelection.STATUS.DEFAULT
};

var DefaultStateWithModifications = function DefaultStateWithModifications(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, args);
};

exports.DefaultStateWithModifications = DefaultStateWithModifications;
DefaultStateWithModifications.args = {
  label: 'default with modifications',
  status: _FilterSelection.STATUS.DEFAULT,
  modificationText: 'This filter was cleared'
};

var Focused = function Focused(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "focused"
  }, args));
};

exports.Focused = Focused;
Focused.args = {
  label: 'focused',
  status: _FilterSelection.STATUS.FOCUSED,
  applied: true
};

var Active = function Active(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "active"
  }, args));
};

exports.Active = Active;
Active.args = {
  label: 'active',
  status: _FilterSelection.STATUS.ACTIVE,
  applied: true
};

var ActiveWithClearableSelection = function ActiveWithClearableSelection(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "active with clearable selection"
  }, args));
};

exports.ActiveWithClearableSelection = ActiveWithClearableSelection;
ActiveWithClearableSelection.args = {
  label: 'active with clearable selection',
  status: _FilterSelection.STATUS.ACTIVE,
  applied: true
};

var ActiveWithCountableSelection = function ActiveWithCountableSelection(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "active with countable selection"
  }, args));
};

exports.ActiveWithCountableSelection = ActiveWithCountableSelection;
ActiveWithCountableSelection.args = {
  label: 'active with countable selection',
  status: _FilterSelection.STATUS.ACTIVE,
  applied: true,
  amountApplied: 3
};

var Disabled = function Disabled(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "disabled"
  }, args));
};

exports.Disabled = Disabled;
Disabled.args = {
  label: 'disabled',
  status: _FilterSelection.STATUS.DISABLED,
  applied: true
};

var Invalid = function Invalid(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "invalid"
  }, args));
};

exports.Invalid = Invalid;
Invalid.args = {
  label: 'invalid',
  status: _FilterSelection.STATUS.INVALID,
  applied: true
};

var Broken = function Broken(args) {
  return /*#__PURE__*/_react.default.createElement(_FilterSelection.default, (0, _extends2.default)({
    label: "broken"
  }, args));
};

exports.Broken = Broken;
Broken.args = {
  label: 'broken',
  status: _FilterSelection.STATUS.BROKEN,
  applied: true
};