import{N as n,Y as r,H as i,E as e,d as o,O as c}from"./index-_9oFl1CS.js";function m(){const{user:t,loading:s}=n(),a=r();return i.useEffect(()=>{!s&&!t&&a({to:"/auth"})},[t,s,a]),s?e.jsx("div",{className:"flex min-h-[calc(100svh-4rem)] items-center justify-center",style:{background:"var(--gradient-soft)"},children:e.jsxs("div",{className:"text-center",children:[e.jsx(o,{variant:"mark",size:56,className:"mx-auto mb-4 drop-shadow-md animate-[pulse-soft_2s_ease-in-out_infinite]"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Se încarcă..."})]})}):t?e.jsx(c,{}):null}export{m as component};
