const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../appointmentBooking/deposit/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
require("../../../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.default.createElement(require_index.default, {
		total: deposit === null || deposit === void 0 ? void 0 : deposit.total,
		protocols,
		isAgreePolicy,
		isShowTitle: false,
		onChange,
		depositProtocolRequest: (id) => getProtocol(id)
	});
}
//#endregion
exports.default = VenueDeposit;
