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 l } from "../../theme/util/genComponentStyleHook.mjs";
import { merge as p } from "../../theme/util/statistic.mjs";
const a = (t) => {
  const {
    componentCls: m,
    margin: o,
    marginXS: i,
    marginXL: e,
    fontSize: r,
    lineHeight: g
  } = t;
  return {
    [m]: {
      marginInline: i,
      fontSize: r,
      lineHeight: g,
      textAlign: "center",
      // 原来 &-image 没有父子结构，现在为了外层承担我们的hashId，改成父子结果
      [`${m}-image`]: {
        height: t.emptyImgHeight,
        marginBottom: i,
        opacity: t.opacityImage,
        img: {
          height: "100%"
        },
        svg: {
          maxWidth: "100%",
          height: "100%",
          margin: "auto"
        }
      },
      [`${m}-description`]: {
        color: t.colorText
      },
      // 原来 &-footer 没有父子结构，现在为了外层承担我们的hashId，改成父子结果
      [`${m}-footer`]: {
        marginTop: o
      },
      "&-normal": {
        marginBlock: e,
        color: t.colorTextDisabled,
        [`${m}-description`]: {
          color: t.colorTextDisabled
        },
        [`${m}-image`]: {
          height: t.emptyImgHeightMD
        }
      },
      "&-small": {
        marginBlock: i,
        color: t.colorTextDisabled,
        [`${m}-image`]: {
          height: t.emptyImgHeightSM
        }
      }
    }
  };
}, f = l("Empty", (t) => {
  const {
    componentCls: m,
    controlHeightLG: o,
    calc: i
  } = t, e = p(t, {
    emptyImgCls: `${m}-img`,
    emptyImgHeight: i(o).mul(2.5).equal(),
    emptyImgHeightMD: o,
    emptyImgHeightSM: i(o).mul(0.875).equal()
  });
  return [a(e)];
});
export {
  f as default
};
