import { resetComponent as p } from "../../style/index.mjs";
import m from "../../style/motion/collapse.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 "../../../../@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 s } from "../../theme/util/genComponentStyleHook.mjs";
import { merge as a } from "../../theme/util/statistic.mjs";
import c from "./dragger.mjs";
import u from "./list.mjs";
import d from "./motion.mjs";
import { genPictureStyle as g, genPictureCardStyle as f } from "./picture.mjs";
import S from "./rtl.mjs";
const y = (t) => {
  const {
    componentCls: e,
    colorTextDisabled: i
  } = t;
  return {
    [`${e}-wrapper`]: Object.assign(Object.assign({}, p(t)), {
      [e]: {
        outline: 0,
        "input[type='file']": {
          cursor: "pointer"
        }
      },
      [`${e}-select`]: {
        display: "inline-block"
      },
      [`${e}-disabled`]: {
        color: i,
        cursor: "not-allowed"
      }
    })
  };
}, C = (t) => ({
  actionsColor: t.colorTextDescription
}), U = s("Upload", (t) => {
  const {
    fontSizeHeading3: e,
    fontHeight: i,
    lineWidth: l,
    controlHeightLG: n,
    calc: r
  } = t, o = a(t, {
    uploadThumbnailSize: r(e).mul(2).equal(),
    uploadProgressOffset: r(r(i).div(2)).add(l).equal(),
    uploadPicCardSize: r(n).mul(2.55).equal()
  });
  return [y(o), c(o), g(o), f(o), u(o), d(o), S(o), m(o)];
}, C);
export {
  U as default,
  C as prepareComponentToken
};
