{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"status-graphic","type":"registry:ui","title":"Status Graphic","description":"Illustrations for error pages: a wandering search icon for 404, a pulsing lock for 403 and a spinning ring for 500.","dependencies":["@untitledui/icons@^0.0.23","motion@^14.0.0"],"files":[{"path":"components/ui/status-graphic.tsx","type":"registry:ui","content":"\"use client\";\n\nimport { Lock01, SearchLg, Server03 } from \"@untitledui/icons\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { cn } from \"@/lib/utils\";\nimport type * as React from \"react\";\n\nconst size = 176;\nconst center = size / 2;\n\nfunction StatusGraphic({\n  children,\n  overlay,\n  className,\n}: {\n  children: React.ReactNode;\n  overlay?: React.ReactNode;\n  className?: string;\n}) {\n  return (\n    <div\n      aria-hidden\n      data-slot=\"status-graphic\"\n      className={cn(\"relative grid size-44 shrink-0 place-items-center\", className)}\n    >\n      <svg\n        viewBox={`0 0 ${size} ${size}`}\n        className=\"absolute inset-0 size-full [mask-image:radial-gradient(circle,black_35%,transparent_72%)]\"\n      >\n        {[36, 52, 68, 84].map((radius) => (\n          <circle key={radius} cx={center} cy={center} r={radius} fill=\"none\" className=\"stroke-border\" />\n        ))}\n      </svg>\n      {overlay && (\n        <svg viewBox={`0 0 ${size} ${size}`} className=\"absolute inset-0 size-full overflow-visible\">\n          {overlay}\n        </svg>\n      )}\n      <div className=\"bg-card text-foreground relative grid size-14 place-items-center overflow-hidden rounded-xl border shadow-xs [&_svg]:size-6\">\n        {children}\n      </div>\n    </div>\n  );\n}\n\nfunction NotFoundGraphic({ className }: { className?: string }) {\n  const reduce = useReducedMotion();\n  return (\n    <StatusGraphic className={className}>\n      <motion.span\n        className=\"flex\"\n        animate={reduce ? undefined : { x: [0, 2.5, 0, -2.5, 0], y: [-2.5, 0, 2.5, 0, -2.5] }}\n        transition={{ duration: 5, repeat: Infinity, ease: \"linear\" }}\n      >\n        <SearchLg />\n      </motion.span>\n    </StatusGraphic>\n  );\n}\n\nfunction ForbiddenGraphic({ className }: { className?: string }) {\n  const reduce = useReducedMotion();\n  return (\n    <StatusGraphic\n      className={className}\n      overlay={[0, 1.6].map((delay) => (\n        <motion.circle\n          key={delay}\n          cx={center}\n          cy={center}\n          fill=\"none\"\n          strokeWidth={1}\n          className=\"stroke-foreground\"\n          initial={{ r: 30, opacity: 0 }}\n          animate={reduce ? undefined : { r: [30, 84], opacity: [0.35, 0] }}\n          transition={{ duration: 3.2, repeat: Infinity, repeatDelay: 0, delay, ease: \"easeOut\" }}\n        />\n      ))}\n    >\n      <Lock01 />\n    </StatusGraphic>\n  );\n}\n\nfunction ServerErrorGraphic({ className }: { className?: string }) {\n  const reduce = useReducedMotion();\n  const radius = 44;\n  const circumference = 2 * Math.PI * radius;\n  return (\n    <StatusGraphic\n      className={className}\n      overlay={\n        <motion.g\n          animate={reduce ? undefined : { rotate: 360 }}\n          transition={{ duration: 9, repeat: Infinity, ease: \"linear\" }}\n          style={{ transformBox: \"view-box\", transformOrigin: `${center}px ${center}px` }}\n        >\n          <circle\n            cx={center}\n            cy={center}\n            r={radius}\n            fill=\"none\"\n            strokeWidth={1.5}\n            strokeLinecap=\"round\"\n            strokeDasharray={`${circumference * 0.18} ${circumference}`}\n            className=\"stroke-foreground/50\"\n          />\n        </motion.g>\n      }\n    >\n      <Server03 />\n    </StatusGraphic>\n  );\n}\n\nexport { ForbiddenGraphic, NotFoundGraphic, ServerErrorGraphic, StatusGraphic };\n"}]}