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.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","HasOverview","HasImdbId","HasTmdbId","HasTvdbId","IsLocked"]},SeriesTab.prototype.getItemTypes=function(){return["Series"]},SeriesTab.prototype.getBaseQuery=function(){var query=ItemsTab.prototype.getBaseQuery.call(this);return this.getViewSettings().showYear&&(query.Fields+=",Status,EndDate"),query},SeriesTab.prototype.getSortMenuOptions=function(){var sortBy=ItemsTab.prototype.getSortMenuOptions.call(this);return sortBy.push({name:globalize.translate("LastEpisodeDateAdded"),value:"DateLastContentAdded,SortName"}),this.sortOptionsByName(sortBy),sortBy},SeriesTab.prototype.getCommunityRatingSortOption=function(){return{name:globalize.translate("ImdbRating"),reverseName:globalize.translate("ImdbRatingHighToLow"),value:"CommunityRating,SortName"}},SeriesTab.prototype.getCriticRatingSortOption=function(){return null},SeriesTab.prototype.getDatePlayedSortOption=function(){return{name:globalize.translate("DatePlayed"),value:"SeriesDatePlayed,SortName"}},SeriesTab.prototype.getPlayCountSortOption=function(){return null},SeriesTab});