"use strict";(self["webpackChunktumenufront"]=self["webpackChunktumenufront"]||[]).push([[32],{1738:function(e,a,r){r.r(a),r.d(a,{default:function(){return h}});var o=r(641),l=r(33),s=r(3751),n=r(953),t=r(9639),u=r(3855),i=r(7029),m=r(8381),c=r(2343);const d={key:0,class:"text-error mb-6"},g={class:"mt-4"};var p={__name:"AuthRegister",setup(e){const a=(0,m.n)(),r=(0,n.KR)(!1),p=(0,n.KR)(""),b=(0,n.Kh)({name:"Aldair Reyes Sanchez",email:"aldair.canalla.agency@gmail.com",password:"aldair123",confirmPassword:"aldair123"}),f=(0,o.EW)((()=>({name:{required:u._$.withMessage("El nombre completo es requerido",u.mw)},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)}}))),k=(0,t.fG)(f,b),v=async()=>{const e=await k.value.$validate();e&&(r.value=!0,await a.register(b.name,b.email,b.password),r.value=!1,a.error?p.value=a.error:c.Q.push({name:"VerifyEmail",params:{email:b.email}}))};return(e,a)=>{const t=(0,o.g2)("v-col"),u=(0,o.g2)("v-row"),m=(0,o.g2)("v-icon"),c=(0,o.g2)("router-link");return(0,o.uX)(),(0,o.CE)("form",{onSubmit:(0,s.D$)(v,["prevent"]),novalidate:""},[(0,o.bF)(u,null,{default:(0,o.k6)((()=>[(0,o.bF)(t,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)((0,n.R1)(i.FO),{type:"text",modelValue:b.name,"onUpdate:modelValue":a[0]||(a[0]=e=>b.name=e),"error-messages":(0,n.R1)(k).name.$errors.map((e=>e.$message)),onInput:(0,n.R1)(k).name.$touch,onBlur:(0,n.R1)(k).name.$touch,"is-required":"",label:"Nombre Completo"},null,8,["modelValue","error-messages","onInput","onBlur"])])),_:1}),(0,o.bF)(t,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)((0,n.R1)(i.FO),{icon:"mdi-email-outline",type:"email",modelValue:b.email,"onUpdate:modelValue":a[1]||(a[1]=e=>b.email=e),"error-messages":(0,n.R1)(k).email.$errors.map((e=>e.$message)),onInput:(0,n.R1)(k).email.$touch,onBlur:(0,n.R1)(k).email.$touch,"is-required":"",label:"Correo electrónico"},null,8,["modelValue","error-messages","onInput","onBlur"])])),_:1}),(0,o.bF)(t,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)((0,n.R1)(i.cA),{modelValue:b.password,"onUpdate:modelValue":a[2]||(a[2]=e=>b.password=e),"error-messages":(0,n.R1)(k).password.$errors.map((e=>e.$message)),"is-required":"",label:"Contraseña",icon:"mdi-lock-outline",onInput:(0,n.R1)(k).password.$touch,onBlur:(0,n.R1)(k).password.$touch},null,8,["modelValue","error-messages","onInput","onBlur"])])),_:1}),(0,o.bF)(t,{cols:"12"},{default:(0,o.k6)((()=>[(0,o.bF)((0,n.R1)(i.cA),{modelValue:b.confirmPassword,"onUpdate:modelValue":a[3]||(a[3]=e=>b.confirmPassword=e),label:"Confirmar Contraseña",icon:"mdi-lock-outline"},null,8,["modelValue"])])),_:1}),(0,o.bF)(t,{cols:"12"},{default:(0,o.k6)((()=>[p.value?((0,o.uX)(),(0,o.CE)("p",d,(0,l.v_)(p.value),1)):(0,o.Q3)("",!0),(0,o.bF)((0,n.R1)(i.A0),{color:"primary","is-block":!1,type:"submit",loading:r.value,class:"btn-orange"},{default:(0,o.k6)((()=>a[4]||(a[4]=[(0,o.eW)("Registrarte")]))),_:1},8,["loading"])])),_:1})])),_:1}),a[6]||(a[6]=(0,o.Lk)("p",{class:"black--text text-h6 font-weight-regular mt-6"}," Ya tengo una cuenta? ",-1)),(0,o.Lk)("div",g,[(0,o.bF)(c,{to:"/auth/login",class:"text-secondary text-button link-registro"},{default:(0,o.k6)((()=>[a[5]||(a[5]=(0,o.eW)(" Ingresar ")),(0,o.Lk)("span",null,[(0,o.bF)(m,{size:"x-large",icon:"mdi-chevron-right",color:"text-secondary"})])])),_:1})])],32)}}};const b=p;var f=b;const k={class:"container-autenticacion"};var v={__name:"RegisterPage",setup(e){return(e,a)=>{const s=(0,o.g2)("v-img"),n=(0,o.g2)("v-col"),t=(0,o.g2)("v-row"),u=(0,o.g2)("v-container");return(0,o.uX)(),(0,o.CE)("div",k,[(0,o.bF)(u,null,{default:(0,o.k6)((()=>[(0,o.bF)(t,{class:"align-md-center"},{default:(0,o.k6)((()=>[(0,o.bF)(n,{cols:"12",sm:"12",md:"4",lg:"6"},{default:(0,o.k6)((()=>[(0,o.Lk)("div",{style:(0,l.Tr)({width:e.$vuetify.display.mdAndUp?"80%":"100%"})},[(0,o.bF)(s,{alt:"Vuetify Logo",class:"shrink",contain:"",src:r(3103),width:"100%"},null,8,["src"])],4)])),_:1}),(0,o.bF)(n,{sm:"12",md:"4",lg:"6"},{default:(0,o.k6)((()=>[(0,o.bF)(f)])),_:1})])),_:1})])),_:1})])}}};const w=v;var h=w},3103:function(e,a,r){e.exports=r.p+"img/hombreCaminando.53ba1d1b.png"}}]);
//# sourceMappingURL=32.a9c25bb4.js.map