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); }
import { createStyleHook } from "../../theme/utils/genStyleHook";
var SideCardStyleFunc = function SideCardStyleFunc(prefix) {
  var prepareComponentToken = function prepareComponentToken(token) {
    return {
      // fontWeight: 400,
    };
  };
  return createStyleHook(prefix, function (token) {
    var prefixCls = ".".concat(prefix);
    // console.log(' new TinyColor(token.colorPrimary).setAlpha(0.1)' ,new TinyColor(token.colorPrimary).setAlpha(0.1).toRgbString(), )
    return [_defineProperty({}, prefixCls, {
      display: 'flex',
      flexDirection: 'column',
      height: '100%',
      width: '100%',
      // height: '500px',

      '.spec-side-card-header': {
        padding: "".concat(token.padding, "px ").concat(token.paddingMD, "px ").concat(token.paddingXS, "px"),
        // fontSize: token.fontSize,
        // fontWeight: 'bold',
        '& + .spec-side-card-tabs': {
          paddingTop: 0
        }
      },
      '.spec-side-card-tabs': {
        padding: "".concat(token.padding, "px ").concat(token.paddingMD, "px 0"),
        '.ant-tabs-nav-list': {
          width: '100%',
          display: 'flex'
        },
        '.ant-tabs .ant-tabs-nav': {
          marginBottom: 0,
          '&:before': {
            borderBottom: '0'
          }
        },
        '.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab': {
          //width: 50%;
          flex: 1,
          marginRight: 0,
          borderRadius: '0',
          border: 0,
          backgroundColor: token.colorBgLayout,
          padding: "5px 16px",
          '&:first-of-type': {
            // borderRadius: '4px 0px 0px 4px'
            borderStartStartRadius: token.borderRadius,
            borderEndStartRadius: token.borderRadius
          },
          '&:nth-last-of-type(2)': {
            borderStartEndRadius: token.borderRadius,
            borderEndEndRadius: token.borderRadius
          },
          '&:hover': {
            color: '@primary-color'
          },
          '.ant-tabs-tab-btn': {
            width: '100%',
            textAlign: 'center'
          },
          '& + .ant-tabs-tab': {
            margin: 0,
            borderTopLeftRadius: 0,
            borderBottomLeftRadius: 0
          },
          '&.ant-tabs-tab-active': {
            backgroundColor: token.colorPrimary,
            '.ant-tabs-tab-btn': {
              color: '#fff'
            }
          }
        }
      },
      '.spec-side-card-content': {
        flex: 1,
        height: '100%',
        overflow: 'auto',
        margin: "".concat(token.padding, "px ").concat(token.paddingMD, "px"),
        '& + .spec-side-card-footer': {
          // marginTop: token.padding
        },
        '.spec-standard-refactor-tree': {
          padding: '0 !important'
        }
      },
      '.spec-side-card-footer': {
        padding: " 0 ".concat(token.paddingMD, "px  ").concat(token.padding, "px")
      }
    })];
  }, prepareComponentToken // 当前组件扩展的变量
  );
};
export default SideCardStyleFunc;