import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
import PropTypes from "prop-types";
import ToggleButton from "@material-ui/lab/ToggleButton";
//#region src/UI/inputs/buttons/AmbientToggleButton.jsx
const useStyles = makeStyles((theme) => ({
	root: {},
	groupActionContainer: {
		display: "flex",
		flexDirection: "column",
		flexWrap: "wrap",
		alignContent: "space-around"
	},
	toggleRoot: {
		"&:not(:first-child)": {
			marginTop: 16,
			border: "1px solid lightgrey",
			borderTopLeftRadius: 25,
			borderTopRightRadius: 25,
			borderRadius: 25,
			padding: 0,
			paddingRight: theme.spacing(2)
		},
		"&:not(:last-child)": {
			borderBottomLeftRadius: 25,
			borderBottomRightRadius: 25,
			borderRadius: 25,
			padding: 0,
			border: "1px solid lightgrey",
			paddingRight: theme.spacing(2)
		},
		"& .MuiToggleButton-root.Mui-selected": {
			color: "rgba(0, 0, 0, 0.54)",
			backgroundColor: "white"
		}
	},
	buttonRoot: {
		textTransform: "none",
		fontWeight: 700,
		justifyContent: "flex-start"
	},
	".MuiToggleButton-root.Mui-selected": {
		color: "rgba(0, 0, 0, 0.54)",
		backgroundColor: "white"
	}
}));
const AmbientToggleButton = (t0) => {
	const $ = c(18);
	let ariaLabel;
	let children;
	let onClick;
	let otherProps;
	let value;
	if ($[0] !== t0) {
		({children, value, ariaLabel, onClick, ...otherProps} = t0);
		$[0] = t0;
		$[1] = ariaLabel;
		$[2] = children;
		$[3] = onClick;
		$[4] = otherProps;
		$[5] = value;
	} else {
		ariaLabel = $[1];
		children = $[2];
		onClick = $[3];
		otherProps = $[4];
		value = $[5];
	}
	const classes = useStyles();
	let t1;
	if ($[6] !== classes.buttonRoot) {
		t1 = { root: classes.buttonRoot };
		$[6] = classes.buttonRoot;
		$[7] = t1;
	} else t1 = $[7];
	let t2;
	if ($[8] !== ariaLabel || $[9] !== children || $[10] !== onClick || $[11] !== otherProps || $[12] !== t1 || $[13] !== value) {
		t2 = /* @__PURE__ */ React.createElement(ToggleButton, {
			classes: t1,
			value,
			"aria-label": ariaLabel,
			onClick,
			...otherProps
		}, children);
		$[8] = ariaLabel;
		$[9] = children;
		$[10] = onClick;
		$[11] = otherProps;
		$[12] = t1;
		$[13] = value;
		$[14] = t2;
	} else t2 = $[14];
	let t3;
	if ($[15] !== classes.root || $[16] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2);
		$[15] = classes.root;
		$[16] = t2;
		$[17] = t3;
	} else t3 = $[17];
	return t3;
};
AmbientToggleButton.propTypes = {
	children: PropTypes.node,
	value: PropTypes.string,
	ariaLabel: PropTypes.string,
	onClick: PropTypes.func
};
//#endregion
export { AmbientToggleButton };

//# sourceMappingURL=AmbientToggleButton.mjs.map