"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 ItemGroupStyleFunc = function ItemGroupStyleFunc(prefix) {
  var prepareComponentToken = function prepareComponentToken(token) {
    return {
      // fontWeight: 400,
    };
  };
  return (0, _genStyleHook.createStyleHook)(prefix, function (token) {
    var prefixCls = ".".concat(prefix);
    return [_defineProperty({}, prefixCls, {
      '.spec-item-group-form-item.form-item-view-only': {
        '.ant-form-item-control-input-content': {
          color: token.colorTextSecondary
        }
      },
      '&.spec-item-group-inline': {
        display: 'flex',
        flexWrap: 'wrap',
        '.spec-item-group-form-item': {
          marginBottom: token.marginMD
        }
      },
      '.spec-item-group-form-item': {
        '.ant-form-item-horizontal .ant-form-item-row': {
          flexDirection: 'row',
          '.ant-form-item-label': {
            padding: 0,
            '& > label': {
              height: token.controlHeight + 'px'
            }
          }
        },
        ' .ant-form-item-inline ': {},
        '.ant-form-item-inline': {
          display: 'inline-flex',
          'margin-inline-end': token.margin + 'px',
          marginBottom: 0,
          '.ant-form-item-row': {}
        }
      },
      //         .ant-form-item-horizontal .ant-form-item-row {
      //       flex-direction: row;
      //
      // .ant-form-item-label {
      //     padding: 0;
      //
      //   & > label {
      //       height: ${(p) => p.theme.controlHeight + 'px'};
      //     }
      //   }
      // }
      '&.spec-item-group-vertical': {
        '.spec-item-group-form-item': {
          marginBottom: 0
        },
        '.modalPanelTitle, .modal-grid-title': {
          marginBottom: 0
        }
      },
      '.modalPanelTitle, .modal-grid-title': {
        margin: "0 0 ".concat(token.margin, "px 0"),
        padding: "".concat(token.paddingXS / 2, "px 0"),
        // paddingBottom: token.paddingXS,
        borderBottom: "1px solid ".concat(token.colorBorder),
        fontSize: token.fontSize
      },
      '.ant-form-item-vertical .ant-form-item-row': {
        // 父级设置了flex-direction:column，min-height会影响占用高度
        '.ant-col': {
          minHeight: 'inherit'
        }
      },
      '.modalPanelTitle.spec-standard-title': {
        padding: 0,
        margin: 0,
        fontWeight: 'normal',
        '.spec-standard-title-base': {
          fontSize: token.fontSize,
          fontWeight: 'bold'
        }
      }
    }), {}];
  }, prepareComponentToken // 当前组件扩展的变量
  );
};
var _default = exports.default = ItemGroupStyleFunc;