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