aimpress-chatbot/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

45 lines
1.3 KiB
JavaScript

/*! @azure/msal-browser v4.11.0 2025-04-16 */
'use strict';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
class NavigationClient {
/**
* Navigates to other pages within the same web application
* @param url
* @param options
*/
navigateInternal(url, options) {
return NavigationClient.defaultNavigateWindow(url, options);
}
/**
* Navigates to other pages outside the web application i.e. the Identity Provider
* @param url
* @param options
*/
navigateExternal(url, options) {
return NavigationClient.defaultNavigateWindow(url, options);
}
/**
* Default navigation implementation invoked by the internal and external functions
* @param url
* @param options
*/
static defaultNavigateWindow(url, options) {
if (options.noHistory) {
window.location.replace(url);
}
else {
window.location.assign(url);
}
return new Promise((resolve) => {
setTimeout(() => {
resolve(true);
}, options.timeout);
});
}
}
export { NavigationClient };
//# sourceMappingURL=NavigationClient.mjs.map