One of Our Planets is Missing

A giant planet eating cloud is heading for Mantilles, home to a Federation colony. Kirk takes the Enterprise inside the cloud in an attempt to stop it. However once inside, the ship loses power and Spock realizes the cloud is an intelligent being.