import { CheckboxGroup } from "./CheckboxGroup.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
//#region src/UI/mapLayout/ui/CheckboxList.jsx
const CheckboxList = (props) => {
	const $ = c(6);
	const { itemGroups, values, onChange } = props;
	let t0;
	if ($[0] !== itemGroups || $[1] !== onChange || $[2] !== values) {
		t0 = itemGroups?.length > 0 && itemGroups?.map((item) => /* @__PURE__ */ React.createElement(CheckboxGroup, {
			title: item?.title,
			options: item?.options,
			values,
			onChange
		}));
		$[0] = itemGroups;
		$[1] = onChange;
		$[2] = values;
		$[3] = t0;
	} else t0 = $[3];
	let t1;
	if ($[4] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("div", null, t0);
		$[4] = t0;
		$[5] = t1;
	} else t1 = $[5];
	return t1;
};
//#endregion
export { CheckboxList };

//# sourceMappingURL=CheckboxList.mjs.map