The "components" you list are all speakers. So it sounds like you want one source to feed different speakers? If these are not self powered you would need an amplifier. Subs are usually self powered so that does not need an amp. Speakers and sound bars come both powered and passive. If they are all self powered then you can use an input selector switch like this:
http
/www.amazon.com/TC-716-Stereo-Selector-BLACK-VERSION/dp/B0001F347K
in reverse to select which powered speaker receives signal. If you want the sub to run with more than one set of speakers then that is a bit more complicated.
If some are passive and some active then you may need the amp and a switch.