const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_useEngineContext = require("../../../../../../hooks/useEngineContext.js");
const require_utils = require("../../utils.js");
const require_index = require("../options/index.js");
const require_index$1 = require("../../../AmountFooter/index.js");
const require_index$2 = require("../../../Note/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/productCard/components/Packages/components/collapsibleList/utils.tsx
const prefix = "pisell-lowcode-";
const renderBundles = (item, hidePrice, isShowPackageNote) => {
	var _context$appHelper;
	let translation = (text) => "";
	const context = require_useEngineContext.default();
	const utils = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
	translation = (utils === null || utils === void 0 ? void 0 : utils.translationOriginal) || (utils === null || utils === void 0 ? void 0 : utils.translation);
	const { title, name, id, price, symbol, options, option } = item;
	return /* @__PURE__ */ react.default.createElement("div", {
		key: id,
		className: `${prefix}packages-product-bundle-item`
	}, /* @__PURE__ */ react.default.createElement("div", { className: `${prefix}packages-product-bundle-info` }, /* @__PURE__ */ react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-title` }, translation(title || name)), !hidePrice ? /* @__PURE__ */ react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-num` }, require_utils._formatAmount(price, symbol)) : null), /* @__PURE__ */ react.default.createElement(require_index.default, {
		options: options || option,
		amountSymbol: symbol
	}), /* @__PURE__ */ react.default.createElement(require_index$1.default, { item }), isShowPackageNote ? /* @__PURE__ */ react.default.createElement(require_index$2.default, {
		item,
		type: "inside"
	}) : null);
};
//#endregion
exports.renderBundles = renderBundles;
