import "../../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "react";
import "../../../../@ant-design/cssinjs/es/StyleContext.mjs";
import { unit as e } from "../../../../@ant-design/cssinjs/es/util/index.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
const n = (l) => {
  const {
    componentCls: t,
    tableExpandColumnWidth: o,
    calc: i
  } = l, m = ($, a, r, d) => ({
    [`${t}${t}-${$}`]: {
      fontSize: d,
      [`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]: {
        padding: `${e(a)} ${e(r)}`
      },
      [`${t}-filter-trigger`]: {
        marginInlineEnd: e(i(r).div(2).mul(-1).equal())
      },
      [`${t}-expanded-row-fixed`]: {
        margin: `${e(i(a).mul(-1).equal())} ${e(i(r).mul(-1).equal())}`
      },
      [`${t}-tbody`]: {
        // ========================= Nest Table ===========================
        [`${t}-wrapper:only-child ${t}`]: {
          marginBlock: e(i(a).mul(-1).equal()),
          marginInline: `${e(i(o).sub(r).equal())} ${e(i(r).mul(-1).equal())}`
        }
      },
      // https://github.com/ant-design/ant-design/issues/35167
      [`${t}-selection-extra`]: {
        paddingInlineStart: e(i(r).div(4).equal())
      }
    }
  });
  return {
    [`${t}-wrapper`]: Object.assign(Object.assign({}, m("middle", l.tablePaddingVerticalMiddle, l.tablePaddingHorizontalMiddle, l.tableFontSizeMiddle)), m("small", l.tablePaddingVerticalSmall, l.tablePaddingHorizontalSmall, l.tableFontSizeSmall))
  };
}, P = n;
export {
  P as default
};
