import { StatusChip } from "../../../dataDisplay/status/StatusChip.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
//#region src/UI/templates/ui/renderers/StatusCellRenderer.jsx
const StatusCellRenderer = (props) => {
	const $ = c(9);
	const { value, getStatus, getLabel } = props;
	const formattedLabel = _temp2;
	let t0;
	if ($[0] !== getStatus || $[1] !== value) {
		t0 = getStatus(value);
		$[0] = getStatus;
		$[1] = value;
		$[2] = t0;
	} else t0 = $[2];
	let t1;
	if ($[3] !== getLabel || $[4] !== value) {
		t1 = getLabel ? formattedLabel(getLabel(value)) : formattedLabel(value);
		$[3] = getLabel;
		$[4] = value;
		$[5] = t1;
	} else t1 = $[5];
	let t2;
	if ($[6] !== t0 || $[7] !== t1) {
		t2 = /* @__PURE__ */ React.createElement(StatusChip, {
			status: t0,
			label: t1
		});
		$[6] = t0;
		$[7] = t1;
		$[8] = t2;
	} else t2 = $[8];
	return t2;
};
function _temp(char) {
	return char.toUpperCase();
}
function _temp2(value_0) {
	return value_0?.replace(/([a-z])([A-Z])/g, "$1 $2")?.replace(/\b\w/g, _temp);
}
//#endregion
export { StatusCellRenderer };

//# sourceMappingURL=StatusCellRenderer.mjs.map