"use strict";define(["app","handlebars","View","text!/v2/webapps/FirstAccess/Fail/Templates/FailTemplate.html","utils"],function(c,f,e,b,a){var d=e.extend({failTemplate:f.compile(b),events:{"click #quit, #quit-sidebar":"quit"},quit:function(g){g.preventDefault();this.trigger("view:quit");c.instance().router.navigate("/FirstAccess");return false;},initialize:function(g){e.prototype.initialize.apply(this,arguments);this.options=g||{};},render:function(h,i){e.prototype.render.apply(this,arguments);h.allowExitOptions=i;h.showDetails=h.TooEarly||h.clinicException;h.showWarning=(h.clinicException||h.chartLockException||!h.TooEarly);if(h.Exceptions!==undefined){var g=_.findWhere(h.ExceptionsLangMsg,{LangCd:c.instance().Cache.LanguageSettings.CurrentLanguage});h.clinicExceptionInstruction=g.Message;}else{h.clinicExceptionInstruction="";}this.$el.html(this.failTemplate(h));this.$el.find(".logo").css({background:"url("+c.instance().Cache.logo+")"});return this;}});return d;});