import { i as useForm, n as head_default, o as vue_exports } from "../ssr.js";
import { n as server_renderer_exports, t } from "./i18n-CXLOYfyq.js";
import { t as GuestLayout_default } from "./GuestLayout-DDQdqnwb.js";
import { n as InputError_default, t as TextInput_default } from "./TextInput-PH9DZeo0.js";
import { t as InputLabel_default } from "./InputLabel-snijZdaZ.js";
import { t as PrimaryButton_default } from "./PrimaryButton-DxHqcA0d.js";
//#region resources/js/Pages/Auth/ResetPassword.vue?vue&type=script&setup=true&lang.ts
var ResetPassword_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue_exports.defineComponent)({
	__name: "ResetPassword",
	__ssrInlineRender: true,
	props: {
		email: {},
		token: {}
	},
	setup(__props) {
		const props = __props;
		const form = useForm({
			token: props.token,
			email: props.email,
			password: "",
			password_confirmation: ""
		});
		const submit = () => {
			form.post(route("password.store"), { onFinish: () => {
				form.reset("password", "password_confirmation");
			} });
		};
		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)("Reset Password") }, null, _parent, _scopeId));
						_push(`<form${_scopeId}><div${_scopeId}>`);
						_push((0, server_renderer_exports.ssrRenderComponent)(InputLabel_default, {
							for: "email",
							value: (0, vue_exports.unref)(t)("Email")
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(TextInput_default, {
							id: "email",
							type: "email",
							class: "mt-1 block w-full",
							modelValue: (0, vue_exports.unref)(form).email,
							"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).email = $event,
							required: "",
							autofocus: "",
							autocomplete: "username"
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(InputError_default, {
							class: "mt-2",
							message: (0, vue_exports.unref)(form).errors.email
						}, null, _parent, _scopeId));
						_push(`</div><div class="mt-4"${_scopeId}>`);
						_push((0, server_renderer_exports.ssrRenderComponent)(InputLabel_default, {
							for: "password",
							value: (0, vue_exports.unref)(t)("Password")
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(TextInput_default, {
							id: "password",
							type: "password",
							class: "mt-1 block w-full",
							modelValue: (0, vue_exports.unref)(form).password,
							"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).password = $event,
							required: "",
							autocomplete: "new-password"
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(InputError_default, {
							class: "mt-2",
							message: (0, vue_exports.unref)(form).errors.password
						}, null, _parent, _scopeId));
						_push(`</div><div class="mt-4"${_scopeId}>`);
						_push((0, server_renderer_exports.ssrRenderComponent)(InputLabel_default, {
							for: "password_confirmation",
							value: (0, vue_exports.unref)(t)("Confirm Password")
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(TextInput_default, {
							id: "password_confirmation",
							type: "password",
							class: "mt-1 block w-full",
							modelValue: (0, vue_exports.unref)(form).password_confirmation,
							"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).password_confirmation = $event,
							required: "",
							autocomplete: "new-password"
						}, null, _parent, _scopeId));
						_push((0, server_renderer_exports.ssrRenderComponent)(InputError_default, {
							class: "mt-2",
							message: (0, vue_exports.unref)(form).errors.password_confirmation
						}, null, _parent, _scopeId));
						_push(`</div><div class="mt-4 flex items-center justify-end"${_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)("Reset Password"))}`);
								else return [(0, vue_exports.createTextVNode)((0, vue_exports.toDisplayString)((0, vue_exports.unref)(t)("Reset Password")), 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)("Reset Password") }, null, 8, ["title"]), (0, vue_exports.createVNode)("form", { onSubmit: (0, vue_exports.withModifiers)(submit, ["prevent"]) }, [
						(0, vue_exports.createVNode)("div", null, [
							(0, vue_exports.createVNode)(InputLabel_default, {
								for: "email",
								value: (0, vue_exports.unref)(t)("Email")
							}, null, 8, ["value"]),
							(0, vue_exports.createVNode)(TextInput_default, {
								id: "email",
								type: "email",
								class: "mt-1 block w-full",
								modelValue: (0, vue_exports.unref)(form).email,
								"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).email = $event,
								required: "",
								autofocus: "",
								autocomplete: "username"
							}, null, 8, ["modelValue", "onUpdate:modelValue"]),
							(0, vue_exports.createVNode)(InputError_default, {
								class: "mt-2",
								message: (0, vue_exports.unref)(form).errors.email
							}, null, 8, ["message"])
						]),
						(0, vue_exports.createVNode)("div", { class: "mt-4" }, [
							(0, vue_exports.createVNode)(InputLabel_default, {
								for: "password",
								value: (0, vue_exports.unref)(t)("Password")
							}, null, 8, ["value"]),
							(0, vue_exports.createVNode)(TextInput_default, {
								id: "password",
								type: "password",
								class: "mt-1 block w-full",
								modelValue: (0, vue_exports.unref)(form).password,
								"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).password = $event,
								required: "",
								autocomplete: "new-password"
							}, null, 8, ["modelValue", "onUpdate:modelValue"]),
							(0, vue_exports.createVNode)(InputError_default, {
								class: "mt-2",
								message: (0, vue_exports.unref)(form).errors.password
							}, null, 8, ["message"])
						]),
						(0, vue_exports.createVNode)("div", { class: "mt-4" }, [
							(0, vue_exports.createVNode)(InputLabel_default, {
								for: "password_confirmation",
								value: (0, vue_exports.unref)(t)("Confirm Password")
							}, null, 8, ["value"]),
							(0, vue_exports.createVNode)(TextInput_default, {
								id: "password_confirmation",
								type: "password",
								class: "mt-1 block w-full",
								modelValue: (0, vue_exports.unref)(form).password_confirmation,
								"onUpdate:modelValue": ($event) => (0, vue_exports.unref)(form).password_confirmation = $event,
								required: "",
								autocomplete: "new-password"
							}, null, 8, ["modelValue", "onUpdate:modelValue"]),
							(0, vue_exports.createVNode)(InputError_default, {
								class: "mt-2",
								message: (0, vue_exports.unref)(form).errors.password_confirmation
							}, null, 8, ["message"])
						]),
						(0, vue_exports.createVNode)("div", { class: "mt-4 flex items-center justify-end" }, [(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)("Reset Password")), 1)]),
							_: 1
						}, 8, ["class", "disabled"])])
					], 32)];
				}),
				_: 1
			}, _parent));
		};
	}
});
//#endregion
//#region resources/js/Pages/Auth/ResetPassword.vue
var _sfc_setup = ResetPassword_vue_vue_type_script_setup_true_lang_default.setup;
ResetPassword_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/ResetPassword.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var ResetPassword_default = ResetPassword_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { ResetPassword_default as default };
