import { n as e, t } from "./theme-provider-fNhx9xK0.js";
import { A as n, B as r, C as i, D as a, E as o, F as ee, G as te, H as ne, I as re, J as ie, K as ae, L as oe, M as se, N as ce, O as le, P as ue, R as s, S as c, T as l, U as u, V as d, W as f, X as p, Y as m, _ as h, a as g, b as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, o as D, p as O, q as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./DocsApp-Cx8m3Qn3.js";
import { t as z } from "./utils-Ct96Mtjw.js";
import { C as B, S as V, a as H, b as U, f as de, i as fe, o as pe, p as me, v as he, x as ge, y as _e } from "./mdx-components-m1cGPhc8.js";
import { a as ve, c as ye, i as W, n as be, o as G, r as K, s as q, t as J } from "./dialog-D8otbqQL.js";
import { a as xe, c as Se, d as Ce, f as we, l as Te, m as Ee, n as De, o as Oe, p as Y, r as ke, s as Ae, t as je, u as Me } from "./context-menu-BIQsQup7.js";
import { n as Ne, t as Pe } from "./MdxContent-BdbPnB6O.js";
import { S as Fe, _ as Ie, a as Le, b as Re, c as ze, d as Be, f as Ve, g as He, i as Ue, l as We, m as Ge, n as Ke, o as qe, p as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./AIProvider-niZNPSGi.js";
import { t as nt } from "./AISelectionTrigger-SLyb8Vep.js";
import { i as rt, r as it, t as at } from "./AIChatDialog-BnAX3dRn.js";
import { t as ot } from "./AISettingsPanel-Bsd_wLP4.js";
import { a as st, c as ct, d as lt, f as ut, i as dt, l as ft, n as pt, o as X, r as mt, s as ht, t as gt, u as _t } from "./SearchDialog-DWVre6R9.js";
import "react";
import { Search as vt } from "lucide-react";
import { jsx as Z, jsxs as Q } from "react/jsx-runtime";
import { Command as yt } from "cmdk";
//#region src/components/ui/command.tsx
function $({ className: e, ...t }) {
	return /* @__PURE__ */ Z(yt, {
		"data-slot": "command",
		className: z("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", e),
		...t
	});
}
function bt({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...a }) {
	return /* @__PURE__ */ Q(J, {
		...a,
		children: [/* @__PURE__ */ Q(G, {
			className: "sr-only",
			children: [/* @__PURE__ */ Z(q, { children: e }), /* @__PURE__ */ Z(W, { children: t })]
		}), /* @__PURE__ */ Z(K, {
			className: z("overflow-hidden p-0", r),
			showCloseButton: i,
			children: /* @__PURE__ */ Z($, {
				className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
				children: n
			})
		})]
	});
}
//#endregion
//#region src/components/search/SearchTrigger.tsx
function xt({ className: e, placeholder: t }) {
	let { setOpen: n } = X();
	return /* @__PURE__ */ Q(V, {
		variant: "ghost",
		onClick: () => n(!0),
		className: z("relative h-9 justify-start rounded-lg bg-muted/50 text-sm font-normal text-muted-foreground shadow-none sm:mr-2 sm:w-48 lg:w-64", e),
		children: [
			/* @__PURE__ */ Z(vt, { className: "mr-2 h-4 w-4" }),
			/* @__PURE__ */ Z("span", {
				className: "hidden lg:inline-flex truncate",
				children: t || "搜索文档..."
			}),
			/* @__PURE__ */ Z("span", {
				className: "inline-flex lg:hidden",
				children: "搜索"
			}),
			/* @__PURE__ */ Q("kbd", {
				className: "pointer-events-none absolute right-1.5 top-1.5 hidden h-6 select-none items-center gap-1 rounded border bg-background px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",
				children: [/* @__PURE__ */ Z("span", {
					className: "text-xs",
					children: "⌘"
				}), "K"]
			})
		]
	});
}
//#endregion
export { at as AIChatDialog, it as AIChatInput, rt as AIChatMessage, Ze as AIProvider, nt as AISelectionTrigger, ot as AISettingsPanel, a as Badge, fe as Card, n as Collapsible, C as CollapsibleContent, se as CollapsibleTrigger, $ as Command, bt as CommandDialog, de as ComponentProvider, je as ContextMenu, De as ContextMenuCheckboxItem, ke as ContextMenuContent, xe as ContextMenuItem, Oe as ContextMenuLabel, Ae as ContextMenuRadioGroup, Se as ContextMenuRadioItem, Te as ContextMenuSeparator, Me as ContextMenuShortcut, Ce as ContextMenuSub, we as ContextMenuSubContent, Y as ContextMenuSubTrigger, Ee as ContextMenuTrigger, J as Dialog, be as DialogClose, K as DialogContent, W as DialogDescription, ve as DialogFooter, G as DialogHeader, q as DialogTitle, ye as DialogTrigger, M as DocsApp, y as DocsLayout, re as DropdownMenu, oe as DropdownMenuCheckboxItem, s as DropdownMenuContent, R as DropdownMenuGroup, r as DropdownMenuItem, d as DropdownMenuLabel, ne as DropdownMenuPortal, u as DropdownMenuRadioGroup, f as DropdownMenuRadioItem, te as DropdownMenuSeparator, ae as DropdownMenuShortcut, k as DropdownMenuSub, ie as DropdownMenuSubContent, m as DropdownMenuSubTrigger, p as DropdownMenuTrigger, E as ExportAllDialog, O as ExportToolbar, N as FontProvider, i as Footer, ce as HeaderNav, Ne as ImageViewer, x as Label, ee as LanguageSwitcher, Pe as MdxContent, ue as ModeToggle, l as PageNavigation, le as ScrollArea, gt as SearchDialog, lt as SearchEngine, dt as SearchInput, mt as SearchItem, st as SearchProvider, pt as SearchResults, xt as SearchTrigger, F as Separator, w as SidebarNav, o as TableOfContents, t as ThemeProvider, pe as Tip, he as Tooltip, _e as TooltipContent, U as TooltipProvider, ge as TooltipTrigger, H as Warning, B as buttonVariants, Ve as clearAIConfig, z as cn, b as copyAsMarkdown, ze as createAIProvider, Ye as createAssistantMessage, Ue as createUserMessage, Je as deleteProvider, h as exportAllDocs, P as exportAsMarkdown, L as exportAsPDF, _ as exportAsWord, Le as generateMessageId, ht as generateSnippet, Ge as getAIConfig, c as getConfig, He as getCurrentProviderConfig, Ie as getDefaultAIConfig, $e as getDefaultModelConfig, S as getPrevNextPage, We as getProviderDefaultModels, Qe as getProviderDisplayName, Be as getProviderHelpInfo, ct as highlightSnippet, ft as highlightText, I as htmlToMarkdown, g as importComponent, tt as isAIConfigured, D as loadComponents, j as mergeComponents, A as rehypeToc, Re as saveAIConfig, T as scanComponents, ut as searchEngine, qe as sendChatMessage, Xe as testAIConnection, _t as tokenizeQuery, et as updateProviderConfig, Ke as useAI, me as useComponents, v as useFonts, X as useSearch, e as useTheme, Fe as validateModelConfig };
