1import{u as p,j as e,L as i}from"./index-CUnD0zRX.js";import{B as n}from"./button-xYvlBXNV.js";import{C as m,b as h,c as x,d as u,a as f}from"./card-CPmLZw49.js";import{C as g}from"./circle-check-0FSlN9jk.js";import{C as k}from"./circle-alert-DzvVQUWo.js";function w(){const[a]=p(),l=a.get("status")||"approved",t=a.get("name")||"",s=a.get("email")||"",d=a.get("message")||"",o={approved:{title:"Approved",body:`${t||"This rep"}${s?` (${s})`:""} is now an OcuPath360 distributor rep. A welcome email with a password link has been sent.`,ok:!0},already:{title:"Already Approved",body:`${t||"This rep"}${s?` (${s})`:""} has already been approved as a distributor rep.`,ok:!0},invalid:{title:"Invalid Link",body:"This approval link is invalid or has expired.",ok:!1},missing:{title:"Missing Token",body:"No approval token was provided in the link.",ok:!1},error:{title:"Something Went Wrong",body:d||"An unexpected error occurred. Please try again.",ok:!1}},r=o[l]||o.error,c=r.ok?g:k;return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:e.jsxs(m,{className:"max-w-lg w-full",children:[e.jsxs(h,{className:"text-center",children:[e.jsx("div",{className:"mx-auto mb-3",children:e.jsx(c,{className:`w-12 h-12 ${r.ok?"text-emerald-500":"text-red-500"}`})}),e.jsx(x,{className:"text-2xl",children:r.title}),e.jsx(u,{className:"text-base pt-2",children:r.body})]}),e.jsxs(f,{className:"flex flex-col sm:flex-row gap-3 justify-center pt-2",children:[e.jsx(n,{asChild:!0,children:e.jsx(i,{to:"/rep/auth?brand=ocupath360",children:"Go to Rep Portal"})}),e.jsx(n,{variant:"outline",asChild:!0,children:e.jsx(i,{to:"/dryeyerevenue",children:"Back to OcuPath360"})})]})]})})}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.