import{T as y}from"./Input-b786da58.js";import{T as v}from"./Label-fda955a2.js";import{L as k}from"./LoadingButton-1a262643.js";import{T as L}from"./ValidationErrors-73f2ddd2.js";import{T}from"./AuthenticationCard-c0b50c6c.js";import{J as V}from"./AuthenticationCardLogo-9d12c785.js";import{_ as B,r as t,o as d,d as C,e as n,g as o,a as r,t as i,c as N,b as x,h as u,w as E}from"./app-32ed258c.js";import"./ApplicationMark-984b256c.js";const A={components:{TecInput:y,TecLabel:v,LoadingButton:k,TecValidationErrors:L,TecAuthenticationCard:T,TecAuthenticationCardLogo:V},props:{status:String},data(){return{form:this.$inertia.form({email:""})}},created(){document.title=this.$t("Forgot Password")+" • "+this.$settings.name},mounted(){document.body.classList.add("spinner-normal")},unmounted(){document.body.classList.remove("spinner-normal")},methods:{submit(){this.form.post(this.route("password.email"))}}},F={class:"mb-4 text-gray-600"},J={key:0,class:"mb-4 font-medium text-green-600"},P={class:"w-full mt-4"};function S(e,a,m,$,s,c){const p=t("tec-authentication-card-logo"),f=t("tec-validation-errors"),_=t("tec-label"),g=t("tec-input"),b=t("loading-button"),h=t("Link"),w=t("tec-authentication-card");return d(),C(w,null,{logo:n(()=>[o(p)]),default:n(()=>[r("div",F,i(e.$t("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.")),1),m.status?(d(),N("div",J,i(m.status),1)):x("",!0),o(f,{class:"mb-4"}),r("form",{onSubmit:a[1]||(a[1]=E((...l)=>c.submit&&c.submit(...l),["prevent"]))},[r("div",null,[o(_,{for:"email",value:e.$t("Email")},null,8,["value"]),o(g,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:s.form.email,"onUpdate:modelValue":a[0]||(a[0]=l=>s.form.email=l),required:"",autofocus:""},null,8,["modelValue"])]),r("div",P,[o(b,{type:"submit",class:"block w-full",loading:s.form.processing,disabled:s.form.processing},{default:n(()=>[u(i(e.$t("Email Password Reset Link")),1)]),_:1},8,["loading","disabled"]),o(h,{href:e.route("login"),class:"transition-all block w-full mt-4 pr-4 py-2 rounded-md hover:pl-4 hover:bg-gray-100 text-gray-600 hover:text-gray-900"},{default:n(()=>[u(i(e.$t("Back to Login")),1)]),_:1},8,["href"])])],32)]),_:1})}const G=B(A,[["render",S]]);export{G as default};
