import { Dialog, DialogContent, DialogTitle } from "../../../components/ui/dialog.js";
import PipelineForm_default from "./PipelineForm.js";
import { c } from "react/compiler-runtime";
import { jsx, jsxs } from "react/jsx-runtime";
var NewPipelineRunDialog_default = (s) => {
	let l = c(11), { isOpen: u, onOpenChange: d, workspace: f, onSuccess: p } = s, m;
	l[0] !== d || l[1] !== p ? (m = () => {
		p(), d(!1);
	}, l[0] = d, l[1] = p, l[2] = m) : m = l[2];
	let h = m, g;
	l[3] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ jsx(DialogTitle, { children: "Run Pipeline" }), l[3] = g) : g = l[3];
	let _;
	l[4] !== h || l[5] !== f ? (_ = /* @__PURE__ */ jsxs(DialogContent, {
		className: "max-h-[80vh] min-h-[300px] !max-w-2xl",
		children: [g, /* @__PURE__ */ jsx("div", {
			className: "mt-4 overflow-y-auto",
			children: /* @__PURE__ */ jsx(PipelineForm_default, {
				title: "Run Pipeline",
				workspace: f,
				onSuccess: h
			})
		})]
	}), l[4] = h, l[5] = f, l[6] = _) : _ = l[6];
	let v;
	return l[7] !== u || l[8] !== d || l[9] !== _ ? (v = /* @__PURE__ */ jsx(Dialog, {
		open: u,
		onOpenChange: d,
		children: _
	}), l[7] = u, l[8] = d, l[9] = _, l[10] = v) : v = l[10], v;
};
export { NewPipelineRunDialog_default as default };
