import Deposit from "../../../appointmentBooking/deposit/index.js";
import React from "react";
import "../../../appointmentBooking/deposit/index.less";
//#region src/components/venueBooking/components/Deposit/index.tsx
/**
* venueBooking 定金协议组件
* 复用 appointmentBooking/deposit 作为渲染引擎，适配 venueBooking 的数据形状：
*   - deposit_policy_data（场地预订）→ protocols（appointmentBooking 期望字段）
*   - venueBookingModule.getProtocol(id) → depositProtocolRequest
*/
function VenueDeposit({ deposit, isAgreePolicy, onChange, getProtocol }) {
	if (!(deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit)) return null;
	const protocols = (deposit === null || deposit === void 0 ? void 0 : deposit.deposit_policy_data) || [];
	return /* @__PURE__ */ React.createElement(Deposit, {
		total: deposit === null || deposit === void 0 ? void 0 : deposit.total,
		protocols,
		isAgreePolicy,
		isShowTitle: false,
		onChange,
		depositProtocolRequest: (id) => getProtocol(id)
	});
}
//#endregion
export { VenueDeposit as default };
