define(["itemsTab","cardBuilder","layoutManager","globalize","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,globalize,listView){"use strict";function GamesTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}return Object.assign(GamesTab.prototype,ItemsTab.prototype),GamesTab.prototype.getItemsHtml=function(items){var settings=(this.mode,this.getViewSettings());if("list"===settings.imageType)return listView.getListViewHtml({items:items});var shape,preferThumb,preferDisc;"banner"===settings.imageType?shape="banner":"disc"===settings.imageType?(shape="square",preferDisc=!0):"thumb"===settings.imageType?(shape="backdrop",preferThumb=!0):shape="auto";return cardBuilder.getCardsHtml(items,{items:items,shape:shape,centerText:!0,preferThumb:preferThumb,preferDisc:preferDisc,overlayMoreButton:!layoutManager.tv,showTitle:settings.showTitle,showYear:settings.showYear,overlayText:!settings.showTitle,cardLayout:!1,showParentTitle:settings.showTitle})},GamesTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-games"},GamesTab.prototype.getVisibleViewSettings=function(){var settings=["showTitle","showYear","imageType"];return this.apiClient.isMinServerVersion("3.6.0.43")&&settings.push("groupItemsIntoCollections"),settings},GamesTab.prototype.getItemTypes=function(){return["Game"]},GamesTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Containers","Years","IsUnplayed","IsPlayed","IsFavorite","HasTrailer","HasSpecialFeature","HasThemeSong","HasThemeVideo"]},GamesTab});