define(["itemsTab","cardBuilder","layoutManager","globalize","listView","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,globalize,listView){"use strict";function MoviesTab(view,params){this.enableAlphaPicker=!0,ItemsTab.call(this,view,params)}return Object.assign(MoviesTab.prototype,ItemsTab.prototype),MoviesTab.prototype.getItemsHtml=function(items){var settings=(this.mode,this.getViewSettings());if("list"===settings.imageType)return listView.getListViewHtml({items:items});var shape,preferThumb,preferDisc,preferLogo;"banner"===settings.imageType?shape="banner":"disc"===settings.imageType?(shape="square",preferDisc=!0):"logo"===settings.imageType?(shape="square",preferLogo=!0):"thumb"===settings.imageType?(shape="backdrop",preferThumb=!0):shape="auto";return cardBuilder.getCardsHtml(items,{items:items,shape:shape,centerText:!0,preferThumb:preferThumb,preferDisc:preferDisc,preferLogo:preferLogo,overlayMoreButton:!layoutManager.tv,showTitle:settings.showTitle,showYear:settings.showYear,overlayText:!settings.showTitle,cardLayout:!1})},MoviesTab.prototype.getViewSettings=function(){var settings=ItemsTab.prototype.getViewSettings.call(this);return"favorites"===this.mode&&(settings.groupItemsIntoCollections=!1),settings},MoviesTab.prototype.getSettingsKey=function(){return ItemsTab.prototype.getSettingsKey.call(this)+"-movies"},MoviesTab.prototype.getCommunityRatingSortOption=function(){return{name:globalize.translate("sharedcomponents#ImdbRating"),reverseName:globalize.translate("sharedcomponents#ImdbRatingHighToLow"),value:"CommunityRating,SortName"}},MoviesTab.prototype.getVisibleViewSettings=function(){var settings=["showTitle","showYear","imageType"];return this.apiClient.isMinServerVersion("3.6.0.43")&&settings.push("groupItemsIntoCollections"),settings},MoviesTab.prototype.getItemTypes=function(){return["Movie"]},MoviesTab.prototype.getVisibleFilters=function(){return["Genres","Studios","Tags","OfficialRatings","Containers","Years","AudioCodecs","VideoCodecs","SubtitleCodecs","IsUnplayed","IsPlayed","IsFavorite","IsResumable","HasTrailer","HasSpecialFeature","HasThemeSong","HasThemeVideo","VideoType","HasSubtitles"]},MoviesTab});