PageSourceSearch

https://revby.co/_nuxt/CPM8ztz9.js

js revby.co collected 2026-09-25 18:18:07 UTC 2,149 bytes, 1 lines download raw bytes

1import{_ as g}from"./B-5qM8bm.js";import{_ as U}from"./tJRDHKHm.js";import{c as u,j as m,a as f,k as t,b as a,z as _,g as i,w as x,h as V,o as c,d as C}from"./Cny-jMUR.js";import{_ as B}from"./CSHkLFmR.js";import{u as N}from"./Bhcf4Zif.js";import"./DRbcCXkf.js";const $={class:"max-w-lg mx-auto mt-20 p-4"},A={key:0,class:"mb-8"},E={key:1,class:"mb-8"},P={key:2},S={class:"flex flex-col"},z={key:3,class:"text-center mt-12"},D={__name:"recover",setup(F){const k=N(),l=i(),o=i(!1),s=i(!1),p=i(),d=i(!1),b=async()=>{if(!d.value)if(l.value){d.value=!0;try{const{data:r,error:e}=await k.auth.resetPasswordForEmail(l.value,{redirectTo:"https://revby.co/update-password"});if(e){console.log(e),s.value=!0,e.value=e;return}r&&(console.log(r),l.value="",o.value=!0)}catch(r){console.error(r),s.value=!0,p.value=r}finally{d.value=!1}}else s.value=!0,p.value="You must enter an email address"};return(r,e)=>{const v=g,h=U,w=V,y=B;return c(),u("div",$,[t(o)?(c(),u("div",A,[a(v,{open:t(o),"onUpdate:open":e[0]||(e[0]=n=>_(o)?o.value=n:null),title:"Password reset link sent",description:"Check your email for message with the password reset link",color:"success",close:{color:"white"}},null,8,["open"])])):m("",!0),t(s)?(c(),u("div",E,[a(v,{open:t(s),"onUpdate:open":e[1]||(e[1]=n=>_(s)?s.value=n:null),title:"Uh oh",description:t(p),color:"error",close:{color:"white"}},null,8,["open","description"])])):m("",!0),e[5]||(e[5]=f("h1",{class:"text-5xl text-neutral-950 font-bold text-center"},"Forgot password",-1)),t(o)?m("",!0):(c(),u("div",P,[a(y,{class:"mt-12 text-center max-w-3/4 mx-auto"},{default:x(()=>[f("div",S,[a(h,{modelValue:t(l),"onUpdate:modelValue":e[2]||(e[2]=n=>_(l)?l.value=n:null),placeholder:"your email"},null,8,["modelValue"]),a(w,{label:"Recover password",class:"mt-4 rounded-full block text-lg",disabled:t(d),onClick:b},null,8,["disabled"])])]),_:1}),e[3]||(e[3]=f("p",{class:"mt-12 text-center"},"You will be sent an email with a link to recover your password",-1))])),t(o)?(c(),u("div",z,[a(w,{to:"/",class:"rounded-full",size:"xl"},{default:x(()=>[...e[4]||(e[4]=[C("Back to home",-1)])]),_:1})])):m("",!0)])}}};export{D 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.