import { ImageFooter } from "./ImageFooter.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
//#region src/UI/fileViewer/imageSlider/Image.jsx
const useStyles = makeStyles((theme) => ({
	imageWrapper: {
		flex: "1 1 auto",
		overflow: "hidden",
		position: "relative",
		margin: theme.spacing(2)
	},
	image: {
		objectFit: "contain",
		width: "100%",
		height: "100%",
		position: "absolute",
		top: 0,
		left: 0
	},
	cardContent: {
		display: "flex",
		flexDirection: "column",
		overflow: "hidden",
		height: "100%",
		background: theme.palette.background.paper
	}
}));
const Image = (props) => {
	const $ = c(15);
	const { imageObj, hidePrimaryText, hideSecondaryText } = props;
	const classes = useStyles();
	const t0 = imageObj?.filePath;
	const t1 = `${imageObj?.fileName}`;
	let t2;
	if ($[0] !== classes.image || $[1] !== t0 || $[2] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("img", {
			src: t0,
			loading: "lazy",
			alt: t1,
			className: classes.image
		});
		$[0] = classes.image;
		$[1] = t0;
		$[2] = t1;
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	if ($[4] !== classes.imageWrapper || $[5] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.imageWrapper }, t2);
		$[4] = classes.imageWrapper;
		$[5] = t2;
		$[6] = t3;
	} else t3 = $[6];
	let t4;
	if ($[7] !== hidePrimaryText || $[8] !== hideSecondaryText || $[9] !== imageObj) {
		t4 = /* @__PURE__ */ React.createElement(ImageFooter, {
			currentImageObj: imageObj,
			hidePrimaryText,
			hideSecondaryText
		});
		$[7] = hidePrimaryText;
		$[8] = hideSecondaryText;
		$[9] = imageObj;
		$[10] = t4;
	} else t4 = $[10];
	let t5;
	if ($[11] !== classes.cardContent || $[12] !== t3 || $[13] !== t4) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: classes.cardContent }, t3, t4);
		$[11] = classes.cardContent;
		$[12] = t3;
		$[13] = t4;
		$[14] = t5;
	} else t5 = $[14];
	return t5;
};
//#endregion
export { Image };

//# sourceMappingURL=Image.mjs.map