{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "black-box-demo",
  "type": "registry:block",
  "title": "Black Box: Agent Decision",
  "description": "3D Product Explainer Box example, Agent Decision: A support agent's refund, opened up: what it read, how it reasoned and what it did, one face at a time. A take on the 3D (three dimensional) and flow diagram (flowchart). Fits hero, features and CTA sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "features",
    "cta",
    "3d",
    "flow-diagram",
    "ai",
    "diagram"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/black-box#black-box-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/black-box.json"
  ],
  "files": [
    {
      "path": "components/black-box-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport { BlackBox, type BlackBoxFace } from \"@/components/ui/black-box\";\n\n// A support agent's decision, opened up: what it read, how it reasoned, what it did.\nconst FACES: BlackBoxFace[] = [\n  {\n    id: \"read\",\n    label: \"Read\",\n    detail: \"Order #4471, the refund policy and two earlier tickets from the same customer.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M4 5.5A1.5 1.5 0 0 1 5.5 4H11v16H5.5A1.5 1.5 0 0 1 4 18.5z\" />\n        <path d=\"M20 5.5A1.5 1.5 0 0 0 18.5 4H13v16h5.5a1.5 1.5 0 0 0 1.5-1.5z\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"reason\",\n    label: \"Reason\",\n    detail: \"Delivered 9 days ago, inside the 14-day window. Item unopened, so no restocking fee.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <circle cx=\"6\" cy=\"6\" r=\"2\" />\n        <circle cx=\"18\" cy=\"12\" r=\"2\" />\n        <circle cx=\"6\" cy=\"18\" r=\"2\" />\n        <path d=\"M8 6h3a3 3 0 0 1 3 3v0a3 3 0 0 0 3 3M8 18h3a3 3 0 0 0 3-3v0a3 3 0 0 1 3-3\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"act\",\n    label: \"Act\",\n    detail: \"Refunded $48.00 to the original card and replied in the customer's language.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n      </svg>\n    ),\n  },\n];\n\nexport function BlackBoxDemo() {\n  return (\n    <div className=\"w-full max-w-3xl\">\n      <div className=\"mx-auto flex w-fit items-center gap-2.5 rounded-full bg-white py-1.5 pr-4 pl-1.5 text-[13px] text-zinc-600 shadow-sm ring-1 ring-zinc-950/[0.07] dark:bg-zinc-900 dark:text-zinc-300 dark:ring-white/10\">\n        <span className=\"grid size-6 place-items-center rounded-full bg-zinc-950 text-[11px] font-semibold text-white dark:bg-white dark:text-zinc-950\">\n          M\n        </span>\n        <span>\n          <span className=\"font-medium text-zinc-950 dark:text-white\">Why did order #4471 get a refund?</span>\n        </span>\n      </div>\n      <BlackBox faces={FACES} className=\"mt-2\" aria-label=\"How the support agent decided\" />\n    </div>\n  );\n}\n"
    }
  ]
}