const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../Sales/Step/index.js");
const require_index$1 = require("../Cart/Item/index.js");
const require_index$2 = require("../Resource/index.js");
const require_index$3 = require("../Event/index.js");
const require_index$4 = require("../Information/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
require("./index.less");
//#region src/components/eventBooking/components/Provider/Content/index.tsx
const Layout = () => {
	const { currentStepData, isFirstStep } = require_index.useStep();
	(0, react.useEffect)(() => {
		window.scrollTo({
			top: 0,
			behavior: "smooth"
		});
	}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
	const Com = (0, react.useMemo)(() => {
		const key = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key;
		if (!key) return null;
		let Com = {
			"select-category": require_index$2.default,
			"select-event": require_index$3.default,
			"confirm-information": require_index$4.default
		}[key];
		return /* @__PURE__ */ react.default.createElement(Com, null);
	}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
	return /* @__PURE__ */ react.default.createElement("div", { className: `event-content-wrap ${(0, _pisell_utils.isMobile)() ? "event-content-mobile-wrap" : ""}` }, /* @__PURE__ */ react.default.createElement("div", { className: "event-content-left" }, Com), !(0, _pisell_utils.isMobile)() && !isFirstStep ? /* @__PURE__ */ react.default.createElement("div", { className: "event-content-right" }, /* @__PURE__ */ react.default.createElement(require_index$1.default, null)) : null);
};
//#endregion
exports.default = Layout;
