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(){var apiClient=(this.params.parentId,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,showCurrentProgram:!0,showCurrentProgramTime:!0,overlayText:!1,centerText:!0,lines:3,defaultBackground:!0})},ChannelsTab});