How is the checkout authentication modal dialog implemented?

See also: