define(["exports","./../modules/emby-apiclient/connectionmanager.js","./../modules/loading/loading.js","./../modules/common/globalize.js","./../modules/approuter.js"],function(_exports,_connectionmanager,_loading,_globalize,_approuter){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_exports.default={authenticateUser:function(serverId,username,password){_loading.default.show();var apiClient=_connectionmanager.default.getApiClient(serverId);apiClient.authenticateUserByName(username,password).then(function(result){_approuter.default.handleConnectionResult({State:"SignedIn",ApiClient:apiClient})},function(result){var options;_loading.default.hide(),options={text:_globalize.default.translate("MessageInvalidUser"),title:_globalize.default.translate("HeaderSignInError")},Emby.importModule("./modules/common/dialogs/alert.js").then(function(alert){return alert(options)})})}}});