(function(){var e=null,t=!0;App.Views.MainLayoutView=Backbone.View.extend({events:function(){var e={};return e.mouseleave="handleMouseLeaveTouchCancel",e.touchcancel="handleMouseLeaveTouchCancel",e[vdown+" .swipablePanel"]="handleSwipablePanelVdown",e[vmove]="handleViewportVmove",e[vup]="handleViewportVup",e},initialize:function(){this.listenTo(this.model,"change:currentScenario",function(t){var n=this,r=t.changed.currentScenario;r.length==0?(r.push(""),$(e).css("transform",""),n.$el.removeClass()):(n.$el.removeClass(),r.forEach(function(e){n.$el.addClass(e),funcObj.UIMain.addAccessibilityOnViewChange(e)})),$(funcObj.play).trigger("viewportChange",[r])}),this.listenTo(this,"UPDATE_MAIN_VIEW",function(e){showDebug==2&&console.log(this),this.model.updateMainView(e)})},handleSwipablePanelVdown:function(n){showDebug==2&&console.log("called swipable vdown"),e=n.target;if(!e.classList.contains("swipablePanel")){if($(e).hasClass("tapOpCl")||$(e).parents().hasClass("tapOpCl"))t=!1,e=$(e).closest(".swipablePanel")[0]}else t=!0;showDebug==2&&console.log("swipable target: ",e),App.Utils.PanelSwipe.triggerVdownOnSwipablePanel(n,e,t)},handleViewportVmove:function(e){App.Utils.PanelSwipe.triggerVmoveOnSwipablePanel(e)},handleViewportVup:function(e){App.Utils.PanelSwipe.triggerVupOnSwipablePanel(e)},handleMouseLeaveTouchCancel:function(e){e.preventDefault(),this.handleViewportVup(e)}})})();