transcriptor-web/bootstrap/ssr/assets/VerifyEmail--hB-n-6S.js
2025-04-05 15:58:14 +02:00

57 lines
2.6 KiB
JavaScript

import { jsxs, jsx } from "react/jsx-runtime";
import { useForm, Head, Link } from "@inertiajs/react";
import classNames from "classnames";
import { u as useRoute } from "../app.js";
import { A as AuthenticationCard } from "./AuthenticationCard--MCzdtHR.js";
import { P as PrimaryButton } from "./PrimaryButton-C2B8UWiv.js";
import "axios";
import "lodash";
import "react-dom/client";
import "react";
import "./AuthenticationCardLogo-CZgVhhfE.js";
function VerifyEmail({ status }) {
const route = useRoute();
const form = useForm({});
const verificationLinkSent = status === "verification-link-sent";
function onSubmit(e) {
e.preventDefault();
form.post(route("verification.send"));
}
return /* @__PURE__ */ jsxs(AuthenticationCard, { children: [
/* @__PURE__ */ jsx(Head, { title: "Email Verification" }),
/* @__PURE__ */ jsx("div", { className: "mb-4 text-sm text-gray-600 dark:text-gray-400", children: "Before continuing, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another." }),
verificationLinkSent && /* @__PURE__ */ jsx("div", { className: "mb-4 font-medium text-sm text-green-600 dark:text-green-400", children: "A new verification link has been sent to the email address you provided during registration." }),
/* @__PURE__ */ jsx("form", { onSubmit, children: /* @__PURE__ */ jsxs("div", { className: "mt-4 flex items-center justify-between", children: [
/* @__PURE__ */ jsx(
PrimaryButton,
{
className: classNames({ "opacity-25": form.processing }),
disabled: form.processing,
children: "Resend Verification Email"
}
),
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
Link,
{
href: route("profile.show"),
className: "underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800",
children: "Edit Profile"
}
) }),
/* @__PURE__ */ jsx(
Link,
{
href: route("logout"),
method: "post",
as: "button",
className: "underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800 ml-2",
children: "Log Out"
}
)
] }) })
] });
}
export {
VerifyEmail as default
};