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("../Packages/components/collapsibleList/index.js");
const require_utils = require("../Packages/components/collapsibleList/utils.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
require("./index.less");
//#region src/components/productCard/components/Sales/index.tsx
const prefix = "pisell-lowcode-";
const Sales = ({ item, isShowNote }) => {
	let other_products = (item === null || item === void 0 ? void 0 : item.relation_products) || [];
	other_products = other_products.map((p) => {
		return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, p), {}, {
			title: p === null || p === void 0 ? void 0 : p.product_title,
			price: p === null || p === void 0 ? void 0 : p.selling_price,
			symbol: item.symbol,
			num: p === null || p === void 0 ? void 0 : p.product_quantity,
			total: p === null || p === void 0 ? void 0 : p.selling_price
		});
	});
	return (other_products === null || other_products === void 0 ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ react.default.createElement("div", { className: `${prefix}product-sales-title` }, _pisell_utils.locales.getText("pisell2.product.card.sales")), /* @__PURE__ */ react.default.createElement(require_index.default, {
		list: other_products || [],
		renderItem: (items) => require_utils.renderBundles(items, true, isShowNote)
	}))) : null;
};
//#endregion
exports.default = Sales;
