define(["tabbedView","layoutManager","require","globalize","emby-itemscontainer","emby-tabs","emby-button","emby-scroller"],function(TabbedView,layoutManager,require,globalize){"use strict";function TVView(view,params){TabbedView.call(this,view,params)}return Object.assign(TVView.prototype,TabbedView.prototype),TVView.prototype.getTabs=function(){var subviews=this.item.Subviews||["series","suggestions","upcoming","favorites","genres","studios","episodes","folders"];return[{name:globalize.translate("Shows"),id:"series",enabled:subviews.includes("series")},{name:globalize.translate("Suggestions"),id:"suggestions"},{name:globalize.translate("Upcoming"),id:"upcoming"},{name:globalize.translate("Favorites"),id:"favorites"},{name:globalize.translate("Genres"),id:"genres",enabled:subviews.includes("genres")},{name:globalize.translate("Networks"),id:"studios",enabled:subviews.includes("studios")},{name:globalize.translate("Episodes"),id:"episodes",enabled:subviews.includes("episodes")},{name:globalize.translate("Folders"),id:"folders"}]},TVView.prototype.loadTabController=function(id){switch(id){case"series":return require(["seriesTab"]);case"suggestions":return require(["./suggestions"]);case"upcoming":return require(["./upcoming"]);case"favorites":return require(["./favorites"]);case"genres":return require(["genresTab"]);case"studios":return require(["./studios"]);case"tags":return require(["tagsTab"]);case"episodes":return require(["videosTab"]);case"folders":return require(["foldersTab"]);default:throw new Error("tab not found: "+id)}},TVView.prototype.getTabControllerOptions=function(id){var options=TabbedView.prototype.getTabControllerOptions.apply(this,arguments);return"genres"===id?options.queryIncludeItemTypes=["Series"]:"episodes"===id&&(options.itemType="Episode",options.enableAlphaPicker=!1),options},TVView});