import { c } from "react-compiler-runtime";
import React from "react";
import { ButtonBase, Divider, Typography, makeStyles } from "@material-ui/core";
import { IncreaseIndentArrowIcon } from "@fluentui/react-icons";
import PropTypes from "prop-types";
//#region src/UI/inputs/buttons/FluentMenuListButton.jsx
const useStyles = makeStyles((theme) => ({
	wrapper: {
		display: "flex",
		flexDirection: "row",
		padding: theme.spacing(.5),
		"&:hover": { color: theme.palette.secondary.main },
		width: "100%"
	},
	titleWrapper: {
		display: "flex",
		width: "100%",
		textAlign: "left"
	},
	labelWrapper: { marginTop: 4 },
	label: { marginBottom: 4 }
}), { name: "FluentMenuListButton" });
const FluentMenuListButton = (props) => {
	const $ = c(33);
	const classes = useStyles();
	let label;
	let otherProps;
	let t0;
	let value;
	if ($[0] !== props) {
		({label, value, arrow: t0, ...otherProps} = props);
		$[0] = props;
		$[1] = label;
		$[2] = otherProps;
		$[3] = t0;
		$[4] = value;
	} else {
		label = $[1];
		otherProps = $[2];
		t0 = $[3];
		value = $[4];
	}
	const arrow = t0 === void 0 ? true : t0;
	let t1;
	if ($[5] !== classes.root) {
		t1 = { root: classes.root };
		$[5] = classes.root;
		$[6] = t1;
	} else t1 = $[6];
	let t2;
	if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = { fontWeight: 700 };
		$[7] = t2;
	} else t2 = $[7];
	let t3;
	if ($[8] !== label) {
		t3 = /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, " ", /* @__PURE__ */ React.createElement("span", { style: t2 }, label), " ");
		$[8] = label;
		$[9] = t3;
	} else t3 = $[9];
	let t4;
	if ($[10] !== classes.label || $[11] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.label }, " ", t3);
		$[10] = classes.label;
		$[11] = t3;
		$[12] = t4;
	} else t4 = $[12];
	let t5;
	if ($[13] !== value) {
		t5 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle2" }, value));
		$[13] = value;
		$[14] = t5;
	} else t5 = $[14];
	let t6;
	if ($[15] !== classes.labelWrapper || $[16] !== t4 || $[17] !== t5) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: classes.labelWrapper }, t4, t5);
		$[15] = classes.labelWrapper;
		$[16] = t4;
		$[17] = t5;
		$[18] = t6;
	} else t6 = $[18];
	let t7;
	if ($[19] !== arrow) {
		t7 = arrow && /* @__PURE__ */ React.createElement(IncreaseIndentArrowIcon, { style: { fontSize: 24 } });
		$[19] = arrow;
		$[20] = t7;
	} else t7 = $[20];
	let t8;
	if ($[21] !== classes.titleWrapper || $[22] !== t6 || $[23] !== t7) {
		t8 = /* @__PURE__ */ React.createElement("div", { className: classes.titleWrapper }, t6, t7);
		$[21] = classes.titleWrapper;
		$[22] = t6;
		$[23] = t7;
		$[24] = t8;
	} else t8 = $[24];
	let t9;
	if ($[25] !== classes.wrapper || $[26] !== otherProps || $[27] !== t1 || $[28] !== t8) {
		t9 = /* @__PURE__ */ React.createElement(ButtonBase, {
			classes: t1,
			className: classes.wrapper,
			disableRipple: true,
			...otherProps
		}, t8);
		$[25] = classes.wrapper;
		$[26] = otherProps;
		$[27] = t1;
		$[28] = t8;
		$[29] = t9;
	} else t9 = $[29];
	let t10;
	if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
		t10 = /* @__PURE__ */ React.createElement(Divider, null);
		$[30] = t10;
	} else t10 = $[30];
	let t11;
	if ($[31] !== t9) {
		t11 = /* @__PURE__ */ React.createElement("div", null, t9, t10);
		$[31] = t9;
		$[32] = t11;
	} else t11 = $[32];
	return t11;
};
FluentMenuListButton.propTypes = { label: PropTypes.string.isRequired };
//#endregion
export { FluentMenuListButton };

//# sourceMappingURL=FluentMenuListButton.mjs.map