"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _genStyleHook = require("../../theme/utils/genStyleHook");
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var StandardFilterStyleFunc = function StandardFilterStyleFunc(prefix) {
  var prepareComponentToken = function prepareComponentToken(token) {
    return {
      // fontWeight: 400,
    };
  };
  return (0, _genStyleHook.createStyleHook)(prefix, function (token) {
    var prefixCls = ".".concat(prefix);
    return [_defineProperty({}, prefixCls, {
      '.filter-grid': {
        // backgroundColor: token.colorBgBase,
        '.filter-form': {
          '.ant-form-item-control, ant-form-item-label': {
            // lineHeight: token.controlHeight + 'px'//  @input-height-base;
          },
          '.ant-btn .ant-btn-icon': {}
        },
        '.filter-form .ant-form-item': {
          marginRight: token.paddingMD,
          marginBottom: token.paddingMD
        },
        '.filter-btns ': {
          backgroundColor: token.colorBgBase
        },
        '.filter-btns .ant-btn': {
          marginLeft: token.paddingXS,
          // marginTop: token.paddingXS,
          // marginBottom: token.paddingMD,
          marginBottom: token.paddingXS
        },
        '.ant-select-single:not(.ant-select-customize-input) .ant-select-selector': {
          // lineHeight: token.controlHeight - 2 + 'px' // 去除样式
        },
        '&.filter-grid-horizontal': {
          // '.filter-btn': {
          //   '.spec-button-group': {
          //     paddingTop: token.paddingMD
          //   },
          //
          // },
          '.filter-btns-horizontal': {
            '&.filter-btns-horizontal-right .spec-button-group': {
              justifyContent: 'end'
            },
            '&.filter-btns-horizontal-left .spec-button-group': {
              justifyContent: 'start'
            }
          }
        }
      }
    })];
  }, prepareComponentToken // 当前组件扩展的变量
  );
};
var _default = exports.default = StandardFilterStyleFunc;