import { c } from "react-compiler-runtime";
import React from "react";
import { Typography, makeStyles } from "@material-ui/core";
import clsx from "clsx";
//#region src/inquiry/AmbientSummaryListHeader.jsx
const useStyles = makeStyles((theme) => ({
	headerRoot: {
		display: "flex",
		flexDirection: "row",
		justifyContent: "space-between",
		alignItems: "center",
		paddingTop: theme.spacing(1),
		paddingRight: theme.spacing(2),
		paddingBottom: theme.spacing(1),
		paddingLeft: theme.spacing(2),
		gap: theme.spacing(1.5),
		borderWidth: "1px 0px",
		borderStyle: "solid",
		boxSizing: "border-box",
		background: (props) => props.style?.background ? props.style.background : theme.palette.background.paper,
		borderColor: (props) => props.style?.borderColor ? props.style.borderColor : "rgba(0, 0, 0, 0.12)"
	},
	labelText: {
		fontWeight: "inherit",
		flexGrow: 1,
		lineHeight: "1.25rem"
	},
	labelOverflow: {
		whiteSpace: "nowrap",
		overflow: "hidden",
		textOverflow: "ellipsis"
	}
}));
/**
* `AmbientSummaryListHeader` component
*/
const AmbientSummaryListHeader = (props) => {
	const $ = c(13);
	const { columns, style: t0 } = props;
	let t1;
	if ($[0] !== t0) {
		t1 = t0 === void 0 ? {} : t0;
		$[0] = t0;
		$[1] = t1;
	} else t1 = $[1];
	const style = t1;
	const classes = useStyles(props);
	const t2 = classes.headerRoot;
	let t3;
	if ($[2] !== classes.labelOverflow || $[3] !== classes.labelText || $[4] !== columns) {
		let t4;
		if ($[6] !== classes.labelOverflow || $[7] !== classes.labelText) {
			t4 = (column, index) => /* @__PURE__ */ React.createElement("div", { key: index }, /* @__PURE__ */ React.createElement(Typography, {
				variant: "caption",
				className: clsx(classes.labelText, classes.labelOverflow)
			}, column.label.toUpperCase()));
			$[6] = classes.labelOverflow;
			$[7] = classes.labelText;
			$[8] = t4;
		} else t4 = $[8];
		t3 = columns.map(t4);
		$[2] = classes.labelOverflow;
		$[3] = classes.labelText;
		$[4] = columns;
		$[5] = t3;
	} else t3 = $[5];
	let t4;
	if ($[9] !== classes.headerRoot || $[10] !== style || $[11] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", {
			className: t2,
			style
		}, t3);
		$[9] = classes.headerRoot;
		$[10] = style;
		$[11] = t3;
		$[12] = t4;
	} else t4 = $[12];
	return t4;
};
//#endregion
export { AmbientSummaryListHeader };

//# sourceMappingURL=AmbientSummaryListHeader.mjs.map