import { FluentIconButton } from "../../UI/inputs/buttons/FluentIconButton.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { lighten, makeStyles, useTheme } from "@material-ui/core";
import { AlertSolidIcon, BoxMultiplySolidIcon, HomeIcon } from "@fluentui/react-icons";
//#region src/map-library/ui/FilterOptions.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row"
	},
	divider: {
		marginRight: theme.spacing(2),
		marginLeft: theme.spacing(2)
	}
}));
const FilterOptions = (props) => {
	const $ = c(28);
	const classes = useStyles();
	const { showAlert, showHome, showMarker, toggleDisplayMarkers } = props;
	const theme = useTheme();
	let t0;
	if ($[0] !== theme.palette.common.black) {
		t0 = lighten(theme.palette.common.black, .8);
		$[0] = theme.palette.common.black;
		$[1] = t0;
	} else t0 = $[1];
	const inactive = t0;
	let t1;
	if ($[2] !== toggleDisplayMarkers) {
		t1 = () => toggleDisplayMarkers("alert");
		$[2] = toggleDisplayMarkers;
		$[3] = t1;
	} else t1 = $[3];
	const t2 = showAlert ? theme.palette.error.main : inactive;
	let t3;
	if ($[4] !== t2) {
		t3 = { color: t2 };
		$[4] = t2;
		$[5] = t3;
	} else t3 = $[5];
	let t4;
	if ($[6] !== t1 || $[7] !== t3) {
		t4 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			color: "primary",
			icon: AlertSolidIcon,
			onClick: t1,
			style: t3
		});
		$[6] = t1;
		$[7] = t3;
		$[8] = t4;
	} else t4 = $[8];
	let t5;
	if ($[9] !== toggleDisplayMarkers) {
		t5 = () => toggleDisplayMarkers("home");
		$[9] = toggleDisplayMarkers;
		$[10] = t5;
	} else t5 = $[10];
	const t6 = showHome ? theme.palette.success.main : inactive;
	let t7;
	if ($[11] !== t6) {
		t7 = { color: t6 };
		$[11] = t6;
		$[12] = t7;
	} else t7 = $[12];
	let t8;
	if ($[13] !== t5 || $[14] !== t7) {
		t8 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			color: "primary",
			icon: HomeIcon,
			onClick: t5,
			style: t7
		});
		$[13] = t5;
		$[14] = t7;
		$[15] = t8;
	} else t8 = $[15];
	let t9;
	if ($[16] !== toggleDisplayMarkers) {
		t9 = () => toggleDisplayMarkers("mark");
		$[16] = toggleDisplayMarkers;
		$[17] = t9;
	} else t9 = $[17];
	const t10 = showMarker ? theme.palette.success.main : inactive;
	let t11;
	if ($[18] !== t10) {
		t11 = { color: t10 };
		$[18] = t10;
		$[19] = t11;
	} else t11 = $[19];
	let t12;
	if ($[20] !== t11 || $[21] !== t9) {
		t12 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			color: "primary",
			icon: BoxMultiplySolidIcon,
			onClick: t9,
			style: t11
		});
		$[20] = t11;
		$[21] = t9;
		$[22] = t12;
	} else t12 = $[22];
	let t13;
	if ($[23] !== classes.root || $[24] !== t12 || $[25] !== t4 || $[26] !== t8) {
		t13 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t4, t8, t12);
		$[23] = classes.root;
		$[24] = t12;
		$[25] = t4;
		$[26] = t8;
		$[27] = t13;
	} else t13 = $[27];
	return t13;
};
//#endregion
export { FilterOptions as default };

//# sourceMappingURL=FilterOptions.mjs.map