define(["itemsTab","cardBuilder","layoutManager","listView","globalize","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,listView,globalize){"use strict";function AlbumsTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}function getItemsHtml(items){var settings=this.getViewSettings();if("list"===settings.imageType)return listView.getListViewHtml({items:items});return cardBuilder.getCardsHtml(items,{items:items,shape:"auto",preferThumb:void 0,preferDisc:void 0,context:"music",showTitle:settings.showTitle,showParentTitle:settings.showTitle,centerText:!0,overlayText:!settings.showTitle})}return Object.assign(AlbumsTab.prototype,ItemsTab.prototype),AlbumsTab.prototype.getItemsHtml=getItemsHtml,AlbumsTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-albums"},AlbumsTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this);this.mode;return settings.showTitle=!1!==settings.showTitle,settings.showYear=!1,settings},AlbumsTab.prototype.getVisibleViewSettings=function(){var settings=["showTitle","imageType"];return this.apiClient.isMinServerVersion("3.6.0.43")&&settings.push("groupItemsIntoCollections"),settings},AlbumsTab.prototype.getVisibleFilters=function(){return["IsFavorite"]},AlbumsTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Years","IsFavorite"]},AlbumsTab.prototype.getItemTypes=function(){return["MusicAlbum"]},AlbumsTab.prototype.getCriticRatingSortOption=function(){return null},AlbumsTab.prototype.getSortMenuOptions=function(){var sortBy=ItemsTab.prototype.getSortMenuOptions.call(this);return sortBy.push({name:globalize.translate("sharedcomponents#AlbumArtist"),value:"AlbumArtist,SortName"}),this.sortOptionsByName(sortBy),sortBy},AlbumsTab});