define(["itemsTab","cardBuilder","layoutManager","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,listView){"use strict";function CollectionsTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}return Object.assign(CollectionsTab.prototype,ItemsTab.prototype),CollectionsTab.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,centerText:!0,overlayMoreButton:!layoutManager.tv,showTitle:settings.showTitle,overlayText:!settings.showTitle})},CollectionsTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-collections"},CollectionsTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this);this.mode;return settings.showTitle=!1!==settings.showTitle,settings.showYear=!1,settings},CollectionsTab.prototype.getVisibleViewSettings=function(){return["showTitle","imageType"]},CollectionsTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Containers","Years","IsUnplayed","IsPlayed","IsFavorite","HasTrailer","HasThemeSong","HasThemeVideo"]},CollectionsTab.prototype.getDatePlayedSortOption=function(){return null},CollectionsTab.prototype.getPlayCountSortOption=function(){return null},CollectionsTab.prototype.getCriticRatingSortOption=function(){return null},CollectionsTab.prototype.getItemTypes=function(){return["BoxSet"]},CollectionsTab});