import{d as u,x as _,a as n,o as m,w as i,g as a,h as c,b as d,j as o,u as s,i as g,k as x,f as w,l}from"./app-Cb9hmj6k.js";import{_ as y}from"./InputError.vue_vue_type_script_setup_true_lang-C7IEX2zR.js";import{_ as V}from"./TextLink.vue_vue_type_script_setup_true_lang-B1XyL2_M.js";import{_ as b}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-DKWl2XLX.js";import{_ as k}from"./Input.vue_vue_type_script_setup_true_lang-t_rUv_4v.js";import{_ as v}from"./Label.vue_vue_type_script_setup_true_lang-CCRw-4E2.js";import{L as $,_ as B}from"./AuthLayout.vue_vue_type_script_setup_true_lang-BIusrmve.js";import"./index-hboZUdbT.js";const C={key:0,class:"mb-4 text-center text-sm font-medium text-green-600"},N={class:"space-y-6"},h={class:"grid gap-2"},j={class:"my-6 flex items-center justify-start"},L={class:"space-x-1 text-center text-sm text-muted-foreground"},z=u({__name:"ForgotPassword",props:{status:{}},setup(S){const t=_({email:""}),f=()=>{t.post(route("password.email"))};return(r,e)=>(m(),n(B,{title:"Забыли пароль",description:"Введите свой адрес электронной почты, чтобы получить ссылку для сброса пароля"},{default:i(()=>[a(s(g),{title:"Забыли пароль"}),r.status?(m(),c("div",C,x(r.status),1)):d("",!0),o("div",N,[o("form",{onSubmit:w(f,["prevent"])},[o("div",h,[a(s(v),{for:"email"},{default:i(()=>e[1]||(e[1]=[l("Адрес электронной почты")])),_:1,__:[1]}),a(s(k),{id:"email",type:"email",name:"email",autocomplete:"off",modelValue:s(t).email,"onUpdate:modelValue":e[0]||(e[0]=p=>s(t).email=p),autofocus:"",placeholder:"email@example.com"},null,8,["modelValue"]),a(y,{message:s(t).errors.email},null,8,["message"])]),o("div",j,[a(s(b),{class:"w-full",disabled:s(t).processing},{default:i(()=>[s(t).processing?(m(),n(s($),{key:0,class:"h-4 w-4 animate-spin"})):d("",!0),e[2]||(e[2]=l(" Ссылка для сброса пароля по электронной почте "))]),_:1,__:[2]},8,["disabled"])])],32),o("div",L,[e[4]||(e[4]=o("span",null,"Или вернитесь к",-1)),a(V,{href:r.route("login")},{default:i(()=>e[3]||(e[3]=[l("авторизации")])),_:1,__:[3]},8,["href"])])])]),_:1}))}});export{z as default};
