{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "satellite-dish",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "satellite-dish.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 SatelliteDishIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface SatelliteDishIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst SATELLITE_DISH_VARIANTS: Variants = {\n  normal: {\n    y: 0,\n    rotate: 0,\n  },\n  animate: {\n    y: [0, 1, 2, 0],\n    rotate: [0, -15, 0],\n    transition: {\n      duration: 1.5,\n      ease: \"easeInOut\",\n    },\n  },\n};\n\nconst PATH_VARIANTS: Variants = {\n  normal: {\n    opacity: 1,\n    transition: {\n      duration: 1.1,\n    },\n  },\n  fadeOut: {\n    opacity: 0,\n    transition: { duration: 1.1 },\n  },\n  fadeIn: (i: number) => ({\n    opacity: 1,\n    transition: {\n      type: \"spring\",\n      stiffness: 300,\n      damping: 20,\n      delay: i * 0.1,\n    },\n  }),\n};\n\nconst SatelliteDishIcon = forwardRef<\n  SatelliteDishIconHandle,\n  SatelliteDishIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const svgControls = useAnimation();\n  const pathControls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  const runPathIntro = useCallback(async () => {\n    await pathControls.start(\"fadeOut\");\n    pathControls.start(\"fadeIn\");\n  }, [pathControls]);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = ref != null;\n    return {\n      startAnimation: async () => {\n        await Promise.all([svgControls.start(\"animate\"), runPathIntro()]);\n      },\n      stopAnimation: () => {\n        svgControls.start(\"normal\");\n        pathControls.start(\"normal\");\n      },\n    };\n  }, [pathControls, ref, runPathIntro, svgControls]);\n\n  const handleMouseEnter = useCallback(\n    async (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseEnter?.(e);\n      } else {\n        await Promise.all([svgControls.start(\"animate\"), runPathIntro()]);\n      }\n    },\n    [onMouseEnter, runPathIntro, svgControls]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        svgControls.start(\"normal\");\n        pathControls.start(\"normal\");\n      }\n    },\n    [onMouseLeave, pathControls, svgControls]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <motion.svg\n        animate={svgControls}\n        fill=\"none\"\n        height={size}\n        initial=\"normal\"\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        variants={SATELLITE_DISH_VARIANTS}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path d=\"M4 10a7.31 7.31 0 0 0 10 10Z\" />\n        <path d=\"m9 15 3-3\" />\n        <motion.path\n          animate={pathControls}\n          custom={1}\n          d=\"M17 13a6 6 0 0 0-6-6\"\n          initial={{ opacity: 1 }}\n          variants={PATH_VARIANTS}\n        />\n        <motion.path\n          animate={pathControls}\n          custom={2}\n          d=\"M21 13A10 10 0 0 0 11 3\"\n          initial={{ opacity: 1 }}\n          variants={PATH_VARIANTS}\n        />\n      </motion.svg>\n    </div>\n  );\n});\n\nSatelliteDishIcon.displayName = \"SatelliteDishIcon\";\n\nexport { SatelliteDishIcon };\n",
      "type": "registry:ui"
    }
  ]
}
