PageSourceSearch

https://bolaoelite.com.br/assets/ActivateAccount-B2rW6qRE.js

js bolaoelite.com.br collected 2026-10-02 01:18:01 UTC 3,578 bytes, 2 lines download raw bytes

1import{a as c,r as s,g as m,j as e,L as x,d as o}from"./index-C-TaAGmN.js";import{u as h}from"./usePageTitle-CEBpYjDi.js";function p(){h("Ativar Conta");const[n]=c(),r=n.get("token"),[t,a]=s.useState("loading"),[l,i]=s.useState("");return s.useEffect(()=>{if(!r){a("error"),i("Link de ativação inválido. Solicite um novo e-mail de verificação.");return}m.verifyEmail(r).then(()=>a("success")).catch(d=>{a("error"),i(d.response?.data?.message||"Token inválido ou expirado. Solicite um novo e-mail de verificação.")})},[r]),e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary-50 via-white to-primary-100 px-4",children:e.jsxs("div",{className:"max-w-md w-full space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx(x,{size:"xl",showText:!1})}),e.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-primary-600 to-primary-800 bg-clip-text text-transparent",children:"Bolão Elite"})]}),e.jsxs("div",{className:"bg-white p-8 rounded-2xl shadow-xl text-center",children:[t==="loading"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"w-16 h-16 border-4 border-primary-600 border-t-transparent rounded-full animate-spin"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Ativando sua conta..."}),e.jsx("p",{className:"text-gray-500 text-sm",children:"Aguarde um momento."})]}),t==="success"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mx-auto w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mb-6",children:e.jsx("svg",{className:"w-10 h-10 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Conta ativada!"}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Seu e-mail foi verificado com sucesso. Agora você já pode fazer login e começar a jogar!"}),e.jsx(o,{to:"/login",className:"w-full inline-flex justify-center py-3.5 px-4 border border-transparent rounded-xl shadow-lg text-base font-semibold text-white bg-gradient-to-r from-primary-600 to-primary-700 hover:from-primary-700 hover:to-primary-800 transition-all duration-200",children:"Fazer login"})]}),t==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mx-auto w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mb-6",children:e.jsx("svg",{className:"w-10 h-10 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Link inválido ou expirado"}),e.jsx("p",{className:"text-gray-600 mb-8",children:l}),e.jsx(o,{to:"/verificar-email",className:"w-full inline-flex justify-center py-3.5 px-4 border border-transparent rounded-xl shadow-lg text-base font-semibold text-white bg-gradient-to-r from-primary-600 to-primary-700 hover:from-primary-700 hover:to-primary-800 transition-all duration-200 mb-4",children:"Solicitar novo e-mail"}),e.jsx("div",{className:"mt-4",children:e.jsx(o,{to:"/login",className:"text-sm font-semibold text-primary-600 hover:text-primary-700 transition-colors duration-200",children:"Voltar para o login"})})]})]})]})})}export{p as ActivateAccount};
2//# sourceMappingURL=ActivateAccount-B2rW6qRE.js.map

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.