define(["itemsTab","cardBuilder","layoutManager","globalize","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,globalize,listView){"use strict";function PhotosTab(view,params){ItemsTab.call(this,view,params)}return Object.assign(PhotosTab.prototype,ItemsTab.prototype),PhotosTab.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:!1,cardLayout:!1})},PhotosTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-photos"},PhotosTab.prototype.getVisibleViewSettings=function(){return["showTitle","showYear"]},PhotosTab.prototype.getItemTypes=function(){return["Photo"]},PhotosTab.prototype.getVisibleFilters=function(){return["Genres","Tags","OfficialRatings","Containers","Years","IsFavorite"]},PhotosTab});