import { LayoutUnit } from "../../../layout/LayoutUnit.mjs";
import FluentDisplayNumbers from "../../widgets/FluentComponents/atoms/FluentDisplayNumbers.mjs";
import { c } from "react-compiler-runtime";
import React, { useState } from "react";
import { Typography, makeStyles } from "@material-ui/core";
//#region src/UI/dataDisplay/visualization/RatioVisulization.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		justifyContent: "center"
	},
	wrapper: {
		display: "flex",
		flexDirection: "row",
		height: 150,
		color: theme.palette.secondary.main
	}
}), { next: "RadioVisualization" });
const RatioVisulization = (t0) => {
	const $ = c(19);
	const { n, m } = t0;
	const [val] = useState();
	const classes = useStyles();
	console.log(function number_test(n_0) {
		if (n_0 - Math.floor(n_0) !== 0) return false;
		else return true;
	}(10));
	let t1;
	if ($[0] !== val) {
		t1 = val && val.map(_temp);
		$[0] = val;
		$[1] = t1;
	} else t1 = $[1];
	let t2;
	if ($[2] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("div", null, t1);
		$[2] = t1;
		$[3] = t2;
	} else t2 = $[3];
	let t3;
	let t4;
	if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
		t3 = /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle2" }, " Student to Teature Ratio ");
		t4 = /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "xs" });
		$[4] = t3;
		$[5] = t4;
	} else {
		t3 = $[4];
		t4 = $[5];
	}
	let t5;
	if ($[6] !== n) {
		t5 = /* @__PURE__ */ React.createElement(FluentDisplayNumbers, {
			number: n,
			label: "Teacher"
		});
		$[6] = n;
		$[7] = t5;
	} else t5 = $[7];
	let t6;
	if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
		t6 = /* @__PURE__ */ React.createElement(FluentDisplayNumbers, { number: ":" });
		$[8] = t6;
	} else t6 = $[8];
	let t7;
	if ($[9] !== m) {
		t7 = /* @__PURE__ */ React.createElement(FluentDisplayNumbers, {
			number: m,
			label: "Students"
		});
		$[9] = m;
		$[10] = t7;
	} else t7 = $[10];
	let t8;
	if ($[11] !== classes.wrapper || $[12] !== t5 || $[13] !== t7) {
		t8 = /* @__PURE__ */ React.createElement("div", null, t3, t4, /* @__PURE__ */ React.createElement("div", { className: classes.wrapper }, t5, t6, t7));
		$[11] = classes.wrapper;
		$[12] = t5;
		$[13] = t7;
		$[14] = t8;
	} else t8 = $[14];
	let t9;
	if ($[15] !== classes.root || $[16] !== t2 || $[17] !== t8) {
		t9 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t2, t8);
		$[15] = classes.root;
		$[16] = t2;
		$[17] = t8;
		$[18] = t9;
	} else t9 = $[18];
	return t9;
};
function _temp(item_2) {
	return item_2;
}
//#endregion
export { RatioVisulization };

//# sourceMappingURL=RatioVisulization.mjs.map