1import{_ as k}from"./Cu6UpzIj.js";import{_ as b,K as x,b as y,r as d,d as o,e as s,i as t,h as a,F as m,j as u,v as c,s as w,f as q,x as E,y as V,n as A,k as B,l as M,B as S,g as L}from"./Chii0FD-.js";const C={class:"auth"},N={class:"auth__card glow-in"},F={class:"auth__header"},T={class:"auth__subtitle"},Z={class:"auth__field"},j={key:0,class:"auth__erro"},D={key:0},I={key:1,class:"auth__btn--spinner"},R={class:"auth__footer"},$={__name:"EsqueceuSenhaForm",setup(h){const l=x(),n=y({email:""}),i=d(!1),r=d("");async function p(){var _;r.value="";try{await l.resetarSenha(n.email),i.value=!0}catch(e){r.value=(_=e.message)!=null&&_.includes("rate limit")?"Muitas tentativas. Aguarde alguns minutos.":"Ocorreu um erro. Verifique o e-mail e tente novamente."}}function f(){i.value=!1,n.email="",r.value=""}return(_,e)=>{const v=k;return s(),o("section",C,[t("div",N,[t("div",F,[e[7]||(e[7]=t("a",{href:"/",class:"auth__logo"},[t("svg",{width:"22",height:"22",viewBox:"0 0 18 18",fill:"none"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.078 12.836A9 9 0 0 0 12.836 16.922L1.078 5.164A9 9 0 0 0 1.078 12.836ZM2.341 3.5 14.5 15.659A9 9 0 0 0 3.5 2.341L2.341 3.5ZM16.922 5.164A9 9 0 0 0 5.164 1.078L16.922 12.836A9 9 0 0 0 16.922 5.164Z",fill:"currentColor"})])],-1)),a(i)?(s(),o(m,{key:1},[e[5]||(e[5]=t("div",{class:"auth__check"},[t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t("path",{d:"M5 13l4 4L19 7",stroke:"rgba(255,255,255,0.8)","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e[6]||(e[6]=t("h1",{class:"auth__title"},"E-mail enviado",-1)),t("p",T,[e[3]||(e[3]=u("Verifique sua caixa de entrada em ")),t("strong",null,c(a(n).email),1),e[4]||(e[4]=u(" e siga as instruções."))])],64)):(s(),o(m,{key:0},[e[1]||(e[1]=t("h1",{class:"auth__title"},"Esqueceu sua senha?",-1)),e[2]||(e[2]=t("p",{class:"auth__subtitle"},"Informe seu e-mail e enviaremos um link para redefinir sua senha.",-1))],64))]),a(i)?(s(),o("button",{key:1,class:"auth__btn auth__btn--outline",onClick:f}," Tentar com outro e-mail ")):(s(),o("form",{key:0,class:"auth__form",onSubmit:w(p,["prevent"])},[t("div",Z,[e[8]||(e[8]=t("label",{class:"auth__label"},"E-mail",-1)),E(t("input",{"onUpdate:modelValue":e[0]||(e[0]=g=>a(n).email=g),type:"email",class:"auth__input",placeholder:"[email protected]",autocomplete:"email",required:""},null,512),[[V,a(n).email]])]),a(r)?(s(),o("p",j,c(a(r)),1)):q("",!0),t("button",{type:"submit",class:A(["auth__btn",{loading:a(l).carregando}])},[a(l).carregando?(s(),o("span",I)):(s(),o("span",D,"Enviar link de redefinição"))],2)],32)),t("p",R,[e[10]||(e[10]=u(" Lembrou a senha? ")),B(v,{to:"/login"},{default:M(()=>e[9]||(e[9]=[u("Voltar para o login")])),_:1})])])])}}},z=b($,[["__scopeId","data-v-6ff70188"]]),O={__name:"esqueceu-senha",setup(h){return S({title:"Rastro | Esqueceu a senha",meta:[{name:"description",content:"Redefina sua senha."},{name:"robots",content:"noindex"}]}),(l,n)=>{const i=z;return s(),L(i)}}};export{O 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.