const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_floorRoomCardDensity = require("../floorRoomCardDensity.js");
const require_floorRoomCardLayoutOptions = require("../floorRoomCardLayoutOptions.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
//#region src/plus/pisellReservation/floorRoomCard/views/RoomCardShellView.tsx
/**
* 单张 RoomCard 根壳：顶栏 + 可选主体。
* comfortable：方桌顶栏与正文分两截；圆桌在 {@link FloorRoomCardLayoutOptions.discUnifiedLayoutEnabled} 开启时合并为 `.rc-unified`。
* 其它档位：合并为 `.rc-unified`。
*/
function RoomCardShellView(props) {
	const { className, checkoutBookingKey, header, children, ribbonSlot, cornerSlot, shellShape = "rect", tooltipTimeStandaloneMain = false } = props;
	const density = require_floorRoomCardDensity.useFloorRoomCardDensity();
	const { discUnifiedLayoutEnabled } = require_floorRoomCardLayoutOptions.useFloorRoomCardLayoutOptions();
	/** compact 方桌拆顶栏；Tooltip 小卡档（方桌 micro / 圆桌 mini+micro）与合并壳（见 FloorRoomCardFromData） */
	const mergeHeaderBody = shellShape === "circle" && discUnifiedLayoutEnabled || require_floorRoomCardDensity.isFloorRoomCardTooltipDensity(density, shellShape);
	const mergedMainClassName = tooltipTimeStandaloneMain ? "rc-tooltip-time-main" : "rc-unified";
	const main = mergeHeaderBody ? /* @__PURE__ */ react.default.createElement("div", { className: mergedMainClassName }, header != null ? header : null, children) : /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, header != null ? header : null, children);
	return /* @__PURE__ */ react.default.createElement("div", {
		className: (0, classnames.default)(className, "rc-shell"),
		"data-pisell-floor-checkout-booking": checkoutBookingKey
	}, ribbonSlot, cornerSlot, main);
}
//#endregion
exports.RoomCardShellView = RoomCardShellView;
