1import{u as x,g,r as n,j as e,m as s,Q as h,v as p,U as f,S as j}from"./index-C34-5sQl.js";import{u as L}from"./use-animation-BK1myD_Q.js";const w=()=>{const{t}=x(),r=g(),[l,c]=n.useState(t("LogoutLoading.title")),i=L(),d=3;return n.useEffect(()=>{i.start({width:"100%",transition:{duration:d,ease:"easeInOut"}}),(async()=>{try{const a=[t("LogoutLoading.step1"),t("LogoutLoading.step2"),t("LogoutLoading.step3"),t("LogoutLoading.redirecting")];let o=0;const m=setInterval(()=>{o<a.length-1&&(o++,c(a[o]))},800);await j.performLogout(),clearInterval(m),setTimeout(()=>{r("/login?loggedOut=true&error=true",{replace:!0})},3500)}catch{try{localStorage.clear(),sessionStorage.clear()}catch{}setTimeout(()=>{r("/login?loggedOut=true&error=true",{replace:!0})},3500)}})()},[t,i]),e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-[#1E293B] to-[#0F172A] flex flex-col items-center justify-center p-4",children:[e.jsx(s.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"w-full max-w-md bg-[#1E293B]/50 backdrop-blur-xl border border-[#334155]/50 rounded-xl p-8 shadow-xl shadow-[#0F172A]/30",children:e.jsxs("div",{className:"flex flex-col items-center justify-center text-center space-y-6",children:[e.jsx(s.div,{initial:{scale:.8,opacity:0}
1,animate:{scale:1,opacity:1},transition:{delay:.2,duration:.3},className:"w-20 h-20 flex items-center justify-center rounded-full p-5 shadow-lg bg-gradient-to-r from-[#DC2626] to-[#B91C1C]",children:e.jsx(h,{className:"h-10 w-10 text-white"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-bold text-white",children:"SoleadPro"}),e.jsx("p",{className:"text-[#94A3B8] text-sm",children:t("LogoutLoading.subtitle")})]}),e.jsx("h2",{className:"text-xl font-semibold text-white",children:t("LogoutLoading.title")}),e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(s.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"text-[#DC2626] mr-3",children:e.jsx(p,{size:24})}),e.jsx("p",{className:"text-[#94A3B8]",children:l})]}),e.jsx("div",{className:"w-full bg-[#0F172A]/30 h-2 rounded-full overflow-hidden",children:e.jsx(s.div,{className:"h-full bg-gradient-to-r from-[#DC2626] to-[#B91C1C]",animate:i,initial:{width:0}})}),e.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[e.jsx(f,{className:"h-4 w-4 text-[#22c55e]"}),e.jsx("p",{className:"text-[#94A3B8] text-sm",children:t("LogoutLoading.security")})]}),e.jsx("p",{className:"text-[#94A3B8] text-sm",children:t("LogoutLoading.doNotClose")})]})}),e.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(20)].map((u,a)=>e.jsx(s.div,{className:"absolute w-1 h-1 bg-[#334155]/30 rounded-full",initial:{x:Math.random()*window.innerWidth,y:window.innerHeight+10},animate:{y:-10,opacity:[0,1,0]},transition:{duration:Math.random()*3+2,repeat:1/0,delay:Math.random()*2}},a))})]})};export{w as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.