import { c } from "react-compiler-runtime";
import React from "react";
import { Backdrop, CircularProgress } from "@material-ui/core";
import { useTheme as useTheme$1 } from "@material-ui/core/styles";
//#region src/UI/loading/LoadingOverlay.jsx
const LoadingOverlay = (t0) => {
	const $ = c(6);
	const { open: t1 } = t0;
	const open = t1 === void 0 ? true : t1;
	const t2 = useTheme$1().zIndex.modal + 1;
	let t3;
	if ($[0] !== t2) {
		t3 = { zIndex: t2 };
		$[0] = t2;
		$[1] = t3;
	} else t3 = $[1];
	let t4;
	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
		t4 = /* @__PURE__ */ React.createElement(CircularProgress, { color: "primary" });
		$[2] = t4;
	} else t4 = $[2];
	let t5;
	if ($[3] !== open || $[4] !== t3) {
		t5 = /* @__PURE__ */ React.createElement(Backdrop, {
			open,
			style: t3
		}, t4);
		$[3] = open;
		$[4] = t3;
		$[5] = t5;
	} else t5 = $[5];
	return t5;
};
//#endregion
export { LoadingOverlay as default };

//# sourceMappingURL=LoadingOverlay.mjs.map