(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0df465"],{"88e4":function(e,t,r){"use strict";r.r(t);var s=r("f2bf");const o={class:"relative flex min-h-screen items-center justify-center"},a={class:"head mb-10"},c={class:"font-bold text-3xl text-start mb-2"},n={class:"text-textHeaderColor text-start"},l={class:"mb-6"},d=["placeholder"],i=["placeholder"],m={class:"flex flex-col items-center space-y-3"},p=["disabled"];function u(e,t,r,u,w,b){const h=Object(s["resolveComponent"])("FieldWrapper");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",o,[Object(s["createElementVNode"])("form",{onSubmit:t[4]||(t[4]=Object(s["withModifiers"])((...t)=>e.reset&&e.reset(...t),["prevent"])),class:"w-540 max-w-full flex flex-col bg-white p-8 rounded-lg shadow border"},[Object(s["createElementVNode"])("div",a,[Object(s["createElementVNode"])("h1",c,Object(s["toDisplayString"])(e.$t("reset.title")),1),Object(s["createElementVNode"])("p",n,Object(s["toDisplayString"])(e.$t("reset.subtitle")),1)]),Object(s["createElementVNode"])("div",l,[Object(s["createVNode"])(h,{label:"auth.password",name:"password",errors:e.v$.resetForm.password.$errors,hint:`${e.$t("register.password_length")} ${e.$t("register.password_not_strong")}`},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("input",{name:"password",type:"password",class:Object(s["normalizeClass"])([{error:e.v$.resetForm.password.$error},"focus:shadow"]),"onUpdate:modelValue":t[0]||(t[0]=t=>e.resetForm.password=t),placeholder:e.$t("auth.password_placeholder"),onBlur:t[1]||(t[1]=(...t)=>e.v$.resetForm.password.$touch&&e.v$.resetForm.password.$touch(...t))},null,42,d),[[s["vModelText"],e.resetForm.password]])]),_:1},8,["errors","hint"]),Object(s["createVNode"])(h,{label:"auth.password_confirm",name:"passwordConfirm",errors:e.v$.resetForm.password_confirm.$errors,hint:`${e.$t("register.password_length")} ${e.$t("register.password_not_strong")}`},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("input",{name:"passwordConfirm",type:"password",class:Object(s["normalizeClass"])([{error:e.v$.resetForm.password_confirm.$error},"focus:shadow"]),"onUpdate:modelValue":t[2]||(t[2]=t=>e.resetForm.password_confirm=t),placeholder:e.$t("auth.password_confirm_placeholder"),onBlur:t[3]||(t[3]=(...t)=>e.v$.resetForm.password_confirm.$touch&&e.v$.resetForm.password_confirm.$touch(...t))},null,42,i),[[s["vModelText"],e.resetForm.password_confirm]])]),_:1},8,["errors","hint"])]),Object(s["createElementVNode"])("div",m,[Object(s["createElementVNode"])("button",{type:"submit",class:"primary w-full h-11",disabled:e.v$.resetForm.invalid},Object(s["toDisplayString"])(e.$t("reset.submit")),9,p)])],32)])}var w=r("5502"),b=r("25a0"),h=r("633c"),f=r("28dc"),$=Object(s["defineComponent"])({name:"Reset",setup:()=>{const e=Object(w["b"])();return e.commit("setVuelidateExternalResults",{resetForm:{}}),{v$:Object(b["a"])({$externalResults:Object(s["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},data:function(){return{resetForm:{password:"",password_confirm:""}}},validations:function(){return{resetForm:{password:{required:h["f"]},password_confirm:{required:h["f"],sameAs:Object(h["g"])(this.resetForm.password)}}}},components:{FieldWrapper:f["a"]},methods:{reset:async function(){const e=this.$route.params.email,t=this.$route.params.token,r=await this.v$.resetForm.$validate();r&&e&&t&&this.$store.dispatch("reset",{email:e,token:t,...this.resetForm})}}}),j=r("d959"),v=r.n(j);const O=v()($,[["render",u]]);t["default"]=O}}]); //# sourceMappingURL=chunk-2d0df465.eaaffddc.js.map