define(["itemsTab","cardBuilder","layoutManager","emby-itemscontainer"],function(ItemsTab,cardBuilder,layoutManager){"use strict";function ChannelsTab(view,params){ItemsTab.call(this,view,params)}return Object.assign(ChannelsTab.prototype,ItemsTab.prototype),ChannelsTab.prototype.fetchData=function(){this.params.parentId;var apiClient=this.apiClient,fields="PrimaryImageAspectRatio,ChannelInfo";layoutManager.mobile||(fields+=",SortName");var query={UserId:apiClient.getCurrentUserId(),ImageTypeLimit:1,EnableImageTypes:"Primary",EnableTotalRecordCount:!1,StartIndex:this.startIndex||0,Limit:this.enablePaging()?100:null,Fields:fields};return apiClient.getLiveTvChannels(query)},ChannelsTab.prototype.getItemsHtml=function(items){return cardBuilder.getCardsHtml(items,{items:items,shape:"auto",showTitle:!0,showDetailsMenu:!0,showCurrentProgramParentTitle:!0,showCurrentProgramTime:!0,overlayText:!1,centerText:!0,lines:3,defaultBackground:!0})},ChannelsTab});