import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { CalendarPersistProvider } from "./calendarPersistGuard.js";
import BookingCalendar from "./BookingCalendar.js";
import React from "react";
import classNames from "classnames";
//#region src/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.tsx
const _excluded = [
	"persistGuard",
	"className",
	"style"
];
/**
* RecordBoard 日历视图：内嵌 `BookingCalendar`（Tailwind 由包入口 `pisell-materials.tw.css` 注入）。
*
* **布局分工**：外层 Shell 上 `pisell-record-board-calendar-viewport`（flex:1 / min-height:0 / overflow:hidden）
* 只做「占位与裁剪高度」；本组件根节点负责在同一 flex 列里向下传递 **min-height:0**，避免 `BookingCalendar`
* 撑破壳层（一层即可，历史上曾双包一层重复 flex+overflow）。
*/
function PisellRecordBoardCalendarView(props) {
	const { persistGuard, className, style } = props, rest = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(CalendarPersistProvider, { value: persistGuard }, /* @__PURE__ */ React.createElement("div", {
		id: "pisell-record-board-calendar-root",
		className: classNames(className, "flex min-h-0 flex-1 flex-col overflow-hidden"),
		style: _objectSpread2({
			height: "100%",
			minHeight: 0
		}, style)
	}, /* @__PURE__ */ React.createElement(BookingCalendar, rest)));
}
//#endregion
export { PisellRecordBoardCalendarView };
