import{e as l,j as e,H as m,p as d,f as c,g as f,q as u}from"./vendor-laZsiqLO.js";import{G as x}from"./GuestLayout-Bncnlxxo.js";import{B as s}from"./button-B8f8jW4H.js";import{C as h,a as p,b as j,c as g,d as v}from"./card-BKDXjfy_.js";import{u as _}from"./useTranslation-BW0o-tkY.js";import"./SiteLogo-DML5Oulk.js";import"./dropdown-menu-CpMN0BZ0.js";import"./utils-RgT4yCq8.js";import"./input-CT5MkJwj.js";import"./sheet-Cp4V1hdh.js";import"./useFlashMessages-CQoLOBuv.js";import"./AdSlot-HY9FvbmL.js";import"./RightSidebarFooter-BO77c1r9.js";import"./avatar-1RNhlzAH.js";function O({status:t}){const{t:r}=_(),{post:a,processing:i}=l({}),n=o=>{o.preventDefault(),a(route("verification.send"))};return e.jsxs(x,{children:[e.jsx(m,{title:r("_verify_email_title","Email Verification")}),e.jsx("div",{className:"flex items-center justify-center min-h-[80vh] px-4",children:e.jsxs(h,{className:"w-full max-w-md shadow-lg border-0 sm:border",children:[e.jsxs(p,{className:"text-center space-y-2",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center text-primary",children:e.jsx(d,{className:"h-6 w-6"})})}),e.jsx(j,{className:"text-2xl font-bold",children:r("_verify_your_email","Verify Your Email")}),e.jsx(g,{children:r("_verify_email_desc","Thanks for signing up! Please check your inbox for a verification link.")})]}),e.jsxs(v,{children:[t==="verification-link-sent"&&e.jsx("div",{className:"mb-4 p-3 rounded-md bg-green-50 text-green-700 text-sm font-medium border border-green-200 dark:bg-green-900/20 dark:text-green-300 dark:border-green-800",children:r("_verification_link_sent","A new verification link has been sent to the email address you provided during registration.")}),e.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:r("_didnt_receive_email","If you didn't receive the email, we will gladly send you another.")}),e.jsx("form",{onSubmit:n,children:e.jsxs("div",{className:"mt-4 flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs(s,{className:"w-full sm:w-auto",disabled:i,children:[i&&e.jsx(c,{className:"me-2 h-4 w-4 animate-spin"}),r("_resend_verification","Resend Verification Email")]}),e.jsx(s,{asChild:!0,variant:"link",className:"text-muted-foreground",children:e.jsxs(f,{href:route("logout"),method:"post",as:"button",className:"flex items-center gap-2",children:[e.jsx(u,{className:"h-4 w-4"}),r("_logout","Log Out")]})})]})})]})]})})]})}export{O as default};
