define(["itemsTab","cardBuilder","layoutManager","skinManager","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager,skinManager){"use strict";function RecordingsTab(view,params){ItemsTab.call(this,view,params),initMoreButtons(view,params)}function initMoreButtons(view,params){[].forEach.call(view.querySelectorAll(".sectionTitleTextButton-programs"),function(link){var href=link.getAttribute("data-href");href&&(link.href=skinManager.mapRoute(href+"&serverId="+params.serverId))})}return Object.assign(RecordingsTab.prototype,ItemsTab.prototype),RecordingsTab.prototype.fetchData=function(){var apiClient=this.apiClient;return apiClient.getLiveTvRecordings({UserId:apiClient.getCurrentUserId(),Limit:20,Fields:"CanDelete,PrimaryImageAspectRatio,BasicSyncInfo",EnableTotalRecordCount:!1,EnableImageTypes:"Primary,Thumb,Backdrop"})},RecordingsTab.prototype.getItemsHtml=function(items){return cardBuilder.getCardsHtml({items:items,shape:"auto",showTitle:!0,showParentTitle:!0,lazy:!0,preferThumb:"auto",centerText:!0,overlayText:!1,lines:2,showYear:!0})},RecordingsTab});