define(["exports","./../../modules/tabbedview/itemstab.js","./../../modules/emby-elements/emby-button/emby-button.js","./../../modules/emby-elements/emby-scroller/emby-scroller.js","./../../modules/layoutmanager.js","./syncjobcontroller.js","./syncjobitemcontroller.js"],function(_exports,_itemstab,_embyButton,_embyScroller,_layoutmanager,_syncjobcontroller,_syncjobitemcontroller){function ActivityTab(view,params){this.supportsViewSettings=!1,this.enableAlphaNumericShortcuts=!1,_itemstab.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(ActivityTab.prototype,_itemstab.default.prototype),ActivityTab.prototype.onTemplateLoaded=function(){_itemstab.default.prototype.onTemplateLoaded.apply(this,arguments),this.itemsContainer.setAttribute("data-monitor","SyncJobs")},ActivityTab.prototype.onResume=function(options){_itemstab.default.prototype.onResume.apply(this,arguments)},ActivityTab.prototype.loadTemplate=function(){return this.loadItemsTemplate()},ActivityTab.prototype.getItems=function(query){var options={},apiClient=this.getApiClient();return this.options.userId&&(options.UserId=this.options.userId),"download"===this.options.mode&&this.options.localDownload?options.TargetId=apiClient.deviceId():"convert"===this.options.mode?options.IncludeProviders="ConvertSyncProvider":options.ExcludeProviders="ConvertSyncProvider",options.mode=this.options.mode,apiClient.getSyncJobs(options)},ActivityTab.prototype.getSettingsKey=function(){return"syncjobs"},ActivityTab.prototype.getViewSettingDefaults=function(){var viewSettings=_itemstab.default.prototype.getViewSettingDefaults.apply(this,arguments);return viewSettings.imageType="list",viewSettings},ActivityTab.prototype.setTitle=function(){},ActivityTab.prototype.getBaseListRendererOptions=function(){var options=_itemstab.default.prototype.getBaseListRendererOptions.apply(this,arguments);return options.draggable=!1,_layoutmanager.default.tv?options.action="menu":options.action="edit",options},ActivityTab.prototype.getListViewOptions=function(items,settings){var options=_itemstab.default.prototype.getListViewOptions.apply(this,arguments);return this.options.userId&&(options.UserId=this.options.userId),"download"===this.options.mode&&this.options.userId||(options.fields=["TargetName","Name"]),options.fields.push("SyncJobItemCount"),options.fields.push("SyncJobProgress"),options},ActivityTab.prototype.getItemTypes=function(){return["SyncJob"]};_exports.default=ActivityTab});