define(["itemsTab","cardBuilder","layoutManager","userSettings","globalize","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,userSettings,globalize,listView){"use strict";function SeriesTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}return Object.assign(SeriesTab.prototype,ItemsTab.prototype),SeriesTab.prototype.getItemsHtml=function(items){var settings=this.getViewSettings();if("list"===settings.imageType)return listView.getListViewHtml({items:items});var shape,preferThumb,preferDisc,preferLogo;return"banner"===settings.imageType?shape="banner":"disc"===settings.imageType?(shape="square",preferDisc=!0):"logo"===settings.imageType?(shape="square",preferLogo=!0):"thumb"===settings.imageType?(shape="backdrop",preferThumb=!0):shape="auto",cardBuilder.getCardsHtml(items,{items:items,shape:shape,preferThumb:preferThumb,preferDisc:preferDisc,preferLogo:preferLogo,centerText:!0,overlayMoreButton:!layoutManager.tv,showTitle:settings.showTitle,showYear:settings.showYear,overlayText:!settings.showTitle})},SeriesTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-series"},SeriesTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this),basekey=(this.mode,this.getSettingsKey());return settings.showTitle=!1!==settings.showTitle,settings.showYear="true"===userSettings.get(basekey+"-showYear"),settings},SeriesTab.prototype.getVisibleViewSettings=function(){var settings=["showTitle","showYear","imageType"];return this.apiClient.isMinServerVersion("3.6.0.43")&&settings.push("groupItemsIntoCollections"),settings},SeriesTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Containers","Years","IsUnplayed","IsPlayed","IsFavorite","SeriesStatus","HasTrailer","HasThemeSong","HasThemeVideo"]},SeriesTab.prototype.getItemTypes=function(){return["Series"]},SeriesTab.prototype.getCommunityRatingSortOption=function(){return{name:globalize.translate("sharedcomponents#ImdbRating"),reverseName:globalize.translate("sharedcomponents#ImdbRatingHighToLow"),value:"CommunityRating,SortName"}},SeriesTab.prototype.getCriticRatingSortOption=function(){return null},SeriesTab.prototype.getDatePlayedSortOption=function(){return{name:globalize.translate("sharedcomponents#DatePlayed"),value:"SeriesDatePlayed,SortName"}},SeriesTab.prototype.getPlayCountSortOption=function(){return null},SeriesTab});