import i from"./TextDivider.54add59f.js";import a from"./FormInput.7debc7c5.js";import o from"./Button.f17dffc9.js";import n from"./Container.f87d9f62.js";import{u as r}from"./notification.db2f2ae7.js";import{n as l}from"./plugin-vue2_normalizer.000ba15c.js";import"./FormGroup.efd02a6a.js";import"./Label.9d0d3ee0.js";import"./ErrorText.b141a597.js";import"./HelperText.14a7ed0b.js";import"./IconClipboard.8551be1b.js";import"./IconKey.455a255f.js";import"./app.79e1f42d.js";const m={metaInfo(){return{title:`${this.__("Reset password")}`}},components:{TextDivider:i,FormInput:a,Button:o,Container:n},props:{errors:Object},data(){return{sending:!1,form:{email:null}}},methods:{useNotification:r,submit(){this.sending=!0,this.$inertia.post(this.route("password.email"),{email:this.form.email},{onFinish:()=>{this.sending=!1,Object.keys(this.$page.props.errors).length||(this.form.email=null,r({variant:"success",title:this.__("Reset password"),message:this.$page.props.flash.success}))}})}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-center w-full min-h-screen"},[e("Container",{attrs:{size:"small"}},[e("form",{staticClass:"space-y-4",on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("div",{staticClass:"flex flex-col items-center space-y-5"},[t.$page.props.settings.logo?e("img",{staticClass:"h-14",attrs:{src:t.$page.props.settings.logo}}):t._e(),e("h1",{staticClass:"font-semibold text-center text-title"},[t._v(" "+t._s(t.__("Reset password"))+" ")])]),e("FormInput",{attrs:{label:t.__("Email"),errors:t.$page.props.errors.email,id:"email",type:"email",required:""},model:{value:t.form.email,callback:function(s){t.$set(t.form,"email",s)},expression:"form.email"}}),e("Button",{attrs:{variant:"primary",disabled:t.sending,block:""}},[t._v(t._s(t.__("Reset")))]),e("TextDivider",[t._v(t._s(t.__("Or")))]),e("div",{staticClass:"space-y-3"},[e("Button",{attrs:{as:"inertia-link",href:t.route("login"),variant:"secondary",block:""}},[t._v(t._s(t.__("Login")))])],1)],1)])],1)},c=[],_=l(m,p,c,!1,null,null,null,null);const F=_.exports;export{F as default};
