transcriptor-web/bootstrap/ssr/assets/ForgotPassword-BhYnh0qc.js
2025-04-05 15:58:14 +02:00

58 lines
2.3 KiB
JavaScript

import { jsxs, jsx } from "react/jsx-runtime";
import { useForm, Head } from "@inertiajs/react";
import classNames from "classnames";
import { u as useRoute } from "../app.js";
import { A as AuthenticationCard } from "./AuthenticationCard--MCzdtHR.js";
import { I as InputLabel } from "./InputLabel-DhqxoV6M.js";
import { P as PrimaryButton } from "./PrimaryButton-C2B8UWiv.js";
import { T as TextInput, I as InputError } from "./TextInput-CMJy2hIv.js";
import "axios";
import "lodash";
import "react-dom/client";
import "react";
import "./AuthenticationCardLogo-CZgVhhfE.js";
function ForgotPassword({ status }) {
const route = useRoute();
const form = useForm({
email: ""
});
function onSubmit(e) {
e.preventDefault();
form.post(route("password.email"));
}
return /* @__PURE__ */ jsxs(AuthenticationCard, { children: [
/* @__PURE__ */ jsx(Head, { title: "Forgot Password" }),
/* @__PURE__ */ 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." }),
status && /* @__PURE__ */ jsx("div", { className: "mb-4 font-medium text-sm text-green-600 dark:text-green-400", children: status }),
/* @__PURE__ */ jsxs("form", { onSubmit, children: [
/* @__PURE__ */ jsxs("div", { children: [
/* @__PURE__ */ jsx(InputLabel, { htmlFor: "email", children: "Email" }),
/* @__PURE__ */ jsx(
TextInput,
{
id: "email",
type: "email",
className: "mt-1 block w-full",
value: form.data.email,
onChange: (e) => form.setData("email", e.currentTarget.value),
required: true,
autoFocus: true
}
),
/* @__PURE__ */ jsx(InputError, { className: "mt-2", message: form.errors.email })
] }),
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end mt-4", children: /* @__PURE__ */ jsx(
PrimaryButton,
{
className: classNames({ "opacity-25": form.processing }),
disabled: form.processing,
children: "Email Password Reset Link"
}
) })
] })
] });
}
export {
ForgotPassword as default
};