transcriptor-web/public/build/assets/ForgotPassword-D6Y0jXzy.js
2025-04-05 15:58:14 +02:00

2 lines
1.3 KiB
JavaScript

import{u as i,m,j as e,L as l}from"./app-43FwoUKv.js";import{c as n}from"./index-C3aXnQRR.js";import{A as d}from"./AuthenticationCard-CH5UMK9r.js";import{I as u}from"./InputLabel-Cl3yDvOx.js";import{P as c}from"./PrimaryButton-Gixff4KF.js";import{T as p,I as x}from"./TextInput-CdoY_jBz.js";import"./AuthenticationCardLogo-DxGGqaxw.js";function b({status:a}){const r=i(),s=m({email:""});function o(t){t.preventDefault(),s.post(r("password.email"))}return e.jsxs(d,{children:[e.jsx(l,{title:"Forgot Password"}),e.jsx("div",{className:"mb-4 text-sm text-gray-600 dark:text-gray-400",children:"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one."}),a&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600 dark:text-green-400",children:a}),e.jsxs("form",{onSubmit:o,children:[e.jsxs("div",{children:[e.jsx(u,{htmlFor:"email",children:"Email"}),e.jsx(p,{id:"email",type:"email",className:"mt-1 block w-full",value:s.data.email,onChange:t=>s.setData("email",t.currentTarget.value),required:!0,autoFocus:!0}),e.jsx(x,{className:"mt-2",message:s.errors.email})]}),e.jsx("div",{className:"flex items-center justify-end mt-4",children:e.jsx(c,{className:n({"opacity-25":s.processing}),disabled:s.processing,children:"Email Password Reset Link"})})]})]})}export{b as default};