Yours is an interesting question, and I would be tempted to avoid any responsibility and simply call it a fixed phrase and go no further. Quirk et al. " That would make 'thank' the verb and 'you' the object of a subject-less clause.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.