const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_utils = require("./utils.js");
const require_useEngineContext = require("../../../hooks/useEngineContext.js");
const require_index = require("../info2/index.js");
const require_main = require("./main.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
//#region src/components/booking/info/index.tsx
const APP = (props) => {
	var _context$appHelper, _context$appHelper$ge, _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3;
	const context = require_useEngineContext.default();
	const { globalState } = props;
	const shopId = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getData) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, "shop_id")) || ((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id);
	const isBooking4 = require_utils.isBooking4Shop(shopId, globalState === null || globalState === void 0 ? void 0 : globalState.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils);
	if (!shopId) return /* @__PURE__ */ react.default.createElement("div", { style: { padding: 16 } }, /* @__PURE__ */ react.default.createElement(antd.Skeleton, null));
	if (isBooking4 && (!(globalState === null || globalState === void 0 ? void 0 : globalState.bookingId) || (globalState === null || globalState === void 0 ? void 0 : globalState.isParallelResourcesBooking))) return /* @__PURE__ */ react.default.createElement(require_index.default, props);
	return /* @__PURE__ */ react.default.createElement(require_main.default, props);
};
//#endregion
exports.default = APP;
