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 "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.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 "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import { genStyleHooks as c } from "../../theme/util/genComponentStyleHook.mjs";
const d = (t) => {
  const {
    componentCls: o,
    iconCls: r,
    antCls: i,
    zIndexPopup: p,
    colorText: l,
    colorWarning: m,
    marginXXS: a,
    marginXS: n,
    fontSize: e,
    fontWeightStrong: s,
    colorTextHeading: g
  } = t;
  return {
    [o]: {
      zIndex: p,
      [`&${i}-popover`]: {
        fontSize: e
      },
      [`${o}-message`]: {
        marginBottom: n,
        display: "flex",
        flexWrap: "nowrap",
        alignItems: "start",
        [`> ${o}-message-icon ${r}`]: {
          color: m,
          fontSize: e,
          lineHeight: 1,
          marginInlineEnd: n
        },
        [`${o}-title`]: {
          fontWeight: s,
          color: g,
          "&:only-child": {
            fontWeight: "normal"
          }
        },
        [`${o}-description`]: {
          marginTop: a,
          color: l
        }
      },
      [`${o}-buttons`]: {
        textAlign: "end",
        whiteSpace: "nowrap",
        button: {
          marginInlineStart: n
        }
      }
    }
  };
}, f = (t) => {
  const {
    zIndexPopupBase: o
  } = t;
  return {
    zIndexPopup: o + 60
  };
}, w = c("Popconfirm", (t) => d(t), f, {
  resetStyle: !1
});
export {
  w as default,
  f as prepareComponentToken
};
