{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chat-bubble-oval-left-ellipsis",
  "title": "chat-bubble-oval-left-ellipsis",
  "description": "Animated chat-bubble-oval-left-ellipsis icon for React",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "files": [
    {
      "path": "chat-bubble-oval-left-ellipsis.tsx",
      "content": "\"use client\";\n\nimport type { Variants } from \"motion/react\";\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface ChatBubbleOvalLeftEllipsisIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface ChatBubbleOvalLeftEllipsisIconProps\n  extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst DOT_VARIANTS: Variants = {\n  normal: {\n    opacity: 1,\n  },\n  animate: (custom: number) => ({\n    opacity: [1, 0, 0, 1, 1, 0, 0, 1],\n    transition: {\n      opacity: {\n        times: [\n          0,\n          0.1,\n          0.1 + custom * 0.1,\n          0.1 + custom * 0.1 + 0.1,\n          0.5,\n          0.6,\n          0.6 + custom * 0.1,\n          0.6 + custom * 0.1 + 0.1,\n        ],\n        duration: 1.5,\n      },\n    },\n  }),\n};\n\nconst ChatBubbleOvalLeftEllipsisIcon = forwardRef<\n  ChatBubbleOvalLeftEllipsisIconHandle,\n  ChatBubbleOvalLeftEllipsisIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = true;\n\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => controls.start(\"normal\"),\n    };\n  });\n\n  const handleMouseEnter = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseEnter?.(e);\n      } else {\n        controls.start(\"animate\");\n      }\n    },\n    [controls, onMouseEnter]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        controls.start(\"normal\");\n      }\n    },\n    [controls, onMouseLeave]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <svg\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"1.5\"\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        {[\n          {\n            d: \"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0\",\n            index: 0,\n          },\n          {\n            d: \"M12.75 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0\",\n            index: 1,\n          },\n          {\n            d: \"M16.875 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0\",\n            index: 2,\n          },\n        ].map((dot) => (\n          <motion.path\n            animate={controls}\n            custom={dot.index}\n            d={dot.d}\n            key={dot.index}\n            variants={DOT_VARIANTS}\n          />\n        ))}\n        <path d=\"M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z\" />\n      </svg>\n    </div>\n  );\n});\n\nChatBubbleOvalLeftEllipsisIcon.displayName = \"ChatBubbleOvalLeftEllipsisIcon\";\n\nexport { ChatBubbleOvalLeftEllipsisIcon };\n",
      "type": "registry:ui"
    }
  ]
}
