"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
require("./token");
var _variants = require("../../input/style/variants");
const genVariantsStyle = token => {
  const {
    componentCls,
    lineWidth,
    colorFillSecondary
  } = token;
  return {
    [componentCls]: [(0, _extends2.default)((0, _extends2.default)((0, _extends2.default)((0, _extends2.default)({}, (0, _variants.genOutlinedStyle)(token)), (0, _variants.genUnderlinedStyle)(token)), (0, _variants.genFilledStyle)(token)), (0, _variants.genBorderlessStyle)(token)),
    // ========================= Multiple =========================
    {
      '&-outlined': {
        [`&${componentCls}-multiple ${componentCls}-selection-item`]: {
          background: colorFillSecondary,
          border: `${lineWidth}px ${token.lineType} transparent`
        }
      },
      '&-filled': {
        [`&${componentCls}-multiple ${componentCls}-selection-item`]: {
          background: token.colorBgContainer,
          border: `${lineWidth}px ${token.lineType} ${token.colorSplit}`
        }
      },
      '&-borderless': {
        [`&${componentCls}-multiple ${componentCls}-selection-item`]: {
          background: colorFillSecondary,
          border: `${lineWidth}px ${token.lineType} transparent`
        }
      },
      '&-underlined': {
        [`&${componentCls}-multiple ${componentCls}-selection-item`]: {
          background: colorFillSecondary,
          border: `${lineWidth}px ${token.lineType} transparent`
        }
      }
    }]
  };
};
var _default = exports.default = genVariantsStyle;