import { useNavigate as e } from "react-router-dom";
//#region src/routing/LocalRouter.tsx
var t = class {
	navigate;
	envId;
	embedPrefix;
	constructor(e, t, n = "/embed") {
		this.navigate = e, this.envId = t, this.embedPrefix = n;
	}
	async navigateToHome() {
		await this.navigate("/");
	}
	getEnvironmentInfo() {
		return "/info";
	}
	async navigateToEnvironmentInfo() {
		await this.navigate(this.getEnvironmentInfo());
	}
	getRuns() {
		return "/runs";
	}
	getRunsActionRequired() {
		return "/runs/action-required";
	}
	getDashboard() {
		return "/dashboard";
	}
	async navigateToDashboard() {
		await this.navigate(this.getDashboard());
	}
	getWorkspaces() {
		return "/workspaces";
	}
	getDebugWorkflows() {
		return "/debug/workflows";
	}
	getDebugWorkflow(e) {
		return `/debug/workflows/${e}`;
	}
	async navigateToDebugWorkflow(e) {
		await this.navigate(this.getDebugWorkflow(e));
	}
	async navigateToWorkspaces() {
		await this.navigate(this.getWorkspaces());
	}
	getWorkspace(e) {
		return `/workspaces/${e}`;
	}
	async navigateToWorkspace(e) {
		await this.navigate(this.getWorkspace(e));
	}
	getWorkflow(e) {
		return `/workflows/${e}`;
	}
	async navigateToWorkflow(e) {
		await this.navigate(this.getWorkflow(e));
	}
	getWorkflowDebug(e) {
		return `/workflows/${e}/debug`;
	}
	async navigateToWorkflowDebug(e) {
		await this.navigate(this.getWorkflowDebug(e));
	}
	async navigateToChildWorkflow(e, t) {
		await this.navigate(`/workflows/${e}/${(t ? parseInt(t) : 0) + 1}`);
	}
	getWorkspaceRuns(e) {
		return `/workspaces/${e}/runs`;
	}
	async navigateToWorkspaceRuns(e) {
		await this.navigate(this.getWorkspaceRuns(e));
	}
	getEmbedWorkflow(e) {
		return `${this.embedPrefix}/workflows/${e}`;
	}
	getPreviewWorkflow(e) {
		return `${this.embedPrefix}/preview/workflows/${e}`;
	}
	getCurrentEnvironmentId() {
		return this.envId;
	}
	getTheme() {
		return "local";
	}
}, n = (n, r) => new t(e(), n, r);
//#endregion
export { t as LocalRouter, n as useRouter };
