PageSourceSearch

https://bluerevolution-cc.manus.space/assets/VerifyMagicLink-B8F1U8x0.js

js bluerevolution-cc.manus.space collected 2026-10-03 05:02:14 UTC 3,817 bytes, 6 lines download raw bytes

1import{j as e}from"./editor-BhGk7_S1.js";import{b as a}from"./leaflet-DcfcX7a_.js";import{c as d,d as x,b as g,a as f}from"./index-BjIHAQhU.js";import{B as m}from"./button-CK76V7Lo.js";import{u as p}from"./useSessionId-BP6UZxE1.js";import{C as h}from"./circle-check-big-Buk3NWu_.js";import"./mapbox-BPFQ-Sfv.js";import"./trpc-DqtxhgQo.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const u=d("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);function v(){const[,n]=x(),[s,i]=a.useState("verifying"),[l,c]=a.useState("");p();const o=g.auth.verifyMagicLink.useMutation({onSuccess:t=>{i("success"),setTimeout(()=>{window.location.href=t.redirectTo||"/"},1e3)},onError:t=>{i("error"),c(t.message||"Invalid or expired magic link")}});return a.useEffect(()=>{const r=new URLSearchParams(window.location.search).get("token");if(!r){i("error"),c("No token provided");return}o.mutate({token:r})},[]),e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:44",className:"min-h-screen flex items-center justify-center bg-[#0a0e27] p-4",children:[e.jsx("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:45",className:"starfield"}),e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:47",className:"relative z-10 w-full max-w-md bg-[#0a0e27]/95 backdrop-blur-xl border border-white/10 rounded-2xl shadow-2xl p-8",children:[s==="verifying"&&e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:49",className:"flex flex-col items-center gap-4 text-center",children:[e.jsx(f,{"data-loc":"client/src/pages/VerifyMagicLink.tsx:50",className:"w-16 h-16 animate-spin text-blue-400"}),e.jsx("h2",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:51",className:"text-2xl font-bold text-white",children:"Verifying your link..."}),e.jsx("p",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:52",className:"text-white/70",children:"Please wait while we sign you in"})]}),s==="success"&&e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:57",className:"flex flex-col items-center gap-4 text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:58",className:"w-16 h-16 rounded-full bg-green-500/20 border border-green-500/30 flex items-center justify-center",children:e.jsx(h,{"data-loc":"client/src/pages/VerifyMagicLink.tsx:59",className:"w-10 h-10 text-green-400"})}),e.jsx("h2",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:61",className:"text-2xl font-bold text-white",children:"Success!"}),e.jsx("p",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:62",className:"text-white/70",children:"You're now signed in. Redirecting..."})]}),s==="error"&&e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:67",className:"flex flex-col items-center gap-6 text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:68",className:"w-16 h-16 rounded-full bg-red-500/20 border border-red-500/30 flex items-center justify-center",children:e.jsx(u,{"data-loc":"client/src/pages/VerifyMagicLink.tsx:69",className:"w-10 h-10 text-red-400"})}),e.jsxs("div",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:71",children:[e.jsx("h2",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:72",className:"text-2xl font-bold text-white mb-2",children:"Verification Failed"}),e.jsx("p",{"data-loc":"client/src/pages/VerifyMagicLink.tsx:73",className:"text-white/70 text-sm",children:l})]}),e.jsx(m,{"data-loc":"client/src/pages/VerifyMagicLink.tsx:75",onClick:()=>n("/"),className:"bg-gradient-to-r from-blue-600 to-cyan-600 hover:from-blue-700 hover:to-cyan-700 text-white",children:"Return to Home"})]})]})]})}export{v 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.