var _excluded = ["bodyViewStorageKey", "floorMapHudTableDrawer"];
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from 'react';
import { PisellReservationCore } from "./PisellReservation";
import { PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY } from "./reservationConstants";
import { useReservationResponsiveVariant } from "./hooks/useReservationResponsiveVariant";
/**
 * 预约表格专用页面：仅 RecordBoard 表格（grid）子视图。
 *
 * - `bodyViewSwitchable={false}`：隐藏顶栏左上角「表格 / 平面图 / 日历 / 大屏」切换；
 * - `lockedBodyView="grid"`：锁定在表格视图。
 *
 * 沿用 {@link PisellReservationProps}；`variant` 未传时按视口 ≤768px 自适应 phone / desktop。
 * 默认 {@link PISELL_RESERVATION_TABLE_PAGE_STORAGE_KEY} 与主预约页、场控、大屏的 localStorage 分流。
 */
export var PisellReservationTablePage = function PisellReservationTablePage(props) {
  var variant = useReservationResponsiveVariant(props.variant);
  var bodyViewStorageKey = props.bodyViewStorageKey,
    floorMapHudTableDrawer = props.floorMapHudTableDrawer,
    rest = _objectWithoutProperties(props, _excluded);
  return /*#__PURE__*/React.createElement(PisellReservationCore, _extends({}, rest, {
    variant: 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
  }));
};
export default PisellReservationTablePage;