1import{as as m,aR as w,at as h,au as u,j as o,az as t,av as r,bc as c,bp as i,aX as l,a$ as f,aO as g,V as x,W as b,p as P,Z as v}from"./index-BMwF3ZB-.js";import{Q as y}from"./QForm-DZhB0qTr.js";const V={name:"PaginaConfirmarRecuperacaoSenha",data(){return{password:"",repeatPassword:"",showPassword:!1,showRepeatPassword:!1,logoHeader:v?.logo_header||""}},methods:{...w("alertAxios",{openAlert:"openAlert",closeAlert:"closeAlert"}),async handleChangePassword(){if(!await this.$refs.form.validate())return;const e=this.$route.params.token;try{const n=await x.post(`${b}/users/confirm_password_recovery`,{new_password:this.password,confirm_new_password:this.repeatPassword,token:e});this.openAlert({open:!0,message:n.data.message||"Senha alterada com sucesso!",status:200}),this.$router.push(P.confirmedForgotPassword)}catch(n){this.openAlert({open:!0,message:n.response?.data?.message||"Erro ao alterar senha",status:300})}}}},_={class:"flex flex-center q-pa-xl",style:{"min-height":"100vh"}},k={class:"q-mb-md",style:{width:"100%"}},A=["src"];function R(d,e,n,q,s,p){return u(),h("div",_,[o(g,{class:"q-pa-lg flex flex-center column no-shadow",style:{width:"100%","max-width":"400px"}},{default:t(()=>[r("div",k,[r("img",{src:s.logoHeader,class:"q-mx-none q-ml-none",style:{display:"block","max-width":"125px"}},null,8,A)]),e[7]||(e[7]=r("div",{class:"text-h6 q-mb-md text-bold",style:{width:"100%"}}," Alterar senha de acesso ",-1)),o(y,{ref:"form",style:{width:"100%"},onSubmit:c(p.handleChangePassword,["prevent"])},{default:t(()=>[e[4]||(e[4]=r("label",{for:"password"},"Nova senha",-1)),o(i,{modelValue:s.password,"onUpdate:modelValue":e[1]||(e[1]=a=>s.password=a),dense:"",type:s.showPassword?"text":"password",outlined:"",class:"q-mb-md euca-input",minlength:8,maxlength:20,rules:[a=>String(a||"").length>=8||"MÃnimo 8 caracteres",a=>String(a||"").length<=20||"Máximo 20 caracteres"]},{prepend:t(()=>[o(l,{name:"lock"})]),append:t(()=>[o(l,{name:s.showPassword?"visibility_off":"visibility",class:"cursor-pointer",onClick:e[0]||(e[0]=a=>s.showPassword=!s.showPassword)},null,8,["name"])]),_:1},8,["modelValue","type","rules"]),e[5]||(e[5]=r("label",{for:"repeatPassword"},"Repita a nova senha",-1)),o(i,{modelValue:s.repeatPassword,"onUpdate:modelValue":e[3]||(e[3]=a=>s.repeatPassword=a),dense:"",type:s.showRepeatPassword?"text":"password",outlined:"",class:"q-mb-md euca-input",minlength:8,maxlength:20,rules:[a=>String(a||"").length>=8||"MÃnimo 8 caracteres",a=>String(a||"").length<=20||"Máximo 20 caracteres"]},{prepend:t(()=>[o(l,{name:"lock"})]),append:t(()=>[o(l,{name:s.showRepeatPassword?"visibility_off":"visibility",class:"cursor-pointer",onClick:e[2]||(e[2]=a=>s.showRepeatPassword=!s.showRepeatPassword)},null,8,["name"])]),_:1},8,["modelValue","type","rules"]),e[6]||(e[6]=r("div",{class:"text-caption q-mb-md"},"MÃnimo 8 e máximo 20 caracteres",-1)),o(f,{label:"Alterar senha",type:"submit",class:"full-width bcg-verde-brand text-white text-weight-bold euca-btn-alterar-senha","no-caps":""})]),_:1},8,["onSubmit"])]),_:1})])}const M=m(V,[["render",R]]);export{M as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.