import o from"./TextDivider.54add59f.js";import e from"./FormInput.7debc7c5.js";import i from"./Button.f17dffc9.js";import a from"./Container.f87d9f62.js";import{u as n}from"./notification.db2f2ae7.js";import{n as m}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 l={metaInfo(){return{title:`${this.__("Reset password")}`}},components:{TextDivider:o,FormInput:e,Button:i,Container:a},props:{token:String,email:String},data(){return{sending:!1,form:{email:null,password:null,password_confirmation:null}}},methods:{useNotification:n,submit(){this.$inertia.post(this.route("password.update"),{email:this.form.email,token:this.token,password:this.form.password,password_confirmation:this.form.password_confirmation},{onStart:()=>this.sending=!0,onFinish:()=>this.sending=!1})}}};var p=function(){var r=this,s=r._self._c;return s("div",{staticClass:"flex items-center justify-center w-full min-h-screen"},[s("Container",{attrs:{size:"small"}},[s("form",{staticClass:"space-y-4",on:{submit:function(t){return t.preventDefault(),r.submit.apply(null,arguments)}}},[s("div",{staticClass:"flex flex-col items-center space-y-5"},[r.$page.props.settings.logo?s("img",{staticClass:"h-14",attrs:{src:r.$page.props.settings.logo}}):r._e(),s("h1",{staticClass:"font-semibold text-center text-title"},[r._v(" "+r._s(r.__("Reset password"))+" ")])]),s("FormInput",{attrs:{label:r.__("Email"),errors:r.$page.props.errors.email,id:"email",type:"email",required:""},model:{value:r.form.email,callback:function(t){r.$set(r.form,"email",t)},expression:"form.email"}}),s("FormInput",{attrs:{label:r.__("Password"),errors:r.$page.props.errors.password,id:"password",type:"password",required:""},model:{value:r.form.password,callback:function(t){r.$set(r.form,"password",t)},expression:"form.password"}}),s("FormInput",{attrs:{label:r.__("Confirm password"),errors:r.$page.props.errors.password_confirmation,id:"password_confirmation",type:"password",required:""},model:{value:r.form.password_confirmation,callback:function(t){r.$set(r.form,"password_confirmation",t)},expression:"form.password_confirmation"}}),s("Button",{attrs:{variant:"primary",disabled:r.sending,block:""}},[r._v(r._s(r.__("Reset")))]),s("TextDivider",[r._v(r._s(r.__("Or")))]),s("div",{staticClass:"space-y-3"},[s("Button",{attrs:{as:"inertia-link",href:r.route("login"),variant:"secondary",block:""}},[r._v(r._s(r.__("Login")))])],1)],1)])],1)},d=[],f=m(l,p,d,!1,null,null,null,null);const I=f.exports;export{I as default};
