import { c } from "react-compiler-runtime";
import React from "react";
import { InputAdornment, makeStyles } from "@material-ui/core";
import { KeyboardTimePicker, MuiPickersUtilsProvider } from "@material-ui/pickers";
import DateFnsUtils from "@date-io/date-fns";
import { EventDateIcon } from "@fluentui/react-icons";
import PropTypes from "prop-types";
//#region src/UI/inputs/pickers/FluentTimePicker.jsx
const useStyles = makeStyles((theme) => ({
	root: {},
	inputRoot: { fontSize: 12 },
	input: {
		borderRadius: 2,
		height: 32,
		padding: 0,
		paddingLeft: theme.spacing(1)
	},
	formTextInput: { fontSize: 14 },
	labelRoot: { fontSize: 14 },
	FormControl: {
		display: "none",
		marginTop: 0
	}
}));
const FluentTimePicker = (props) => {
	const $ = c(32);
	const classes = useStyles();
	let endAdornment;
	let id;
	let label;
	let otherProps;
	let startAdornment;
	if ($[0] !== props) {
		({id, label, startAdornment, endAdornment, ...otherProps} = props);
		$[0] = props;
		$[1] = endAdornment;
		$[2] = id;
		$[3] = label;
		$[4] = otherProps;
		$[5] = startAdornment;
	} else {
		endAdornment = $[1];
		id = $[2];
		label = $[3];
		otherProps = $[4];
		startAdornment = $[5];
	}
	let t0;
	if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = { "aria-label": "change date" };
		$[6] = t0;
	} else t0 = $[6];
	let t1;
	if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = /* @__PURE__ */ React.createElement(EventDateIcon, { style: { fontSize: 16 } });
		$[7] = t1;
	} else t1 = $[7];
	const t2 = props.InputProps?.classes;
	let t3;
	if ($[8] !== classes.formTextInput || $[9] !== classes.input || $[10] !== t2) {
		t3 = {
			root: classes.input,
			input: classes.formTextInput,
			...t2
		};
		$[8] = classes.formTextInput;
		$[9] = classes.input;
		$[10] = t2;
		$[11] = t3;
	} else t3 = $[11];
	let t4;
	if ($[12] !== classes.inputRoot) {
		t4 = { root: classes.inputRoot };
		$[12] = classes.inputRoot;
		$[13] = t4;
	} else t4 = $[13];
	let t5;
	if ($[14] !== classes.inputRoot || $[15] !== label || $[16] !== t4) {
		t5 = /* @__PURE__ */ React.createElement(InputAdornment, {
			classes: t4,
			className: classes.inputRoot,
			position: "start"
		}, label);
		$[14] = classes.inputRoot;
		$[15] = label;
		$[16] = t4;
		$[17] = t5;
	} else t5 = $[17];
	let t6;
	if ($[18] !== endAdornment || $[19] !== props.InputProps || $[20] !== startAdornment || $[21] !== t3 || $[22] !== t5) {
		t6 = {
			classes: t3,
			...props.InputProps,
			...startAdornment,
			...endAdornment,
			startAdornment: t5
		};
		$[18] = endAdornment;
		$[19] = props.InputProps;
		$[20] = startAdornment;
		$[21] = t3;
		$[22] = t5;
		$[23] = t6;
	} else t6 = $[23];
	let t7;
	if ($[24] !== classes.labelFocused || $[25] !== classes.labelRoot) {
		t7 = {
			shrink: false,
			classes: {
				root: classes.labelRoot,
				focused: classes.labelFocused
			}
		};
		$[24] = classes.labelFocused;
		$[25] = classes.labelRoot;
		$[26] = t7;
	} else t7 = $[26];
	let t8;
	if ($[27] !== id || $[28] !== otherProps || $[29] !== t6 || $[30] !== t7) {
		t8 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(MuiPickersUtilsProvider, { utils: DateFnsUtils }, /* @__PURE__ */ React.createElement(KeyboardTimePicker, {
			variant: "inline",
			margin: "normal",
			...otherProps,
			id,
			inputVariant: "outlined",
			KeyboardButtonProps: t0,
			keyboardIcon: t1,
			InputProps: t6,
			InputLabelProps: t7
		})));
		$[27] = id;
		$[28] = otherProps;
		$[29] = t6;
		$[30] = t7;
		$[31] = t8;
	} else t8 = $[31];
	return t8;
};
FluentTimePicker.propTypes = {
	label: PropTypes.string,
	id: PropTypes.string
};
//#endregion
export { FluentTimePicker };

//# sourceMappingURL=FluentTimePicker.mjs.map