PageSourceSearch

https://v2.stonkjournal.com/_nuxt/DQgwNp2N.js

js stonkjournal.com collected 2026-10-06 02:44:20 UTC 3,101 bytes, 1 lines download raw bytes

1import{b as y,g as s,c,d as m,f as t,e as l,m as _,l as n,t as b,E as f,O as k,h as B,S,B as E,i as h,k as N,p as V,q as u}from"./CrjNJbo_.js";const C={key:0,class:"space-y-6 text-center"},I={class:"inline-flex w-14 h-14 items-center justify-center rounded-full bg-accent-blue/15"},R={class:"mt-3 text-[15px] text-text-muted"},T={class:"text-white"},j={key:1,class:"space-y-8"},q={class:"relative"},D={key:0,class:"text-sm text-accent-red flex items-center gap-2"},L=["disabled"],M={class:"text-center text-sm text-text-muted"},W={__name:"forgot-password",setup(P){const w=y(),i=u(!1),o=u(""),r=u(""),x=u(!1);async function g(){i.value=!0,r.value="";try{const{error:a}=await w.auth.resetPasswordForEmail(o.value,{redirectTo:`${window.location.origin}/auth/callback?type=recovery`});if(a)throw a;x.value=!0}catch(a){r.value=a.message}finally{i.value=!1}}return(a,e)=>{const d=_,p=k;return s(x)?(c(),m("div",C,[t("div",I,[l(d,{name:"i-heroicons-envelope",class:"w-8 h-8 text-accent-blue"})]),t("div",null,[e[3]||(e[3]=t("h1",{class:"text-3xl font-semibold text-white"},"Check your email",-1)),t("p",R,[e[1]||(e[1]=n(" We sent a password reset link to ",-1)),t("span",T,b(s(o)),1),e[2]||(e[2]=n(". ",-1))])]),l(p,{to:"/login"},{default:f(()=>[...e[4]||(e[4]=[t("button",{class:"w-full h-12 rounded-xl border border-border bg-bg-panel hover:bg-bg-input text-sm font-medium text-white transition-colors"}," Back to Sign In ",-1)])]),_:1})])):(c(),m("div",j,[e[8]||(e[8]=t("div",null,[t("h1",{class:"text-[40px] leading-tight font-semibold tracking-tight text-white"}," Reset your password. "),t("p",{class:"mt-4 text-[15px] text-text-muted leading-relaxed"}," Enter the email tied to your account. We'll send you a secure link to set a new password. ")],-1)),t("form",{class:"space-y-4",onSubmit:V(g,["prevent"])},[t("div",null,[e[5]||(e[5]=t("label",{for:"email",class:"block text-sm text-text-muted mb-2"},"Email",-1)),t("div",q,[l(d,{name:"i-heroicons-envelope",class:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted"}),B(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=v=>E(o)?o.value=v:null),type:"email",required:"",autocomplete:"email",placeholder:"Enter your email",class:"w-full h-12 pl-11 pr-4 rounded-xl bg-bg-input border border-border text-[15px] text-white placeholder-text-muted/60 focus:outline-none focus:border-accent-blue/60 transition-colors"},null,512),[[S,s(o)]])])]),s(r)?(c(),m("p",D,[l(d,{name:"i-heroicons-exclamation-triangle",class:"w-4 h-4 shrink-0"}),n(" "+b(s(r)),1)])):h("",!0),t("button",{type:"submit",disabled:s(i),class:"flex w-full items-center justify-center gap-2 h-12 rounded-xl bg-accent-blue hover:bg-accent-blue/90 text-white text-sm font-semibold transition-colors disabled:opacity-60 disabled:cursor-not-allowed mt-2"},[s(i)?(c(),N(d,{key:0,name:"i-heroicons-arrow-path",class:"w-4 h-4 animate-spin"})):h("",!0),e[6]||(e[6]=n(" Send Reset Link ",-1))],8,L)],32),t("p",M,[l(p,{to:"/login",class:"text-white font-medium hover:underline"},{default:f(()=>[...e[7]||(e[7]=[n("← Back to Sign In",-1)])]),_:1})])]))}}};export{W 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.