 Backbone = require 'backbone'
 _ = require 'underscore'
 Form = require '../mixins/form.coffee'
+mediator = require '../../lib/mediator.coffee'
 LoggedOutUser = require '../../models/logged_out_user.coffee'
 AuthModalView = require '../auth_modal/view.coffee'
 template = -> require('./templates/index.jade') arguments...

        mediator.trigger 'auth:error', message

  onRegisterSuccess: (model, response, options) =>
    # TODO: Payoff Screen

  initialize: ({ artist }) ->
    @artist = artist

    new AuthModalView
      width: '500px'
      mode: 'login'
      redirectTo: "#{@artist.get('href')}/payoff"

  fullScreenOverlay: (e) ->
    return if @$el.hasClass 'fullscreen'
