1import{j as e}from"./framer-DUyP8Svs.js";import{O as x,a8 as p,N as h,B as b,z as r,ab as f}from"./index-tzro_5vl.js";import{b as v,u as j,a as c,L as k}from"./react-BUPFSq0h.js";import{A as N,a as w,c as L}from"./constants-PpBv9nKM.js";import"./dnd-CHbJIMpc.js";import"./arrow-left-BPENlDO4.js";import"./createLucideIcon-DEatH7sS.js";const B=()=>{const n=v(),m=j(),t=new URLSearchParams(m.search).get("from")==="discover",[i,l]=c.useState(!1),[s,d]=c.useState("");async function u(a){if(a.preventDefault(),!s)return r.error("Please enter your email address.");try{l(!0);const o={email:s},{data:g}=await f(o);r.success(g.data||"Reset link sent successfully."),setTimeout(()=>{n(t?"/discover/login":"/vendor/login")},2500)}catch(o){r.error(o.response?.data?.data||"Unable to send reset link.")}finally{l(!1)}}return e.jsx(N,{backgroundImage:L,backgroundPosition:"center",overlayClassName:"bg-gradient-to-br from-neutral/88 via-neutral/72 to-neutral/42",onBack:()=>n(-1),logoSrc:t?"/images/logo/WhiteLogo.png":"/images/logo/logo-main.webp",logoAlt:"Where To",tagline:w,children:e.jsxs("div",{className:"bg-base-100 flex flex-col gap-8 rounded-[2rem] px-6 pt-12 pb-8 sm:px-10",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"font-outfit text-4xl font-bold tracking-tight sm:text-5xl",children:"Password Reset"}),e.jsx("p",{className:"text-base-content-subtle mt-2 text-sm font-medium tracking-wide",children:"Enter your email to receive a password reset link"})]}),e.jsxs("form",{onSubmit:u,className:"space-y-6",children:[e.jsxs(x,{children:[e.jsx(p,{className:"text-base-content-subtle mb-1.5 text-xs font-semibold tracking-widest uppercase",children:"Email address"}),e.jsx(h,{id:"email",name:"email",type:"email",size:"lg",className:"auth-input",placeholder:"Enter email address",value:s,onChange:a=>d(a.target.value),isDisabled:i,autoComplete:"email",autoFocus:!0})]}),e.jsx(b,{type:"submit",colorScheme:"primary",modifier:"block",size:"lg",isLoading:i,loadingText:"Sending link...",children:"Send Reset Link"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-base-content/55 text-xs font-semibold tracking-[0.22em] uppercase",children:"Not registered yet?"}),e.jsxs(k,{to:t?"/discover/sign-up":"/vendor/sign-up",className:"text-accent mt-2 inline-flex items-center gap-1.5 text-sm font-semibold",children:["Register now",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]})})};export{B 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.