Files
soorya-carpet/public/build/assets/forgot-password-DvlnxC4k.js
admin eba9e5f182
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
chore: frontend build
2025-10-27 15:27:26 +05:45

2 lines
2.2 KiB
JavaScript

import{j as r,H as d,F as n}from"./app-C6SiEMGn.js";import{q as m,B as u,l as c}from"./createLucideIcon-CPpF-2ww.js";import{I as p}from"./input-error-DHxzqysv.js";import{T as h}from"./text-link-DNnNqMs9.js";import{I as f}from"./input-DYhKGVpQ.js";import{L as x}from"./label-BB9HLxkE.js";import{A as g}from"./auth-layout-CgoifTok.js";import{L as j}from"./loader-circle-BPtK_d4m.js";import"./app-6D7Y1jSv.js";import"./index-B7t1D_co.js";import"./app-logo-icon-B_KiS1IV.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};