import { c } from "react-compiler-runtime";
import React from "react";
import { Drawer, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/shell/ui/MiniCollapsibleSidebar.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		width: theme?.dimensions?.drawerWidth,
		flexShrink: 0,
		whiteSpace: "nowrap"
	},
	expanded: { "&, & > $paper": {
		width: theme.spacing(32),
		transition: theme.transitions.create("width", {
			easing: theme.transitions.easing.sharp,
			duration: theme.transitions.duration.enteringScreen
		})
	} },
	collapsed: { "&, & > $paper": {
		overflowX: "hidden",
		width: theme.spacing(7) + 1,
		transition: theme?.transitions?.create("width", {
			easing: theme?.transitions?.easing?.sharp,
			duration: theme?.transitions?.duration?.leavingScreen
		})
	} },
	paper: {}
}), { name: "MiniCollapsibleSidebar" });
const MiniCollapsibleSidebar = (props) => {
	const $ = c(17);
	const classes = useStyles(props);
	let children;
	let className;
	let other;
	let t0;
	if ($[0] !== props) {
		({expanded: t0, className, children, ...other} = props);
		$[0] = props;
		$[1] = children;
		$[2] = className;
		$[3] = other;
		$[4] = t0;
	} else {
		children = $[1];
		className = $[2];
		other = $[3];
		t0 = $[4];
	}
	const t1 = (t0 === void 0 ? true : t0) ? classes.expanded : classes.collapsed;
	let t2;
	if ($[5] !== className || $[6] !== classes.root || $[7] !== t1) {
		t2 = clsx(className, classes.root, t1);
		$[5] = className;
		$[6] = classes.root;
		$[7] = t1;
		$[8] = t2;
	} else t2 = $[8];
	let t3;
	if ($[9] !== classes.paper || $[10] !== classes.root) {
		t3 = {
			root: classes.root,
			paper: classes.paper
		};
		$[9] = classes.paper;
		$[10] = classes.root;
		$[11] = t3;
	} else t3 = $[11];
	let t4;
	if ($[12] !== children || $[13] !== other || $[14] !== t2 || $[15] !== t3) {
		t4 = /* @__PURE__ */ React.createElement(Drawer, {
			variant: "permanent",
			open: true,
			...other,
			className: t2,
			classes: t3
		}, children);
		$[12] = children;
		$[13] = other;
		$[14] = t2;
		$[15] = t3;
		$[16] = t4;
	} else t4 = $[16];
	return t4;
};
//#endregion
export { MiniCollapsibleSidebar as default };

//# sourceMappingURL=MiniCollapsibleSidebar.mjs.map