import { c } from "react-compiler-runtime";
import React from "react";
import { Badge, lighten, makeStyles } from "@material-ui/core";
import Tab$1 from "@material-ui/core/Tab";
//#region src/UI/navigation/tabs/defaultTabs/FluentSimpleTab.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		textTransform: "none",
		minWidth: 52,
		padding: 0,
		paddingLeft: (props) => !props.left ? theme.spacing(4) : theme.spacing(2),
		paddingRight: (props) => !props.left ? theme.spacing(4) : theme.spacing(8),
		fontWeight: theme.typography.fontWeightRegular,
		background: (props) => props.block && lighten(theme.palette.primary.main, .7),
		zIndex: 9,
		borderRight: (props) => props.block && "1px solid rgb(138 135 135)",
		marginRight: (props) => props.block ? 0 : theme.spacing(2),
		"&:hover": { background: (props) => props.block && lighten(theme.palette.primary.main, .6) },
		"&$selected": {},
		"&:focus": {}
	},
	wrapper: {
		flexDirection: "row",
		zIndex: theme.zIndex.appBar
	},
	labelIcon: { minHeight: 45 }
}));
const FluentSimpleTab = (props) => {
	const $ = c(29);
	let badgeContent;
	let className;
	let icon;
	let label;
	let onChange;
	let otherProps;
	let value;
	if ($[0] !== props) {
		({value, onChange, label, icon, className, badgeContent, ...otherProps} = props);
		$[0] = props;
		$[1] = badgeContent;
		$[2] = className;
		$[3] = icon;
		$[4] = label;
		$[5] = onChange;
		$[6] = otherProps;
		$[7] = value;
	} else {
		badgeContent = $[1];
		className = $[2];
		icon = $[3];
		label = $[4];
		onChange = $[5];
		otherProps = $[6];
		value = $[7];
	}
	const classes = useStyles(props);
	const t0 = "udpRecord-FluentSimpleTab-" + label + "-" + value;
	const t1 = "udpRecord-FluentSimpleTab-" + label + "-" + value;
	let t2;
	if ($[8] !== icon) {
		t2 = icon && /* @__PURE__ */ React.createElement("div", { style: { paddingRight: 10 } }, icon);
		$[8] = icon;
		$[9] = t2;
	} else t2 = $[9];
	let t3;
	if ($[10] !== badgeContent || $[11] !== label || $[12] !== otherProps) {
		t3 = badgeContent ? /* @__PURE__ */ React.createElement(Badge, otherProps, label) : label;
		$[10] = badgeContent;
		$[11] = label;
		$[12] = otherProps;
		$[13] = t3;
	} else t3 = $[13];
	let t4;
	if ($[14] !== classes.labelIcon || $[15] !== classes.root || $[16] !== classes.selected || $[17] !== classes.wrapper) {
		t4 = {
			root: classes.root,
			wrapper: classes.wrapper,
			labelIcon: classes.labelIcon,
			selected: classes.selected
		};
		$[14] = classes.labelIcon;
		$[15] = classes.root;
		$[16] = classes.selected;
		$[17] = classes.wrapper;
		$[18] = t4;
	} else t4 = $[18];
	let t5;
	if ($[19] !== className || $[20] !== onChange || $[21] !== otherProps || $[22] !== t0 || $[23] !== t1 || $[24] !== t2 || $[25] !== t3 || $[26] !== t4 || $[27] !== value) {
		t5 = /* @__PURE__ */ React.createElement(Tab$1, {
			id: t0,
			udprecordid: t1,
			icon: t2,
			value,
			onChange,
			...otherProps,
			label: t3,
			className,
			classes: t4
		});
		$[19] = className;
		$[20] = onChange;
		$[21] = otherProps;
		$[22] = t0;
		$[23] = t1;
		$[24] = t2;
		$[25] = t3;
		$[26] = t4;
		$[27] = value;
		$[28] = t5;
	} else t5 = $[28];
	return t5;
};
//#endregion
export { FluentSimpleTab };

//# sourceMappingURL=FluentSimpleTab.mjs.map