import{withPathPrefix as u}from"@redocly/theme/core/utils";import{DEFAULT_PROVIDERS_LOGIN_URLS as f,ServerRoutes as a}from"../../constants/common.js";import{appendQueryParams as P}from"../url/append-query-params.js";function c(r,e,o,t,i={}){if(!r)return;const n=f?.[e]||u(a.IDP_LOGIN),m={idpId:r,localePrefix:o,redirectTo:t||"",...i};return P(n,m)}export{c as buildLoginUrl};
