define(["itemsTab","cardBuilder","layoutManager","listView","globalize","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,listView,globalize){"use strict";function SongsTab(view,params){ItemsTab.call(this,view,params)}function getItemsHtml(items){var settings=this.getViewSettings();return"list"===settings.imageType?listView.getListViewHtml({items:items}):cardBuilder.getCardsHtml(items,{items:items,shape:"auto",context:"music",showTitle:settings.showTitle,showParentTitle:settings.showTitle,centerText:!0,overlayText:!settings.showTitle,action:"play",hoverPlayButton:!1})}return Object.assign(SongsTab.prototype,ItemsTab.prototype),SongsTab.prototype.getItemsHtml=getItemsHtml,SongsTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-songs"},SongsTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this);this.mode;return settings.showTitle=!1!==settings.showTitle,settings.showYear=!1,settings},SongsTab.prototype.getVisibleViewSettings=function(){var settings=["showTitle","imageType"];return this.apiClient.isMinServerVersion("3.6.0.43")&&settings.push("groupItemsIntoCollections"),settings},SongsTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Containers","Years","IsUnplayed","IsPlayed","IsFavorite"]},SongsTab.prototype.getItemTypes=function(){return["Audio"]},SongsTab.prototype.getCriticRatingSortOption=function(){return null},SongsTab.prototype.getSortMenuOptions=function(){var sortBy=ItemsTab.prototype.getSortMenuOptions.call(this);return sortBy.push({name:globalize.translate("sharedcomponents#Album"),value:"Album,ParentIndexNumber,IndexNumber"}),sortBy.push({name:globalize.translate("sharedcomponents#AlbumArtist"),value:"AlbumArtist,Album,ParentIndexNumber,IndexNumber"}),this.sortOptionsByName(sortBy),sortBy},SongsTab});