import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
import clsx from "clsx";
import { ChromeCloseIcon } from "@fluentui/react-icons";
import PropTypes from "prop-types";
//#region src/componentSystems/multiThreadTimeline/ui/TimelineHoverCard.jsx
const useStyles = makeStyles((theme) => ({
	root: {},
	hover: {
		position: "absolute",
		top: 16,
		left: (props) => props.offset ? props.offset : 20,
		padding: theme.spacing(3),
		paddingTop: (props) => props.popover ? theme.spacing(1) : theme.spacing(2),
		paddingRight: theme.spacing(2),
		background: theme.palette.common.white,
		boxShadow: `0px 24px 38px 3px rgb(0 0 0 / 14%), 0px 9px 46px 8px rgb(0 0 0 / 12%), 0px 11px 15px -7px rgb(0 0 0 / 20%)`,
		borderRadius: theme.spacing(1),
		zIndex: 99,
		minWidth: 190
	},
	close: { cursor: "pointer" },
	displayHeader: {
		position: "absolute",
		right: theme.spacing(2),
		top: theme.spacing(1)
	}
}));
const TimelineHoverCard = (props) => {
	const $ = c(16);
	const { children } = props;
	const classes = useStyles(props);
	const { className, popover: t0 } = props;
	const popover = t0 === void 0 ? true : t0;
	let t1;
	if ($[0] !== className || $[1] !== classes.root) {
		t1 = clsx(classes.root, className);
		$[0] = className;
		$[1] = classes.root;
		$[2] = t1;
	} else t1 = $[2];
	let t2;
	if ($[3] !== classes.close || $[4] !== popover) {
		t2 = popover && /* @__PURE__ */ React.createElement("div", { className: classes.close }, /* @__PURE__ */ React.createElement(ChromeCloseIcon, { style: {
			width: 10,
			height: 10
		} }));
		$[3] = classes.close;
		$[4] = popover;
		$[5] = t2;
	} else t2 = $[5];
	let t3;
	if ($[6] !== classes.displayHeader || $[7] !== t2) {
		t3 = /* @__PURE__ */ React.createElement("div", { className: classes.displayHeader }, t2);
		$[6] = classes.displayHeader;
		$[7] = t2;
		$[8] = t3;
	} else t3 = $[8];
	let t4;
	if ($[9] !== children || $[10] !== classes.hover || $[11] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.hover }, t3, children);
		$[9] = children;
		$[10] = classes.hover;
		$[11] = t3;
		$[12] = t4;
	} else t4 = $[12];
	let t5;
	if ($[13] !== t1 || $[14] !== t4) {
		t5 = /* @__PURE__ */ React.createElement("div", { className: t1 }, t4);
		$[13] = t1;
		$[14] = t4;
		$[15] = t5;
	} else t5 = $[15];
	return t5;
};
TimelineHoverCard.propTypes = {
	children: PropTypes.node,
	className: PropTypes.string,
	popover: PropTypes.bool,
	offset: PropTypes.number
};
//#endregion
export { TimelineHoverCard };

//# sourceMappingURL=TimelineHoverCard.mjs.map