import { genSubStyleComponent as i } from "../../theme/util/genComponentStyleHook.mjs";
import { prepareComponentToken as e, prepareToken as l } from "./index.mjs";
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 d } 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 c = (r) => {
  const {
    componentCls: o
  } = r;
  return {
    [`${o}${o}-bordered${o}-disabled:not(${o}-mini)`]: {
      "&, &:hover": {
        [`${o}-item-link`]: {
          borderColor: r.colorBorder
        }
      },
      "&:focus-visible": {
        [`${o}-item-link`]: {
          borderColor: r.colorBorder
        }
      },
      [`${o}-item, ${o}-item-link`]: {
        backgroundColor: r.colorBgContainerDisabled,
        borderColor: r.colorBorder,
        [`&:hover:not(${o}-item-active)`]: {
          backgroundColor: r.colorBgContainerDisabled,
          borderColor: r.colorBorder,
          a: {
            color: r.colorTextDisabled
          }
        },
        [`&${o}-item-active`]: {
          backgroundColor: r.itemActiveBgDisabled
        }
      },
      [`${o}-prev, ${o}-next`]: {
        "&:hover button": {
          backgroundColor: r.colorBgContainerDisabled,
          borderColor: r.colorBorder,
          color: r.colorTextDisabled
        },
        [`${o}-item-link`]: {
          backgroundColor: r.colorBgContainerDisabled,
          borderColor: r.colorBorder
        }
      }
    },
    [`${o}${o}-bordered:not(${o}-mini)`]: {
      [`${o}-prev, ${o}-next`]: {
        "&:hover button": {
          borderColor: r.colorPrimaryHover,
          backgroundColor: r.itemBg
        },
        [`${o}-item-link`]: {
          backgroundColor: r.itemLinkBg,
          borderColor: r.colorBorder
        },
        [`&:hover ${o}-item-link`]: {
          borderColor: r.colorPrimary,
          backgroundColor: r.itemBg,
          color: r.colorPrimary
        },
        [`&${o}-disabled`]: {
          [`${o}-item-link`]: {
            borderColor: r.colorBorder,
            color: r.colorTextDisabled
          }
        }
      },
      [`${o}-item`]: {
        backgroundColor: r.itemBg,
        border: `${d(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
        [`&:hover:not(${o}-item-active)`]: {
          borderColor: r.colorPrimary,
          backgroundColor: r.itemBg,
          a: {
            color: r.colorPrimary
          }
        },
        "&-active": {
          borderColor: r.colorPrimary
        }
      }
    }
  };
}, D = i(["Pagination", "bordered"], (r) => {
  const o = l(r);
  return [c(o)];
}, e);
export {
  D as default
};
