Which of the following is right grammatically? And why?

> Would you **be** surprised if I had arrived yesterday without letting you know beforehand?
    
> Would you **have been** surprised if I had arrived yesterday without letting you know beforehand?

If both are right , is there differences between them?