   change: (e) ->
     e.preventDefault()
     @active.set 'mode', $(e.currentTarget).data 'mode'
-
-  done: ->
-    @$el.removeClass 'is-loading'

  forgot: -> require('../templates/account/forgot.jade') arguments...

module.exports = class Account extends StepView
  className: 'iq-account iq-loadable is-loading'

  template: ->
    templates[@mode()] arguments...

  initialize: ({ @user, @inquiry, @artwork, @state }) ->
    @active = new Backbone.Model mode: 'auth'

    @listenTo @active, 'change:mode', @render
    @listenTo @active, 'change:mode', @forgot

    super

  setup: ->
    @sendResetOnce = _.once _.bind(@user.forgot, @user)

  mode: ->
