import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import useEngineContext from "../../../../hooks/useEngineContext.js";
import locales_default from "../../locales.js";
import useToast$1 from "../../../../hooks/useToast.js";
import PaymentDetailModal from "../PaymentDetailModal/index.js";
import PisellPriceKeyboardPopover from "../../../../pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js";
import React, { useEffect, useMemo, useState } from "react";
import { Button, Dropdown } from "antd";
import { formatAmountWithOptions, locales } from "@pisell/utils";
import Decimal from "decimal.js";
import { Iconfont, PisellModal } from "@pisell/materials";
import classNames from "classnames";
import { CheckCircleOutlined, PieChartOutlined } from "@ant-design/icons";
import { Edit05 } from "@pisell/icon";
import "./index.less";
//#region src/components/checkout/components/AmountSummary/index.tsx
const ChevronSelectorVertical = ({ style }) => /* @__PURE__ */ React.createElement("svg", {
	width: "36",
	height: "36",
	viewBox: "0 0 36 36",
	fill: "none",
	xmlns: "http://www.w3.org/2000/svg",
	style
}, /* @__PURE__ */ React.createElement("path", {
	d: "M21 15L18 12L15 15M15 21L18 24L21 21",
	stroke: "currentColor",
	strokeWidth: "2",
	strokeLinecap: "round",
	strokeLinejoin: "round"
}));
function AmountSummary({ amountSymbol = "$", orderInfo, open_deposit = false, customAmount, balanceDueAmount, clientInfo, onAmountChange, onDepositStatusChange, onBalanceDueAmountClick, onConfirm, paymentItems, cartData, walletPassData, totalAmount = 0 }) {
	var _context$appHelper;
	const context = useEngineContext();
	const { pisellos, action, token, store, getApp } = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
	const Toast = useToast$1();
	const getText = (key, fallback) => {
		var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _checkoutLocales;
		const checkoutText = (_checkoutLocales = locales_default[((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.locales) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getLocale) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2)) || ((_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut4.storage) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.get("umi_locale")) || "en"]) === null || _checkoutLocales === void 0 ? void 0 : _checkoutLocales[key];
		if (checkoutText) return checkoutText;
		return locales.getText(key) || fallback;
	};
	const [paymentType, setPaymentType] = useState("regular");
	const [isPaymentDetailOpen, setIsPaymentDetailOpen] = useState(false);
	const [summaryData, setSummaryData] = useState([]);
	const [partialPaidAmount, setPartialPaidAmount] = useState("0");
	const checkoutModule = pisellos.getModule("checkout");
	const [isKeyboardVisible, setIsKeyboardVisible] = useState(false);
	const labelMaps = {
		deposit: getText("pisell2.subtotal.deposit") || "Deposit",
		total: getText("pisell2.subtotal.total") || "Total",
		sub_total: getText("pisell2.subtotal.subtotal") || "Subtotal",
		tax: getText("pisell2.subtotal.tax") || "Tax",
		delivery_fee: getText("pisell2.subtotal.delivery-fee") || "Delivery Fee",
		discount: getText("pisell2.subtotal.discount") || "Discount",
		point_deduction: getText("pisell2.subtotal.point-deduction") || "Point Deduction",
		member_deduction: getText("pisell2.subtotal.member-deduction") || "Member Deduction",
		expect_amount: getText("pisell2.subtotal.expect-amount") || "Expected Amount"
	};
	const getBalanceDueAmount = () => {
		if (paymentType === "deposit") return (orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.depositAmount) || "0";
		return (paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce((acc, item) => {
			if (item.isSynced || !item.voucher_id) return acc;
			return acc.plus(item.amount);
		}, new Decimal(0)).toNumber()) || 0;
	};
	const parseFormattedAmount = (formattedAmount) => {
		if (typeof formattedAmount === "number") return formattedAmount;
		if (typeof formattedAmount === "string") {
			const numericString = formattedAmount.replace(/[^-0-9.]/g, "");
			try {
				return new Decimal(numericString || "0").toNumber();
			} catch (_unused) {
				return 0;
			}
		}
		return 0;
	};
	const [currentAmount, setCurrentAmount] = useState(customAmount && customAmount !== "" ? customAmount : parseFormattedAmount(getBalanceDueAmount()));
	useEffect(() => {
		if (customAmount && customAmount !== "") setCurrentAmount(customAmount);
	}, [customAmount]);
	useEffect(() => {
		if (checkoutModule && orderInfo) try {
			const summary = checkoutModule.getCartSummary();
			if (Array.isArray(summary)) setSummaryData(summary);
			setPaymentType(orderInfo.isDeposit ? "deposit" : "regular");
		} catch (error) {
			console.warn("Failed to get cart summary:", error);
		}
	}, [checkoutModule, orderInfo]);
	useEffect(() => {
		if (summaryData.length > 0 && (!customAmount || customAmount === "")) setCurrentAmount(parseFormattedAmount(getBalanceDueAmount()));
	}, [summaryData, customAmount]);
	useEffect(() => {
		var _paymentItems$reduce;
		setPartialPaidAmount((paymentItems === null || paymentItems === void 0 || (_paymentItems$reduce = paymentItems.reduce((acc, item) => {
			if (!item.voucher_id || item.voucher_id && item.isSynced) {
				let itemAmount = new Decimal(item.amount || "0");
				if (item.rounding_amount) {
					const roundingAmount = new Decimal(item.rounding_amount);
					if (roundingAmount.isNegative()) {
						itemAmount = itemAmount.plus(roundingAmount.abs());
						console.log("添加抹零金额到已付:", roundingAmount.abs().toNumber(), "项目:", item);
					}
				}
				return acc.plus(itemAmount);
			}
			return acc;
		}, new Decimal(0))) === null || _paymentItems$reduce === void 0 ? void 0 : _paymentItems$reduce.toNumber()) || 0);
	}, [paymentItems]);
	const paymentOptions = [{
		key: "regular",
		label: /* @__PURE__ */ React.createElement("div", { className: classNames("amount-summary-dropdown-option") }, /* @__PURE__ */ React.createElement(CheckCircleOutlined, { className: classNames("dropdown-icon") }), getText("regular.payment") || "普通支付")
	}, {
		key: "deposit",
		label: /* @__PURE__ */ React.createElement("div", { className: classNames("amount-summary-dropdown-option") }, /* @__PURE__ */ React.createElement(PieChartOutlined, { className: classNames("dropdown-icon") }), getText("deposit.payment") || "定金支付")
	}];
	const handlePaymentTypeChange = (key) => {
		const newPaymentType = key;
		setPaymentType(newPaymentType);
		if (onDepositStatusChange) onDepositStatusChange(newPaymentType === "deposit");
	};
	const handleMoreClick = function() {
		var _ref = _asyncToGenerator(function* () {
			setIsPaymentDetailOpen(true);
		});
		return function handleMoreClick() {
			return _ref.apply(this, arguments);
		};
	}();
	const handlePaymentDetailClose = () => {
		setIsPaymentDetailOpen(false);
	};
	const getPaymentButtonClassName = () => {
		return classNames(open_deposit ? "payment-button-with-dropdown" : "payment-button-without-dropdown", paymentType === "deposit" ? "payment-button-deposit" : "payment-button-regular");
	};
	const shouldShowPartialPaidCard = () => {
		var _paymentItems$reduce2;
		const partialPaidAmountDecimal = new Decimal(partialPaidAmount || "0");
		const voucherPaymentAmount = (paymentItems === null || paymentItems === void 0 || (_paymentItems$reduce2 = paymentItems.reduce((acc, item) => {
			if (item.voucher_id && !item.isSynced) try {
				const amount = new Decimal(item.amount || "0");
				const roundingAmount = new Decimal(item.rounding_amount || "0");
				return acc.plus(amount).plus(roundingAmount);
			} catch (_unused5) {
				return acc;
			}
			return acc;
		}, new Decimal(0))) === null || _paymentItems$reduce2 === void 0 ? void 0 : _paymentItems$reduce2.toNumber()) || 0;
		const totalPaidAmount = partialPaidAmountDecimal.plus(voucherPaymentAmount).toNumber();
		const syncedPaymentItems = (paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.filter((item) => item.isSynced && !item.voucher_id)) || [];
		if ((syncedPaymentItems === null || syncedPaymentItems === void 0 ? void 0 : syncedPaymentItems.length) > 0 && totalPaidAmount < totalAmount) return true;
		if (totalPaidAmount >= totalAmount) return false;
		return partialPaidAmountDecimal.toNumber() > 0;
	};
	const renderSummaryItems = () => {
		if (!summaryData || summaryData.length === 0) return null;
		const maxVisibleItems = shouldShowPartialPaidCard() ? 2 : 3;
		return (summaryData.length > maxVisibleItems ? summaryData.slice(0, maxVisibleItems) : summaryData).map((item) => {
			const displayLabel = item.label || labelMaps[item.key] || item.key;
			return /* @__PURE__ */ React.createElement("div", {
				key: item.key,
				className: classNames("payment-detail-row")
			}, /* @__PURE__ */ React.createElement("span", { className: classNames("payment-detail-label") }, displayLabel), /* @__PURE__ */ React.createElement("span", { className: classNames("payment-detail-amount") }, formatAmountWithOptions(item.value, amountSymbol, {
				precision: 2,
				hideDecimalForWholeNumbers: false,
				useThousandsSeparator: true,
				showCurrencySymbol: true
			})));
		});
	};
	const hasMoreItems = () => {
		if (!summaryData) return false;
		const maxVisibleItems = shouldShowPartialPaidCard() ? 2 : 3;
		return summaryData.length > maxVisibleItems;
	};
	const shouldShowConfirmMode = () => {
		if (!customAmount) return false;
		let amount;
		try {
			amount = new Decimal(customAmount).toNumber();
		} catch (_unused6) {
			return false;
		}
		if (amount <= 0) {
			var _walletPassData$selec, _walletPassData$selec2;
			const unSyncedPaymentItems = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.filter((item) => !item.isSynced);
			return (unSyncedPaymentItems === null || unSyncedPaymentItems === void 0 ? void 0 : unSyncedPaymentItems.every((item) => item.voucher_id)) || ((_walletPassData$selec = walletPassData === null || walletPassData === void 0 || (_walletPassData$selec2 = walletPassData.selectedDiscountList) === null || _walletPassData$selec2 === void 0 ? void 0 : _walletPassData$selec2.length) !== null && _walletPassData$selec !== void 0 ? _walletPassData$selec : 0) > 0;
		}
		return false;
	};
	const handleConfirmClick = () => {
		if (onConfirm) onConfirm();
	};
	const handleVoidPayment = function() {
		var _ref2 = _asyncToGenerator(function* (paymentItem) {
			console.log("Void payment:", paymentItem);
			yield checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.deletePaymentItemAsync(paymentItem.uuid);
			console.log("支付项已删除");
		});
		return function handleVoidPayment(_x) {
			return _ref2.apply(this, arguments);
		};
	}();
	const renderConfirmMode = () => {
		let balanceDecimal = new Decimal(parseFormattedAmount(getBalanceDueAmount()));
		const syncedVoucherAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce((acc, item) => {
			if ((item.isSynced || item.voucher_id) && (paymentType === "regular" && item.order_payment_type !== "deposit" || paymentType === "deposit" && item.order_payment_type === "deposit")) return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
			return acc;
		}, new Decimal(0)).toNumber();
		balanceDecimal = new Decimal(Math.abs(balanceDecimal.minus(new Decimal(syncedVoucherAmount)).toNumber()));
		const finalBalanceAmount = formatAmountWithOptions(balanceDecimal.toNumber(), amountSymbol, {
			precision: 2,
			hideDecimalForWholeNumbers: false,
			useThousandsSeparator: true,
			showCurrencySymbol: true
		});
		return /* @__PURE__ */ React.createElement("div", { className: classNames("confirm-payment-container") }, /* @__PURE__ */ React.createElement("div", { className: classNames("confirm-payment-content") }, /* @__PURE__ */ React.createElement("div", { className: classNames("confirm-payment-text") }, getText("will.be.paid.in.full") || "Will be paid in full", " ", /* @__PURE__ */ React.createElement("span", { className: classNames("amount-text") }, finalBalanceAmount), " ", getText("by.wallet") || "by Wallet"), /* @__PURE__ */ React.createElement(Button, {
			className: classNames("confirm-button"),
			onClick: handleConfirmClick,
			type: "primary"
		}, getText("confirm") || "Confirm")));
	};
	const getMiddleContent = () => {
		if (paymentType === "deposit") return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classNames("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ React.createElement("div", { className: classNames("partial-paid-card") }, /* @__PURE__ */ React.createElement("span", { className: classNames("partial-paid-label") }, paymentType === "deposit" ? getText("deposit.partial.paid") || "Deposit Paid" : getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ React.createElement("span", { className: classNames("partial-paid-amount") }, formatAmountWithOptions(partialPaidAmount, amountSymbol, {
			precision: 2,
			hideDecimalForWholeNumbers: false,
			useThousandsSeparator: true,
			showCurrencySymbol: true
		}))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ React.createElement("div", {
			className: classNames("more-section"),
			onClick: handleMoreClick,
			style: { cursor: "pointer" },
			role: "button"
		}, /* @__PURE__ */ React.createElement("span", { className: classNames("more-text") }, getText("more") || "更多"), /* @__PURE__ */ React.createElement(Iconfont, {
			type: "pisell2-TriangleFill",
			style: { fontSize: "12px" }
		}))));
		else return /* @__PURE__ */ React.createElement("div", { className: classNames("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ React.createElement("div", { className: classNames("partial-paid-card") }, /* @__PURE__ */ React.createElement("span", { className: classNames("partial-paid-label") }, getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ React.createElement("span", { className: classNames("partial-paid-amount") }, formatAmountWithOptions(partialPaidAmount, amountSymbol, {
			precision: 2,
			hideDecimalForWholeNumbers: false,
			useThousandsSeparator: true,
			showCurrencySymbol: true
		}))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ React.createElement("div", {
			className: classNames("more-section"),
			onClick: handleMoreClick,
			style: { cursor: "pointer" },
			role: "button"
		}, /* @__PURE__ */ React.createElement("span", { className: classNames("more-text") }, getText("more") || "更多"), /* @__PURE__ */ React.createElement(Iconfont, {
			type: "pisell2-TriangleFill",
			style: {
				fontSize: "24px",
				color: "#C3B2E7"
			}
		})));
	};
	const canSwitch = useMemo(() => {
		if (Number(orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.totalAmount) === 0) return false;
		if (paymentType === "regular") {
			const depositFlag = (paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce((acc, item) => {
				if (item.order_payment_type === "deposit") return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
				return acc;
			}, new Decimal(0)).toNumber()) >= new Decimal((orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.depositAmount) || "0").toNumber() && Number(orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.depositAmount) > 0;
			return !(paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.some((item) => item.order_payment_type === "normal")) && !depositFlag;
		} else return (paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce((acc, item) => {
			if (item.order_payment_type === "deposit") return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
			return acc;
		}, new Decimal(0)).toNumber()) < new Decimal(totalAmount).toNumber();
	}, [
		paymentItems,
		paymentType,
		totalAmount
	]);
	useMemo(() => {
		return balanceDueAmount !== customAmount && Number(balanceDueAmount) > 0 && Number(customAmount) > 0;
	}, [customAmount, balanceDueAmount]);
	const handleChangeDepositAmount = (value) => {
		const valueStr = String(value);
		console.log("handleChangeDepositAmount", valueStr);
		checkoutModule === null || checkoutModule === void 0 || checkoutModule.setDepositAmountAsync(valueStr);
	};
	const hasDepositPayment = useMemo(() => {
		return paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.some((item) => item.order_payment_type === "deposit" && item.status !== "voided");
	}, [paymentItems]);
	const showCanNotChangeDepositAmount = () => {
		Toast === null || Toast === void 0 || Toast.fail(locales.getText("pisell2.checkout.can-not-change-deposit-amount"));
	};
	return /* @__PURE__ */ React.createElement("div", { className: classNames("amount-summary-module", "amount-summary-container") }, /* @__PURE__ */ React.createElement("div", { className: classNames("left-section") }, open_deposit && canSwitch ? /* @__PURE__ */ React.createElement(Dropdown, {
		menu: {
			items: paymentOptions,
			onClick: ({ key }) => handlePaymentTypeChange(key),
			style: {
				backgroundColor: "#7F56DA",
				border: "1px solid #C3B2E7",
				borderRadius: "8px",
				padding: "8px 16px"
			}
		},
		trigger: ["click"],
		placement: "bottomLeft",
		overlayClassName: "amount-summary-dropdown"
	}, /* @__PURE__ */ React.createElement(Button, { className: getPaymentButtonClassName() }, /* @__PURE__ */ React.createElement("div", { className: classNames("button-content") }, /* @__PURE__ */ React.createElement("span", { className: classNames("button-text") }, paymentType === "deposit" ? getText("deposit.payment.short") || "定金\n支付" : getText("regular.payment.short") || "普通\n支付"), /* @__PURE__ */ React.createElement(ChevronSelectorVertical, { style: {
		width: "36px",
		height: "36px"
	} })))) : /* @__PURE__ */ React.createElement(Button, { className: getPaymentButtonClassName() }, /* @__PURE__ */ React.createElement("div", null, paymentType === "deposit" ? getText("deposit.text") || "定金" : getText("regular.text") || "普通"), /* @__PURE__ */ React.createElement("div", null, getText("payment.text") || "支付")), /* @__PURE__ */ React.createElement(Iconfont, {
		type: "pisell2-arrow-right",
		style: { fontSize: "20px" }
	})), /* @__PURE__ */ React.createElement("div", { className: classNames("middle-section") }, getMiddleContent()), /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-card", { "confirm-mode": shouldShowConfirmMode() }) }, shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-info") }, paymentType === "deposit" ? hasDepositPayment ? /* @__PURE__ */ React.createElement("div", { onClick: () => showCanNotChangeDepositAmount() }, /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-label") }, getText("deposit.due") || "Deposit Due"), /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-amount") }, formatAmountWithOptions(balanceDueAmount, amountSymbol, {
		precision: 2,
		hideDecimalForWholeNumbers: false,
		useThousandsSeparator: true,
		showCurrencySymbol: true
	}), /* @__PURE__ */ React.createElement(Edit05, {
		className: classNames("edit-icon"),
		style: { color: "#7F56DA" }
	}))) : /* @__PURE__ */ React.createElement(PisellPriceKeyboardPopover, {
		value: balanceDueAmount || "0",
		onConfirm: handleChangeDepositAmount,
		showCurrencySymbol: true,
		useThousandsSeparator: true,
		selectType: "dark",
		overlayClassName: "cash-payment-keyboard-popover"
	}, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-label") }, getText("deposit.due") || "Deposit Due"), /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-amount") }, formatAmountWithOptions(balanceDueAmount, amountSymbol, {
		precision: 2,
		hideDecimalForWholeNumbers: false,
		useThousandsSeparator: true,
		showCurrencySymbol: true
	}), /* @__PURE__ */ React.createElement(Edit05, {
		className: classNames("edit-icon"),
		style: { color: "#7F56DA" }
	})))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classNames("balance-due-label") }, getText("balance.due") || "Balance Due"), /* @__PURE__ */ React.createElement("div", {
		className: classNames("balance-due-amount"),
		onClick: () => {
			onBalanceDueAmountClick === null || onBalanceDueAmountClick === void 0 || onBalanceDueAmountClick("manual-discount");
		}
	}, formatAmountWithOptions(balanceDueAmount, amountSymbol, {
		precision: 2,
		hideDecimalForWholeNumbers: false,
		useThousandsSeparator: true,
		showCurrencySymbol: true
	}), /* @__PURE__ */ React.createElement(Edit05, {
		className: classNames("edit-icon"),
		style: { color: "#7F56DA" }
	})))), Number(currentAmount) > 0 && /* @__PURE__ */ React.createElement("div", {
		className: classNames("pay-section"),
		style: { cursor: "pointer" },
		role: "button"
	}, /* @__PURE__ */ React.createElement("span", { className: classNames("pay-text") }, getText("pay") || "支付"), /* @__PURE__ */ React.createElement("span", { className: classNames("pay-amount") }, formatAmountWithOptions((() => {
		try {
			return new Decimal(currentAmount || "0").toNumber();
		} catch (_unused7) {
			return 0;
		}
	})(), amountSymbol, {
		precision: 2,
		hideDecimalForWholeNumbers: false,
		useThousandsSeparator: true,
		showCurrencySymbol: true
	})))), /* @__PURE__ */ React.createElement(PisellModal, {
		open: isPaymentDetailOpen,
		onCancel: handlePaymentDetailClose,
		footer: null,
		closable: true,
		mask: true,
		maskClosable: true,
		centered: true,
		width: 600,
		wrapClassName: "payment-detail-modal-wrapper",
		title: getText("order.and.payment.summary") || "Order and Payment Summary"
	}, isPaymentDetailOpen && /* @__PURE__ */ React.createElement(PaymentDetailModal, {
		amountSymbol,
		orderInfo,
		cartData,
		onClose: handlePaymentDetailClose,
		summaryData,
		labelMaps,
		paymentItems,
		customAmount,
		voidPayment: handleVoidPayment,
		walletPassData,
		clientInfo
	})));
}
//#endregion
export { AmountSummary as default };
