import{r as s,o as v,g as w,w as l,h as o,i as h,j as m,t as V}from"./vendor-cf98dd49.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";const P={props:["userEmail"],data:()=>({valid:!1,password:"",confirmPassword:"",passwordRules:[e=>!!e||"Password is required",e=>e&&e.length>=8||"Minimal password lenght 8 characters"]}),computed:{repeatPasswordRules(){return[e=>!!e||"Confirm Password is required",e=>e===this.password||"Passwords doesn't match"]}},methods:{submit(){this.$refs.form.validate()&&form.submit()}}},g=["value"];function k(e,a,p,y,C,n){const t=s("v-col"),d=s("v-row"),i=s("v-text-field"),c=s("v-btn"),u=s("v-container"),f=s("v-form"),_=s("v-card");return v(),w(u,{"fill-height":"",fluid:""},{default:l(()=>[o(d,{align:"center",justify:"center",style:{height:"90vh !important"}},{default:l(()=>[o(t,{cols:"12",sm:"4"},{default:l(()=>[o(_,{elevation:"10",rounded:"lg"},{default:l(()=>[o(f,{id:"form",modelValue:e.valid,"onUpdate:modelValue":a[2]||(a[2]=r=>e.valid=r),"lazy-validation":"",ref:"form",method:"post"},{default:l(()=>[h("input",{type:"hidden",name:"_token",value:this.$root.csrfToken},null,8,g),o(u,null,{default:l(()=>[o(d,null,{default:l(()=>[o(t,{cols:"12"},{default:l(()=>[m(" Login E-Mail: "+V(p.userEmail),1)]),_:1})]),_:1}),o(d,null,{default:l(()=>[o(t,{cols:"6"},{default:l(()=>[o(i,{type:"password","prepend-inner-icon":"mdi-lock",name:"password",placeholder:" ","persistent-placeholder":"",modelValue:e.password,"onUpdate:modelValue":a[0]||(a[0]=r=>e.password=r),rules:e.passwordRules,label:"Passwprd",required:""},null,8,["modelValue","rules"])]),_:1}),o(t,{cols:"6"},{default:l(()=>[o(i,{type:"password","prepend-inner-icon":"mdi-lock",name:"confirmPassword",placeholder:" ","persistent-placeholder":"",modelValue:e.confirmPassword,"onUpdate:modelValue":a[1]||(a[1]=r=>e.confirmPassword=r),rules:n.repeatPasswordRules,label:"Confirm Passwprd",required:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),o(d,null,{default:l(()=>[o(t,{cols:"12"},{default:l(()=>[o(c,{block:"",elevation:"0",disabled:!e.valid,color:"primary",class:"mr-4",type:"submit",onClick:n.submit},{default:l(()=>[m(" Activate Account ")]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}const A=b(P,[["render",k]]);export{A as default};
