const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_utils = require("../../../utils.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
require("./index.less");
//#region src/components/pay/toC/WalletPassBlock/components/WalletUseList/index.tsx
const iconMaps = {
	product_voucher: "pisell2-daijinquan",
	point_card: "pisell2-jifenka",
	gift_card: "pisell2-chongzhika",
	customer_wallet: "pisell2-qianbao"
};
const WalletUseList = (props) => {
	const { walletPass = [] } = props;
	return /* @__PURE__ */ react.default.createElement("div", { className: "toc-pay-wallet-use-list" }, walletPass.map((item) => /* @__PURE__ */ react.default.createElement("div", { className: "toc-pay-wallet-use-list-item" }, /* @__PURE__ */ react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-name" }, /* @__PURE__ */ react.default.createElement(_pisell_materials.Icon, {
		type: iconMaps[item.tag] || "pisell2-daijinquan",
		className: "toc-pay-wallet-use-list-item-icon"
	}), item.product_name), /* @__PURE__ */ react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-amount" }, "-", /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellText.Amount, { value: require_utils.getAvailableMaxAmount(item) })))));
};
//#endregion
exports.default = WalletUseList;
