import { c } from "react-compiler-runtime";
import React from "react";
import { Slide, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/inquiry/InquiryWrapper.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row",
		width: "100%",
		position: "relative"
	},
	sideBar: {
		width: (props) => props.nodeMinimized ? props.collapsedWidth : 350,
		background: theme.palette.common.white,
		borderRight: `1px solid ${theme.palette.divider}`
	},
	children: { width: "100%" }
}));
const InquiryWrapper = (props) => {
	const $ = c(24);
	const classes = useStyles(props);
	const { children, sideBar, nodeLoaded, onMouseEnter, onMouseLeave, className, sidebarClassName, childrenClassName } = props;
	let t0;
	if ($[0] !== className || $[1] !== classes.root) {
		t0 = clsx(classes.root, className);
		$[0] = className;
		$[1] = classes.root;
		$[2] = t0;
	} else t0 = $[2];
	let t1;
	if ($[3] !== classes.sideBar || $[4] !== sidebarClassName) {
		t1 = clsx(classes.sideBar, sidebarClassName);
		$[3] = classes.sideBar;
		$[4] = sidebarClassName;
		$[5] = t1;
	} else t1 = $[5];
	let t2;
	if ($[6] !== onMouseEnter || $[7] !== onMouseLeave || $[8] !== sideBar || $[9] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", {
			onMouseEnter,
			onMouseLeave,
			className: t1
		}, sideBar);
		$[6] = onMouseEnter;
		$[7] = onMouseLeave;
		$[8] = sideBar;
		$[9] = t1;
		$[10] = t2;
	} else t2 = $[10];
	let t3;
	if ($[11] !== nodeLoaded || $[12] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(Slide, {
			direction: "right",
			in: nodeLoaded,
			mountOnEnter: true,
			unmountOnExit: true
		}, t2);
		$[11] = nodeLoaded;
		$[12] = t2;
		$[13] = t3;
	} else t3 = $[13];
	let t4;
	if ($[14] !== childrenClassName || $[15] !== classes.children) {
		t4 = clsx(classes.children, childrenClassName);
		$[14] = childrenClassName;
		$[15] = classes.children;
		$[16] = t4;
	} else t4 = $[16];
	let t5;
	if ($[17] !== children || $[18] !== t4) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: t4 }, children);
		$[17] = children;
		$[18] = t4;
		$[19] = t5;
	} else t5 = $[19];
	let t6;
	if ($[20] !== t0 || $[21] !== t3 || $[22] !== t5) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: t0 }, t3, t5);
		$[20] = t0;
		$[21] = t3;
		$[22] = t5;
		$[23] = t6;
	} else t6 = $[23];
	return t6;
};
//#endregion
export { InquiryWrapper };

//# sourceMappingURL=InquiryWrapper.mjs.map