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