1import{a as r,j as e}from"./index-DtztfY4P.js";import{b as n}from"./react-vendor-CXpynOok.js";function c(){const[s,t]=n.useState("verifying");return n.useEffect(()=>{const i=new URLSearchParams(window.location.search).get("token");if(!i){t("error");return}r.post("/auth/verify-email",{token:i}).then(()=>t("ok")).catch(()=>t("error"))},[]),e.jsx("div",{className:"login",children:e.jsxs("div",{className:"login-card",style:{textAlign:"center"},children:[e.jsx("div",{className:"login-mark",children:"R"}),e.jsx("div",{className:"login-title",children:"Riggr"}),e.jsx("div",{className:"login-sub",children:"E-Mail-Bestätigung"}),s==="verifying"&&e.jsx("p",{className:"tsm muted",style:{marginTop:"1rem"},children:"E-Mail wird bestätigt â¦"}),s==="ok"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"badge b-green",style:{display:"block",padding:"0.6rem 0.8rem",margin:"1rem 0"},children:"â E-Mail-Adresse bestätigt"}),e.jsx("p",{className:"tsm muted mb2",children:"Dein Konto ist jetzt aktiv. Du kannst dich anmelden."}),e.jsx("a",{className:"btn btn-accent btn-full",href:"/login",children:"Zur Anmeldung"})]}),s==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"login-error",style:{marginTop:"1rem"},children:"Bestätigungslink ungültig oder bereits verwendet."}),e.jsx("a",{className:"btn btn-outline btn-full",href:"/login",children:"Zur Anmeldung"})]})]})})}export{c 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.