2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{u,b as x,j as e,H as f,d as h}from"./vendor-BKmmeuxg.js";import{I as j}from"./input-error-LaPr_4wd.js";import{T as g}from"./text-link-Tx06gMWU.js";import{B as b}from"./button-BpNwv2aE.js";import{I as v}from"./input-DM0goJrn.js";import{L as N}from"./label-HmIcv5Yx.js";import{A as _}from"./auth-layout-BJbsflAX.js";import"./utils-DxSsnXxD.js";import"./index-WW_1X1qx.js";import"./app-logo-CmnEIwal.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";function T({status:r}){const{props:m}=u(),{auth:t,input:a,button:o}=m.translate,{data:l,setData:n,post:d,processing:i,errors:p}=x({email:""}),c=s=>{s.preventDefault(),d(route("password.email"))};return e.jsxs(_,{title:t.forgot_password,description:t.forgot_description,children:[e.jsx(f,{title:t.forgot_password}),r&&e.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:r}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("form",{onSubmit:c,children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(N,{htmlFor:"email",children:a.email}),e.jsx(v,{id:"email",type:"email",name:"email",autoComplete:"off",value:l.email,autoFocus:!0,onChange:s=>n("email",s.target.value),placeholder:a.email_placeholder}),e.jsx(j,{message:p.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(b,{className:"w-full",disabled:i,children:[i&&e.jsx(h,{className:"h-4 w-4 animate-spin"}),o.submit]})})]}),e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[e.jsx("span",{children:t.return_to_login}),e.jsx(g,{href:route("login"),children:o.login})]})]})]})}export{T as default};
|