1import{d as $,u as B,a as H,L as V,e as j,D as N,r as k,N as b,O as D,M as T,h as r,n as c,j as s,w as p,m as o,t as a,T as _,Q as E,p as I,R as z,S as P,P as f,_ as A,i as l,k as F,l as R,s as q,Y as G,x as O}from"#entry";const Q={class:"auth-page"},U={class:"auth-container"},Y={class:"auth-card"},J={class:"auth-logo"},K=["src"],W={class:"auth-header"},X={class:"auth-title"},Z={class:"auth-subtitle"},ss={key:0,class:"alert alert-success"},ts={key:0,class:"alert alert-error"},os={class:"form-group"},es={for:"email"},as={class:"label-text"},rs={class:"input-container"},ls=["placeholder"],ns={key:0,class:"form-error"},is=["disabled"],ds={key:0,class:"btn-text"},us={key:1,class:"loading-spinner"},cs={key:2,class:"btn-arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ps={class:"auth-footer"},ms=$({__name:"forgot-password",setup(hs){const{t:v}=B({useScope:"global"}),g=H(),{isDark:y}=V(),x=j(()=>y.value?"/mainlogowhite.webp":"/mainlogo.webp");N({title:"Forgot Password",description:"Reset your ProxyHat account password.",noindex:!0});const u=k(!1),h=k(""),m=k(""),n=b({email:""}),i=b({email:[]});function M(){i.email=[],h.value="",m.value=""}D(()=>n.email,()=>{i.email=[],m.value=""});const{forgotPassword:C}=T();async function L(){if(!n.email||!/^\S+@\S+\.\S+$/.test(n.email)){i.email=[v("auth.forgotPassword.emailInvalid")];return}u.value=!0,M();try{await C({email:n.email}),h.value=v("auth.forgotPassword.success")}catch(e){const{status:t,data:d}=G(e);t===422&&d?.errors?.email?i.email=d.errors.email:m.value=d?.message||v("auth.forgotPassword.failed")}finally{u.value=!1}}return(e,t)=>{const d=A;return l(),r("div",Q,[c(d,{to:o(g)("/"),class:"back-button"},{default:p(()=>[t[1]||(t[1]=s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("path",{d:"M19 12H5M12 19l-7-7 7-7","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),s("span",null,a(e.$t("auth.back")),1)]),_:1},8,["to"]),s("div",U,[t[12]||(t[12]=s("div",{class:"card-glow"},null,-1)),s("div",Y,[t[11]||(t[11]=s("div",{class:"card-border-glow"},null,-1)),s("div",J,[c(d,{to:o(g)("/")},{default:p(()=>[t[2]||(t[2]=s("div",{class:"logo-glow"},null,-1)),s("img",{src:o(x),alt:"ProxyHat proxy service logo",title:"ProxyHat",width:"252",height:"63"},null,8,K)]),_:1},8,["to"])]),s("div",W,[t[3]||(t[3]=s("div",{class:"header-icon"},[s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[s("path",{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),s("h1",X,a(e.$t("auth.forgotPassword.titleGradient"))+" "+a(e.$t("auth.forgotPassword.title").replace("{gradient}","")),1),s("p",Z,a(e.$t("auth.forgotPassword.subtitle")),1)]),c(_,{name:"alert-fade"},{default:p(()=>[o(h)?(l(),r("div",ss,[t[4]||(t[4]=s("div",{class:"alert-icon-wrapper"},[s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),s("path",{d:"M22 4L12 14.01l-3-3","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),s("span",null,a(o(h)),1)])):f("",!0)]),_:1}),c(_,{name:"alert-fade"},{default:p(()=>[o(m)?(l(),r("div",ts,[t[5]||(t[5]=s("div",{class:"alert-icon-wrapper"},[s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("circle",{cx:"12",cy:"12",r:"10"}),s("path",{d:"M12 8v4M12 16h.01","stroke-linecap":"round"})])],-1)),s("span",null,a(o(m)),1)])):f("",!0)]),_:1}),s("form",{onSubmit:E(L,["prevent"]),class:"auth-form"},[s("div",os,[s("label",es,[s("span",as,a(e.$t("auth.forgotPassword.emailLabel")),1)]),s("div",rs,[I(s("input",{id:"email","onUpdate:modelValue":t[0]||(t[0]=w=>o(n).email=w),type:"email",class:P(["form-input",{error:o(i).email.length,"has-value":o(n).email}]),placeholder:e.$t("auth.forgotPassword.emailPlaceholder"),required:""},null,10,ls),[[z,o(n).email]]),t[6]||(t[6]=s("div",{class:"input-focus-ring"},null,-1))]),c(_,{name:"error-slide"},{default:p(()=>[o(i).email.length?(l(),r("div",ns,[(l(!0),r(F,null,R(o(i).email,(w,S)=>(l(),r("span",{key:S},a(w),1))),128))])):f("",!0)]),_:1})]),s("button",{type:"submit",class:P(["btn-primary",{loading:o(u)}]),disabled:o(u)},[t[8]||(t[8]=s("div",{class:"btn-glow"},null,-1)),t[9]||(t[9]=s("div",{class:"btn-shine"},null,-1)),o(u)?(l(),r("span",us)):(l(),r("span",ds,a(e.$t("auth.forgotPassword.submit")),1)),o(u)?f("",!0):(l(),r("svg",cs,[...t[7]||(t[7]=[s("path",{d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],10,is)],32),s("div",ps,[s("span",null,a(e.$t("auth.forgotPassword.remembered")),1),c(d,{to:o(g)("/login"),
1class:"link-primary"},{default:p(()=>[q(a(e.$t("auth.forgotPassword.signIn"))+" ",1),t[10]||(t[10]=s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("path",{d:"M13 7l5 5-5 5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),_:1},8,["to"])])])])])}}}),vs=O(ms,[["__scopeId","data-v-9f1cec8f"]]);export{vs 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.