import{hn as s,iB as r,fH as i,bo as u}from"./strapi-ye6TfKul.js";const h=({children:t})=>{const o=s("PrivateRoute",a=>a.token),{pathname:e,search:n}=r();return o!==null?t:i.jsx(u,{to:{pathname:"/auth/login",search:e!=="/"?`?redirectTo=${encodeURIComponent(`${e}${n}`)}`:void 0}})};export{h as P};
