define(["itemsTab","cardBuilder","layoutManager","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager){"use strict";function GenresTab(view,params){ItemsTab.call(this,view,params)}function fetchData(){var parentId=this.params.parentId,fields="PrimaryImageAspectRatio";layoutManager.mobile||(fields+=",SortName");var query={SortBy:"SortName",SortOrder:"Ascending",Recursive:!0,Fields:fields,parentId:parentId},apiClient=this.apiClient;return apiClient.getGenres(apiClient.getCurrentUserId(),query)}function getItemsHtml(items){var parentId=this.params.parentId;return cardBuilder.getCardsHtml(items,{items:items,shape:"auto",centerText:!0,showTitle:!0,parentId:parentId})}return Object.assign(GenresTab.prototype,ItemsTab.prototype),GenresTab.prototype.fetchData=fetchData,GenresTab.prototype.getItemsHtml=getItemsHtml,GenresTab});