import { RecentlyLoadedNodesTable } from "../../../../inquiry/dashboard/RecentlyLoadedNodesTable.mjs";
import WidgetCard from "../../WidgetCard.mjs";
import { c } from "react-compiler-runtime";
import React, { forwardRef } from "react";
//#region src/UI/widgets/library/RecentlyLoadedNodesWidget/RecentlyLoadedNodesWidget.jsx
const RecentlyLoadedNodesWidget = (props, ref) => {
	const $ = c(15);
	let children;
	let other;
	let params;
	if ($[0] !== props) {
		const { children: t0, params: t1, setParam, ...t2 } = props;
		children = t0;
		params = t1;
		other = t2;
		$[0] = props;
		$[1] = children;
		$[2] = other;
		$[3] = params;
	} else {
		children = $[1];
		other = $[2];
		params = $[3];
	}
	const { recentlyLoadedNodes, loading, onLoadedNodeClick, tree, hideWidgetName } = params;
	let t0;
	if ($[4] !== loading || $[5] !== onLoadedNodeClick || $[6] !== recentlyLoadedNodes || $[7] !== tree) {
		t0 = /* @__PURE__ */ React.createElement(RecentlyLoadedNodesTable, {
			recentlyLoadedNodes,
			loading,
			onLoadedNodeClick,
			tree,
			hideTitle: true
		});
		$[4] = loading;
		$[5] = onLoadedNodeClick;
		$[6] = recentlyLoadedNodes;
		$[7] = tree;
		$[8] = t0;
	} else t0 = $[8];
	let t1;
	if ($[9] !== children || $[10] !== hideWidgetName || $[11] !== other || $[12] !== ref || $[13] !== t0) {
		t1 = /* @__PURE__ */ React.createElement(WidgetCard, {
			ref,
			title: "Recently Loaded",
			hideWidgetName,
			...other
		}, t0, children);
		$[9] = children;
		$[10] = hideWidgetName;
		$[11] = other;
		$[12] = ref;
		$[13] = t0;
		$[14] = t1;
	} else t1 = $[14];
	return t1;
};
var RecentlyLoadedNodesWidget_default = forwardRef(RecentlyLoadedNodesWidget);
//#endregion
export { RecentlyLoadedNodesWidget, RecentlyLoadedNodesWidget_default as default };

//# sourceMappingURL=RecentlyLoadedNodesWidget.mjs.map