"use strict";(self["webpackChunktumenufront"]=self["webpackChunktumenufront"]||[]).push([[571],{8441:function(e,a,r){r.r(a),r.d(a,{default:function(){return g}});var s=r(641),o=r(953),l=r(3751),t=r(33),n=r(9639),u=r(3855),c=r(7029),i=r(8381),m=r(5220);r(7695);const d={key:0,class:"text-error mb-6"};var b={__name:"AuthReset",setup(e){const a=(0,m.lq)(),r=(0,m.rd)(),b=(0,i.n)(),p=(0,o.KR)(!1),v=(0,o.KR)(""),f=(0,o.KR)(null),w=(0,o.Kh)({email:"",password:"",confirmPassword:""}),k=(0,s.EW)((()=>({email:{required:u._$.withMessage("El correo electrónico es requerido",u.mw),email:u._$.withMessage("El correo electrónico es incorrecto",u.Rp)},password:{required:u._$.withMessage("La contraseña es requerida",u.mw)}}))),g=(0,n.fG)(k,w),R=async()=>{const e=await g.value.$validate();e&&(p.value=!0,await b.resetPassword(w.email,w.password,f.value),p.value=!1,b.error?v.value=b.error:r.push({name:"PasswordSuccess"}))};return(0,s.sV)((()=>{f.value=a.query.token||"",w.email=a.query.email||""})),(e,a)=>{const r=(0,s.g2)("v-col"),n=(0,s.g2)("v-row");return(0,s.uX)(),(0,s.CE)("form",{onSubmit:(0,l.D$)(R,["prevent"]),novalidate:""},[(0,s.bF)(n,null,{default:(0,s.k6)((()=>[(0,s.bF)(r,{cols:"12"},{default:(0,s.k6)((()=>a[3]||(a[3]=[(0,s.Lk)("p",{class:"text-h5 mb-4"},"Cambiar contraseña",-1),(0,s.Lk)("p",{class:"text-subtitle-1 text-black-medium"},"Ingresa tu nueva contraseña y confírmala. Asegúrate de que tenga al menos 8 caracteres y combine letras, números y símbolos.",-1)]))),_:1}),(0,s.bF)(r,{cols:"12"},{default:(0,s.k6)((()=>[(0,s.bF)((0,o.R1)(c.FO),{disabled:!0,icon:"mdi-email-outline",type:"email",modelValue:w.email,"onUpdate:modelValue":a[0]||(a[0]=e=>w.email=e),"error-messages":(0,o.R1)(g).email.$errors.map((e=>e.$message)),onInput:(0,o.R1)(g).email.$touch,onBlur:(0,o.R1)(g).email.$touch,"is-required":"",label:"Correo electrónico"},null,8,["modelValue","error-messages","onInput","onBlur"])])),_:1}),(0,s.bF)(r,{cols:"12"},{default:(0,s.k6)((()=>[(0,s.bF)((0,o.R1)(c.cA),{modelValue:w.password,"onUpdate:modelValue":a[1]||(a[1]=e=>w.password=e),"error-messages":(0,o.R1)(g).password.$errors.map((e=>e.$message)),"is-required":"",label:"Nueva contraseña",icon:"mdi-lock-outline",onInput:(0,o.R1)(g).password.$touch,onBlur:(0,o.R1)(g).password.$touch},null,8,["modelValue","error-messages","onInput","onBlur"])])),_:1}),(0,s.bF)(r,{cols:"12"},{default:(0,s.k6)((()=>[(0,s.bF)((0,o.R1)(c.cA),{modelValue:w.confirmPassword,"onUpdate:modelValue":a[2]||(a[2]=e=>w.confirmPassword=e),label:"Confirmar Contraseña",icon:"mdi-lock-outline"},null,8,["modelValue"])])),_:1}),(0,s.bF)(r,{cols:"12"},{default:(0,s.k6)((()=>[v.value?((0,s.uX)(),(0,s.CE)("p",d,(0,t.v_)(v.value),1)):(0,s.Q3)("",!0),(0,s.bF)((0,o.R1)(c.A0),{color:"primary","is-block":!1,type:"submit",loading:p.value,class:"btn-orange"},{default:(0,s.k6)((()=>a[4]||(a[4]=[(0,s.eW)("Restablecer contraseña")]))),_:1},8,["loading"])])),_:1})])),_:1})],32)}}};const p=b;var v=p;const f={class:"container-autenticacion"};var w={__name:"ResetPassword",setup(e){return(e,a)=>{const r=(0,s.g2)("v-col"),l=(0,s.g2)("v-row"),t=(0,s.g2)("v-container");return(0,s.uX)(),(0,s.CE)("div",f,[(0,s.bF)(t,null,{default:(0,s.k6)((()=>[(0,s.bF)(l,{class:"justify-md-center"},{default:(0,s.k6)((()=>[(0,s.bF)(r,{cols:"12",sm:"12",md:"6"},{default:(0,s.k6)((()=>[(0,s.bF)((0,o.R1)(v))])),_:1})])),_:1})])),_:1})])}}};const k=w;var g=k}}]);
//# sourceMappingURL=571.92b4b94d.js.map