import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import useReservationResponsiveVariant from "./hooks/useReservationResponsiveVariant.js";
import { PISELL_RESERVATION_BODY_VIEW_STORAGE_KEY } from "./reservationConstants.js";
import { PisellReservationCore } from "./PisellReservation.js";
import React from "react";
//#region src/plus/pisellReservation/PisellReservationBookingPage.tsx
/**
* 预约页面：双视图可切换、子视图持久化，行为对齐原 PisellReservation 页面。
*
* `variant` 解析策略（与 responsive skill 的 props 优先级一致）：
* 1. 调用方显式传入的 `props.variant` 最高优先；
* 2. 否则按视口宽度（≤ 768px）自适应到 `'phone'` / `'desktop'`，随窗口/横竖屏变化实时切换。
*/
const PisellReservationBookingPage = (props) => {
	var _props$bodyViewStorag;
	const variant = useReservationResponsiveVariant(props.variant);
	return /* @__PURE__ */ React.createElement(PisellReservationCore, _objectSpread2(_objectSpread2({}, props), {}, {
		bodyViewStorageKey: (_props$bodyViewStorag = props.bodyViewStorageKey) !== null && _props$bodyViewStorag !== void 0 ? _props$bodyViewStorag : PISELL_RESERVATION_BODY_VIEW_STORAGE_KEY,
		variant
	}));
};
/**
* 与 {@link PisellReservationBookingPage} 相同实现。
* 低代码存量页面仍使用 `componentName: PisellReservation` 时由物料包导出此名以解析组件。
*/
const PisellReservation = PisellReservationBookingPage;
//#endregion
export { PisellReservation, PisellReservationBookingPage as default };
