import { mock } from "../../mock.js";
import SelectDate_default from "./components/SelectDate/index.js";
import React from "react";
import "./index.less";
//#region src/components/eventBooking/components/bookingAvailabilityCalendar/index.tsx
const BookingAvailabilityCalendar = (props) => {
	var _mock$availability_ca, _mock$availability_ca2, _mock$availability_ca3;
	const { showCalendarPopup, onDateChange, detail = (_mock$availability_ca = mock.availability_calendar) === null || _mock$availability_ca === void 0 ? void 0 : _mock$availability_ca.detail, currentDate = (_mock$availability_ca2 = mock.availability_calendar) === null || _mock$availability_ca2 === void 0 ? void 0 : _mock$availability_ca2.currentDate, cutTime = (_mock$availability_ca3 = mock.availability_calendar) === null || _mock$availability_ca3 === void 0 ? void 0 : _mock$availability_ca3.cutTime, onCurrentDateChange, onCutTimeChange, onSurplusDisabledChange } = props;
	console.log(detail, currentDate, cutTime, "detail, currentDate, cutTime");
	return /* @__PURE__ */ React.createElement("div", { className: "event-booking-availability-calendar" }, /* @__PURE__ */ React.createElement(SelectDate_default, {
		showCalendarPopup,
		detail,
		currentDate,
		currentDateChange: (date) => {
			onCurrentDateChange(date);
			if (currentDate !== date) onDateChange(date);
		},
		setSurplusDisabledChange: onSurplusDisabledChange,
		cutTime,
		setCutTime: onCutTimeChange
	}));
};
//#endregion
export { BookingAvailabilityCalendar as default };
