import { Button } from "../../../components/ui/button.js";
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "../../../components/ui/dialog.js";
import { Label } from "../../../components/ui/label.js";
import { Switch } from "../../../components/ui/switch.js";
import { c } from "react/compiler-runtime";
import { jsx, jsxs } from "react/jsx-runtime";
import { Settings } from "lucide-react";
var WorkbenchSettingsModal_default = (p) => {
	let m = c(24), { settings: h, onSettingsChange: g, open: _, onOpenChange: v } = p, y;
	m[0] !== g || m[1] !== h ? (y = (e, f) => {
		g({
			...h,
			[e]: f
		});
	}, m[0] = g, m[1] = h, m[2] = y) : y = m[2];
	let b = y, x;
	m[3] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ jsx(DialogTrigger, {
		asChild: !0,
		children: /* @__PURE__ */ jsx(Button, {
			variant: "ghost",
			size: "icon",
			className: "text-gray-500 hover:cursor-pointer hover:text-gray-700",
			children: /* @__PURE__ */ jsx(Settings, { className: "h-5 w-5" })
		})
	}), m[3] = x) : x = m[3];
	let S;
	m[4] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Workflow Settings" }) }), m[4] = S) : S = m[4];
	let C;
	m[5] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ jsxs("div", {
		className: "flex-1",
		children: [/* @__PURE__ */ jsx(Label, {
			htmlFor: "debug-mode",
			className: "text-sm font-medium",
			children: "Enable Debug Mode"
		}), /* @__PURE__ */ jsx("p", {
			className: "text-muted-foreground text-sm",
			children: "Show debug info for each document"
		})]
	}), m[5] = C) : C = m[5];
	let w;
	m[6] === b ? w = m[7] : (w = (e) => b("enableDebugMode", e), m[6] = b, m[7] = w);
	let T;
	m[8] !== h.enableDebugMode || m[9] !== w ? (T = /* @__PURE__ */ jsxs("div", {
		className: "flex items-center justify-between space-x-2",
		children: [C, /* @__PURE__ */ jsx(Switch, {
			id: "debug-mode",
			checked: h.enableDebugMode,
			onCheckedChange: w
		})]
	}), m[8] = h.enableDebugMode, m[9] = w, m[10] = T) : T = m[10];
	let E;
	m[11] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ jsxs("div", {
		className: "flex-1",
		children: [/* @__PURE__ */ jsx(Label, {
			htmlFor: "message-history",
			className: "text-sm font-medium",
			children: "Full Message History"
		}), /* @__PURE__ */ jsx("p", {
			className: "text-muted-foreground text-sm",
			children: "Show all internal messages and prompts"
		})]
	}), m[11] = E) : E = m[11];
	let D;
	m[12] === b ? D = m[13] : (D = (e) => b("showFullMessageHistory", e), m[12] = b, m[13] = D);
	let O;
	m[14] !== h.showFullMessageHistory || m[15] !== D ? (O = /* @__PURE__ */ jsxs("div", {
		className: "flex items-center justify-between space-x-2",
		children: [E, /* @__PURE__ */ jsx(Switch, {
			id: "message-history",
			checked: h.showFullMessageHistory,
			onCheckedChange: D
		})]
	}), m[14] = h.showFullMessageHistory, m[15] = D, m[16] = O) : O = m[16];
	let k;
	m[17] !== T || m[18] !== O ? (k = /* @__PURE__ */ jsxs(DialogContent, {
		className: "sm:max-w-md",
		children: [S, /* @__PURE__ */ jsxs("div", {
			className: "flex flex-col gap-4 p-4",
			children: [T, O]
		})]
	}), m[17] = T, m[18] = O, m[19] = k) : k = m[19];
	let A;
	return m[20] !== v || m[21] !== _ || m[22] !== k ? (A = /* @__PURE__ */ jsxs(Dialog, {
		open: _,
		onOpenChange: v,
		children: [x, k]
	}), m[20] = v, m[21] = _, m[22] = k, m[23] = A) : A = m[23], A;
};
export { WorkbenchSettingsModal_default as default };
