import { c } from "react-compiler-runtime";
import { useState } from "react";
//#region src/utilities/floorplanFunctions/gridVisualizationFunctions.js
const useScreenControl = (e) => {
	const $ = c(10);
	const [splitScreen, setSplitScreen] = useState(false);
	const [width, setWidth] = useState(0);
	const [expanded, setExpanded] = useState(false);
	const [dialogOpen, setDialogOpen] = useState(false);
	const [sideSheetOpen, setSideSheetOpen] = useState(false);
	const [sideSheetStatus] = useState(false);
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = (e_0) => {
			setSplitScreen(e_0 === 0 ? false : true);
			setExpanded(e_0 === 0 ? false : true);
			setWidth(e_0 === 0 ? 0 : 300);
			setDialogOpen(false);
		};
		$[0] = t0;
	} else t0 = $[0];
	const sideBarControl = t0;
	let t1;
	if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = (e_1) => {
			setWidth(e_1);
		};
		$[1] = t1;
	} else t1 = $[1];
	const updateWidth = t1;
	let t2;
	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = (bol) => {
			setSideSheetOpen(bol);
		};
		$[2] = t2;
	} else t2 = $[2];
	const handleSideSheet = t2;
	let t3;
	if ($[3] !== dialogOpen || $[4] !== expanded || $[5] !== sideSheetOpen || $[6] !== sideSheetStatus || $[7] !== splitScreen || $[8] !== width) {
		t3 = [
			splitScreen,
			width,
			expanded,
			dialogOpen,
			sideSheetOpen,
			sideSheetStatus,
			sideBarControl,
			updateWidth,
			setDialogOpen,
			handleSideSheet
		];
		$[3] = dialogOpen;
		$[4] = expanded;
		$[5] = sideSheetOpen;
		$[6] = sideSheetStatus;
		$[7] = splitScreen;
		$[8] = width;
		$[9] = t3;
	} else t3 = $[9];
	return t3;
};
const useNoticeUpdate = () => {
	const $ = c(6);
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = {};
		$[0] = t0;
	} else t0 = $[0];
	const [noticeState, setNoticeState] = useState(t0);
	let t1;
	if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
		t1 = {};
		$[1] = t1;
	} else t1 = $[1];
	const [alertState, setAlertState] = useState(t1);
	let t2;
	if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = (alertType, alertMessage, alertButton, messageType, show) => {
			console.log("UPDATE NOTICE", alertType, alertMessage, alertButton, messageType, show);
			messageType === "toast" && setNoticeState({
				noticeType: alertType,
				noticeMessage: alertMessage,
				noticeButton: alertButton,
				messageType,
				show
			});
			messageType === "alert" && setAlertState({
				alertType,
				alertMessage,
				alertButton,
				messageType,
				show
			});
		};
		$[2] = t2;
	} else t2 = $[2];
	const sendNotice = t2;
	let t3;
	if ($[3] !== alertState || $[4] !== noticeState) {
		t3 = [
			noticeState,
			alertState,
			setAlertState,
			setNoticeState,
			sendNotice
		];
		$[3] = alertState;
		$[4] = noticeState;
		$[5] = t3;
	} else t3 = $[5];
	return t3;
};
//#endregion
export { useNoticeUpdate, useScreenControl };

//# sourceMappingURL=gridVisualizationFunctions.mjs.map