PageSourceSearch

https://account.xe.com/assets/index-67c52a7b.js

js xe.com collected 2026-09-24 08:25:40 UTC 7,459 bytes, 2 lines download raw bytes

1import{u as re,_ as le,a as ce}from"./useSignupBanner-cf629493.js";import{u as de,a as R,_ as ue}from"./OenUiCard.vue_vue_type_script_setup_true_lang-de1a6980.js";import{_ as me,a as pe}from"./XeciTermsandConditions-26900372.js";import{d as ge,u as _e,e as fe,R as he,b as ve,f as Ee,X as we,F as Se,ah as xe,V,j as ke,S as l,z as y,W as x,c as k,m as p,J as Ie,n as e,w as c,k as v,N as E,B as be,o as d,l as w,t as m,p as g,a0 as F,K as ye,ai as U,a1 as Ne,af as Oe,ae as B,a4 as Ce,q as Ae,_ as Te}from"./index-79903d46.js";import{_ as Le}from"./OenUiInputPassword.vue_vue_type_script_setup_true_lang-b0cd1d33.js";import{_ as Me}from"./OenUiInputText.vue_vue_type_script_setup_true_lang-2b480196.js";import{_ as Pe}from"./XeAlert-a88adcf9.js";import{_ as $e}from"./OenUiCardHeader-504075f2.js";import{r as G,e as Re}from"./index-8ea5a1f0.js";import{u as Ve,r as Fe}from"./useAuthFormSegment-474ece5a.js";import{h as Ue}from"./authentication-f64dba09.js";import{u as Be}from"./useMetaData-8008bae3.js";import{b as z}from"./route-block-83d24a4e.js";import"./checkmark-29f8fffe.js";import"./index-ca96c7ad.js";import"./twoFactorAuth-204b5cac.js";import"./metaBrandName-8c88e991.js";const Ge={key:0},ze={class:"login-section text-center"},De={class:"footer"},qe={class:"font-small medium forgotText text-center text-sm"},D=ge({__name:"index",setup(Xe){const N=_e(),q=de(),s=fe(),n=he(),_=ve(),{t:i}=Ee(),{email:X,password:H}=we(n),S=Se(!1),{showBanner:O,bannerVariant:C}=re(),{isNewSignupDesign:W}=xe(),f=V({notAuthorizedException:!1,tooManyAttemptsException:!1});N.setActiveStepId(0),N.setWithoutStepperPageTitle(i("signinPage.title")),Be("signinPage"),ke(()=>{_.identify({}),_.track({eventName:l.signIn.PAGE_LOAD})});const r=V({password:H.value??"",emailField:X.value??""}),K=y(()=>b.$anyInvalid||I.$anyInvalid),I=R({$value:x(r,"emailField"),required:{$validator:G.$validator,$message:i("signupPage.email.validation.required")},email:{$validator:Re.$validator,$message:i("signupPage.email.validation.emailTypeText")}}),b=R({$value:x(r,"password"),required:{$validator:G.$validator,$message:i("signinPage.password.validation.required")}});Ve({location:l.signIn.LOGIN_LOCATION,email:x(r,"emailField"),emailValid:y(()=>!I.$anyInvalid),password:x(r,"password"),passwordValid:y(()=>!b.$anyInvalid)});const j=()=>{s.push("/signup")},A=()=>{f.notAuthorizedException=f.tooManyAttemptsException=!1},J=o=>{var t;switch(o.authenticationResult.code){case"CognitoUserNotFoundException":f.notAuthorizedException=!0;break;case"CognitoNotAuthorizedException":{if(o.authenticationResult.message==="Password attempts exceeded"){s.push("/signin/error");break}f.notAuthorizedException=!0,M("credentials");break}case"CognitoTooManyRequestsException":f.tooManyAttemptsException=!0;break;case"CognitoUserNotConfirmedException":n.platform===U.XEMT&&n.setAccountType("XERA"),n.resendConfirmationCodeEmail(),s.push("/signup/email-verification");break;case"CognitoPasswordResetRequiredException":s.push("/forgot-password/email-verification");break;case"CognitoUnknownError":default:{const a=(t=o.authenticationResult.cognitoError)==null?void 0:t.code;a==="AccountClosedException"?(M("accountClosed"),s.push("/signin/closed")):a==="AccountLockedException"?(L("locked"),s.push("/signin/locked")):a==="EmailNotVerifiedException"?s.push("/signin/email-verification"):(B("Failed to login "+a,"page/siginin.onSubmit"),L("unknown"),s.push("/signin/error"))}}},T=async o=>{o==="loginStarted"&&_.track({eventName:l.signIn.LOGIN_STARTED,properties:{loginMethod:l.signIn.LOGIN_METHOD}}),o==="loginSuccessful"&&await Promise.allSettled([_.identify({traits:{userId:n.profileId}}),_.track({eventName:l.signIn.LOGIN_SUCCESSFUL,properties:{loginMethod:l.signIn.LOGIN_METHOD}})])},L=o=>{let t="";switch(o){case"locked":t=l.signIn.LOGIN_ERROR_ACCOUNT_LOCKED;break;case"unknown":t=l.signIn.LOGIN_ERROR_UNKNOWN;break}_.track({eventName:t,properties:{location:l.signIn.LOGIN_LOCATION}})},M=o=>{_.track({eventName:l.signIn.LOGIN_FAILED,properties:{failReason:o,loginMethod:"email"}})},Q=async()=>{var o,t;S.value=!0,n.setEmail(r.emailField),window.xeSession&&((o=window.xeSession.consentManager)==null||o.updateConsentState({compliance:!0})),n.setPassword(r.password),T("loginStarted");try{n.redirectUrl&&(n.redirectUrl.indexOf("help")!==-1||n.redirectUrl.indexOf("zendesk")!==-1)?n.setHelpcentre(!0):n.setHelpcentre(!1);const a=await n.signinEmail();if((t=a==null?void 0:a.authenticationResult)!=null&&t.success){await T("loginSuccessful");const u=await Ue(a);u.internal?s.push(u.path):window.location.href=u.path}else J(a),S.value=!1}catch(a){const u=Oe(a);S.value=!1,B("Failed to login "+u.message,"page/siginin.onSubmit"),s.push("/signin/error")}},Y=o=>{Fe({platform:n.platform,provider:o,state:"signin"})};return(o,t)=>
1{const a=$e,u=Pe,P=Ce,Z=Me,ee=Le,te=pe,ne=Ae,oe=me,ie=ue,ae=le,se=ce;return d(),k("div",{class:be(["signin-shell",{"signin-shell--xe-white":e(W)}])},[p(ie,{sheet:"",centered:""},Ie({default:c(()=>[e(n).loginMessage?(d(),v(u,{key:0,theme:"warning",class:"loginmessage mb-4"},{title:c(()=>[g(m(e(i)("signupPage.loginMessage.title")),1)]),default:c(()=>[(d(!0),k(F,null,ye(e(n).loginMessageLines,(h,$)=>(d(),k(F,{key:$},[$>0?(d(),k("br",Ge)):E("",!0),g(m(h),1)],64))),128))]),_:1})):E("",!0),e(f).notAuthorizedException?(d(),v(u,{key:1,theme:"error",class:"mb-4"},{default:c(()=>[g(m(e(i)("signinPage.Incorrect")),1)]),_:1})):e(f).tooManyAttemptsException?(d(),v(u,{key:2,theme:"error",class:"mb-4"},{default:c(()=>[g(m(e(i)("signinPage.ExceededLimit")),1)]),_:1})):E("",!0),w("div",ze,[w("p",null,[g(m(e(i)("signinPage.NoAccount"))+" ",1),p(P,{theme:"primary",target:"xe-signup",onClick:j},{default:c(()=>[g(m(e(i)("signinPage.NotRegistered")),1)]),_:1})])]),w("form",{onSubmit:t[3]||(t[3]=Ne(()=>{},["prevent"]))},[p(Z,{modelValue:e(r).emailField,"onUpdate:modelValue":t[0]||(t[0]=h=>e(r).emailField=h),modelModifiers:{trim:!0},label:e(i)("signupPage.email.label"),"data-testId":"signin-email",validation:e(I),placeholder:e(i)("signinPage.email.placeholder"),type:"email",autocomplete:"username",onInput:A},null,8,["modelValue","label","validation","placeholder"]),p(ee,{modelValue:e(r).password,"onUpdate:modelValue":t[1]||(t[1]=h=>e(r).password=h),modelModifiers:{trim:!0},label:e(i)("signupPage.password.label"),validation:e(b),"data-testId":"signin-password",placeholder:e(i)("signinPage.password.placeholder"),"aria-label":"password",autocomplete:"current-password",onInput:A},null,8,["modelValue","label","validation","placeholder"]),e(n).platform===e(U).XECI?(d(),v(te,{key:0,from:"signin"})):E("",!0),w("div",De,[p(ne,{loading:e(S),disabled:e(K)||e(S),type:"submit",class:"submit-button w-full",onClick:Q},{default:c(()=>[g(m(e(i)("component.button.loginText")),1)]),_:1},8,["loading","disabled"]),w("p",qe,[p(P,{theme:"primary",class:"forgotText",onClick:t[2]||(t[2]=h=>e(s).push("/forgot-password"))},{default:c(()=>[g(m(e(i)("signinPage.ForgotPassword")),1)]),_:1})]),p(oe,{"show-divider":!0,horizontal:!0,onSignInWithSocial:Y})])],32)]),_:2},[e(q).current!=="xs"?{name:"header",fn:c(()=>[p(a,null,{default:c(()=>[w("h1",null,m(e(i)("signinPage.title")),1)]),_:1})]),key:"0"}:void 0]),1024),e(O)?(d(),v(ae,{key:0,variant:e(C)},null,8,["variant"])):E("",!0),e(O)?(d(),v(se,{key:1,variant:e(C)},null,8,["variant"])):E("",!0)],2)}}});typeof z=="function"&&z(D);const ct=Te(D,[["__scopeId","data-v-be44de7f"]]);export{ct as default};
2//# sourceMappingURL=index-67c52a7b.js.map

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.