define(["tabbedView","require","globalize","userSettings","emby-itemscontainer","emby-tabs","emby-button","emby-scroller"],function(TabbedView,require,globalize,userSettings){"use strict";function GamesView(view,params){TabbedView.call(this,view,params)}return Object.assign(GamesView.prototype,TabbedView.prototype),GamesView.prototype.getTabs=function(){var subviews=this.item.Subviews||["gamesystems","games","genres","folders"];return[{name:globalize.translate("Systems"),id:"gamesystems",enabled:!0},{name:globalize.translate("Games"),id:"games",enabled:subviews.includes("games")},{name:globalize.translate("Genres"),id:"genres",enabled:subviews.includes("genres")},{name:globalize.translate("Folders"),id:"folders"}]},GamesView.prototype.loadTabController=function(id){switch(id){case"gamesystems":return require(["./gamesystems"]);case"games":return require(["./gamestab"]);case"genres":return require(["genresTab"]);case"folders":return require(["foldersTab"]);default:throw new Error("tab not found: "+id)}},GamesView});