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 s, G as ee, H as te, I as ne, J as re, K as ie, L as ae, M as oe, N as se, O as ce, P as le, R as c, S as l, T as u, U as d, V as f, W as p, X as m, Y as h, _ as g, a as _, b as v, d as y, f as b, g as x, h as S, i as C, j as w, k as T, l as E, m as D, o as O, p as k, q as A, r as j, s as M, t as N, u as P, v as F, w as I, x as L, y as R, z } from "./DocsApp-CWJsQVqd.js";
import { t as B } from "./utils-C1xOyiTe.js";
import { a as V, c as H, i as U, n as W, o as G, r as K, s as q, t as J } from "./dialog-DisDZkkN.js";
import { C as ue, S as de, a as fe, b as pe, f as me, i as he, o as ge, p as _e, v as ve, x as ye, y as be } from "./mdx-components-DoD1nZRa.js";
import { a as xe, c as Se, d as Y, f as Ce, l as we, m as Te, n as Ee, o as De, p as Oe, r as ke, s as Ae, t as je, u as Me } from "./context-menu-CdhjBgD1.js";
import { n as Ne, t as Pe } from "./MdxContent-Bj-hsc_-.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-DlIUBzEs.js";
import { i as rt, r as it, t as at } from "./AIChatDialog-TeF0UMa0.js";
import { t as ot } from "./AISettingsPanel-DQeyU4eW.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-CSsOqT7K.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: B("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(U, { children: t })]
		}), /* @__PURE__ */ Z(K, {
			className: B("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(de, {
		variant: "ghost",
		onClick: () => n(!0),
		className: B("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, he as Card, n as Collapsible, w as CollapsibleContent, oe as CollapsibleTrigger, $ as Command, bt as CommandDialog, me as ComponentProvider, je as ContextMenu, Ee as ContextMenuCheckboxItem, ke as ContextMenuContent, xe as ContextMenuItem, De as ContextMenuLabel, Ae as ContextMenuRadioGroup, Se as ContextMenuRadioItem, we as ContextMenuSeparator, Me as ContextMenuShortcut, Y as ContextMenuSub, Ce as ContextMenuSubContent, Oe as ContextMenuSubTrigger, Te as ContextMenuTrigger, J as Dialog, W as DialogClose, K as DialogContent, U as DialogDescription, V as DialogFooter, G as DialogHeader, q as DialogTitle, H as DialogTrigger, N as DocsApp, b as DocsLayout, ne as DropdownMenu, ae as DropdownMenuCheckboxItem, c as DropdownMenuContent, z as DropdownMenuGroup, r as DropdownMenuItem, f as DropdownMenuLabel, te as DropdownMenuPortal, d as DropdownMenuRadioGroup, p as DropdownMenuRadioItem, ee as DropdownMenuSeparator, ie as DropdownMenuShortcut, A as DropdownMenuSub, re as DropdownMenuSubContent, h as DropdownMenuSubTrigger, m as DropdownMenuTrigger, D as ExportAllDialog, k as ExportToolbar, P as FontProvider, i as Footer, se as HeaderNav, Ne as ImageViewer, S as Label, s as LanguageSwitcher, Pe as MdxContent, le as ModeToggle, u as PageNavigation, ce as ScrollArea, gt as SearchDialog, lt as SearchEngine, dt as SearchInput, mt as SearchItem, st as SearchProvider, pt as SearchResults, xt as SearchTrigger, I as Separator, T as SidebarNav, o as TableOfContents, t as ThemeProvider, ge as Tip, ve as Tooltip, be as TooltipContent, pe as TooltipProvider, ye as TooltipTrigger, fe as Warning, ue as buttonVariants, Ve as clearAIConfig, B as cn, x as copyAsMarkdown, ze as createAIProvider, Ye as createAssistantMessage, Ue as createUserMessage, Je as deleteProvider, g as exportAllDocs, F as exportAsMarkdown, R as exportAsPDF, v as exportAsWord, Le as generateMessageId, ht as generateSnippet, Ge as getAIConfig, l as getConfig, He as getCurrentProviderConfig, Ie as getDefaultAIConfig, $e as getDefaultModelConfig, C as getPrevNextPage, We as getProviderDefaultModels, Qe as getProviderDisplayName, Be as getProviderHelpInfo, ct as highlightSnippet, ft as highlightText, L as htmlToMarkdown, _ as importComponent, tt as isAIConfigured, O as loadComponents, M as mergeComponents, j as rehypeToc, Re as saveAIConfig, E as scanComponents, ut as searchEngine, qe as sendChatMessage, Xe as testAIConnection, _t as tokenizeQuery, et as updateProviderConfig, Ke as useAI, _e as useComponents, y as useFonts, X as useSearch, e as useTheme, Fe as validateModelConfig };
