Heralded processes on continuous-variable spaces as quantum maps