How is the entire noun clause used in the sentence?

That the flowers were preserved in such detail surprised everyone.

Asubject
Bdirect object
Cobject of a preposition
Dpredicate nominative