import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { withWrap } from "../../utils/hoc.js";
import React from "react";
import { Card, Flex } from "antd";
import classNames from "classnames";
import "./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.createElement(Card, {
		title: null,
		style: _objectSpread2({ padding: 0 }, style),
		className: classNames("pisell-cardPro-wrap", className, cover && "pisell-cardPro-wrap-with-cover")
	}, !!cover && /* @__PURE__ */ React.createElement("div", {
		className: classNames("pisell-cardPro-cover"),
		style: { height: coverHeight }
	}, cover, /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-cardPro-badge") }, badge)), isShowHead && /* @__PURE__ */ React.createElement(Flex, {
		className: classNames("pisell-cardPro-head"),
		justify: "space-between"
	}, /* @__PURE__ */ React.createElement(Flex, {
		style: { flex: 1 },
		vertical: true,
		gap: "middle"
	}, /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-cardPro-head-title") }, headTitle), /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-cardPro-head-subTitle") }, headSubTitle)), /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-cardPro-head-extra") }, extra)), /* @__PURE__ */ React.createElement(Flex, {
		style: { height: contentHeight },
		className: classNames("pisell-cardPro-content")
	}, children), isShowFooter && /* @__PURE__ */ React.createElement(Flex, {
		gap: 20,
		justify: buttonPosition,
		style: { marginTop: 20 }
	}, actionButtons.map((item, index) => {
		return item.button;
	})));
};
var cardPro_default = withWrap(CardPro);
//#endregion
export { cardPro_default as default };
