define(["itemsTab","cardBuilder","layoutManager","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,listView){"use strict";function ArtistsTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}return Object.assign(ArtistsTab.prototype,ItemsTab.prototype),ArtistsTab.prototype.getQueryIncludeItemTypes=function(){return[]},ArtistsTab.prototype.getPrefixQueryIncludeItemTypes=function(){return["MusicArtist"]},ArtistsTab.prototype.fetchData=function(){var queryInfo=this.getQueryInfo();this.setFilterStatus(queryInfo.hasFilters);var apiClient=this.apiClient;return"albumartists"===this.params.mode?apiClient.getAlbumArtists(apiClient.getCurrentUserId(),queryInfo.query):apiClient.getArtists(apiClient.getCurrentUserId(),queryInfo.query)},ArtistsTab.prototype.getItemsHtml=function(items){var settings=this.getViewSettings();if("list"===settings.imageType)return listView.getListViewHtml({items:items});var shape,preferThumb,preferDisc;return"banner"===settings.imageType?shape="banner":"disc"===settings.imageType?(shape="square",preferDisc=!0):"thumb"===settings.imageType?(shape="backdrop",preferThumb=!0):shape="auto",cardBuilder.getCardsHtml(items,{items:items,shape:shape,preferThumb:preferThumb,preferDisc:preferDisc,showTitle:settings.showTitle,overlayText:!1,centerText:!0,overlayMoreButton:!layoutManager.tv})},ArtistsTab.prototype.getSettingsKey=function(){var suffix="albumartists"===this.params.mode?"-albumartists":"-artists";return ItemsTab.prototype.getSettingsKey.call(this)+suffix},ArtistsTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this);this.mode;return settings.showTitle=!1!==settings.showTitle,settings.showYear=!1,settings},ArtistsTab.prototype.getVisibleViewSettings=function(){return["showTitle","imageType"]},ArtistsTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","IsFavorite"]},ArtistsTab.prototype.getItemTypes=function(){return["MusicArtist"]},ArtistsTab.prototype.getCriticRatingSortOption=function(){return null},ArtistsTab.prototype.getPrefixes=function(){var queryInfo=this.getQueryInfo(!1),apiClient=this.apiClient,query=queryInfo.query;return query.SortBy=null,query.SortOrder=null,query.StartIndex=null,query.Limit=null,query.Fields=null,query.EnableImageTypes=null,query.ImageTypeLimit=null,query.NameStartsWithOrGreater=null,query.ArtistType="albumartists"===this.params.mode?"AlbumArtist":"Artist",apiClient.getArtistPrefixes(apiClient.getCurrentUserId(),query).then(function(result){return result.map(function(i){return i.Name})})},ArtistsTab});