import { ConfigService } from "../../../configService/index.mjs";
import { useAxiosGet } from "../../../utilities/useAxiosGet.mjs";
import UdpMaintenanceEnginePage from "../UdpMaintenanceEnginePage/UdpMaintenanceEnginePage.mjs";
import { c } from "react-compiler-runtime";
import React, { useEffect, useState } from "react";
//#region src/udp/pages/UdpInquiryMaintenanceEnginePage/UdpInquiryMaintenanceEnginePage.jsx
const UdpInquiryMaintenanceEnginePage = (props) => {
	const $ = c(6);
	const { params } = props;
	const { nodeObj } = params;
	const [, setLoading] = useState(false);
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = {};
		$[0] = t0;
	} else t0 = $[0];
	const [t1] = useAxiosGet(ConfigService.productV1ApiUrl, `UdpObjectInfo/getCatalogId/${nodeObj.businessObjectKey}?fromUdpObjectInfo=true`, t0, !!!nodeObj, false);
	const { data: catalogKey, loading: catalogKeyLoading } = t1;
	let t2;
	let t3;
	if ($[1] !== catalogKeyLoading) {
		t2 = () => {
			setLoading(catalogKeyLoading);
		};
		t3 = [catalogKeyLoading];
		$[1] = catalogKeyLoading;
		$[2] = t2;
		$[3] = t3;
	} else {
		t2 = $[2];
		t3 = $[3];
	}
	useEffect(t2, t3);
	const t4 = catalogKey || "";
	let t5;
	if ($[4] !== t4) {
		t5 = /* @__PURE__ */ React.createElement(UdpMaintenanceEnginePage, { catalogKey: t4 });
		$[4] = t4;
		$[5] = t5;
	} else t5 = $[5];
	return t5;
};
//#endregion
export { UdpInquiryMaintenanceEnginePage as default };

//# sourceMappingURL=UdpInquiryMaintenanceEnginePage.mjs.map