import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
import PropTypes from "prop-types";
//#region src/UI/inputs/pickers/UdpTimeSelector.jsx
const useStyles = makeStyles((theme) => ({ timeInput: {
	borderRadius: 2,
	height: 32,
	padding: theme.spacing(1),
	margin: theme.spacing(1),
	fontSize: 14,
	border: "1px solid #ced4da",
	backgroundColor: "transparent",
	"&:focus": {
		borderColor: theme.palette.primary.main,
		outline: "none"
	}
} }));
const UdpTimeSelector = (props) => {
	const $ = c(14);
	const classes = useStyles();
	let id;
	let label;
	let otherProps;
	if ($[0] !== props) {
		({id, label, ...otherProps} = props);
		$[0] = props;
		$[1] = id;
		$[2] = label;
		$[3] = otherProps;
	} else {
		id = $[1];
		label = $[2];
		otherProps = $[3];
	}
	const t0 = "udpRecord-FluentTimePicker-" + id;
	let t1;
	if ($[4] !== classes.timeInput || $[5] !== id || $[6] !== otherProps || $[7] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("input", {
			type: "time",
			id,
			udprecordid: t0,
			className: classes.timeInput,
			...otherProps
		});
		$[4] = classes.timeInput;
		$[5] = id;
		$[6] = otherProps;
		$[7] = t0;
		$[8] = t1;
	} else t1 = $[8];
	let t2;
	if ($[9] !== classes.labelRoot || $[10] !== id || $[11] !== label || $[12] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("label", {
			htmlFor: id,
			className: classes.labelRoot
		}, label, t1);
		$[9] = classes.labelRoot;
		$[10] = id;
		$[11] = label;
		$[12] = t1;
		$[13] = t2;
	} else t2 = $[13];
	return t2;
};
UdpTimeSelector.propTypes = {
	label: PropTypes.string,
	id: PropTypes.string
};
//#endregion
export { UdpTimeSelector as default };

//# sourceMappingURL=UdpTimeSelector.mjs.map