import { c } from "react-compiler-runtime";
import React from "react";
import { IconButton, Slider } from "@material-ui/core";
import { LineSpacingIcon, MinimumValueIcon } from "@fluentui/react-icons";
//#region src/componentSystems/multiThreadTimeline/mttMainTimeline/HeightAdjust.jsx
const HeightAdjuster = (t0) => {
	const $ = c(22);
	const { verticalAdjuster, setVerticalAdjuster } = t0;
	let t1;
	if ($[0] !== setVerticalAdjuster) {
		t1 = (event, newValue) => {
			setVerticalAdjuster(newValue);
		};
		$[0] = setVerticalAdjuster;
		$[1] = t1;
	} else t1 = $[1];
	const handleAdjusterChange = t1;
	let t2;
	if ($[2] !== setVerticalAdjuster || $[3] !== verticalAdjuster) {
		t2 = () => {
			setVerticalAdjuster(verticalAdjuster - 1);
		};
		$[2] = setVerticalAdjuster;
		$[3] = verticalAdjuster;
		$[4] = t2;
	} else t2 = $[4];
	const handleDecreaseClick = t2;
	let t3;
	if ($[5] !== setVerticalAdjuster || $[6] !== verticalAdjuster) {
		t3 = () => {
			setVerticalAdjuster(verticalAdjuster + 1);
		};
		$[5] = setVerticalAdjuster;
		$[6] = verticalAdjuster;
		$[7] = t3;
	} else t3 = $[7];
	const handleIncreaseClick = t3;
	let t4;
	if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
		t4 = { display: "flex" };
		$[8] = t4;
	} else t4 = $[8];
	let t5;
	if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
		t5 = /* @__PURE__ */ React.createElement("div", { style: { fontSize: 18 } }, /* @__PURE__ */ React.createElement(LineSpacingIcon, null));
		$[9] = t5;
	} else t5 = $[9];
	let t6;
	if ($[10] !== handleDecreaseClick) {
		t6 = /* @__PURE__ */ React.createElement(IconButton, { onClick: handleDecreaseClick }, t5);
		$[10] = handleDecreaseClick;
		$[11] = t6;
	} else t6 = $[11];
	let t7;
	if ($[12] !== handleAdjusterChange || $[13] !== verticalAdjuster) {
		t7 = /* @__PURE__ */ React.createElement(Slider, {
			value: verticalAdjuster,
			min: 0,
			max: 10,
			step: .1,
			onChange: handleAdjusterChange
		});
		$[12] = handleAdjusterChange;
		$[13] = verticalAdjuster;
		$[14] = t7;
	} else t7 = $[14];
	let t8;
	if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
		t8 = /* @__PURE__ */ React.createElement("div", { style: {
			rotate: "90deg",
			fontSize: 24
		} }, /* @__PURE__ */ React.createElement(MinimumValueIcon, null));
		$[15] = t8;
	} else t8 = $[15];
	let t9;
	if ($[16] !== handleIncreaseClick) {
		t9 = /* @__PURE__ */ React.createElement(IconButton, { onClick: handleIncreaseClick }, t8);
		$[16] = handleIncreaseClick;
		$[17] = t9;
	} else t9 = $[17];
	let t10;
	if ($[18] !== t6 || $[19] !== t7 || $[20] !== t9) {
		t10 = /* @__PURE__ */ React.createElement("div", { style: t4 }, t6, t7, t9);
		$[18] = t6;
		$[19] = t7;
		$[20] = t9;
		$[21] = t10;
	} else t10 = $[21];
	return t10;
};
//#endregion
export { HeightAdjuster };

//# sourceMappingURL=HeightAdjust.mjs.map