PageSourceSearch

https://www.creatorsenseai.com/app/assets/ResetPasswordPage-BqXP2V9L.js

js creatorsenseai.com collected 2026-10-02 01:28:47 UTC 2,308 bytes, 1 lines download raw bytes

1import{k as y,c as b,r as o,C as R,D as m,y as d,K as e,N as x,V as f,W as c,z as v,H as w,J as _,Q as C,u as P,G as V}from"./vendor-misc-5pJBpqhN.js";import{e as N,u as B,f as q}from"./vendor-vue-BIDZeepx.js";import{A as D}from"./AuthLayout-BO6ujvXf.js";import{a2 as M,k as S,_ as T}from"./index-BNPflmqD.js";import"./vendor-tanstack-B6ELLr_Q.js";import"./vendor-sentry-84cD2ryj.js";import"./vendor-utils-CxkvrZ9U.js";const U={class:"auth-form"},A={class:"form-field"},E={class:"form-field"},L={key:0,class:"auth-msg",role:"status"},z={key:1,class:"auth-error",role:"alert"},G=["disabled"],H={class:"auth-footer"},I=y({__name:"ResetPasswordPage",setup(J){const g=N(),h=B(),l=b(()=>g.query.token||""),a=o(""),u=o(""),r=o(null),t=o(null),n=o(!1);async function k(){if(!l.value){t.value="Reset link is invalid or expired. Request a new link from forgot password.";return}if(a.value!==u.value){t.value="Passwords do not match.";return}n.value=!0,t.value=null,r.value=null;try{await M(l.value,a.value),r.value="Password updated. You can sign in now.",setTimeout(()=>h.push("/login"),1500)}catch(p){t.value=S(p,"Could not reset password")}finally{n.value=!1}}return(p,s)=>(d(),R(D,{chrome:"creator"},{default:m(()=>[e("div",U,[s[5]||(s[5]=e("div",{class:"form-header"},[e("h1",{class:"form-title"},"Reset password"),e("p",{class:"form-subtitle"},"Choose a new password for your account.")],-1)),e("form",{onSubmit:x(k,["prevent"])},[e("div",A,[s[2]||(s[2]=e("label",{for:"reset-password"},"New password",-1)),f(e("input",{id:"reset-password","onUpdate:modelValue":s[0]||(s[0]=i=>a.value=i),type:"password",required:"",autocomplete:"new-password",minlength:"8"},null,512),[[c,a.value]])]),e("div",E,[s[3]||(s[3]=e("label",{for:"reset-confirm"},"Confirm password",-1)),f(e("input",{id:"reset-confirm","onUpdate:modelValue":s[1]||(s[1]=i=>u.value=i),type:"password",required:"",autocomplete:"new-password",minlength:"8"},null,512),[[c,u.value]])]),r.value?(d(),v("p",L,w(r.value),1)):_("",!0),t.value?(d(),v("p",z,w(t.value),1)):_("",!0),e("button",{type:"submit",class:"submit-btn",disabled:n.value||!l.value}," Update password ",8,G)],32),e("p",H,[C(P(q),{to:"/login"},{default:m(()=>[...s[4]||(s[4]=[V("Back to sign in",-1)])]),_:1})])])]),_:1}))}}),X=T(I,[["__scopeId","data-v-a03deae0"]]);export{X 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.