{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "throughline-pipeline-demo",
  "type": "registry:block",
  "title": "Throughline: Pipeline",
  "description": "Integration Logo Paths example, Pipeline: An AI inbox in the middle of six lines: raw messages ride in and dive under the card, sorted tickets, replies and leads ride out the other side. A take on the flow diagram (flowchart). Fits hero, integrations and features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "integrations",
    "features",
    "flow-diagram",
    "animated-background",
    "interaction",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/throughline#throughline-pipeline-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/throughline.json"
  ],
  "files": [
    {
      "path": "components/throughline-pipeline-demo.tsx",
      "type": "registry:component",
      "content": "import * as React from \"react\";\n\nimport { Throughline, type ThroughlineItem, type ThroughlineLine } from \"@/components/ui/throughline\";\n\n/** An ink glyph on plain glass: something raw, on its way in. */\nfunction Raw({ children }: { children: React.ReactNode }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"text-zinc-900 dark:text-white\">\n      {children}\n    </svg>\n  );\n}\n\n/** A colored chip with a white glyph: something sorted, on its way out. */\nfunction Sorted({ bg, children }: { bg: string; children: React.ReactNode }) {\n  return (\n    <span className=\"flex items-center justify-center rounded-[26%]\" style={{ background: bg }}>\n      <svg viewBox=\"0 0 24 24\" className=\"size-[62%]\" fill=\"none\" stroke=\"#fff\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        {children}\n      </svg>\n    </span>\n  );\n}\n\n// Everything meets under the card at [50, 50]; the card hides both stations there.\nconst LINES: ThroughlineLine[] = [\n  { from: [2, 14], to: [50, 50], bend: -0.12, behind: true },\n  { from: [1, 54], to: [50, 50], bend: 0.04, behind: true },\n  { from: [3, 92], to: [50, 50], bend: 0.12, behind: true },\n  { from: [50, 50], to: [97, 12], bend: -0.12, behind: true },\n  { from: [50, 50], to: [99, 48], bend: 0.04, behind: true },\n  { from: [50, 50], to: [97, 90], bend: 0.12, behind: true },\n];\n\nconst ITEMS: ThroughlineItem[] = [\n  {\n    label: \"Email · “Refund for order 4471?”\",\n    line: 0,\n    icon: (\n      <Raw>\n        <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2\" />\n        <path d=\"m4 7 8 6 8-6\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Chat · “Can I add three seats?”\",\n    line: 1,\n    icon: (\n      <Raw>\n        <path d=\"M5 18.5V7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8Z\" />\n        <path d=\"M9 10h6M9 13h3.5\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Voicemail · 4 min, Spanish\",\n    line: 2,\n    icon: (\n      <Raw>\n        <circle cx=\"7\" cy=\"13\" r=\"3\" />\n        <circle cx=\"17\" cy=\"13\" r=\"3\" />\n        <path d=\"M7 16h10\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Form · Enterprise demo request\",\n    line: 0,\n    icon: (\n      <Raw>\n        <rect x=\"5\" y=\"3.5\" width=\"14\" height=\"17\" rx=\"2\" />\n        <path d=\"M9 8.5h6M9 12h6M9 15.5h3\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Review · 2★, “checkout froze”\",\n    line: 2,\n    icon: (\n      <Raw>\n        <path d=\"m12 4 2.3 4.8 5.2.7-3.8 3.6.9 5.2L12 15.8l-4.6 2.5.9-5.2-3.8-3.6 5.2-.7Z\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Slack thread · 14 replies\",\n    line: 1,\n    icon: (\n      <Raw>\n        <path d=\"M8 4v16M16 4v16M4 8h16M4 16h16\" />\n      </Raw>\n    ),\n  },\n  {\n    label: \"Ticket · Billing, P2\",\n    line: 3,\n    icon: (\n      <Sorted bg=\"#2f3cff\">\n        <path d=\"M4 9V6.5h16V9a3 3 0 0 0 0 6v2.5H4V15a3 3 0 0 0 0-6Z\" />\n      </Sorted>\n    ),\n  },\n  {\n    label: \"Reply drafted · ready to send\",\n    line: 4,\n    icon: (\n      <Sorted bg=\"#16a34a\">\n        <path d=\"m5.5 12.5 4 4 9-9\" />\n      </Sorted>\n    ),\n  },\n  {\n    label: \"Lead · sent to Ada in Sales\",\n    line: 5,\n    icon: (\n      <Sorted bg=\"#ff5a1f\">\n        <circle cx=\"12\" cy=\"9\" r=\"3.2\" />\n        <path d=\"M5.5 19c1.2-3 3.7-4.5 6.5-4.5s5.3 1.5 6.5 4.5\" />\n      </Sorted>\n    ),\n  },\n  {\n    label: \"Bug filed · CHK-212, with repro\",\n    line: 4,\n    icon: (\n      <Sorted bg=\"#7b5cff\">\n        <rect x=\"7.5\" y=\"7\" width=\"9\" height=\"12\" rx=\"4.5\" />\n        <path d=\"M12 11v4M4.5 12h3M16.5 12h3M5.5 7.5l2.2 1.5M18.5 7.5l-2.2 1.5\" />\n      </Sorted>\n    ),\n  },\n  {\n    label: \"Refund queued · $64.00\",\n    line: 5,\n    icon: (\n      <Sorted bg=\"#2f3cff\">\n        <path d=\"M15.5 8.5c-.6-1.2-1.9-2-3.5-2-2 0-3.5 1.1-3.5 2.7 0 3.6 7 1.9 7 5.6 0 1.6-1.5 2.7-3.5 2.7-1.6 0-2.9-.8-3.5-2M12 4.5v2M12 17.5v2\" />\n      </Sorted>\n    ),\n  },\n  {\n    label: \"Alert · outage mentioned twice\",\n    line: 3,\n    icon: (\n      <Sorted bg=\"#0b0b0f\">\n        <path d=\"M12 8v5M12 16.5v.01\" />\n        <path d=\"M10.3 4.6 3.6 17a2 2 0 0 0 1.7 3h13.4a2 2 0 0 0 1.7-3L13.7 4.6a2 2 0 0 0-3.4 0Z\" />\n      </Sorted>\n    ),\n  },\n];\n\nconst QUEUES = [\n  { name: \"Billing\", count: 412, share: 0.82, bar: \"bg-[#2f3cff] dark:bg-[#7d86ff]\" },\n  { name: \"Product bugs\", count: 197, share: 0.46, bar: \"bg-zinc-900 dark:bg-white/80\" },\n  { name: \"Sales\", count: 88, share: 0.24, bar: \"bg-[#ff5a1f]\" },\n];\n\nexport function ThroughlinePipelineDemo() {\n  return (\n    <section className=\"mx-auto w-full max-w-5xl overflow-hidden rounded-[28px] bg-zinc-50 pt-12 text-zinc-950 dark:bg-[#0b0b10] dark:text-white\">\n      <div className=\"px-6 text-center\">\n        <p className=\"text-[13px] font-medium text-[#2f3cff] dark:text-[#7d86ff]\">How Sift works</p>\n        <h2 className=\"mx-auto mt-3 max-w-[22rem] text-balance text-[clamp(1.75rem,4cqi,2.5rem)] font-semibold leading-[1.08] tracking-[-0.035em] sm:max-w-none\">\n          Everything comes in. Only sorted work goes out.\n        </h2>\n      </div>\n\n      <Throughline lines={LINES} items={ITEMS} duration={22} className=\"mt-2 text-[#2f3cff] dark:text-[#7d86ff]\">\n        <div className=\"flex justify-center px-6 py-[max(4.5rem,9cqi)]\">\n          <div className=\"w-[min(19rem,70cqi)] rounded-[22px] border text-zinc-950 dark:text-white border-zinc-950/[0.07] bg-white p-5 shadow-[0_24px_48px_-24px_rgb(20_20_60/0.35)] dark:border-white/10 dark:bg-zinc-900 dark:shadow-[0_24px_48px_-24px_rgb(0_0_0/0.9)]\">\n            <div className=\"flex items-center justify-between\">\n              <div className=\"flex items-center gap-2\">\n                <span className=\"flex size-7 items-center justify-center rounded-[9px] bg-[#2f3cff]\">\n                  <svg viewBox=\"0 0 24 24\" className=\"size-4\" fill=\"none\" stroke=\"#fff\" strokeWidth=\"2.4\" strokeLinecap=\"round\">\n                    <path d=\"M5 7h14M8 12h8M11 17h2\" />\n                  </svg>\n                </span>\n                <span className=\"text-sm font-semibold tracking-[-0.01em]\">Sift</span>\n              </div>\n              <span className=\"flex items-center gap-1.5 rounded-full bg-emerald-500/10 px-2 py-1 text-[11px] font-medium text-emerald-700 dark:text-emerald-400\">\n                <span className=\"size-1.5 rounded-full bg-emerald-500\" />\n                Live\n              </span>\n            </div>\n            <p className=\"mt-5 text-[2.5rem] font-semibold leading-none tracking-[-0.04em] tabular-nums\">1,284</p>\n            <p className=\"mt-1.5 text-xs text-zinc-500 dark:text-zinc-400\">messages triaged today, 3.1s each</p>\n            <ul className=\"mt-5 space-y-3\">\n              {QUEUES.map((q) => (\n                <li key={q.name}>\n                  <div className=\"flex items-baseline justify-between text-xs\">\n                    <span className=\"text-zinc-600 dark:text-zinc-300\">{q.name}</span>\n                    <span className=\"font-medium tabular-nums\">{q.count}</span>\n                  </div>\n                  <div className=\"mt-1.5 h-1.5 rounded-full bg-zinc-100 dark:bg-white/10\">\n                    <div className={`h-full rounded-full ${q.bar}`} style={{ width: `${q.share * 100}%` }} />\n                  </div>\n                </li>\n              ))}\n            </ul>\n          </div>\n        </div>\n      </Throughline>\n    </section>\n  );\n}\n"
    }
  ]
}