{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-banner-stories",
  "type": "registry:component",
  "title": "Navbar Banner Stories",
  "description": "A header topped by an announcement strip that plays like stories: segments fill over time, messages roll vertically and hover pauses the run. Dismissing folds the strip away, and the bar below carries a tracking number field with validation.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "navigation",
    "navbar",
    "announcement",
    "banner",
    "carousel",
    "tracking",
    "header"
  ],
  "docs": "https://hyperblur.dev/effects/navbar-banner-stories",
  "files": [
    {
      "path": "registry/hyperblur/navbar-banner-stories.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/navbar-banner-stories.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface NavbarBannerStoriesLink {\n  label: string;\n  href: string;\n}\n\nexport interface NavbarBannerStoriesMessage {\n  tag: string;\n  text: string;\n  link?: NavbarBannerStoriesLink;\n}\n\nexport interface NavbarBannerStoriesProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\"> {\n  brand?: string;\n  messages?: NavbarBannerStoriesMessage[];\n  interval?: number;\n  defaultMessage?: number;\n  onDismiss?: () => void;\n  links?: NavbarBannerStoriesLink[];\n  active?: number;\n  defaultActive?: number;\n  onActiveChange?: (index: number) => void;\n  onTrack?: (code: string) => void;\n  signIn?: NavbarBannerStoriesLink | null;\n  accent?: string;\n  showBackdrop?: boolean;\n}\n\nconst css = `\n.hb-xi9 {\n  --hb-xi9-accent: #ffb224;\n  --hb-xi9-ease: cubic-bezier(.22,1,.36,1);\n  --hb-xi9-dur: 5000ms;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: #0b0b0c;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-xi9 *, .hb-xi9 *::before, .hb-xi9 *::after { box-sizing: border-box; }\n.hb-xi9-ban { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--hb-xi9-ease); }\n.hb-xi9-ban[data-gone=\"true\"] { grid-template-rows: 0fr; }\n.hb-xi9-banin { min-height: 0; overflow: hidden; }\n.hb-xi9-strip {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  height: 44px;\n  padding: 0 12px 0 16px;\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-xi9-accent) 16%, #0b0b0c), #141210 40%, #141210 60%, color-mix(in srgb, var(--hb-xi9-accent) 10%, #0b0b0c));\n  border-bottom: 1px solid color-mix(in srgb, var(--hb-xi9-accent) 22%, #1d1d1f);\n  transition: opacity .3s ease;\n}\n.hb-xi9-ban[data-gone=\"true\"] .hb-xi9-strip { opacity: 0; }\n.hb-xi9-segs { display: flex; flex: none; gap: 4px; }\n.hb-xi9-seg { position: relative; width: 22px; height: 3px; margin: 0; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; cursor: pointer; }\n.hb-xi9-seg::before { content: \"\"; position: absolute; inset: -8px -2px; }\n.hb-xi9-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--hb-xi9-accent); transform: scaleX(0); transform-origin: 0 50%; }\n.hb-xi9-seg[data-state=\"done\"] .hb-xi9-fill { transform: scaleX(1); }\n.hb-xi9-seg[data-state=\"now\"] .hb-xi9-fill { animation: hb-xi9-fill var(--hb-xi9-dur) linear forwards; }\n.hb-xi9-strip:hover .hb-xi9-fill, .hb-xi9-strip:focus-within .hb-xi9-fill, .hb-xi9[data-paused=\"true\"] .hb-xi9-fill { animation-play-state: paused; }\n.hb-xi9-win { position: relative; flex: 1; min-width: 0; height: 44px; overflow: hidden; }\n.hb-xi9-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: #d9d6d0; white-space: nowrap; animation: hb-xi9-up .55s var(--hb-xi9-ease) both; }\n.hb-xi9-msg[data-dir=\"down\"] { animation-name: hb-xi9-down; }\n.hb-xi9-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--hb-xi9-accent) 18%, transparent); color: var(--hb-xi9-accent); font-size: 11px; font-weight: 650; letter-spacing: .02em; box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-xi9-accent) 30%, transparent) inset; }\n.hb-xi9-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.hb-xi9-ml { flex: none; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; text-decoration: none; border-radius: 4px; }\n.hb-xi9-ml svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s var(--hb-xi9-ease); }\n.hb-xi9-ml:hover svg { transform: translateX(3px); }\n.hb-xi9-ctl { display: flex; flex: none; align-items: center; gap: 2px; }\n.hb-xi9-ib { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8f8c86; cursor: pointer; transition: color .2s ease, background-color .2s ease; }\n.hb-xi9-ib:hover { color: #fff; background: rgba(255,255,255,.07); }\n.hb-xi9-ib svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi9-bar { position: relative; z-index: 2; border-bottom: 1px solid #1d1d1f; background: #0b0b0c; }\n.hb-xi9-row { display: flex; align-items: center; gap: 24px; max-width: 1140px; height: 64px; margin: 0 auto; padding: 0 24px; }\n.hb-xi9-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-grotesk, inherit); font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; border-radius: 6px; }\n.hb-xi9-mark { position: relative; width: 26px; height: 26px; border-radius: 7px; background: var(--hb-xi9-accent); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 4px 12px -4px color-mix(in srgb, var(--hb-xi9-accent) 80%, transparent); }\n.hb-xi9-mark::before { content: \"\"; position: absolute; left: 6px; right: 6px; top: 8px; height: 10px; border: 2px solid #0b0b0c; border-radius: 2px; }\n.hb-xi9-mark::after { content: \"\"; position: absolute; left: 12px; top: 8px; width: 2px; height: 5px; background: #0b0b0c; }\n.hb-xi9-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }\n.hb-xi9-link { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 9px; color: #9a9aa2; font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s ease, background-color .2s ease; }\n.hb-xi9-link:hover { color: #fff; background: rgba(255,255,255,.05); }\n.hb-xi9-link[aria-current=\"page\"] { color: #fff; }\n.hb-xi9-link[aria-current=\"page\"]::after { content: \"\"; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; border-radius: 2px 2px 0 0; background: var(--hb-xi9-accent); }\n.hb-xi9-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }\n.hb-xi9-track { position: relative; display: flex; align-items: center; height: 38px; padding: 0 4px 0 12px; border-radius: 10px; background: #141416; box-shadow: 0 0 0 1px #26262a inset; transition: box-shadow .25s ease, width .4s var(--hb-xi9-ease); }\n.hb-xi9-track:focus-within { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-xi9-accent) 60%, transparent) inset, 0 0 0 4px color-mix(in srgb, var(--hb-xi9-accent) 14%, transparent); }\n.hb-xi9-track svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #8f8c86; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi9-track input { width: 168px; height: 100%; margin: 0 8px; padding: 0; border: 0; outline: none; background: transparent; color: #fafafa; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; letter-spacing: .02em; }\n.hb-xi9-track input::placeholder { color: #6e6e76; font-family: var(--font-sans, inherit); letter-spacing: 0; }\n.hb-xi9-go { height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 7px; background: var(--hb-xi9-accent); color: #1a1205; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.45) inset; transition: transform .15s var(--hb-xi9-ease), filter .2s ease; }\n.hb-xi9-go:hover { filter: brightness(1.06); }\n.hb-xi9-go:active { transform: scale(.96); }\n.hb-xi9-go:disabled { opacity: .45; cursor: not-allowed; }\n.hb-xi9-track[data-state=\"error\"] { box-shadow: 0 0 0 1px rgba(248,113,113,.7) inset; animation: hb-xi9-shake .4s var(--hb-xi9-ease); }\n.hb-xi9-track[data-state=\"ok\"] { box-shadow: 0 0 0 1px rgba(52,211,153,.6) inset; }\n.hb-xi9-in { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; color: #ededed; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s ease; }\n.hb-xi9-in:hover { background: rgba(255,255,255,.06); }\n.hb-xi9-burger { display: none; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: #141416; color: #fff; cursor: pointer; box-shadow: 0 0 0 1px #26262a inset; }\n.hb-xi9-burger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }\n.hb-xi9-sheet { display: none; }\n.hb-xi9 a:focus-visible, .hb-xi9 button:focus-visible { outline: 2px solid var(--hb-xi9-accent); outline-offset: 2px; }\n.hb-xi9-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.hb-xi9-stage { position: relative; height: 600px; overflow: hidden; }\n.hb-xi9-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 64px 24px 0; }\n.hb-xi9-h { margin: 0; font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif)); font-size: clamp(34px, 5.6cqi, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }\n.hb-xi9-h span { color: var(--hb-xi9-accent); }\n.hb-xi9-p { max-width: 460px; margin: 18px 0 0; color: #8f8f96; font-size: 16px; line-height: 1.6; }\n.hb-xi9-card { padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #141416, #0f0f11); box-shadow: 0 0 0 1px #222226 inset, 0 30px 60px -30px rgba(0,0,0,.8); }\n.hb-xi9-ct { display: flex; justify-content: space-between; color: #8f8f96; font-size: 12px; }\n.hb-xi9-ct b { color: #fafafa; font-family: var(--font-mono, ui-monospace, monospace); font-weight: 500; }\n.hb-xi9-steps { display: grid; gap: 14px; margin-top: 18px; }\n.hb-xi9-st { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; color: #d4d4d8; font-size: 13.5px; }\n.hb-xi9-st i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #3a3a40; font-style: normal; }\n.hb-xi9-st[data-done=\"true\"] i { border-color: var(--hb-xi9-accent); background: var(--hb-xi9-accent); }\n.hb-xi9-st small { color: #6e6e76; font-size: 12px; }\n@keyframes hb-xi9-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@keyframes hb-xi9-up { from { opacity: 0; transform: translateY(70%); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }\n@keyframes hb-xi9-down { from { opacity: 0; transform: translateY(-70%); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }\n@keyframes hb-xi9-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }\n@keyframes hb-xi9-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }\n@container (max-width: 880px) {\n  .hb-xi9-track input { width: 120px; }\n  .hb-xi9-links .hb-xi9-hide { display: none; }\n}\n@container (max-width: 720px) {\n  .hb-xi9-links, .hb-xi9-in, .hb-xi9-end > .hb-xi9-track { display: none; }\n  .hb-xi9-burger { display: grid; }\n  .hb-xi9-row { height: 58px; padding: 0 16px; }\n  .hb-xi9-strip { padding: 0 6px 0 12px; gap: 10px; }\n  .hb-xi9-segs { display: none; }\n  .hb-xi9-msg { justify-content: flex-start; }\n  .hb-xi9-ml span { display: none; }\n  .hb-xi9-ctl .hb-xi9-nav { display: none; }\n  .hb-xi9-sheet[data-open=\"true\"] { position: relative; z-index: 2; display: grid; gap: 4px; padding: 12px 16px 16px; border-bottom: 1px solid #1d1d1f; background: #0d0d0e; animation: hb-xi9-drop .3s var(--hb-xi9-ease) both; }\n  .hb-xi9-sheet .hb-xi9-track { margin-bottom: 8px; }\n  .hb-xi9-sheet .hb-xi9-track input { flex: 1; width: auto; }\n  .hb-xi9-sheet a { display: flex; align-items: center; height: 44px; padding: 0 4px; border-bottom: 1px solid #18181a; color: #d4d4d8; font-size: 15px; text-decoration: none; }\n  .hb-xi9-sheet a[aria-current=\"page\"] { color: var(--hb-xi9-accent); }\n  .hb-xi9-hero { grid-template-columns: 1fr; padding-top: 40px; }\n  .hb-xi9-card { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-xi9 *, .hb-xi9 *::before, .hb-xi9 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultMessages: NavbarBannerStoriesMessage[] = [\n  { tag: \"Holiday cutoff\", text: \"Ship by Dec 18 for guaranteed delivery before Christmas.\", link: { label: \"See cutoff map\", href: \"#\" } },\n  { tag: \"New\", text: \"Same-day lockers are live in Austin, Denver and Raleigh.\", link: { label: \"Find a locker\", href: \"#\" } },\n  { tag: \"Rates\", text: \"2027 ground rates are locked for teams that renew this month.\", link: { label: \"Compare plans\", href: \"#\" } },\n];\n\nconst defaultLinks: NavbarBannerStoriesLink[] = [\n  { label: \"Ship\", href: \"#\" },\n  { label: \"Track\", href: \"#\" },\n  { label: \"Business\", href: \"#\" },\n  { label: \"Locations\", href: \"#\" },\n  { label: \"Support\", href: \"#\" },\n];\n\nexport function NavbarBannerStories({\n  brand = \"Parcel\",\n  messages = defaultMessages,\n  interval = 5000,\n  defaultMessage = 0,\n  onDismiss,\n  links = defaultLinks,\n  active,\n  defaultActive = 0,\n  onActiveChange,\n  onTrack,\n  signIn = { label: \"Sign in\", href: \"#\" },\n  accent = \"#ffb224\",\n  showBackdrop = true,\n  className = \"\",\n  style,\n  ...rest\n}: NavbarBannerStoriesProps) {\n  const uid = React.useId();\n  const [msg, setMsg] = React.useState(defaultMessage);\n  const [dir, setDir] = React.useState<\"up\" | \"down\">(\"up\");\n  const [gone, setGone] = React.useState(false);\n  const [removed, setRemoved] = React.useState(false);\n  const [paused, setPaused] = React.useState(false);\n  const [inner, setInner] = React.useState(defaultActive);\n  const [open, setOpen] = React.useState(false);\n  const [code, setCode] = React.useState(\"\");\n  const [state, setState] = React.useState<\"idle\" | \"error\" | \"ok\">(\"idle\");\n  const current = active ?? inner;\n  const n = messages.length;\n  const at = n ? ((msg % n) + n) % n : 0;\n\n  const go = (next: number, d: \"up\" | \"down\") => {\n    setDir(d);\n    setMsg(((next % n) + n) % n);\n  };\n\n  const select = (i: number) => {\n    if (active === undefined) setInner(i);\n    onActiveChange?.(i);\n    setOpen(false);\n  };\n\n  const track = (e: React.FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    const clean = code.replace(/\\s+/g, \"\").toUpperCase();\n    if (!/^[A-Z0-9]{8,22}$/.test(clean)) {\n      setState(\"error\");\n      return;\n    }\n    setState(\"ok\");\n    onTrack?.(clean);\n  };\n\n  const field = (\n    <form className=\"hb-xi9-track\" data-state={state} onSubmit={track} role=\"search\" aria-label=\"Track a package\">\n      <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n        <path d=\"M8 1.8l5.5 3v6.4L8 14.2l-5.5-3V4.8zM2.5 4.8L8 7.8l5.5-3M8 7.8v6.4\" />\n      </svg>\n      <input\n        value={code}\n        placeholder=\"Tracking number\"\n        aria-label=\"Tracking number\"\n        aria-invalid={state === \"error\"}\n        onChange={(e) => {\n          setCode(e.target.value);\n          if (state !== \"idle\") setState(\"idle\");\n        }}\n      />\n      <button type=\"submit\" className=\"hb-xi9-go\" disabled={!code.trim()}>\n        {state === \"ok\" ? \"Found\" : \"Track\"}\n      </button>\n    </form>\n  );\n\n  const message = messages[at];\n\n  return (\n    <header\n      className={`hb-xi9 ${className}`}\n      data-paused={paused ? \"true\" : \"false\"}\n      style={{ \"--hb-xi9-accent\": accent, \"--hb-xi9-dur\": `${interval}ms`, ...style } as React.CSSProperties}\n      onKeyDown={(e) => {\n        if (e.key === \"Escape\" && open) setOpen(false);\n      }}\n      {...rest}\n    >\n      <style href=\"hb-navbar-banner-stories\" precedence=\"default\">\n        {css}\n      </style>\n      {!removed && message && (\n        <div\n          className=\"hb-xi9-ban\"\n          data-gone={gone ? \"true\" : \"false\"}\n          onTransitionEnd={(e) => {\n            if (gone && e.propertyName === \"grid-template-rows\") setRemoved(true);\n          }}\n        >\n          <div className=\"hb-xi9-banin\">\n            <div className=\"hb-xi9-strip\" role=\"region\" aria-roledescription=\"carousel\" aria-label=\"Announcements\">\n              <div className=\"hb-xi9-segs\" role=\"tablist\" aria-label=\"Choose announcement\">\n                {messages.map((m, i) => (\n                  <button\n                    key={m.tag + i}\n                    type=\"button\"\n                    role=\"tab\"\n                    className=\"hb-xi9-seg\"\n                    aria-selected={i === at}\n                    aria-label={`Announcement ${i + 1} of ${n}: ${m.tag}`}\n                    data-state={i < at ? \"done\" : i === at ? \"now\" : \"next\"}\n                    onClick={() => go(i, i < at ? \"down\" : \"up\")}\n                  >\n                    <span\n                      key={i === at ? `now-${msg}` : \"idle\"}\n                      className=\"hb-xi9-fill\"\n                      onAnimationEnd={() => {\n                        if (i === at && n > 1) go(at + 1, \"up\");\n                      }}\n                    />\n                  </button>\n                ))}\n              </div>\n              <div className=\"hb-xi9-win\" aria-live={paused ? \"polite\" : \"off\"}>\n                <div key={msg} className=\"hb-xi9-msg\" data-dir={dir}>\n                  <span className=\"hb-xi9-tag\">{message.tag}</span>\n                  <span className=\"hb-xi9-txt\">{message.text}</span>\n                  {message.link && (\n                    <a href={message.link.href} className=\"hb-xi9-ml\" aria-label={message.link.label}>\n                      <span>{message.link.label}</span>\n                      <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                        <path d=\"M2.5 6h7M6.5 3l3 3-3 3\" />\n                      </svg>\n                    </a>\n                  )}\n                </div>\n              </div>\n              <div className=\"hb-xi9-ctl\">\n                <button type=\"button\" className=\"hb-xi9-ib hb-xi9-nav\" aria-label=\"Previous announcement\" onClick={() => go(at - 1, \"down\")}>\n                  <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                    <path d=\"M7.5 2.5L4 6l3.5 3.5\" />\n                  </svg>\n                </button>\n                <button type=\"button\" className=\"hb-xi9-ib hb-xi9-nav\" aria-label={paused ? \"Resume announcements\" : \"Pause announcements\"} aria-pressed={paused} onClick={() => setPaused((v) => !v)}>\n                  <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                    {paused ? <path d=\"M4 2.5l5 3.5-5 3.5z\" /> : <path d=\"M4.2 2.5v7M7.8 2.5v7\" />}\n                  </svg>\n                </button>\n                <button type=\"button\" className=\"hb-xi9-ib hb-xi9-nav\" aria-label=\"Next announcement\" onClick={() => go(at + 1, \"up\")}>\n                  <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                    <path d=\"M4.5 2.5L8 6 4.5 9.5\" />\n                  </svg>\n                </button>\n                <button\n                  type=\"button\"\n                  className=\"hb-xi9-ib\"\n                  aria-label=\"Dismiss announcements\"\n                  onClick={() => {\n                    setGone(true);\n                    onDismiss?.();\n                    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) setRemoved(true);\n                  }}\n                >\n                  <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n                    <path d=\"M3 3l6 6M9 3L3 9\" />\n                  </svg>\n                </button>\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n      <div className=\"hb-xi9-bar\">\n        <nav className=\"hb-xi9-row\" aria-label=\"Main\">\n          <a href=\"#\" className=\"hb-xi9-brand\" aria-label={`${brand} home`}>\n            <span className=\"hb-xi9-mark\" aria-hidden=\"true\" />\n            {brand}\n          </a>\n          <ul className=\"hb-xi9-links\">\n            {links.map((link, i) => (\n              <li key={link.label} className={i > 2 ? \"hb-xi9-hide\" : undefined}>\n                <a href={link.href} className=\"hb-xi9-link\" aria-current={i === current ? \"page\" : undefined} onClick={() => select(i)}>\n                  {link.label}\n                </a>\n              </li>\n            ))}\n          </ul>\n          <div className=\"hb-xi9-end\">\n            {field}\n            {signIn && (\n              <a href={signIn.href} className=\"hb-xi9-in\">\n                {signIn.label}\n              </a>\n            )}\n            <button\n              type=\"button\"\n              className=\"hb-xi9-burger\"\n              aria-label={open ? \"Close menu\" : \"Open menu\"}\n              aria-expanded={open}\n              aria-controls={`${uid}-sheet`}\n              onClick={() => setOpen((v) => !v)}\n            >\n              <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                {open ? <path d=\"M4 4l8 8M12 4l-8 8\" /> : <path d=\"M2.5 5h11M2.5 11h11\" />}\n              </svg>\n            </button>\n          </div>\n        </nav>\n        <div id={`${uid}-sheet`} className=\"hb-xi9-sheet\" data-open={open ? \"true\" : \"false\"}>\n          {open && field}\n          {links.map((link, i) => (\n            <a key={link.label} href={link.href} aria-current={i === current ? \"page\" : undefined} onClick={() => select(i)}>\n              {link.label}\n            </a>\n          ))}\n          {signIn && (\n            <a href={signIn.href} onClick={() => setOpen(false)}>\n              {signIn.label}\n            </a>\n          )}\n        </div>\n        <span className=\"hb-xi9-sr\" aria-live=\"polite\">\n          {state === \"error\" ? \"Tracking numbers have 8 to 22 letters or digits.\" : state === \"ok\" ? \"Package found.\" : \"\"}\n        </span>\n      </div>\n      {showBackdrop && (\n        <div className=\"hb-xi9-stage\" aria-hidden=\"true\">\n          <div className=\"hb-xi9-hero\">\n            <div>\n              <h2 className=\"hb-xi9-h\">\n                Ship anything, <span>anywhere</span>, by tomorrow.\n              </h2>\n              <p className=\"hb-xi9-p\">Print a label in 30 seconds, drop it at one of 9,400 lockers and watch it move in real time.</p>\n            </div>\n            <div className=\"hb-xi9-card\">\n              <div className=\"hb-xi9-ct\">\n                <span>Tracking</span>\n                <b>PX 4471 0928 US</b>\n              </div>\n              <div className=\"hb-xi9-steps\">\n                <div className=\"hb-xi9-st\" data-done=\"true\">\n                  <i />\n                  <span>Label created, Brooklyn NY</span>\n                  <small>Dec 9</small>\n                </div>\n                <div className=\"hb-xi9-st\" data-done=\"true\">\n                  <i />\n                  <span>Departed hub, Newark NJ</span>\n                  <small>Dec 10</small>\n                </div>\n                <div className=\"hb-xi9-st\" data-done=\"true\">\n                  <i />\n                  <span>Arrived at locker, Austin TX</span>\n                  <small>Dec 11</small>\n                </div>\n                <div className=\"hb-xi9-st\">\n                  <i />\n                  <span>Picked up</span>\n                  <small>Waiting</small>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n    </header>\n  );\n}\n"
    }
  ]
}