"use strict";define(["app","Controller","../Views/ErrorView","webapps/FirstAccess/CommonControls/Localization/Views/SelectLanguageView","utils"],function(e,f,b,d,a){var c=f.extend({title:a.localize(this,["FirstAccess.title"]),initialize:function(g){f.prototype.initialize.apply(this,arguments);_.extend(this,g);this.errorView=new b();},refreshView:function(){this.view=this.errorView.render(this.data);this.trigger("controller:attach",this.view);var h=e.instance().Cache.LanguageSettings?e.instance().Cache.LanguageSettings.Languages:null;var g=e.instance().Cache.LanguageSettings?e.instance().Cache.LanguageSettings.CurrentLanguage:null;this.selectLanguageView=new d({parentView:this});this.selectLanguageView.render(h,g,a.getLanguageName);this.view.$el.find("#selectLanguage").html(this.selectLanguageView.$el);},index:function(g){this.refreshView();}});return c;});