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 { ReservationVenueScheduleStart } from "./components/PisellReservationSubcomponents.js";
import { PisellReservationCore } from "./PisellReservation.js";
import React, { useMemo } from "react";
//#region src/plus/pisellReservation/PisellVenueControlPage.tsx
const _excluded = [
	"scheduleStartSlot",
	"scheduleProps",
	"timeNavigatorProps"
];
/**
* 场控页面：仅平面图、锁日期导航、HUD 打开画布绑定资源表抽屉；子视图不持久化。
* 顶栏日期为只读文案（不可换日）；时间轴允许拖拽/点选以调整当日时刻。
*
* `variant` 与 {@link PisellReservationBookingPage} 一致：显式传入优先，否则按视口 ≤768px 落到 `phone`。
*/
const PisellVenueControlPage = (props) => {
	const variant = useReservationResponsiveVariant(props.variant);
	const { scheduleStartSlot, scheduleProps: schedulePropsProp, timeNavigatorProps: timeNavigatorPropsProp } = props, rest = _objectWithoutProperties(props, _excluded);
	const schedulePropsMerged = useMemo(() => _objectSpread2(_objectSpread2({}, schedulePropsProp), {}, {
		navigationLocked: true,
		navigationLockedDisplay: "labelOnly"
	}), [schedulePropsProp]);
	return /* @__PURE__ */ React.createElement(PisellReservationCore, _objectSpread2(_objectSpread2({}, rest), {}, {
		variant,
		scheduleStartSlot: scheduleStartSlot !== null && scheduleStartSlot !== void 0 ? scheduleStartSlot : /* @__PURE__ */ React.createElement(ReservationVenueScheduleStart, null),
		scheduleProps: schedulePropsMerged,
		timeNavigatorProps: timeNavigatorPropsProp,
		bodyViewSwitchable: false,
		lockedBodyView: "floorMap",
		bodyViewStorageKey: void 0,
		floorMapHudTableDrawer: true
	}));
};
//#endregion
export { PisellVenueControlPage as default };
