define(["tabbedView","globalize","require","appHeader","emby-tabs","emby-button","emby-scroller"],function(TabbedView,globalize,require,appHeader){"use strict";function HomeView(view,params){TabbedView.call(this,view,params)}return Object.assign(HomeView.prototype,TabbedView.prototype),HomeView.prototype.getTabs=function(){return[{name:globalize.translate("Home"),id:"home"},{name:globalize.translate("Favorites"),id:"favorites"}]},HomeView.prototype.setTitle=function(){appHeader.setTitle(null)},HomeView.prototype.onPause=function(){TabbedView.prototype.onPause.call(this)},HomeView.prototype.onResume=function(options){TabbedView.prototype.onResume.call(this,options)},HomeView.prototype.loadTabController=function(id){switch(id){case"home":return require(["./hometab"]);case"favorites":return require(["./favorites"]);default:throw new Error("tab not found: "+id)}},HomeView});