define(["exports","./../modules/viewmanager/baseview.js","./../modules/emby-apiclient/connectionmanager.js","./../modules/loading/loading.js","./../modules/common/servicelocator.js","./../modules/focusmanager.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-scroller/emby-scroller.js","./../modules/navdrawer/navdrawercontent.js"],function(_exports,_baseview,_connectionmanager,_loading,_servicelocator,_focusmanager,_embyButton,_embyScroller,_navdrawercontent){function renderSettings(view,params){var apiClient=params.serverId?_connectionmanager.default.getApiClient(params.serverId):_connectionmanager.default.currentApiClient();apiClient.getUser(params.userId||apiClient.getCurrentUserId()).then(function(user){apiClient.getCurrentUser().then(function(loggedInUser){!function(view,apiClient,user,loggedInUser){var options={apiClient:apiClient,user:user,loggedInUser:loggedInUser,userImage:!0,selectServer:!0,signOut:!0,itemClass:"navMenuOption-settings",home:!1,collapsible:!1,header:!1};_navdrawercontent.default.getSettingsDrawerHtml(options).then(function(html){var routesElem=view.querySelector(".dynamicRoutes");routesElem.innerHTML=html,_navdrawercontent.default.initItemsContainers(routesElem,options).then(function(){_focusmanager.default.autoFocus(routesElem,{skipIfNotEnabled:!0})})})}(view,apiClient,user,loggedInUser)})})}function View(view,params){_baseview.default.apply(this,arguments),view.querySelector(".appInfo").innerHTML=_servicelocator.appHost.appName()+" "+_servicelocator.appHost.appVersion()}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),_loading.default.hide(),options.refresh&&renderSettings(this.view,this.params)},_exports.default=View});