import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import Divider from "../Divider/index.js";
import CollapsibleList from "./components/collapsibleList/index.js";
import { renderBundles } from "./components/collapsibleList/utils.js";
import React from "react";
import { locales } from "@pisell/utils";
import "./index.less";
//#region src/components/productCard/components/Packages/index.tsx
const prefix = "pisell-lowcode-";
const Packages = ({ item, isShowPackageNote }) => {
	const bundle = (item === null || item === void 0 ? void 0 : item.bundle) || [];
	return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement("div", { className: `${prefix}product-packages-wrap` }, /* @__PURE__ */ React.createElement("div", { className: `${prefix}product-packages-title` }, locales.getText("pisell2.product.card.items.package")), /* @__PURE__ */ React.createElement(CollapsibleList, {
		list: bundle || [],
		renderItem: (items) => renderBundles(_objectSpread2(_objectSpread2({}, items), {}, { symbol: item === null || item === void 0 ? void 0 : item.symbol }), false, isShowPackageNote)
	}))) : null;
};
//#endregion
export { Packages as default };
