import useEngineContext from "../../hooks/useEngineContext.js";
import { normalizeEntryContext } from "./hooks.js";
import { ScanOrderProvider } from "./context.js";
import Content from "./components/Content/index.js";
import locales_default from "./locales.js";
import React from "react";
import { isMobile, locales } from "@pisell/utils";
//#region src/components/scanOrder/index.tsx
function ScanOrder(props) {
	var _context$engine, _context$engine2;
	const context = useEngineContext();
	const entryContext = normalizeEntryContext(context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 ? void 0 : _context$engine.props);
	locales.init(locales_default, (context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale) || "en");
	return /* @__PURE__ */ React.createElement("div", { className: `pisell-scan-order-wrap ${isMobile() ? "pisell-scan-order-mobile-wrap" : ""}` }, /* @__PURE__ */ React.createElement(ScanOrderProvider, { entryContext }, /* @__PURE__ */ React.createElement(Content, null)));
}
//#endregion
export { ScanOrder as default };
