import { __exportAll } from "../../../_virtual/_rolldown/runtime.mjs";
import { BaseTextPropertyWidget } from "./TextPropertyWidget.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { MenuItem } from "@material-ui/core";
//#region src/UI/property/widgets/BooleanPropertyWidget.jsx
var BooleanPropertyWidget_exports = /* @__PURE__ */ __exportAll({ default: () => BooleanPropertyWidget });
/**
* `boolean` property widget
*
* Outputs a select TextField with true/false as options
*/
const BooleanPropertyWidget = (props) => {
	const $ = c(6);
	const { initialData } = props;
	let t0;
	let t1;
	let t2;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = /* @__PURE__ */ React.createElement(MenuItem, { value: "" }, "None");
		t1 = /* @__PURE__ */ React.createElement(MenuItem, { value: true }, "True");
		t2 = /* @__PURE__ */ React.createElement(MenuItem, { value: false }, "False");
		$[0] = t0;
		$[1] = t1;
		$[2] = t2;
	} else {
		t0 = $[0];
		t1 = $[1];
		t2 = $[2];
	}
	let t3;
	if ($[3] !== initialData || $[4] !== props) {
		t3 = /* @__PURE__ */ React.createElement(BaseTextPropertyWidget, {
			initialValue: initialData,
			select: true,
			...props
		}, t0, t1, t2);
		$[3] = initialData;
		$[4] = props;
		$[5] = t3;
	} else t3 = $[5];
	return t3;
};
//#endregion
export { BooleanPropertyWidget_exports, BooleanPropertyWidget as default };

//# sourceMappingURL=BooleanPropertyWidget.mjs.map