"use strict";define(["app","handlebars","View","text!/v2/webapps/FirstAccess/SignIn/Templates/SignInTemplate.html","utils"],function(d,f,e,c,b){var a=e.extend({signInTemplate:f.compile(c),events:{"submit form":"submit","click #quit":"quit"},quit:function(g){g.preventDefault();d.instance().router.navigate("/FirstAccess");return false;},submit:function(h){h.preventDefault();var g=this.$el.find("#languages option:selected").val();this.trigger("view:submit",{langSelected:g});},initialize:function(g){e.prototype.initialize.apply(this,arguments);this.options=g||{};},render:function(h,g){e.prototype.render.apply(this,arguments);this.$el.html(this.signInTemplate(h));this.$el.find(".logo").css({background:"url("+d.instance().Cache.logo+")"});if(!g){this.$el.find("#back, #warning").hide();}return this;}});return a;});