import { i as useForm, n as head_default, o as vue_exports, r as link_default } from "../ssr.js";
import { n as server_renderer_exports, t } from "./i18n-CXLOYfyq.js";
import { t as GuestLayout_default } from "./GuestLayout-DDQdqnwb.js";
import { t as PrimaryButton_default } from "./PrimaryButton-DxHqcA0d.js";
//#region resources/js/Pages/Auth/VerifyEmail.vue?vue&type=script&setup=true&lang.ts
var VerifyEmail_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue_exports.defineComponent)({
	__name: "VerifyEmail",
	__ssrInlineRender: true,
	props: { status: {} },
	setup(__props) {
		const props = __props;
		const form = useForm({});
		const submit = () => {
			form.post(route("verification.send"));
		};
		const verificationLinkSent = (0, vue_exports.computed)(() => props.status === "verification-link-sent");
		return (_ctx, _push, _parent, _attrs) => {
			_push((0, server_renderer_exports.ssrRenderComponent)(GuestLayout_default, _attrs, {
				default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
					if (_push) {
						_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(head_default), { title: (0, vue_exports.unref)(t)("Email Verification") }, null, _parent, _scopeId));
						_push(`<div class="mb-4 text-sm text-gray-600 dark:text-gray-400"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Thanks for signing up! Before getting started, 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."))}</div>`);
						if (verificationLinkSent.value) _push(`<div class="mb-4 text-sm font-medium text-green-600 dark:text-green-400"${_scopeId}>${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("A new verification link has been sent to the email address you provided during registration."))}</div>`);
						else _push(`<!---->`);
						_push(`<form${_scopeId}><div class="mt-4 flex items-center justify-between"${_scopeId}>`);
						_push((0, server_renderer_exports.ssrRenderComponent)(PrimaryButton_default, {
							class: { "opacity-25": (0, vue_exports.unref)(form).processing },
							disabled: (0, vue_exports.unref)(form).processing
						}, {
							default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
								if (_push) _push(`${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Resend Verification Email"))}`);
								else return [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Resend Verification Email")), 1)];
							}),
							_: 1
						}, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(link_default), {
							href: _ctx.route("logout"),
							method: "post",
							as: "button",
							class: "rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800"
						}, {
							default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
								if (_push) _push(`${(0, server_renderer_exports.ssrInterpolate)((0, vue_exports.unref)(t)("Log Out"))}`);
								else return [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Log Out")), 1)];
							}),
							_: 1
						}, _parent, _scopeId));
						_push(`</div></form>`);
					} else return [
						(0, vue_exports.createVNode)((0, vue_exports.unref)(head_default), { title: (0, vue_exports.unref)(t)("Email Verification") }, null, 8, ["title"]),
						(0, vue_exports.createVNode)("div", { class: "mb-4 text-sm text-gray-600 dark:text-gray-400" }, (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Thanks for signing up! Before getting started, 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.")), 1),
						verificationLinkSent.value ? ((0, vue_exports.openBlock)(), (0, vue_exports.createBlock)("div", {
							key: 0,
							class: "mb-4 text-sm font-medium text-green-600 dark:text-green-400"
						}, (0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("A new verification link has been sent to the email address you provided during registration.")), 1)) : (0, vue_exports.createCommentVNode)("", true),
						(0, vue_exports.createVNode)("form", { onSubmit: (0, vue_exports.withModifiers)(submit, ["prevent"]) }, [(0, vue_exports.createVNode)("div", { class: "mt-4 flex items-center justify-between" }, [(0, vue_exports.createVNode)(PrimaryButton_default, {
							class: { "opacity-25": (0, vue_exports.unref)(form).processing },
							disabled: (0, vue_exports.unref)(form).processing
						}, {
							default: (0, vue_exports.withCtx)(() => [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Resend Verification Email")), 1)]),
							_: 1
						}, 8, ["class", "disabled"]), (0, vue_exports.createVNode)((0, vue_exports.unref)(link_default), {
							href: _ctx.route("logout"),
							method: "post",
							as: "button",
							class: "rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800"
						}, {
							default: (0, vue_exports.withCtx)(() => [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Log Out")), 1)]),
							_: 1
						}, 8, ["href"])])], 32)
					];
				}),
				_: 1
			}, _parent));
		};
	}
});
//#endregion
//#region resources/js/Pages/Auth/VerifyEmail.vue
var _sfc_setup = VerifyEmail_vue_vue_type_script_setup_true_lang_default.setup;
VerifyEmail_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = (0, vue_exports.useSSRContext)();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Pages/Auth/VerifyEmail.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var VerifyEmail_default = VerifyEmail_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { VerifyEmail_default as default };
