import LocationPin from "./LocationPin.mjs";
import ControlZoom from "./ControlZoom.mjs";
import Position from "./Position.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Divider, makeStyles } from "@material-ui/core";
//#region src/maps/openLayerMaps/ui/MapControlsStandard.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row"
	},
	filter: {
		display: "flex",
		flex: 1
	},
	divider: {
		marginRight: theme.spacing(2),
		marginLeft: theme.spacing(2)
	}
}));
const MapControlsStandard = (props) => {
	const $ = c(32);
	const classes = useStyles();
	const { value, setZoom, handleSliderChange, handleInputChange, handleBlur, zoomIn, zoomOut, reset, changeLat, changeLong, setPosition, getLocation, locations } = props;
	let t0;
	if ($[0] !== getLocation || $[1] !== locations) {
		t0 = locations && locations.map((item, index) => /* @__PURE__ */ React.createElement(LocationPin, {
			key: index,
			location: item.location,
			getLocation,
			tooltip: item.tooltip
		}));
		$[0] = getLocation;
		$[1] = locations;
		$[2] = t0;
	} else t0 = $[2];
	let t1;
	if ($[3] !== classes.filter || $[4] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("div", { className: classes.filter }, t0);
		$[3] = classes.filter;
		$[4] = t0;
		$[5] = t1;
	} else t1 = $[5];
	let t2;
	if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[6] = t2;
	} else t2 = $[6];
	let t3;
	if ($[7] !== classes.divider) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t2);
		$[7] = classes.divider;
		$[8] = t3;
	} else t3 = $[8];
	let t4;
	if ($[9] !== changeLat || $[10] !== changeLong || $[11] !== setPosition) {
		t4 = /* @__PURE__ */ React.createElement(Position, {
			changeLat,
			changeLong,
			setPosition
		});
		$[9] = changeLat;
		$[10] = changeLong;
		$[11] = setPosition;
		$[12] = t4;
	} else t4 = $[12];
	let t5;
	if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
		t5 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[13] = t5;
	} else t5 = $[13];
	let t6;
	if ($[14] !== classes.divider) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t5);
		$[14] = classes.divider;
		$[15] = t6;
	} else t6 = $[15];
	let t7;
	if ($[16] !== handleBlur || $[17] !== handleInputChange || $[18] !== handleSliderChange || $[19] !== reset || $[20] !== setZoom || $[21] !== value || $[22] !== zoomIn || $[23] !== zoomOut) {
		t7 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(ControlZoom, {
			zoomIn,
			zoomOut,
			value,
			setValue: setZoom,
			handleSliderChange,
			handleInputChange,
			handleBlur,
			reset
		}));
		$[16] = handleBlur;
		$[17] = handleInputChange;
		$[18] = handleSliderChange;
		$[19] = reset;
		$[20] = setZoom;
		$[21] = value;
		$[22] = zoomIn;
		$[23] = zoomOut;
		$[24] = t7;
	} else t7 = $[24];
	let t8;
	if ($[25] !== classes.root || $[26] !== t1 || $[27] !== t3 || $[28] !== t4 || $[29] !== t6 || $[30] !== t7) {
		t8 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t1, t3, t4, t6, t7);
		$[25] = classes.root;
		$[26] = t1;
		$[27] = t3;
		$[28] = t4;
		$[29] = t6;
		$[30] = t7;
		$[31] = t8;
	} else t8 = $[31];
	return t8;
};
//#endregion
export { MapControlsStandard as default };

//# sourceMappingURL=MapControlsStandard.mjs.map