PageSourceSearch

https://www.cafeyn.co/assets/AuthVerifyAccount.e287fc40.js

js cafeyn.co collected 2026-09-24 09:27:58 UTC 3,011 bytes, 1 lines download raw bytes

1import{d as w,b as I,f as T,Z as x,by as F,a as B,u as U,bR as D,r as p,a9 as O,aa as q,aV as z,o as G,T as H,k as v,p as L,s as t,l as N,y as _,c as Q,A as W,n as u,m as Y,aY as K,bQ as X,bF as Z,bG as j,e as g,af as J}from"./main.83d599ca.js";import{F as aa}from"./vee-validate.esm.a4fb9e07.js";import{u as ea,_ as ta}from"./Captcha.vue_vue_type_style_index_0_lang.eefa3ad5.js";import{_ as ra}from"./ErrorMsg.vue_vue_type_style_index_0_lang.d7fab1b0.js";import{_ as sa}from"./TextInput.vue_vue_type_script_setup_true_lang.7d3771f4.js";/* empty css                                                */const pa=w({__name:"AuthVerifyAccount",setup(oa){const{t:o}=I(),l=T(),d=x(),e=F(),b=B(),S=U(),m=D(),{captchaData:k,isCaptchaValidated:y,onCaptchaVerified:C,regenerateCaptcha:f,resetCaptcha:E}=ea();e.initFromQuery(l.query);const r=p(e.email),n=p(!1),h=p(!1),V=O({email:q().email(o("validation.email.email")).required(o("validation.email.required")).matches(z,o("validation.email.email"))});G(()=>{l.params.partnerId&&(h.value=H.checkPartner(l.params.partnerId)),r.value=e.email});const M=i=>{console.error("Captcha error occurred:",i),e.errorMsg="authentication.captcha.error",E()},c=()=>{e.email=r.value,e.errorMsg="",d.push({name:g.AUTH_VERIFY_PASSWORD,params:l.params})},R=async()=>{try{await m.checkPartnerEmail(r.value)}catch(i){const a=i;if(a.response&&a.response.status===400)throw a.response.data}},A=async()=>{n.value=!0;const i=S.infos?.email;if(i&&i!==r.value){e.errorMsg=o("validation.email.mismatch"),n.value=!1;return}if(h.value){m.partnerRegistration?.user&&(m.partnerRegistration.user.email=r.value);try{await R(),c()}catch(a){n.value=!1,a==="LK_USED_MAIL"?c():e.errorMsg=a}}else return X.checkEmail(r.value,f,k.value).then(()=>{c()}).catch(async a=>{n.value=!1;const{status:s}=a?.response||{};s===409?c():s===426?(b.config.infos.migratingPlatform&&Z(j.isMigrating,"true"),e.email=r.value,d.push({name:g.AUTH_FORGOT_PASSWORD,params:l.params})):s&&(e.errorMsg=`authentication.signin.errors.${s}`,await f())})};return(i,a)=>(v(),L("div",null,[t(e).errorMsg?(v(),N(ra,{key:0,text:t(e).errorMsg,title:"",class:_(t(Q)({marginBottom:4}))},null,8,["text","class"])):W("",!0),u(t(aa),{id:"auth_email","validation-schema":t(V),onSubmit:a[1]||(a[1]=s=>A()),"initial-values":{email:r.value},class:_(t(K)({gap:"4",width:"100%",marginTop:4}))},{default:Y(({errors:s,meta:P})=>[u(sa,{name:"email",type:"email",autocapitalize:"off",autocomplete:"email",modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=$=>r.value=$),label:t(o)("forms.email_label"),placeholder:t(o)("forms.email_placeholder"),error:s.email},null,8,["modelValue","label","placeholder","error"]),u(J,{id:"auth-verify-continue",type:"submit",size:"xl",visual:"brandInvert",disabled:!P.valid||!!s.email||!t(y)||n.value,label:t(o)("global.continue")},null,8,["disabled","label"])]),_:1},8,["validation-schema","initial-values","class"]),u(ta,{onValidated:t(C),onError:M,"internal-location":""},null,8,["onValidated"])]))}});export{pa 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.