1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8f40e06c-ab40-5343-9126-4caf5b2623f4")}catch(e){}}(); 3import { o as __toESM } from "./rolldown-runtime.D1cXj70v.js"; 4import { n as require_createBrowserHistory } from "./vendor~index~newNavigation~AccountTierManagementPage~AdminContainer~AISystemPromptManager~C~f6d7pve6.Buw84XZs.js"; 5import { t as require_dist } from "./dist.DzcutlwI.js"; 6import { t as isNewNav } from "./newNavUtils.BTMe6_zH.js"; 7//#region client/components/login/loginUtils.ts 8var import_createBrowserHistory = /* @__PURE__ */ __toESM(require_createBrowserHistory()); 9var import_dist = require_dist(); 10var LOGIN_REDIRECT_TO = "loginRedirectTo"; 11var REDIRECT_FROM_LOGIN = "redirectFromLogin"; 12var saveRedirectTo = () => { 13 sessionStorage.setItem(LOGIN_REDIRECT_TO, `${window.location.pathname}${window.location.search}`); 14}; 15var removeRedirectTo = () => { 16 sessionStorage.removeItem(LOGIN_REDIRECT_TO); 17}; 18var getRedirectTo = () => { 19 return sessionStorage.getItem(LOGIN_REDIRECT_TO); 20}; 21var isSsoLoginCallback = () => { 22 return new URLSearchParams(window.location.hash.replace(/^#/, "")).has("id_token"); 23}; 24var clearSsoLoginFragment = () => { 25 window.history.replaceState(null, "", `${window.location.pathname}${window.location.search}`); 26}; 27var cleanUserName = (user) => { 28 return user ? user.toLowerCase().trim() : ""; 29}; 30var redirectAfterLogin = () => { 31 const history = (0, import_createBrowserHistory.default)(); 32 const nextUrl = sessionStorage.getItem(LOGIN_REDIRECT_TO); 33 sessionStorage.removeItem(LOGIN_REDIRECT_TO); 34 const redirectTo = nextUrl || (isNewNav ? (0, import_dist.newNavRootPath)() : (0, import_dist.legacyRootPath)()); 35 sessionStorage.setItem(REDIRECT_FROM_LOGIN, "true"); 36 history.push(redirectTo); 37 window.location.reload(); 38}; 39var rememberMeEmailLocalVar = "remember-me-email"; 40//#endregion 41export { redirectAfterLogin as a, saveRedirectTo as c, isSsoLoginCallback as i, clearSsoLoginFragment as n, rememberMeEmailLocalVar as o, getRedirectTo as r, removeRedirectTo as s, cleanUserName as t }; 42 43//# sourceMappingURL=loginUtils.CS_ldZyA.js.map 44//# debugId=8f40e06c-ab40-5343-9126-4caf5b2623f4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.