import { FluentIcon } from "../../../utilities/iconLibrary/FluentIcon.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { ChartIcon, NumberedListIcon } from "@fluentui/react-icons";
import ToggleButton from "@material-ui/lab/ToggleButton";
import ToggleButtonGroup from "@material-ui/lab/ToggleButtonGroup";
//#region src/UI/widgets/FluentComponents/ChartSummaryToggle.jsx
const ChartSummaryToggle = (props) => {
	const $ = c(7);
	const { value, onChange } = props;
	let t0;
	if ($[0] !== onChange) {
		t0 = (e, value_0) => onChange && onChange(value_0);
		$[0] = onChange;
		$[1] = t0;
	} else t0 = $[1];
	const change = t0;
	let t1;
	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = /* @__PURE__ */ React.createElement(ToggleButton, {
			name: "chart-summary-mode",
			value: "summary",
			"aria-label": "summary"
		}, /* @__PURE__ */ React.createElement(FluentIcon, { component: NumberedListIcon }));
		$[2] = t1;
	} else t1 = $[2];
	let t2;
	if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = /* @__PURE__ */ React.createElement(ToggleButton, {
			name: "chart-summary-mode",
			value: "chart",
			"aria-label": "chart"
		}, /* @__PURE__ */ React.createElement(FluentIcon, { component: ChartIcon }));
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	if ($[4] !== change || $[5] !== value) {
		t3 = /* @__PURE__ */ React.createElement(ToggleButtonGroup, {
			value,
			exclusive: true,
			onChange: change,
			"aria-label": "chart summary mode toggle"
		}, t1, t2);
		$[4] = change;
		$[5] = value;
		$[6] = t3;
	} else t3 = $[6];
	return t3;
};
//#endregion
export { ChartSummaryToggle as default };

//# sourceMappingURL=ChartSummaryToggle.mjs.map