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 useReservationResponsiveVariant from "./hooks/useReservationResponsiveVariant.js";
import { PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY } from "./reservationConstants.js";
import { PisellReservationCore } from "./PisellReservation.js";
import React from "react";
//#region src/plus/pisellReservation/PisellReservationTablePage.tsx
const _excluded = ["bodyViewStorageKey", "floorMapHudTableDrawer"];
/**
* 预约表格专用页面：仅 RecordBoard 表格（grid）子视图。
*
* - `bodyViewSwitchable={false}`：隐藏顶栏左上角「表格 / 平面图 / 日历 / 大屏」切换；
* - `lockedBodyView="grid"`：锁定在表格视图。
*
* 沿用 {@link PisellReservationProps}；`variant` 未传时按视口 ≤768px 自适应 phone / desktop。
* 默认 {@link PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY} 与主预约页、场控、大屏的 localStorage 分流。
*/
const PisellReservationTablePage = (props) => {
	const variant = useReservationResponsiveVariant(props.variant);
	const { bodyViewStorageKey, floorMapHudTableDrawer } = props, rest = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(PisellReservationCore, _objectSpread2(_objectSpread2({}, rest), {}, {
		variant,
		bodyViewStorageKey: bodyViewStorageKey !== null && bodyViewStorageKey !== void 0 ? bodyViewStorageKey : PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY,
		bodyViewSwitchable: false,
		lockedBodyView: "grid",
		floorMapHudTableDrawer: floorMapHudTableDrawer !== null && floorMapHudTableDrawer !== void 0 ? floorMapHudTableDrawer : false
	}));
};
//#endregion
export { PisellReservationTablePage as default };
