const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../../../components/Packages/components/collapsibleList/index.js");
const require_index$1 = require("../basicInfo/index.js");
const require_index$2 = require("../../index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let antd = require("antd");
require("./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.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement(antd.Divider, { style: { margin: 0 } }), /* @__PURE__ */ react.default.createElement("div", { className: `${require_index$2.PREFIX}__packages-wrap` }, /* @__PURE__ */ react.default.createElement("div", { className: `packages-title` }, _pisell_utils.locales.getText("pisell2.cart.sku-card.packages.title")), /* @__PURE__ */ react.default.createElement(require_index.default, {
		style: { marginTop: 4 },
		list: bundle || [],
		renderItem: (item) => {
			return /* @__PURE__ */ react.default.createElement(require_index$1.default, {
				isShowImage,
				dataSource: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, item), {}, {
					name: item.title,
					image: item.cover,
					symbol
				}),
				style: {
					border: "1px solid #D0D5DD",
					borderRadius: 4,
					padding: 4
				}
			});
		}
	}))) : null;
};
//#endregion
exports.default = Packages;
