import { c as e, d as t, f as n, l as r, o as i, p as a, s as ee, u as te } from "./shiki-highlighter-BmQSSJpS.js";
import { n as ne, t as re } from "./theme-provider-fNhx9xK0.js";
import { $ as ie, A as ae, B as oe, C as se, D as ce, E as le, F as ue, G as de, H as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, a as E, b as D, d as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, o as L, p as R, q as z, r as B, s as V, t as H, u as fe, v as pe, w as me, x as he, y as ge, z as _e } from "./DocsApp-BBNDiw8A.js";
import { t as U } from "./utils-Ct96Mtjw.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-DQ6nkP0y.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-CB7erSoV.js";
import { n as Ne, t as Pe } from "./MdxContent-CMB8ZbXo.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-C1_b1iKH.js";
import { t as nt } from "./AISelectionTrigger-MaBGhxTE.js";
import { i as rt, r as it, t as at } from "./AIChatDialog-W60DtiEW.js";
import { t as ot } from "./AISettingsPanel-aiMnncnQ.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-tUSKKsxW.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: U("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: U("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: r } = X();
	return /* @__PURE__ */ Q(n, {
		variant: "ghost",
		onClick: () => r(!0),
		className: U("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, ce as Badge, fe as Card, f as Collapsible, m as CollapsibleContent, ue as CollapsibleTrigger, $ as Command, bt as CommandDialog, i 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, H as DocsApp, j as DocsLayout, _e as DropdownMenu, oe as DropdownMenuCheckboxItem, b as DropdownMenuContent, o as DropdownMenuGroup, y as DropdownMenuItem, x as DropdownMenuLabel, de as DropdownMenuPortal, l as DropdownMenuRadioGroup, z as DropdownMenuRadioItem, c as DropdownMenuSeparator, C as DropdownMenuShortcut, S as DropdownMenuSub, w as DropdownMenuSubContent, h as DropdownMenuSubTrigger, ie as DropdownMenuTrigger, T as ExportAllDialog, A as ExportToolbar, R as FontProvider, le as Footer, s as HeaderNav, Ne as ImageViewer, pe as Label, g as LanguageSwitcher, Pe as MdxContent, u as ModeToggle, P as PageNavigation, N as ScrollArea, gt as SearchDialog, lt as SearchEngine, dt as SearchInput, mt as SearchItem, st as SearchProvider, pt as SearchResults, xt as SearchTrigger, p as Separator, d as SidebarNav, ae as TableOfContents, re as ThemeProvider, k as Tip, e as Tooltip, r as TooltipContent, te as TooltipProvider, t as TooltipTrigger, O as Warning, a as buttonVariants, Ve as clearAIConfig, U as cn, ge as copyAsMarkdown, ze as createAIProvider, Ye as createAssistantMessage, Ue as createUserMessage, Je as deleteProvider, D as exportAllDocs, he as exportAsMarkdown, _ as exportAsPDF, se as exportAsWord, Le as generateMessageId, ht as generateSnippet, Ge as getAIConfig, v as getConfig, He as getCurrentProviderConfig, Ie as getDefaultAIConfig, $e as getDefaultModelConfig, M as getPrevNextPage, We as getProviderDefaultModels, Qe as getProviderDisplayName, Be as getProviderHelpInfo, ct as highlightSnippet, ft as highlightText, me as htmlToMarkdown, E as importComponent, tt as isAIConfigured, L as loadComponents, V as mergeComponents, B as rehypeToc, Re as saveAIConfig, F as scanComponents, ut as searchEngine, qe as sendChatMessage, Xe as testAIConnection, _t as tokenizeQuery, et as updateProviderConfig, Ke as useAI, ee as useComponents, I as useFonts, X as useSearch, ne as useTheme, Fe as validateModelConfig };
