const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_hoc = require("../../utils/hoc.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/cardPro/index.tsx
const CardPro = (props) => {
	const { headTitle, headSubTitle, isShowFooter = true, contentHeight, children, actionButtons = [], buttonPosition = "center", cover, extra, isShowHead, className, coverHeight, badge, style } = props;
	return /* @__PURE__ */ react.default.createElement(antd.Card, {
		title: null,
		style: require_objectSpread2._objectSpread2({ padding: 0 }, style),
		className: (0, classnames.default)("pisell-cardPro-wrap", className, cover && "pisell-cardPro-wrap-with-cover")
	}, !!cover && /* @__PURE__ */ react.default.createElement("div", {
		className: (0, classnames.default)("pisell-cardPro-cover"),
		style: { height: coverHeight }
	}, cover, /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-cardPro-badge") }, badge)), isShowHead && /* @__PURE__ */ react.default.createElement(antd.Flex, {
		className: (0, classnames.default)("pisell-cardPro-head"),
		justify: "space-between"
	}, /* @__PURE__ */ react.default.createElement(antd.Flex, {
		style: { flex: 1 },
		vertical: true,
		gap: "middle"
	}, /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-cardPro-head-title") }, headTitle), /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-cardPro-head-subTitle") }, headSubTitle)), /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("pisell-cardPro-head-extra") }, extra)), /* @__PURE__ */ react.default.createElement(antd.Flex, {
		style: { height: contentHeight },
		className: (0, classnames.default)("pisell-cardPro-content")
	}, children), isShowFooter && /* @__PURE__ */ react.default.createElement(antd.Flex, {
		gap: 20,
		justify: buttonPosition,
		style: { marginTop: 20 }
	}, actionButtons.map((item, index) => {
		return item.button;
	})));
};
var cardPro_default = require_hoc.withWrap(CardPro);
//#endregion
exports.default = cardPro_default;
