Popup	= require './popup'

class LoginPopup extends Popup
	className: 'popup login-popup'

	confirmBtnClass: 'dim-button button--uc login-button'
	cancelBtnClass: 'green-button button--uc button--icon-right button--go register-button'
	title: 'Login or sign up.'
	content: ''
	note: ''
	separator: false
	confirmBtn: 'Log in'
	cancelBtn: 'Sign up free'

	setTitle: (title = 'Login or sign up.') ->
		@title = title
		@render @
		@

	place: (place) ->
		@pop = @pop.bind @, place

	onConfirm: ->
		@$trigger 'login-intent'

	onCancel: ->
		@$trigger 'signup-intent'

module.exports = new LoginPopup
