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 n } 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";
import { operationUnit as v } from "../../style/operationUnit.mjs";
const y = (a) => {
  const {
    componentCls: e,
    antCls: s,
    motionDurationSlow: d,
    lineWidth: o,
    paddingXS: b,
    lineType: g,
    tableBorderColor: f,
    tableExpandIconBg: m,
    tableExpandColumnWidth: u,
    borderRadius: x,
    tablePaddingVertical: l,
    tablePaddingHorizontal: p,
    tableExpandedRowBg: $,
    paddingXXS: h,
    expandIconMarginTop: w,
    expandIconSize: r,
    expandIconHalfInner: c,
    expandIconScale: I,
    calc: i
  } = a, S = `${n(o)} ${g} ${f}`, t = i(h).sub(o).equal();
  return {
    [`${e}-wrapper`]: {
      [`${e}-expand-icon-col`]: {
        width: u
      },
      [`${e}-row-expand-icon-cell`]: {
        textAlign: "center",
        [`${e}-row-expand-icon`]: {
          display: "inline-flex",
          float: "none",
          verticalAlign: "sub"
        }
      },
      [`${e}-row-indent`]: {
        height: 1,
        float: "left"
      },
      [`${e}-row-expand-icon`]: Object.assign(Object.assign({}, v(a)), {
        position: "relative",
        float: "left",
        boxSizing: "border-box",
        width: r,
        height: r,
        padding: 0,
        color: "inherit",
        lineHeight: n(r),
        background: m,
        border: S,
        borderRadius: x,
        transform: `scale(${I})`,
        transition: `all ${d}`,
        userSelect: "none",
        "&:focus, &:hover, &:active": {
          borderColor: "currentcolor"
        },
        "&::before, &::after": {
          position: "absolute",
          background: "currentcolor",
          transition: `transform ${d} ease-out`,
          content: '""'
        },
        "&::before": {
          top: c,
          insetInlineEnd: t,
          insetInlineStart: t,
          height: o
        },
        "&::after": {
          top: t,
          bottom: t,
          insetInlineStart: c,
          width: o,
          transform: "rotate(90deg)"
        },
        // Motion effect
        "&-collapsed::before": {
          transform: "rotate(-180deg)"
        },
        "&-collapsed::after": {
          transform: "rotate(0deg)"
        },
        "&-spaced": {
          "&::before, &::after": {
            display: "none",
            content: "none"
          },
          background: "transparent",
          border: 0,
          visibility: "hidden"
        }
      }),
      [`${e}-row-indent + ${e}-row-expand-icon`]: {
        marginTop: w,
        marginInlineEnd: b
      },
      [`tr${e}-expanded-row`]: {
        "&, &:hover": {
          "> th, > td": {
            background: $
          }
        },
        // https://github.com/ant-design/ant-design/issues/25573
        [`${s}-descriptions-view`]: {
          display: "flex",
          table: {
            flex: "auto",
            width: "auto"
          }
        }
      },
      // With fixed
      [`${e}-expanded-row-fixed`]: {
        position: "relative",
        margin: `${n(i(l).mul(-1).equal())} ${n(i(p).mul(-1).equal())}`,
        padding: `${n(l)} ${n(p)}`
      }
    }
  };
}, R = y;
export {
  R as default
};
