import { c } from "react-compiler-runtime";
import React from "react";
import { ZoomIcon } from "@fluentui/react-icons";
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import Slider from "@material-ui/core/Slider";
import Input from "@material-ui/core/Input";
//#region src/UI/inputs/sliders/FluentInputSlider.jsx
const useStyles = makeStyles({
	root: { width: 250 },
	input: { width: 42 }
});
const FluentInputSlider = (props) => {
	const $ = c(16);
	const { value, handleSliderChange, handleInputChange, handleBlur } = props;
	const classes = useStyles();
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = /* @__PURE__ */ React.createElement(Grid, { item: true }, /* @__PURE__ */ React.createElement(ZoomIcon, null));
		$[0] = t0;
	} else t0 = $[0];
	const t1 = typeof value === "number" ? value : 0;
	let t2;
	if ($[1] !== handleSliderChange || $[2] !== t1) {
		t2 = /* @__PURE__ */ React.createElement(Grid, {
			item: true,
			xs: true
		}, /* @__PURE__ */ React.createElement(Slider, {
			value: t1,
			onChange: handleSliderChange,
			"aria-labelledby": "input-slider",
			step: 1,
			marks: true,
			min: 0,
			max: 20
		}));
		$[1] = handleSliderChange;
		$[2] = t1;
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
		t3 = {
			step: 1,
			min: 0,
			max: 20,
			type: "number",
			"aria-labelledby": "input-slider"
		};
		$[4] = t3;
	} else t3 = $[4];
	let t4;
	if ($[5] !== classes.input || $[6] !== handleBlur || $[7] !== handleInputChange || $[8] !== value) {
		t4 = /* @__PURE__ */ React.createElement(Grid, { item: true }, /* @__PURE__ */ React.createElement(Input, {
			className: classes.input,
			value,
			margin: "dense",
			onChange: handleInputChange,
			onBlur: handleBlur,
			inputProps: t3
		}));
		$[5] = classes.input;
		$[6] = handleBlur;
		$[7] = handleInputChange;
		$[8] = value;
		$[9] = t4;
	} else t4 = $[9];
	let t5;
	if ($[10] !== t2 || $[11] !== t4) {
		t5 = /* @__PURE__ */ React.createElement(Grid, {
			container: true,
			spacing: 2,
			alignItems: "center"
		}, t0, t2, t4);
		$[10] = t2;
		$[11] = t4;
		$[12] = t5;
	} else t5 = $[12];
	let t6;
	if ($[13] !== classes.root || $[14] !== t5) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t5);
		$[13] = classes.root;
		$[14] = t5;
		$[15] = t6;
	} else t6 = $[15];
	return t6;
};
//#endregion
export { FluentInputSlider as default };

//# sourceMappingURL=FluentInputSlider.mjs.map