import { c } from "react-compiler-runtime";
import React from "react";
import { Container, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/UI/templates/OpenPage.jsx
const useStyles = makeStyles((theme) => ({ root: {
	flex: 1,
	display: "flex",
	flexDirection: "column",
	position: "absolute",
	top: 93
} }), { name: "PageContent" });
/**
* Page content wrapper that provides page gutters and container
*/
const OpenPage = (props) => {
	const $ = c(15);
	const classes = useStyles(props);
	let children;
	let className;
	let other;
	let t0;
	let t1;
	if ($[0] !== props) {
		({className, children, maxWidth: t0, disableGutters: t1, ...other} = props);
		$[0] = props;
		$[1] = children;
		$[2] = className;
		$[3] = other;
		$[4] = t0;
		$[5] = t1;
	} else {
		children = $[1];
		className = $[2];
		other = $[3];
		t0 = $[4];
		t1 = $[5];
	}
	const maxWidth = t0 === void 0 ? false : t0;
	const disableGutters = t1 === void 0 ? false : t1;
	let t2;
	if ($[6] !== className || $[7] !== classes.root) {
		t2 = clsx(className, classes.root);
		$[6] = className;
		$[7] = classes.root;
		$[8] = t2;
	} else t2 = $[8];
	let t3;
	if ($[9] !== children || $[10] !== disableGutters || $[11] !== maxWidth || $[12] !== other || $[13] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(Container, {
			...other,
			classes: null,
			className: t2,
			maxWidth,
			disableGutters
		}, children);
		$[9] = children;
		$[10] = disableGutters;
		$[11] = maxWidth;
		$[12] = other;
		$[13] = t2;
		$[14] = t3;
	} else t3 = $[14];
	return t3;
};
//#endregion
export { OpenPage };

//# sourceMappingURL=OpenPage.mjs.map