import { c } from "react-compiler-runtime";
import React from "react";
import { Card, CardContent, Divider, Typography, makeStyles } from "@material-ui/core";
//#region src/UI/mapLayout/ui/ListCard.jsx
const useStyles = makeStyles((theme) => ({ labelRoot: {
	color: "inherit",
	marginRight: theme.spacing(.5),
	opacity: .6
} }));
const ListElement = (t0) => {
	const $ = c(14);
	const { subject, value, style, hideDivider: t1 } = t0;
	const hideDivider = t1 === void 0 ? false : t1;
	const classes = useStyles();
	let t2;
	if ($[0] !== style) {
		t2 = {
			display: "flex",
			flexDirection: "column",
			paddingTop: 8,
			...style
		};
		$[0] = style;
		$[1] = t2;
	} else t2 = $[1];
	let t3;
	if ($[2] !== classes.labelRoot || $[3] !== subject) {
		t3 = /* @__PURE__ */ React.createElement(Typography, { className: classes.labelRoot }, subject);
		$[2] = classes.labelRoot;
		$[3] = subject;
		$[4] = t3;
	} else t3 = $[4];
	let t4;
	if ($[5] !== value) {
		t4 = /* @__PURE__ */ React.createElement(Typography, { color: "textPrimary" }, value);
		$[5] = value;
		$[6] = t4;
	} else t4 = $[6];
	let t5;
	if ($[7] !== hideDivider) {
		t5 = !hideDivider && /* @__PURE__ */ React.createElement(Divider, null);
		$[7] = hideDivider;
		$[8] = t5;
	} else t5 = $[8];
	let t6;
	if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {
		t6 = /* @__PURE__ */ React.createElement("div", { style: t2 }, t3, t4, t5);
		$[9] = t2;
		$[10] = t3;
		$[11] = t4;
		$[12] = t5;
		$[13] = t6;
	} else t6 = $[13];
	return t6;
};
const ListCard = (t0) => {
	const $ = c(5);
	const { children } = t0;
	let t1;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = { height: "100%" };
		$[0] = t1;
	} else t1 = $[0];
	let t2;
	let t3;
	if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = { height: "100%" };
		t3 = {
			display: "flex",
			flexFlow: "column wrap",
			height: "100%",
			columnGap: 8
		};
		$[1] = t2;
		$[2] = t3;
	} else {
		t2 = $[1];
		t3 = $[2];
	}
	let t4;
	if ($[3] !== children) {
		t4 = /* @__PURE__ */ React.createElement(Card, {
			elevation: 0,
			style: t1
		}, /* @__PURE__ */ React.createElement(CardContent, { style: t2 }, /* @__PURE__ */ React.createElement("div", { style: t3 }, children)));
		$[3] = children;
		$[4] = t4;
	} else t4 = $[4];
	return t4;
};
//#endregion
export { ListCard, ListElement };

//# sourceMappingURL=ListCard.mjs.map