{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-command",
  "type": "registry:component",
  "title": "Navbar Command",
  "description": "An app header with a search field that stretches across the whole bar on focus or Cmd K, pushing the links aside and dropping grouped results with highlighted matches. Arrow keys move, Enter opens and Escape clears, then closes.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "navigation",
    "navbar",
    "command",
    "search",
    "combobox",
    "keyboard",
    "app"
  ],
  "docs": "https://hyperblur.dev/effects/navbar-command",
  "files": [
    {
      "path": "registry/hyperblur/navbar-command.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/navbar-command.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface NavbarCommandLink {\n  label: string;\n  href: string;\n}\n\nexport interface NavbarCommandItem {\n  id: string;\n  label: string;\n  group: string;\n  hint?: string;\n  shortcut?: string;\n  href?: string;\n}\n\nexport interface NavbarCommandProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\" | \"onSelect\"> {\n  brand?: string;\n  links?: NavbarCommandLink[];\n  items?: NavbarCommandItem[];\n  recent?: string[];\n  placeholder?: string;\n  open?: boolean;\n  defaultOpen?: boolean;\n  onOpenChange?: (open: boolean) => void;\n  defaultQuery?: string;\n  onSelect?: (item: NavbarCommandItem) => void;\n  user?: { name: string } | null;\n  accent?: string;\n  showBackdrop?: boolean;\n}\n\nconst css = `\n.hb-xi7 {\n  --hb-xi7-accent: #a78bfa;\n  --hb-xi7-ease: cubic-bezier(.22,1,.36,1);\n  position: relative;\n  z-index: 40;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: #0a0a0b;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-xi7 *, .hb-xi7 *::before, .hb-xi7 *::after { box-sizing: border-box; }\n.hb-xi7-bar { position: relative; z-index: 3; border-bottom: 1px solid #1e1e22; background: #0a0a0b; }\n.hb-xi7-row { position: relative; display: flex; align-items: center; gap: 16px; max-width: 1140px; height: 60px; margin: 0 auto; padding: 0 20px; }\n.hb-xi7-brand { display: inline-flex; flex: none; align-items: center; gap: 9px; color: #fff; font-size: 15px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; border-radius: 6px; transition: opacity .3s ease, transform .45s var(--hb-xi7-ease); }\n.hb-xi7-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--hb-xi7-accent), color-mix(in srgb, var(--hb-xi7-accent) 40%, #1e1b4b)); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }\n.hb-xi7-mark svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi7-links { display: flex; flex: none; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; transition: opacity .25s ease, transform .45s var(--hb-xi7-ease), max-width .5s var(--hb-xi7-ease); max-width: 520px; overflow: hidden; }\n.hb-xi7-link { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 8px; color: #9d9da6; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color .2s ease, background-color .2s ease; }\n.hb-xi7-link:hover { color: #fff; background: rgba(255,255,255,.05); }\n.hb-xi7-box { position: relative; flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }\n.hb-xi7-field {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  width: 260px;\n  height: 38px;\n  padding: 0 8px 0 12px;\n  border-radius: 10px;\n  background: #141416;\n  box-shadow: 0 0 0 1px #26262b inset;\n  color: #8b8b94;\n  cursor: text;\n  transition: width .55s var(--hb-xi7-ease), box-shadow .25s ease, background-color .25s ease;\n}\n.hb-xi7-field:hover { box-shadow: 0 0 0 1px #34343a inset; }\n.hb-xi7[data-open=\"true\"] .hb-xi7-field { width: 100%; background: #111113; box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-xi7-accent) 55%, transparent) inset, 0 0 0 4px color-mix(in srgb, var(--hb-xi7-accent) 14%, transparent); }\n.hb-xi7[data-open=\"true\"] .hb-xi7-links { max-width: 0; opacity: 0; transform: translateX(-12px); pointer-events: none; }\n.hb-xi7-field svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }\n.hb-xi7-input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: none; background: transparent; color: #fafafa; font: inherit; font-size: 14px; }\n.hb-xi7-input::placeholder { color: #6e6e78; }\n.hb-xi7-keys { display: inline-flex; flex: none; gap: 3px; }\n.hb-xi7-keys kbd { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #1d1d21; box-shadow: 0 -1px 0 rgba(0,0,0,.4) inset, 0 0 0 1px #2a2a30 inset; color: #9d9da6; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; }\n.hb-xi7-drop {\n  position: absolute;\n  top: calc(100% + 8px);\n  left: 0;\n  right: 0;\n  z-index: 5;\n  max-height: 360px;\n  padding: 6px;\n  overflow-y: auto;\n  border-radius: 14px;\n  background: #111113;\n  box-shadow: 0 0 0 1px #24242a inset, 0 30px 60px -24px rgba(0,0,0,.9), 0 10px 20px -10px rgba(0,0,0,.6);\n  transform-origin: 50% 0;\n  animation: hb-xi7-in .32s var(--hb-xi7-ease) both;\n}\n.hb-xi7-group { padding: 10px 10px 6px; color: #6e6e78; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }\n.hb-xi7-opt { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: 9px; color: #d4d4d8; font-size: 14px; cursor: pointer; transition: background-color .12s ease, color .12s ease; }\n.hb-xi7-opt[aria-selected=\"true\"] { background: rgba(255,255,255,.06); color: #fff; }\n.hb-xi7-opt[aria-selected=\"true\"]::before { content: \"\"; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--hb-xi7-accent); box-shadow: 0 0 10px var(--hb-xi7-accent); }\n.hb-xi7-oi { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #1a1a1e; box-shadow: 0 0 0 1px #26262b inset; color: #9d9da6; }\n.hb-xi7-opt[aria-selected=\"true\"] .hb-xi7-oi { color: var(--hb-xi7-accent); }\n.hb-xi7-oi svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi7-ol { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.hb-xi7-ol mark { background: none; color: var(--hb-xi7-accent); font-weight: 600; }\n.hb-xi7-hint { color: #6e6e78; font-size: 12.5px; }\n.hb-xi7-sc { display: inline-flex; gap: 3px; }\n.hb-xi7-sc kbd { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; background: #1a1a1e; color: #8b8b94; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }\n.hb-xi7-empty { padding: 26px 12px; color: #8b8b94; font-size: 13.5px; text-align: center; }\n.hb-xi7-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }\n.hb-xi7-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 0; padding: 0 10px; border: 0; border-radius: 999px; background: #1a1a1e; color: #b4b4bc; font: inherit; font-size: 12.5px; cursor: pointer; box-shadow: 0 0 0 1px #26262b inset; transition: background-color .15s ease, color .15s ease; }\n.hb-xi7-chip:hover { background: #222227; color: #fff; }\n.hb-xi7-chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }\n.hb-xi7-foot { display: flex; gap: 16px; margin-top: 4px; padding: 10px 10px 4px; border-top: 1px solid #1e1e22; color: #6e6e78; font-size: 11.5px; }\n.hb-xi7-foot span { display: inline-flex; align-items: center; gap: 6px; }\n.hb-xi7-foot kbd { padding: 1px 5px; border-radius: 4px; background: #1a1a1e; color: #9d9da6; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }\n.hb-xi7-end { display: flex; flex: none; align-items: center; gap: 8px; }\n.hb-xi7-bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #9d9da6; cursor: pointer; transition: background-color .2s ease, color .2s ease; }\n.hb-xi7-bell:hover { background: rgba(255,255,255,.05); color: #fff; }\n.hb-xi7-bell svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi7-bell::after { content: \"\"; position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-xi7-accent); box-shadow: 0 0 0 2px #0a0a0b; }\n.hb-xi7-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #a78bfa); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3px #26262b; }\n.hb-xi7-mobq { display: none; }\n.hb-xi7 a:focus-visible, .hb-xi7 button:focus-visible { outline: 2px solid var(--hb-xi7-accent); outline-offset: 2px; }\n.hb-xi7-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.hb-xi7-stage { position: relative; z-index: 1; height: 620px; overflow: hidden; }\n.hb-xi7-app { display: grid; grid-template-columns: 220px 1fr; max-width: 1140px; margin: 0 auto; height: 100%; }\n.hb-xi7-side { padding: 24px 20px; border-right: 1px solid #18181b; }\n.hb-xi7-side div { height: 10px; margin-bottom: 18px; border-radius: 5px; background: #17171a; }\n.hb-xi7-main { padding: 28px 32px; }\n.hb-xi7-main h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }\n.hb-xi7-main p { margin: 0 0 24px; color: #8b8b94; font-size: 14px; }\n.hb-xi7-rows { display: grid; gap: 10px; }\n.hb-xi7-r { display: grid; grid-template-columns: 10px 1fr 120px 80px; align-items: center; gap: 14px; height: 52px; padding: 0 16px; border: 1px solid #18181b; border-radius: 12px; background: #0d0d0f; color: #b4b4bc; font-size: 13.5px; }\n.hb-xi7-r i { width: 8px; height: 8px; border-radius: 50%; font-style: normal; }\n.hb-xi7-r small { color: #6e6e78; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }\n@keyframes hb-xi7-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }\n@container (max-width: 760px) {\n  .hb-xi7-links, .hb-xi7-bell { display: none; }\n  .hb-xi7-row { gap: 10px; padding: 0 14px; height: 56px; }\n  .hb-xi7-field { width: 38px; padding: 0; justify-content: center; }\n  .hb-xi7-field .hb-xi7-input, .hb-xi7-field .hb-xi7-keys { display: none; }\n  .hb-xi7[data-open=\"true\"] .hb-xi7-brand { max-width: 0; opacity: 0; overflow: hidden; transform: translateX(-10px); }\n  .hb-xi7[data-open=\"true\"] .hb-xi7-field { padding: 0 10px 0 12px; justify-content: flex-start; }\n  .hb-xi7[data-open=\"true\"] .hb-xi7-field .hb-xi7-input { display: block; }\n  .hb-xi7[data-open=\"true\"] .hb-xi7-end { display: none; }\n  .hb-xi7-mobq { display: none; }\n  .hb-xi7[data-open=\"true\"] .hb-xi7-mobq { display: inline-flex; flex: none; height: 30px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: #1a1a1e; color: #d4d4d8; font: inherit; font-size: 13px; align-items: center; cursor: pointer; }\n  .hb-xi7-box { position: static; }\n  .hb-xi7-drop { position: absolute; top: calc(100% + 1px); left: 8px; right: 8px; }\n  .hb-xi7-app { grid-template-columns: 1fr; }\n  .hb-xi7-side { display: none; }\n  .hb-xi7-r { grid-template-columns: 10px 1fr 70px; }\n  .hb-xi7-r small:last-child { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-xi7 *, .hb-xi7 *::before, .hb-xi7 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultLinks: NavbarCommandLink[] = [\n  { label: \"Projects\", href: \"#\" },\n  { label: \"Deployments\", href: \"#\" },\n  { label: \"Analytics\", href: \"#\" },\n  { label: \"Settings\", href: \"#\" },\n];\n\nconst defaultItems: NavbarCommandItem[] = [\n  { id: \"p1\", label: \"relay-web\", group: \"Projects\", hint: \"Production · 2m ago\" },\n  { id: \"p2\", label: \"relay-api\", group: \"Projects\", hint: \"Preview · 18m ago\" },\n  { id: \"p3\", label: \"docs-site\", group: \"Projects\", hint: \"Production · 3d ago\" },\n  { id: \"d1\", label: \"Deploy relay-web to production\", group: \"Actions\", shortcut: \"D\" },\n  { id: \"d2\", label: \"Roll back last deployment\", group: \"Actions\", shortcut: \"R\" },\n  { id: \"d3\", label: \"Invite a teammate\", group: \"Actions\", shortcut: \"I\" },\n  { id: \"d4\", label: \"Open deployment logs\", group: \"Actions\", shortcut: \"L\" },\n  { id: \"g1\", label: \"Domains\", group: \"Settings\", hint: \"Settings\" },\n  { id: \"g2\", label: \"Environment variables\", group: \"Settings\", hint: \"Settings\" },\n  { id: \"g3\", label: \"Billing and usage\", group: \"Settings\", hint: \"Team\" },\n];\n\nconst groupIcons: Record<string, React.ReactNode> = {\n  Projects: <path d=\"M2.5 4.5h4l1.5 1.5h5.5v6.5h-11z\" />,\n  Actions: <path d=\"M8.5 2L4 9h4l-.5 5L12 7H8z\" />,\n  Settings: <path d=\"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM8 1.8v1.7M8 12.5v1.7M1.8 8h1.7M12.5 8h1.7M3.6 3.6l1.2 1.2M11.2 11.2l1.2 1.2M3.6 12.4l1.2-1.2M11.2 4.8l1.2-1.2\" />,\n};\n\nfunction highlight(label: string, q: string) {\n  if (!q) return label;\n  const at = label.toLowerCase().indexOf(q.toLowerCase());\n  if (at < 0) return label;\n  return (\n    <>\n      {label.slice(0, at)}\n      <mark>{label.slice(at, at + q.length)}</mark>\n      {label.slice(at + q.length)}\n    </>\n  );\n}\n\nexport function NavbarCommand({\n  brand = \"Relay\",\n  links = defaultLinks,\n  items = defaultItems,\n  recent = [\"relay-web\", \"Environment variables\", \"Roll back\"],\n  placeholder = \"Search or jump to...\",\n  open,\n  defaultOpen = false,\n  onOpenChange,\n  defaultQuery = \"\",\n  onSelect,\n  user = { name: \"Maya Chen\" },\n  accent = \"#a78bfa\",\n  showBackdrop = true,\n  className = \"\",\n  style,\n  ...rest\n}: NavbarCommandProps) {\n  const uid = React.useId();\n  const inputRef = React.useRef<HTMLInputElement>(null);\n  const rootRef = React.useRef<HTMLElement>(null);\n  const [inner, setInner] = React.useState(defaultOpen);\n  const [query, setQuery] = React.useState(defaultQuery);\n  const [cursor, setCursor] = React.useState(0);\n  const [picked, setPicked] = React.useState<string | null>(null);\n  const isOpen = open ?? inner;\n\n  const setOpen = React.useCallback(\n    (v: boolean) => {\n      if (open === undefined) setInner(v);\n      onOpenChange?.(v);\n    },\n    [open, onOpenChange],\n  );\n\n  React.useEffect(() => {\n    const onKey = (e: KeyboardEvent) => {\n      if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === \"k\") {\n        e.preventDefault();\n        setOpen(true);\n        inputRef.current?.focus();\n      }\n    };\n    window.addEventListener(\"keydown\", onKey);\n    return () => window.removeEventListener(\"keydown\", onKey);\n  }, [setOpen]);\n\n  const results = React.useMemo(() => {\n    const q = query.trim().toLowerCase();\n    return q ? items.filter((it) => it.label.toLowerCase().includes(q) || it.group.toLowerCase().includes(q)) : items.slice(0, 6);\n  }, [items, query]);\n\n  const { groups, ordered } = React.useMemo(() => {\n    const map = new Map<string, NavbarCommandItem[]>();\n    results.forEach((it) => map.set(it.group, [...(map.get(it.group) ?? []), it]));\n    let k = 0;\n    const out = [...map].map(([group, list]) => [group, list.map((it) => ({ it, idx: k++ }))] as const);\n    return { groups: out, ordered: out.flatMap(([, list]) => list.map((x) => x.it)) };\n  }, [results]);\n\n  const active = Math.min(cursor, Math.max(0, ordered.length - 1));\n\n  const choose = (it: NavbarCommandItem) => {\n    setPicked(it.label);\n    onSelect?.(it);\n    setQuery(\"\");\n    setCursor(0);\n    setOpen(false);\n    inputRef.current?.blur();\n  };\n\n  const onKey = (e: React.KeyboardEvent<HTMLInputElement>) => {\n    if (e.key === \"ArrowDown\" || e.key === \"ArrowUp\") {\n      e.preventDefault();\n      if (!isOpen) setOpen(true);\n      const n = ordered.length || 1;\n      setCursor((active + (e.key === \"ArrowDown\" ? 1 : -1) + n) % n);\n    } else if (e.key === \"Enter\") {\n      const it = ordered[active];\n      if (it) {\n        e.preventDefault();\n        choose(it);\n      }\n    } else if (e.key === \"Escape\") {\n      e.preventDefault();\n      if (query) setQuery(\"\");\n      else {\n        setOpen(false);\n        inputRef.current?.blur();\n      }\n    }\n  };\n\n  React.useEffect(() => {\n    if (!isOpen) return;\n    const el = rootRef.current?.querySelector<HTMLElement>(`[data-hb-xi7-opt=\"${active}\"]`);\n    el?.scrollIntoView({ block: \"nearest\" });\n  }, [active, isOpen]);\n\n  const initials = user ? user.name.split(\" \").map((p) => p[0]).join(\"\").slice(0, 2) : \"\";\n\n  return (\n    <header\n      ref={rootRef}\n      className={`hb-xi7 ${className}`}\n      data-open={isOpen ? \"true\" : \"false\"}\n      style={{ \"--hb-xi7-accent\": accent, ...style } as React.CSSProperties}\n      onBlur={(e) => {\n        if (isOpen && !e.currentTarget.contains(e.relatedTarget as Node | null)) setOpen(false);\n      }}\n      {...rest}\n    >\n      <style href=\"hb-navbar-command\" precedence=\"default\">\n        {css}\n      </style>\n      <div className=\"hb-xi7-bar\">\n        <nav className=\"hb-xi7-row\" aria-label=\"Main\">\n          <a href=\"#\" className=\"hb-xi7-brand\" aria-label={`${brand} home`}>\n            <span className=\"hb-xi7-mark\" aria-hidden=\"true\">\n              <svg viewBox=\"0 0 12 12\">\n                <path d=\"M2 6h8M6.5 2.5L10 6l-3.5 3.5\" />\n              </svg>\n            </span>\n            {brand}\n          </a>\n          <ul className=\"hb-xi7-links\">\n            {links.map((link) => (\n              <li key={link.label}>\n                <a href={link.href} className=\"hb-xi7-link\" tabIndex={isOpen ? -1 : undefined}>\n                  {link.label}\n                </a>\n              </li>\n            ))}\n          </ul>\n          <div className=\"hb-xi7-box\">\n            <div\n              className=\"hb-xi7-field\"\n              onClick={() => {\n                setOpen(true);\n                inputRef.current?.focus();\n              }}\n            >\n              <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                <circle cx=\"7\" cy=\"7\" r=\"4.5\" />\n                <path d=\"M10.5 10.5L14 14\" />\n              </svg>\n              <input\n                ref={inputRef}\n                className=\"hb-xi7-input\"\n                role=\"combobox\"\n                aria-expanded={isOpen}\n                aria-controls={`${uid}-list`}\n                aria-activedescendant={isOpen && ordered[active] ? `${uid}-o${active}` : undefined}\n                aria-autocomplete=\"list\"\n                aria-label=\"Search\"\n                placeholder={placeholder}\n                value={query}\n                onChange={(e) => {\n                  setQuery(e.target.value);\n                  setCursor(0);\n                  if (!isOpen) setOpen(true);\n                }}\n                onFocus={() => setOpen(true)}\n                onKeyDown={onKey}\n              />\n              {!isOpen && (\n                <span className=\"hb-xi7-keys\" aria-hidden=\"true\">\n                  <kbd>⌘</kbd>\n                  <kbd>K</kbd>\n                </span>\n              )}\n            </div>\n            {isOpen && (\n              <div className=\"hb-xi7-drop\" onMouseDown={(e) => e.preventDefault()}>\n                <div id={`${uid}-list`} role=\"listbox\" aria-label=\"Results\">\n                  {!query && recent.length > 0 && (\n                    <>\n                      <div className=\"hb-xi7-group\">Recent</div>\n                      <div className=\"hb-xi7-chips\">\n                        {recent.map((r) => (\n                          <button\n                            key={r}\n                            type=\"button\"\n                            className=\"hb-xi7-chip\"\n                            tabIndex={-1}\n                            onMouseDown={(e) => e.preventDefault()}\n                            onClick={() => {\n                              setQuery(r);\n                              inputRef.current?.focus();\n                            }}\n                          >\n                            <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                              <path d=\"M6 2.5a3.5 3.5 0 1 1-3.3 2.3M2.5 2v2.8h2.8\" />\n                            </svg>\n                            {r}\n                          </button>\n                        ))}\n                      </div>\n                    </>\n                  )}\n                  {groups.map(([group, list]) => (\n                    <div key={group} role=\"group\" aria-label={group}>\n                      <div className=\"hb-xi7-group\" aria-hidden=\"true\">\n                        {group}\n                      </div>\n                      {list.map(({ it, idx }) => {\n                        return (\n                          <div\n                            key={it.id}\n                            id={`${uid}-o${idx}`}\n                            role=\"option\"\n                            aria-selected={idx === active}\n                            data-hb-xi7-opt={idx}\n                            className=\"hb-xi7-opt\"\n                            onMouseDown={(e) => e.preventDefault()}\n                            onPointerMove={() => idx !== active && setCursor(idx)}\n                            onClick={() => choose(it)}\n                          >\n                            <span className=\"hb-xi7-oi\" aria-hidden=\"true\">\n                              <svg viewBox=\"0 0 16 16\">{groupIcons[it.group] ?? groupIcons.Projects}</svg>\n                            </span>\n                            <span className=\"hb-xi7-ol\">{highlight(it.label, query.trim())}</span>\n                            {it.hint && <span className=\"hb-xi7-hint\">{it.hint}</span>}\n                            {it.shortcut && (\n                              <span className=\"hb-xi7-sc\" aria-hidden=\"true\">\n                                <kbd>G</kbd>\n                                <kbd>{it.shortcut}</kbd>\n                              </span>\n                            )}\n                          </div>\n                        );\n                      })}\n                    </div>\n                  ))}\n                  {results.length === 0 && <div className=\"hb-xi7-empty\">No results for &quot;{query}&quot;. Try a project name or an action.</div>}\n                </div>\n                <div className=\"hb-xi7-foot\" aria-hidden=\"true\">\n                  <span>\n                    <kbd>↑</kbd>\n                    <kbd>↓</kbd> navigate\n                  </span>\n                  <span>\n                    <kbd>↵</kbd> open\n                  </span>\n                  <span>\n                    <kbd>esc</kbd> close\n                  </span>\n                </div>\n              </div>\n            )}\n          </div>\n          <button\n            type=\"button\"\n            className=\"hb-xi7-mobq\"\n            onClick={() => {\n              setQuery(\"\");\n              setOpen(false);\n            }}\n          >\n            Cancel\n          </button>\n          <div className=\"hb-xi7-end\">\n            <button type=\"button\" className=\"hb-xi7-bell\" aria-label=\"Notifications, 3 unread\">\n              <svg viewBox=\"0 0 18 18\" aria-hidden=\"true\">\n                <path d=\"M4.5 12.5V8a4.5 4.5 0 0 1 9 0v4.5l1.2 1.5H3.3zM7.3 15.5a1.8 1.8 0 0 0 3.4 0\" />\n              </svg>\n            </button>\n            {user && (\n              <span className=\"hb-xi7-av\" role=\"img\" aria-label={user.name}>\n                {initials}\n              </span>\n            )}\n          </div>\n        </nav>\n        <span className=\"hb-xi7-sr\" aria-live=\"polite\">\n          {isOpen ? `${results.length} results` : picked ? `Opened ${picked}` : \"\"}\n        </span>\n      </div>\n      {showBackdrop && (\n        <div className=\"hb-xi7-stage\" aria-hidden=\"true\">\n          <div className=\"hb-xi7-app\">\n            <div className=\"hb-xi7-side\">\n              <div style={{ width: \"70%\" }} />\n              <div style={{ width: \"54%\" }} />\n              <div style={{ width: \"82%\" }} />\n              <div style={{ width: \"60%\" }} />\n              <div style={{ width: \"48%\" }} />\n            </div>\n            <div className=\"hb-xi7-main\">\n              <h2>Deployments</h2>\n              <p>Every push to main ships to production after checks pass.</p>\n              <div className=\"hb-xi7-rows\">\n                <div className=\"hb-xi7-r\">\n                  <i style={{ background: \"#34d399\" }} />\n                  <span>feat: streaming checkout summary</span>\n                  <small>relay-web</small>\n                  <small>2m ago</small>\n                </div>\n                <div className=\"hb-xi7-r\">\n                  <i style={{ background: \"#f5a524\" }} />\n                  <span>fix: retry webhook signature check</span>\n                  <small>relay-api</small>\n                  <small>18m ago</small>\n                </div>\n                <div className=\"hb-xi7-r\">\n                  <i style={{ background: \"#34d399\" }} />\n                  <span>chore: bump edge runtime to 4.2</span>\n                  <small>relay-web</small>\n                  <small>1h ago</small>\n                </div>\n                <div className=\"hb-xi7-r\">\n                  <i style={{ background: \"#f87171\" }} />\n                  <span>feat: team billing dashboard</span>\n                  <small>relay-web</small>\n                  <small>3h ago</small>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n    </header>\n  );\n}\n"
    }
  ]
}