define(["exports","./../../modules/viewmanager/baseview.js","./../../modules/common/globalize.js","./../../modules/emby-elements/emby-button/emby-button.js","./../../modules/emby-elements/emby-button/paper-icon-button-light.js","./../../modules/maintabsmanager.js","./../../modules/sync/syncjoblist.js"],function(_exports,_baseview,_globalize,_embyButton,_paperIconButtonLight,_maintabsmanager,_syncjoblist){function getConvertTabs(){return[{href:"conversions?mode=convert",name:_globalize.default.translate("Conversions")},{href:"serverdownloadsettings?mode=convert",name:_globalize.default.translate("Settings")}]}function getDownloadTabs(){return[{href:"serverdownloads",name:_globalize.default.translate("Downloads")},{href:"serverdownloadsettings",name:_globalize.default.translate("Settings")}]}function View(view,params){_baseview.default.apply(this,arguments),this.mySyncJobList=new _syncjoblist.default({serverId:ApiClient.serverId(),userId:"offline"===params.mode?null:ApiClient.getCurrentUserId(),element:view.querySelector(".syncActivity"),mode:params.mode})}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(View.prototype,_baseview.default.prototype),View.prototype.onResume=function(options){_baseview.default.prototype.onResume.apply(this,arguments),_maintabsmanager.default.setTabs(this.view,0,"convert"===this.params.mode?getConvertTabs:getDownloadTabs)},View.prototype.destroy=function(){_baseview.default.prototype.destroy.apply(this,arguments),this.mySyncJobList&&(this.mySyncJobList.destroy(),this.mySyncJobList=null)},_exports.default=View});