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 g = (o) => {
  const {
    componentCls: t,
    opacityLoading: l,
    tableScrollThumbBg: n,
    tableScrollThumbBgHover: a,
    tableScrollThumbSize: r,
    tableScrollBg: c,
    zIndexTableSticky: i,
    stickyScrollBarBorderRadius: m,
    lineWidth: p,
    lineType: s,
    tableBorderColor: b
  } = o, d = `${e(p)} ${s} ${b}`;
  return {
    [`${t}-wrapper`]: {
      [`${t}-sticky`]: {
        "&-holder": {
          position: "sticky",
          zIndex: i,
          background: o.colorBgContainer
        },
        "&-scroll": {
          position: "sticky",
          bottom: 0,
          height: `${e(r)} !important`,
          zIndex: i,
          display: "flex",
          alignItems: "center",
          background: c,
          borderTop: d,
          opacity: l,
          "&:hover": {
            transformOrigin: "center bottom"
          },
          // fake scrollbar style of sticky
          "&-bar": {
            height: r,
            backgroundColor: n,
            borderRadius: m,
            transition: `all ${o.motionDurationSlow}, transform none`,
            position: "absolute",
            bottom: 0,
            "&:hover, &-active": {
              backgroundColor: a
            }
          }
        }
      }
    }
  };
}, z = g;
export {
  z as default
};
