import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Gy as t,kp as n}from"./index-DDwwBb9e.js";var r=e(t()),i={user:`users`,users:`users`,organization:`organizations`,organizations:`organizations`,project:`projects`,projects:`projects`,subscription:`subscriptions`,subscriptions:`subscriptions`};function a(){let e=n();return(0,r.useEffect)(()=>{if(typeof window>`u`)return;let{pathname:t,search:n,hash:r}=window.location,[a,...o]=(t.startsWith(`/admin`)?t.slice(6).replace(/^\/+/,``):``).split(`/`).filter(Boolean),s=`/ops/backoffice`;if(a){let e=i[a.toLowerCase()];e&&(s=`/ops/backoffice/${e}`,o.length>0&&(s+=`/${o.join(`/`)}`))}e.replace(`${s}${n}${r}`)},[e]),null}export{a as default};
//# sourceMappingURL=admin-BMDCWMLe.js.map