import { StudioProvider as e } from "../providers/StudioProvider.js";
import { SseProvider as t } from "../providers/SseProvider.js";
import { InvalidationEventsProvider as n } from "../providers/InvalidationEventsProvider.js";
import { useRouter as r } from "../routing/LocalRouter.js";
import i from "../features/health/LocalHealthCheck.js";
import { QueryProvider as a } from "../providers/QueryProvider.js";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
import { Outlet as c, useSearchParams as l } from "react-router-dom";
//#region src/app/EnvironmentEmbedRoot.tsx
function u() {
	let [u] = l(), d = u.get("url") ?? "http://localhost:3080", f = {
		id: "preview-env",
		name: u.get("name") ?? "Preview Environment",
		url: d
	};
	return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ s(e, {
		router: r(f.id, "/embed/env"),
		environment: f,
		children: [
			/* @__PURE__ */ o(i, {}),
			/* @__PURE__ */ o(t, {}),
			/* @__PURE__ */ o(n, {}),
			/* @__PURE__ */ o(c, {})
		]
	}) });
}
//#endregion
export { u as default };
