import { NavigationClient } from "@azure/msal-browser";
//#region src/utilities/CustomNavigationClient.js
/**
* Extending the default NavigationClient allows you to overwrite just navigateInternal while continuing to use the default navigateExternal function
* If you would like to overwrite both you can implement INavigationClient directly instead
*/
var CustomNavigationClient = class extends NavigationClient {
	constructor(history) {
		super();
		this.history = history;
	}
	async navigateInternal(url, options) {
		const relativePath = url.replace(window.location.origin, "");
		if (options.noHistory) this.history.replace(relativePath);
		else this.history.push(relativePath);
		return false;
	}
};
//#endregion
export { CustomNavigationClient as default };

//# sourceMappingURL=CustomNavigationClient.mjs.map