import{getLocaleFromPathname as i}from"@redocly/theme/core/utils";const l=(o,r,t)=>{const{teams:a=[],idpAccessToken:s,claims:e,isAuthenticated:d}=r?.get("auth")||{};return{variables:{rbac:{teams:a},user:e,remoteAddr:r?.req.raw.context.remoteAddr,idpAccessToken:s,lang:i(o.slug,t?.defaultLocale,t?.locales)},serverPropsUser:{teams:a,claims:e,idpAccessToken:s,email:e?.email,idpId:e?.idpId,isAuthenticated:d}}};export{l as prepareContextVariables};
