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 i } 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 a = (d) => {
  const {
    componentCls: r,
    tableRadius: t
  } = d;
  return {
    [`${r}-wrapper`]: {
      [r]: {
        // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574
        [`${r}-title, ${r}-header`]: {
          borderRadius: `${i(t)} ${i(t)} 0 0`
        },
        [`${r}-title + ${r}-container`]: {
          borderStartStartRadius: 0,
          borderStartEndRadius: 0,
          // https://github.com/ant-design/ant-design/issues/41975
          [`${r}-header, table`]: {
            borderRadius: 0
          },
          "table > thead > tr:first-child": {
            "th:first-child, th:last-child, td:first-child, td:last-child": {
              borderRadius: 0
            }
          }
        },
        "&-container": {
          borderStartStartRadius: t,
          borderStartEndRadius: t,
          "table > thead > tr:first-child": {
            "> *:first-child": {
              borderStartStartRadius: t
            },
            "> *:last-child": {
              borderStartEndRadius: t
            }
          }
        },
        "&-footer": {
          borderRadius: `0 0 ${i(t)} ${i(t)}`
        }
      }
    }
  };
}, S = a;
export {
  S as default
};
