2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
import{j as r,H as d,F as n}from"./app-Ajql0Lt4.js";import{q as m,B as u,l as c}from"./createLucideIcon-B_iAwCmA.js";import{I as p}from"./input-error-Drp3HhtP.js";import{T as h}from"./text-link-D6DcgXYJ.js";import{I as f}from"./input-B0_NTiRR.js";import{L as x}from"./label-D8DO87nw.js";import{A as g}from"./auth-layout-BA0f4QcD.js";import{L as j}from"./loader-circle-C6-iW413.js";import"./app-B4XVefei.js";import"./index-em-EQZzp.js";import"./app-logo-icon-B9D8MR-Y.js";const t=e=>({url:t.url(e),method:"get"});t.definition={methods:["get","head"],url:"/forgot-password"};t.url=e=>t.definition.url+m(e);t.get=e=>({url:t.url(e),method:"get"});t.head=e=>({url:t.url(e),method:"head"});const s=e=>({action:t.url(e),method:"get"});s.get=e=>({action:t.url(e),method:"get"});s.head=e=>({action:t.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});t.form=s;const o=e=>({url:o.url(e),method:"post"});o.definition={methods:["post"],url:"/forgot-password"};o.url=e=>o.definition.url+m(e);o.post=e=>({url:o.url(e),method:"post"});const i=e=>({action:o.url(e),method:"post"});i.post=e=>({action:o.url(e),method:"post"});o.form=i;const y={store:o};function C({status:e}){return r.jsxs(g,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[r.jsx(d,{title:"Forgot password"}),e&&r.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:e}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(n,{...y.store.form(),children:({processing:a,errors:l})=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid gap-2",children:[r.jsx(x,{htmlFor:"email",children:"Email address"}),r.jsx(f,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),r.jsx(p,{message:l.email})]}),r.jsx("div",{className:"my-6 flex items-center justify-start",children:r.jsxs(u,{className:"w-full",disabled:a,"data-test":"email-password-reset-link-button",children:[a&&r.jsx(j,{className:"h-4 w-4 animate-spin"}),"Email password reset link"]})})]})}),r.jsxs("div",{className:"space-x-1 text-center text-sm text-muted-foreground",children:[r.jsx("span",{children:"Or, return to"}),r.jsx(h,{href:c(),children:"log in"})]})]})]})}export{C as default};
|