import { FluentIconButton } from "../../UI/inputs/buttons/FluentIconButton.mjs";
import FluentInputSlider from "../../UI/inputs/sliders/FluentInputSlider.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Divider, makeStyles } from "@material-ui/core";
import { ZoomIcon, ZoomInIcon, ZoomOutIcon, ZoomToFitIcon } from "@fluentui/react-icons";
//#region src/map-library/ui/ControlZoom.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row"
	},
	divider: {
		marginRight: theme.spacing(2),
		marginLeft: theme.spacing(2)
	}
}));
const ControlZoom = (props) => {
	const $ = c(31);
	const { zoomIn, zoomOut, value, handleSliderChange, handleInputChange, handleBlur, reset } = props;
	const classes = useStyles();
	let t0;
	if ($[0] !== zoomIn) {
		t0 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			onClick: zoomIn,
			color: "primary",
			icon: ZoomInIcon
		});
		$[0] = zoomIn;
		$[1] = t0;
	} else t0 = $[1];
	let t1;
	if ($[2] !== zoomOut) {
		t1 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			onClick: zoomOut,
			color: "primary",
			icon: ZoomOutIcon
		});
		$[2] = zoomOut;
		$[3] = t1;
	} else t1 = $[3];
	let t2;
	if ($[4] !== t0 || $[5] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", null, t0, t1);
		$[4] = t0;
		$[5] = t1;
		$[6] = t2;
	} else t2 = $[6];
	let t3;
	if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
		t3 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[7] = t3;
	} else t3 = $[7];
	let t4;
	if ($[8] !== classes.divider) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t3);
		$[8] = classes.divider;
		$[9] = t4;
	} else t4 = $[9];
	let t5;
	if ($[10] !== handleBlur || $[11] !== handleInputChange || $[12] !== handleSliderChange || $[13] !== value) {
		t5 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(FluentInputSlider, {
			value,
			handleSliderChange,
			handleInputChange,
			handleBlur,
			input: true,
			icon: ZoomIcon
		}));
		$[10] = handleBlur;
		$[11] = handleInputChange;
		$[12] = handleSliderChange;
		$[13] = value;
		$[14] = t5;
	} else t5 = $[14];
	let t6;
	if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
		t6 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[15] = t6;
	} else t6 = $[15];
	let t7;
	if ($[16] !== classes.divider) {
		t7 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t6);
		$[16] = classes.divider;
		$[17] = t7;
	} else t7 = $[17];
	let t8;
	if ($[18] !== reset) {
		t8 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(FluentIconButton, {
			onClick: reset,
			color: "primary",
			icon: ZoomToFitIcon
		}));
		$[18] = reset;
		$[19] = t8;
	} else t8 = $[19];
	let t9;
	if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
		t9 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[20] = t9;
	} else t9 = $[20];
	let t10;
	if ($[21] !== classes.divider) {
		t10 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t9);
		$[21] = classes.divider;
		$[22] = t10;
	} else t10 = $[22];
	let t11;
	if ($[23] !== classes.root || $[24] !== t10 || $[25] !== t2 || $[26] !== t4 || $[27] !== t5 || $[28] !== t7 || $[29] !== t8) {
		t11 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2, t4, t5, t7, t8, t10);
		$[23] = classes.root;
		$[24] = t10;
		$[25] = t2;
		$[26] = t4;
		$[27] = t5;
		$[28] = t7;
		$[29] = t8;
		$[30] = t11;
	} else t11 = $[30];
	return t11;
};
//#endregion
export { ControlZoom as default };

//# sourceMappingURL=ControlZoom.mjs.map