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 g } 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 b = (t) => {
  const {
    componentCls: e,
    antCls: d,
    iconCls: a,
    fontSizeIcon: n,
    padding: i,
    paddingXS: r,
    headerIconColor: c,
    headerIconHoverColor: p,
    tableSelectionColumnWidth: l,
    tableSelectedRowBg: m,
    tableSelectedRowHoverBg: s,
    tableRowHoverBg: u,
    tablePaddingHorizontal: $,
    calc: o
  } = t;
  return {
    [`${e}-wrapper`]: {
      // ========================== Selections ==========================
      [`${e}-selection-col`]: {
        width: l,
        [`&${e}-selection-col-with-dropdown`]: {
          width: o(l).add(n).add(o(i).div(4)).equal()
        }
      },
      [`${e}-bordered ${e}-selection-col`]: {
        width: o(l).add(o(r).mul(2)).equal(),
        [`&${e}-selection-col-with-dropdown`]: {
          width: o(l).add(n).add(o(i).div(4)).add(o(r).mul(2)).equal()
        }
      },
      [`
        table tr th${e}-selection-column,
        table tr td${e}-selection-column,
        ${e}-selection-column
      `]: {
        paddingInlineEnd: t.paddingXS,
        paddingInlineStart: t.paddingXS,
        textAlign: "center",
        [`${d}-radio-wrapper`]: {
          marginInlineEnd: 0
        }
      },
      [`table tr th${e}-selection-column${e}-cell-fix-left`]: {
        zIndex: t.zIndexTableFixed + 1
      },
      [`table tr th${e}-selection-column::after`]: {
        backgroundColor: "transparent !important"
      },
      [`${e}-selection`]: {
        position: "relative",
        display: "inline-flex",
        flexDirection: "column"
      },
      [`${e}-selection-extra`]: {
        position: "absolute",
        top: 0,
        zIndex: 1,
        cursor: "pointer",
        transition: `all ${t.motionDurationSlow}`,
        marginInlineStart: "100%",
        paddingInlineStart: g(o($).div(4).equal()),
        [a]: {
          color: c,
          fontSize: n,
          verticalAlign: "baseline",
          "&:hover": {
            color: p
          }
        }
      },
      // ============================= Rows =============================
      [`${e}-tbody`]: {
        [`${e}-row`]: {
          [`&${e}-row-selected`]: {
            [`> ${e}-cell`]: {
              background: m,
              "&-row-hover": {
                background: s
              }
            }
          },
          [`> ${e}-cell-row-hover`]: {
            background: u
          }
        }
      }
    }
  };
}, B = b;
export {
  B as default
};
