import{j as t}from"./react-WWJ_A68P.js";import{a as o}from"./react-router-dom-B4YB8MrN.js";import{u as n,P as i}from"./index-ely993O6.js";import{u as m,j as u}from"./react-router-BOGNRwMt.js";const c=r=>a=>{const{isLogin:s}=n(),{pathname:e}=m();return s?t.jsx(r,{...a}):t.jsx(u,{to:{pathname:i.AUTH.LOGIN,search:o({returnUrl:e}).toString()},replace:!0})},x=c;export{x as W};