define(["itemsTab","cardBuilder","layoutManager","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager){"use strict";function RecordingsTab(view,params){ItemsTab.call(this,view,params),function(view,params){[].forEach.call(view.querySelectorAll(".sectionTitleTextButton-programs"),function(link){var href=link.getAttribute("data-href");href&&(link.href=href+"&serverId="+params.serverId)})}(view,params)}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,ProductionYear",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});