import { c } from "react-compiler-runtime";
import React from "react";
import { Checkbox, makeStyles } from "@material-ui/core";
import { CheckboxCompositeReversedIcon, CheckboxIcon } from "@fluentui/react-icons";
//#region src/UI/inputs/checkbox/FluentCheckbox.jsx
const useStyles = makeStyles((theme) => ({ box: { fontSize: 18 } }));
const FluentCheckbox = (props) => {
	const $ = c(19);
	const classes = useStyles(props);
	let aria;
	let checked;
	let name;
	let onChange;
	let otherProps;
	if ($[0] !== props) {
		({name, checked, onChange, aria, ...otherProps} = props);
		$[0] = props;
		$[1] = aria;
		$[2] = checked;
		$[3] = name;
		$[4] = onChange;
		$[5] = otherProps;
	} else {
		aria = $[1];
		checked = $[2];
		name = $[3];
		onChange = $[4];
		otherProps = $[5];
	}
	let t0;
	let t1;
	if ($[6] !== classes.box) {
		t0 = /* @__PURE__ */ React.createElement(CheckboxIcon, { className: classes.box });
		t1 = /* @__PURE__ */ React.createElement(CheckboxCompositeReversedIcon, { className: classes.box });
		$[6] = classes.box;
		$[7] = t0;
		$[8] = t1;
	} else {
		t0 = $[7];
		t1 = $[8];
	}
	let t2;
	if ($[9] !== aria) {
		t2 = { "aria-label": { aria } };
		$[9] = aria;
		$[10] = t2;
	} else t2 = $[10];
	let t3;
	if ($[11] !== checked || $[12] !== name || $[13] !== onChange || $[14] !== otherProps || $[15] !== t0 || $[16] !== t1 || $[17] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(Checkbox, {
			...otherProps,
			name,
			icon: t0,
			checkedIcon: t1,
			checked,
			inputProps: t2,
			onChange
		});
		$[11] = checked;
		$[12] = name;
		$[13] = onChange;
		$[14] = otherProps;
		$[15] = t0;
		$[16] = t1;
		$[17] = t2;
		$[18] = t3;
	} else t3 = $[18];
	return t3;
};
//#endregion
export { FluentCheckbox };

//# sourceMappingURL=FluentCheckbox.mjs.map