PageSourceSearch

https://www.cafeyn.co/assets/AuthForgetPassword.0cbe2275.js

js cafeyn.co collected 2026-10-01 11:38:03 UTC 3,277 bytes, 1 lines download raw bytes

1import{d as I,b as R,f as L,Z as E,by as M,a as B,u as N,r as D,o as $,k as g,p as O,t as i,s as a,l as U,y as t,c as r,A as z,n as l,m as G,aY as f,x as h,T as q,a3 as u,a0 as H,at as Y,e as Z,af as j}from"./main.83d599ca.js";import{F as J}from"./vee-validate.esm.a4fb9e07.js";import{u as K,_ as Q}from"./Captcha.vue_vue_type_style_index_0_lang.eefa3ad5.js";import{u as W}from"./useAuthRoute.ed83329d.js";import{_ as X}from"./ErrorMsg.vue_vue_type_style_index_0_lang.d7fab1b0.js";import{_ as aa}from"./TextInput.vue_vue_type_script_setup_true_lang.7d3771f4.js";/* empty css                                                */const ea=["href"],ua=I({__name:"AuthForgetPassword",setup(ta){const{t:o}=R(),c=L(),_=E(),{getAuthRoute:k}=W(),e=M(),b=B(),w=N(),{errorCaptchaMSG:m,captchaData:v,captchaVerified:C,onCaptchaVerified:y,regenerateCaptcha:P}=K(),s=D(e.email);$(()=>{(c.params.error||c.query.error)&&(e.errorMsg="authentication.forgot_password.errors.linkInvalid")});const S=async()=>{u(Y.track,{name:"ButtonClicked",options:{InternalLocation:H.Authentication.resetPassword,ButtonType:"ResetPassword",Label:o("authentication.resetPassord.cta")}});const d={token:v.value?.token||""};return w.forgotPassword({email:s.value,captcharesponse:d}).then(()=>{e.email=s.value,e.registrationSecret="",_.push({name:k(Z.AUTH_FORGOT_VALIDATION),params:c.params})}).catch(async n=>{n.response?.status===406?e.errorMsg=m:e.errorMsg="authentication.forgot_password.errors.no_acount",await P()})},x=()=>{u("track",{name:"FieldCompletionStarted",options:{InternalLocation:"PasswordReset",FieldName:"Email"}})},T=()=>{u("track",{name:"ExternalLinkClicked",options:{InternalLocation:"PasswordReset",Type:"CustomerCare"}})},A=()=>{e.errorMsg=m};return(d,n)=>(g(),O("div",{class:t(a(f)({gap:"1rem",alignItems:"center"}))},[i("div",{class:t(a(r)({textAlign:"center",width:"100%"}))},[a(e).errorMsg?(g(),U(X,{key:0,text:a(e).errorMsg,title:"",class:t(a(r)({marginBottom:4}))},null,8,["text","class"])):z("",!0),l(a(J),{"initial-values":{email:s.value},onSubmit:S,class:t(a(f)({gap:"8",marginTop:8,width:"100%"}))},{default:G(({errors:p,isSubmitting:V})=>[l(aa,{name:"email","data-testid":"forgot-password-email",modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=F=>s.value=F),label:a(o)("authentication.resetPassord.label"),placeholder:a(o)("forms.email_placeholder"),error:p.email,onFocus:x},null,8,["modelValue","label","placeholder","error"]),l(j,{visual:"brandInvert",size:"xl",type:"submit","data-testid":"forgot-password-submit",label:a(o)("authentication.resetPassord.cta"),isLoading:V,disabled:!!(p.email||!s.value)||!a(C)},null,8,["label","isLoading","disabled"]),l(Q,{onValidated:a(y),onError:A,"internal-location":"PasswordReset"},null,8,["onValidated"])]),_:1},8,["initial-values","class"]),i("div",{id:"forgot_contact",class:t(a(r)({textAlign:"center",color:"textPrimaryInvert",textStyle:"bodyCaption"}))},[i("p",{class:t(a(r)({marginTop:4}))},h(a(o)("authentication.resetPassword.customerCare.label")),3),i("a",{class:t(a(r)({display:"inline",textDecoration:"underline"})),href:`mailto:support${a(b).config.infos.supportEmail}`,onClick:T},h(a(o)("authentication.forgot_password.white_label.helpLink",{brand_name:a(q).getDisplayName()})),11,ea)],2)],2)],2))}});export{ua 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.