import{getLocaleFromPathname as l}from"@redocly/theme/core/utils";import{buildLoginUrl as a}from"../../../utils/auth/build-login-url.js";import{getLoginUrlWithRedirect as c}from"../utils.js";function m(o,t){const i=o.globalData.auth?.devLogin,r=o.getConfig().ssoDirect||{},e=Object.keys(r);if(i||e.length>1)return c(t);if(e.length===1){const n=o.globalData.l10n;return a(e[0],l(t,n?.defaultLocale,n?.locales),t)}}export{m as getRedirectLoginUrl};
