import { j as a, c as t, b as d, d as l, e as p, f as g, g as m, B as u } from "./DocsApp-CEu0IOyd.js";
import { A as k, h as T, C as P, i as j, k as _, l as N, m as y, n as R, o as E, p as F, D as L, q as B, r as G, s as H, t as z, v as O, w as V, x as W, y as q, z as K, E as Q, F as U, G as $, H as J, I as X, J as Y, K as Z, L as aa, M as ea, N as oa, O as sa, P as ta, Q as na, R as ra, S as ia, T as da, U as la, V as pa, W as ga, X as ma, Y as ua, Z as ca, _ as ha, $ as xa, a0 as Ca, a1 as fa, a2 as Ma, a3 as Da, a4 as wa, a5 as va, a6 as ba, a7 as Sa, a8 as Ia, a9 as Aa, aa as ka, ab as Ta, ac as Pa, ad as ja, ae as _a, af as Na, ag as ya, ah as Ra, ai as Ea, aj as Fa, ak as La, al as Ba, am as Ga, an as Ha, ao as za, ap as Oa, aq as Va, ar as Wa, as as qa, at as Ka, au as Qa, av as Ua, aw as $a, ax as Ja, ay as Xa, u as Ya, az as Za, aA as ae, a as ee, aB as oe } from "./DocsApp-CEu0IOyd.js";
import "react";
import { Command as c } from "cmdk";
import { Search as h } from "lucide-react";
import { C as te, l as ne, b as re, e as ie, c as de, j as le, k as pe, f as ge, m as me, g as ue, i as ce, h as he, a as xe } from "./context-menu-BX0jqPJI.js";
import { I as fe, M as Me } from "./MdxContent-Bbj-p4XT.js";
import { a as we, c as ve, d as be, A as Se, b as Ie } from "./AISettingsPanel-CaGVDZ2z.js";
import { u as x } from "./SearchDialog-B67saUjp.js";
import { a as ke, b as Te, c as Pe, d as je, S as _e, e as Ne, g as ye, h as Re, f as Ee, s as Fe, t as Le } from "./SearchDialog-B67saUjp.js";
function C({
  className: e,
  ...o
}) {
  return /* @__PURE__ */ a.jsx(
    c,
    {
      "data-slot": "command",
      className: t(
        "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
        e
      ),
      ...o
    }
  );
}
function b({
  title: e = "Command Palette",
  description: o = "Search for a command to run...",
  children: s,
  className: n,
  showCloseButton: r = !0,
  ...i
}) {
  return /* @__PURE__ */ a.jsxs(d, { ...i, children: [
    /* @__PURE__ */ a.jsxs(l, { className: "sr-only", children: [
      /* @__PURE__ */ a.jsx(p, { children: e }),
      /* @__PURE__ */ a.jsx(g, { children: o })
    ] }),
    /* @__PURE__ */ a.jsx(
      m,
      {
        className: t("overflow-hidden p-0", n),
        showCloseButton: r,
        children: /* @__PURE__ */ a.jsx(C, { 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: s })
      }
    )
  ] });
}
function S({ className: e, placeholder: o }) {
  const { setOpen: s } = x();
  return /* @__PURE__ */ a.jsxs(
    u,
    {
      variant: "ghost",
      onClick: () => s(!0),
      className: t(
        "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__ */ a.jsx(h, { className: "mr-2 h-4 w-4" }),
        /* @__PURE__ */ a.jsx("span", { className: "hidden lg:inline-flex truncate", children: o || "搜索文档..." }),
        /* @__PURE__ */ a.jsx("span", { className: "inline-flex lg:hidden", children: "搜索" }),
        /* @__PURE__ */ a.jsxs("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__ */ a.jsx("span", { className: "text-xs", children: "⌘" }),
          "K"
        ] })
      ]
    }
  );
}
export {
  we as AIChatDialog,
  ve as AIChatInput,
  be as AIChatMessage,
  k as AIProvider,
  Se as AISelectionTrigger,
  Ie as AISettingsPanel,
  T as Badge,
  P as Card,
  j as Collapsible,
  _ as CollapsibleContent,
  N as CollapsibleTrigger,
  C as Command,
  b as CommandDialog,
  y as ComponentProvider,
  te as ContextMenu,
  ne as ContextMenuCheckboxItem,
  re as ContextMenuContent,
  ie as ContextMenuItem,
  de as ContextMenuLabel,
  le as ContextMenuRadioGroup,
  pe as ContextMenuRadioItem,
  ge as ContextMenuSeparator,
  me as ContextMenuShortcut,
  ue as ContextMenuSub,
  ce as ContextMenuSubContent,
  he as ContextMenuSubTrigger,
  xe as ContextMenuTrigger,
  d as Dialog,
  R as DialogClose,
  m as DialogContent,
  g as DialogDescription,
  E as DialogFooter,
  l as DialogHeader,
  p as DialogTitle,
  F as DialogTrigger,
  L as DocsApp,
  B as DocsLayout,
  G as DropdownMenu,
  H as DropdownMenuCheckboxItem,
  z as DropdownMenuContent,
  O as DropdownMenuGroup,
  V as DropdownMenuItem,
  W as DropdownMenuLabel,
  q as DropdownMenuPortal,
  K as DropdownMenuRadioGroup,
  Q as DropdownMenuRadioItem,
  U as DropdownMenuSeparator,
  $ as DropdownMenuShortcut,
  J as DropdownMenuSub,
  X as DropdownMenuSubContent,
  Y as DropdownMenuSubTrigger,
  Z as DropdownMenuTrigger,
  aa as ExportAllDialog,
  ea as ExportToolbar,
  oa as FontProvider,
  sa as Footer,
  ta as HeaderNav,
  fe as ImageViewer,
  na as Label,
  ra as LanguageSwitcher,
  Me as MdxContent,
  ia as ModeToggle,
  da as PageNavigation,
  la as ScrollArea,
  ke as SearchDialog,
  Te as SearchEngine,
  Pe as SearchInput,
  je as SearchItem,
  _e as SearchProvider,
  Ne as SearchResults,
  S as SearchTrigger,
  pa as Separator,
  ga as SidebarNav,
  ma as TableOfContents,
  ua as ThemeProvider,
  ca as Tip,
  ha as Tooltip,
  xa as TooltipContent,
  Ca as TooltipProvider,
  fa as TooltipTrigger,
  Ma as Warning,
  Da as buttonVariants,
  wa as clearAIConfig,
  t as cn,
  va as copyAsMarkdown,
  ba as createAIProvider,
  Sa as createAssistantMessage,
  Ia as createUserMessage,
  Aa as deleteProvider,
  ka as exportAllDocs,
  Ta as exportAsMarkdown,
  Pa as exportAsPDF,
  ja as exportAsWord,
  _a as generateMessageId,
  ye as generateSnippet,
  Na as getAIConfig,
  ya as getConfig,
  Ra as getCurrentProviderConfig,
  Ea as getDefaultAIConfig,
  Fa as getDefaultModelConfig,
  La as getPrevNextPage,
  Ba as getProviderDefaultModels,
  Ga as getProviderDisplayName,
  Ha as getProviderHelpInfo,
  Re as highlightSnippet,
  Ee as highlightText,
  za as htmlToMarkdown,
  Oa as importComponent,
  Va as isAIConfigured,
  Wa as loadComponents,
  qa as mergeComponents,
  Ka as rehypeToc,
  Qa as saveAIConfig,
  Ua as scanComponents,
  Fe as searchEngine,
  $a as sendChatMessage,
  Ja as testAIConnection,
  Le as tokenizeQuery,
  Xa as updateProviderConfig,
  Ya as useAI,
  Za as useComponents,
  ae as useFonts,
  x as useSearch,
  ee as useTheme,
  oe as validateModelConfig
};
