const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_FloorRoomCardFromData = require("./FloorRoomCardFromData.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.tsx
/**
* 平面图绑定桌位：RoomCard 视觉（demo 样式）+ 业务行映射数据。
* 内层为 {@link FloorRoomCardFromData}；本组件仅外包根节点并每分钟触发重绘以刷新倒计时/进度。
*/
function ReservationFloorRoomCard(props) {
	const { data, theme = "default", shellShape = "rect", elementLayoutHeightPx, hideHeaderCapacity = false } = props;
	const shapeData = shellShape === "circle" ? { "data-shape": "circle" } : {};
	const [, bumpLayoutTick] = (0, react.useReducer)((x) => x + 1, 0);
	(0, react.useEffect)(() => {
		const id = window.setInterval(() => {
			bumpLayoutTick();
		}, 6e4);
		return () => window.clearInterval(id);
	}, []);
	return /* @__PURE__ */ react.default.createElement("div", require_objectSpread2._objectSpread2({
		className: "pisell-res-floor-room-card",
		"data-theme": theme === "default" ? void 0 : theme
	}, shapeData), /* @__PURE__ */ react.default.createElement(require_FloorRoomCardFromData.FloorRoomCardFromData, {
		data,
		shellShape,
		elementLayoutHeightPx,
		hideHeaderCapacity
	}));
}
//#endregion
exports.ReservationFloorRoomCard = ReservationFloorRoomCard;
