{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alarm-clock-check",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "alarm-clock-check.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation, type Variants } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface AlarmClockCheckIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface AlarmClockCheckIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst PATH_VARIANTS: Variants = {\n  normal: {\n    y: 0,\n    x: 0,\n    transition: {\n      duration: 0.2,\n      type: \"spring\",\n      stiffness: 200,\n      damping: 25,\n    },\n  },\n  animate: {\n    y: -1.5,\n    x: [-1, 1, -1, 1, -1, 0],\n    transition: {\n      y: {\n        duration: 0.2,\n        type: \"spring\",\n        stiffness: 200,\n        damping: 25,\n      },\n      x: {\n        duration: 0.3,\n        repeat: Number.POSITIVE_INFINITY,\n        ease: \"linear\",\n      },\n    },\n  },\n};\n\nconst SECONDARY_PATH_VARIANTS: Variants = {\n  normal: {\n    y: 0,\n    x: 0,\n    transition: {\n      duration: 0.2,\n      type: \"spring\",\n      stiffness: 200,\n      damping: 25,\n    },\n  },\n  animate: {\n    y: -2.5,\n    x: [-2, 2, -2, 2, -2, 0],\n    transition: {\n      y: {\n        duration: 0.2,\n        type: \"spring\",\n        stiffness: 200,\n        damping: 25,\n      },\n      x: {\n        duration: 0.3,\n        repeat: Number.POSITIVE_INFINITY,\n        ease: \"linear\",\n      },\n    },\n  },\n};\n\nconst AlarmClockCheckIcon = forwardRef<\n  AlarmClockCheckIconHandle,\n  AlarmClockCheckIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  const resetToNormal = useCallback(() => {\n    controls.stop();\n    controls.start(\"normal\").catch(() => {\n      // ignore when interrupted by a new animation\n    });\n  }, [controls]);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = ref != null;\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => resetToNormal(),\n    };\n  }, [controls, ref, resetToNormal]);\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        resetToNormal();\n      }\n    },\n    [onMouseLeave, resetToNormal]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <motion.svg\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        style={{ overflow: \"visible\" }}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <motion.circle\n          animate={controls}\n          cx=\"12\"\n          cy=\"13\"\n          initial=\"normal\"\n          r=\"8\"\n          variants={PATH_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"M5 3 2 6\"\n          initial=\"normal\"\n          variants={SECONDARY_PATH_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"m22 6-3-3\"\n          initial=\"normal\"\n          variants={SECONDARY_PATH_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"M6.38 18.7 4 21\"\n          initial=\"normal\"\n          variants={PATH_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"M17.64 18.67 20 21\"\n          initial=\"normal\"\n          variants={PATH_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"m9 13 2 2 4-4\"\n          initial=\"normal\"\n          variants={PATH_VARIANTS}\n        />\n      </motion.svg>\n    </div>\n  );\n});\n\nAlarmClockCheckIcon.displayName = \"AlarmClockCheckIcon\";\n\nexport { AlarmClockCheckIcon };\n",
      "type": "registry:ui"
    }
  ]
}
