const require_runtime = require("../../../../../../../_virtual/_rolldown/runtime.js");
const require_utils = require("../../../utils.js");
const require_index = require("./DayItem/index.js");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
let dayjs_plugin_isSameOrBefore = require("dayjs/plugin/isSameOrBefore");
dayjs_plugin_isSameOrBefore = require_runtime.__toESM(dayjs_plugin_isSameOrBefore);
require("./index.less");
//#region src/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.tsx
dayjs.default.extend(dayjs_plugin_isSameOrBefore.default);
const Item = (props) => {
	const { date, status, disabled, select, onClick, showMonth, dateText, week } = props;
	return /* @__PURE__ */ React.createElement("div", {
		className: (0, classnames.default)("calendar-date-item", {
			disabledDate: disabled,
			disabledSelect: status === "sold_out",
			selectDate: select
		}),
		onClick: () => onClick && onClick(date)
	}, showMonth && /* @__PURE__ */ React.createElement("div", { className: "calendar-header-wrap" }, /* @__PURE__ */ React.createElement("div", { className: (0, classnames.default)("current-month", "current-year") }, require_utils.formatDate(dateText, "YYYY")), /* @__PURE__ */ React.createElement("div", { className: "current-month" }, require_utils.formatDate(dateText, "MMM"))), /* @__PURE__ */ React.createElement(require_index.default, {
		week,
		date,
		status
	}));
};
//#endregion
exports.default = Item;
