import { getSanitizedName } from "../../utilities/entities/entityUtilities.mjs";
import { c } from "react-compiler-runtime";
import "react";
//#region src/maintenanceEngine/tableBrowser/TableColumnDefs.js
const TableColumnDefs = (actionList) => {
	const $ = c(6);
	const getterRowData = _temp;
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = {
			headerName: "Name",
			field: "entityName",
			valueGetter: _temp2,
			wrapText: true,
			autoHeight: false,
			sortable: false
		};
		$[0] = t0;
	} else t0 = $[0];
	let t1;
	if ($[1] !== actionList) {
		t1 = { actionList };
		$[1] = actionList;
		$[2] = t1;
	} else t1 = $[2];
	let t2;
	if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = {
			display: "flex",
			alignItems: "center"
		};
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	if ($[4] !== t1) {
		t3 = [t0, {
			headerName: "Actions",
			filter: false,
			pinned: "right",
			cellRenderer: "actionsRenderer",
			width: 150,
			cellRendererParams: t1,
			valueGetter: getterRowData,
			maxWidth: 180,
			suppressMenu: true,
			sortable: false,
			cellStyle: t2
		}];
		$[4] = t1;
		$[5] = t3;
	} else t3 = $[5];
	return t3;
};
const defaultColumnActionsDef = {
	resizable: true,
	editable: false,
	sortable: true,
	filter: true,
	floatingFilter: false,
	enableRowGroup: true
};
function _temp(params) {
	return params.data;
}
function _temp2(params_0) {
	return params_0.data?.properties?.displayName || params_0.data?.sanitizedName || getSanitizedName(params_0.data?.entityName);
}
//#endregion
export { TableColumnDefs, defaultColumnActionsDef };

//# sourceMappingURL=TableColumnDefs.mjs.map