import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import CollapsibleList from "../../../components/Packages/components/collapsibleList/index.js";
import BasicInfo from "../basicInfo/index.js";
import { PREFIX } from "../../index.js";
import React from "react";
import { locales } from "@pisell/utils";
import { Divider } from "antd";
import "./index.less";
//#region src/components/productCard/cartSkuCard/components/packages/index.tsx
const Packages = ({ isShowImage, dataSource = {} }) => {
	const { bundle = [], symbol = "$" } = dataSource;
	return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Divider, { style: { margin: 0 } }), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__packages-wrap` }, /* @__PURE__ */ React.createElement("div", { className: `packages-title` }, locales.getText("pisell2.cart.sku-card.packages.title")), /* @__PURE__ */ React.createElement(CollapsibleList, {
		style: { marginTop: 4 },
		list: bundle || [],
		renderItem: (item) => {
			return /* @__PURE__ */ React.createElement(BasicInfo, {
				isShowImage,
				dataSource: _objectSpread2(_objectSpread2({}, item), {}, {
					name: item.title,
					image: item.cover,
					symbol
				}),
				style: {
					border: "1px solid #D0D5DD",
					borderRadius: 4,
					padding: 4
				}
			});
		}
	}))) : null;
};
//#endregion
export { Packages as default };
