PageSourceSearch

https://grails.replit.app/assets/professional-firm-claim-verify-YaAR4kJe.js

js grails.replit.app collected 2026-10-03 03:58:17 UTC 2,125 bytes, 1 lines download raw bytes

1import{a as i,j as e}from"./vendor-query-DZa9SCHy.js";import{J as l,f as m,g as x,Y as f,V as h,L as o,B as n}from"./index-CcZuG2N4.js";import{C as u}from"./circle-alert-CyW1Q6tF.js";import"./vendor-pdf-DJgNJ3IV.js";import"./vendor-ui-Dqlq2j-a.js";import"./vendor-recharts-LHRXznbX.js";function w(){const[s,a]=i.useState("loading"),[c,r]=i.useState("");return i.useEffect(()=>{const d=new URLSearchParams(window.location.search).get("token");if(!d){a("error"),r("Missing verification token.");return}l("POST","/api/professional-claims/verify",{token:d}).then(t=>t.json()).then(t=>{a("ok"),r(t.message||"Email verified.")}).catch(t=>{a("error"),r(t.message||"Verification failed.")})},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center px-4",children:e.jsx(m,{className:"max-w-md w-full",children:e.jsxs(x,{className:"p-8 text-center space-y-4",children:[s==="loading"&&e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"w-10 h-10 animate-spin mx-auto text-primary"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Verifying your email..."})]}),s==="ok"&&e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"w-12 h-12 mx-auto text-emerald-500"}),e.jsx("h1",{className:"text-xl font-semibold",children:"Email confirmed"}),e.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"text-verify-message",children:c}),e.jsxs("div",{className:"flex gap-2 justify-center pt-2",children:[e.jsx(o,{href:"/dashboard?tab=my-professional-firm",children:e.jsx(n,{"data-testid":"button-go-dashboard",children:"Go to dashboard"})}),e.jsx(o,{href:"/directory",children:e.jsx(n,{variant:"outline","data-testid":"button-browse",children:"Browse directory"})})]})]}),s==="error"&&e.jsxs(e.Fragment,{children:[e.jsx(u,{className:"w-12 h-12 mx-auto text-destructive"}),e.jsx("h1",{className:"text-xl font-semibold",children:"Verification failed"}),e.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"text-verify-error",children:c}),e.jsx(o,{href:"/directory",children:e.jsx(n,{variant:"outline","data-testid":"button-back",children:"Back to directory"})})]})]})})})}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.