//#region src/utilities/storage/UnitySessionStorage.js
const TenantStorageKey = "active-tenant";
const storeInitialTenant = () => {
	const urlTenantId = new URLSearchParams(window.location.search).get("tenantId");
	if (urlTenantId) storeTenant(urlTenantId);
};
const storeTenant = (tenantId) => {
	window.sessionStorage.setItem(TenantStorageKey, tenantId);
};
const getStoredTenant = () => {
	return window.sessionStorage.getItem(TenantStorageKey);
};
const clearStoredTenant = () => {
	window.sessionStorage.removeItem(TenantStorageKey);
};
//#endregion
export { clearStoredTenant, getStoredTenant, storeInitialTenant, storeTenant };

//# sourceMappingURL=UnitySessionStorage.mjs.map