PageSourceSearch

https://myaccount.socalgas.com/ui/_next/static/chunks/5898-73f6193ef5c75a17.js

js socalgas.com collected 2026-09-24 08:56:38 UTC 31,680 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5898],{25898:(e,t,i)=>{i.d(t,{$4:()=>h,E:()=>p,vN:()=>u,ZE:()=>g,zP:()=>v,EM:()=>O,cB:()=>U,kj:()=>y,M6:()=>C,lS:()=>b,RY:()=>Y,J0:()=>w,Ke:()=>P,Pp:()=>Z,rl:()=>f,hq:()=>A,J:()=>o,A2:()=>S,mr:()=>N,Yg:()=>T,DO:()=>j});var a=i(6029),n=i(66297),s=i(59125);let o=({accessDenied:e,customerTypeBusiness:t,noAlerts:i,notEnrolled:o,accountError:r})=>{let{t:d}=(0,s.Bd)(["common"]);return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)("div",{className:"lg:px-[67px] lg:py-10 p-4",children:(0,a.jsx)(n.PW,{headingText:d("notification.permissionRequired.heading"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"no-alerts-permission-required",children:(0,a.jsx)("p",{className:"pt-1",children:d("notification.permissionRequired.message")})})}),t&&(0,a.jsx)("div",{className:"px-4 sm:px-8 md:mx-auto my-10 h-auto w-full",children:(0,a.jsx)(n.PW,{headingText:d("notification.customerTypeBusiness.heading"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"no-alerts-business-customer",className:"max-w-content w-full mx-auto",children:(0,a.jsx)("p",{className:"pt-1",children:d("notification.customerTypeBusiness.message")})})}),i&&(0,a.jsx)("div",{className:"lg:px-[67px] lg:py-10 p-4",children:(0,a.jsx)(n.PW,{headingText:d("notification.accountClosed.heading"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"no-alerts-no-alerts",children:(0,a.jsx)("p",{className:"pt-1",children:d("notification.accountClosed.message")})})}),o&&(0,a.jsx)(n.PW,{"data-testid":"not-enrolled-notificaiton",className:"pb-4",headingText:d("notification.notEnrolled"),headingLevel:2,iconName:"error",priority:"medium"}),r&&(0,a.jsx)("div",{className:"lg:px-[67px] lg:py-10 p-4",children:(0,a.jsx)(n.PW,{headingText:d("billReadyNotification.heading"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"no-alerts-account-error",children:(0,a.jsx)("p",{className:"pt-1",children:d("billReadyNotification.message")})})})]})};var r=i(55729),d=i(88110),l=i(50078),c=i(83351),m=i(53100);let f=({message:e,agreedToTerms:t,setAgreedToTerms:i,verifyCodeForm:o,sendCodeForm:f,mfaStatusText:x,requestCode:h})=>{let{t:p}=(0,s.Bd)("common"),[u,g]=(0,r.useState)(!1),[v,N]=(0,r.useState)(!1),{handleSubmit:T}=f,{control:j}=o,E=()=>{h()};return(0,r.useEffect)(()=>{u&&T(E)},[u]),(0,r.useEffect)(()=>{g(!0)},[]),(0,r.useEffect)(()=>{x===c.av.ATTEMPTS_EXCEEDED&&N(!0)},[x]),(0,a.jsxs)("div",{"data-testid":"mfa-phone-verification-code",className:"flex flex-col w-full min-h-96 gap-4",children:[x===c.av.VERIFICATION_NEEDED&&(0,a.jsx)(n.PW,{headingText:"",headingLevel:2,iconName:"check_circle",priority:"success","data-testid":"verification-needed-notification",children:(0,a.jsx)("p",{"data-testid":"message",children:p("alertsModal.notifications.mfaModalVerification.codeSent")})}),x===c.av.UNMATCHED_CODE&&(0,a.jsx)(n.PW,{headingText:"",headingLevel:2,iconName:"warning",priority:"high","data-testid":"unmatched-code-notification",children:(0,a.jsx)("p",{"data-testid":"message",children:p("alertsModal.notifications.mfaModalVerification.unMatchedCode")})}),x===c.av.ATTEMPTS_EXCEEDED_WARNING&&(0,a.jsx)(n.PW,{headingText:p("alertsModal.notifications.mfaModalVerification.maxAttemptsExceededWarning.heading"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"max-attempts-exceeded-warning-notification",children:(0,a.jsx)("p",{"data-testid":"message",className:"pt-4",children:p("alertsModal.notifications.mfaModalVerification.maxAttemptsExceededWarning.message")})}),x===c.av.ATTEMPTS_EXCEEDED&&(0,a.jsx)(n.PW,{headingText:p("alertsModal.notifications.mfaModalVerification.maxAttemptsExceeded.heading"),headingLevel:2,iconName:"warning",priority:"high","data-testid":"max-attempts-exceeded-notification",children:(0,a.jsx)("p",{"data-testid":"message",className:"pt-4",children:(0,a.jsx)(s.x6,{i18nKey:"common:alertsModal.notifications.mfaModalVerification.maxAttemptsExceeded.message",components:[(0,a.jsx)("a",{href:"tel:18772380092",children:"*"},"phone-number")]})})}),(0,a.jsx)("div",{className:"text-neutral-90",children:e}),(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)(d.A,{"data-testid":"mfa-phone-verification-code-input",n
1ame:"securityCode",control:j,allowOnlyDigits:!0})}),(0,a.jsx)("div",{className:"flex text-[#001A70]",children:(0,a.jsx)(n.au,{buttonText:p("alertsModal.sendNewCode"),"data-testid":"resend-code-btn",size:"large",type:"tertiary",iconName:"refresh",iconSize:20,iconPosition:"left",onClick:T(E),...v?{disabled:!0}:{}})}),(0,a.jsx)(l.m,{id:"agree-to-text-terms",isChecked:t,onChange:()=>i(!t),children:(0,a.jsx)("p",{className:"text-neutral-90",children:(0,a.jsx)(s.x6,{i18nKey:"common:alertsModal.agreeToTerms",components:[(0,a.jsx)("a",{href:`https://${m.rN}.socalgas.com/sms-terms-of-service-for-text-alerts`,target:"_blank",rel:"noreferrer",children:"*"},"link")]})})})]})};var x=i(81278);let h=({heading:e,description:t,isAccessRequestEnabled:i=!1,navigation:s})=>{let{push:o}=(0,x.useRouter)();return(0,a.jsxs)(n.PW,{headingText:e,headingLevel:2,iconName:"info",priority:"medium","data-testid":"notification-component",children:[(0,a.jsx)("p",{"data-testid":"description",className:"text-neutral-90",children:t}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(n.au,{buttonText:"Log In",type:"tertiary",size:"small",iconPosition:"right",iconName:"chevron_right",onClick:()=>{o(m.Yw)}}),i&&(0,a.jsx)(n.au,{buttonText:"Request Access",type:"tertiary",size:"small",iconPosition:"right",iconName:"chevron_right",onClick:()=>{s?.navigate("RequestAccessPage")}})]})]})},p=({heading:e,description:t})=>(0,a.jsx)(n.PW,{headingText:e,headingLevel:2,iconName:"info",priority:"low","data-testid":"notification-component",children:(0,a.jsx)("p",{"data-testid":"description",children:t})}),u=({heading:e,description:t,navigation:i})=>{let{push:s}=(0,x.useRouter)();return(0,a.jsxs)(n.PW,{headingText:e,headingLevel:2,iconName:"info",priority:"medium","data-testid":"delegate-request-access-notification",children:[(0,a.jsx)("p",{"data-testid":"description",className:"text-neutral-90",children:t}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(n.au,{buttonText:"Log In",type:"tertiary",size:"small",iconPosition:"right",iconName:"chevron_right",onClick:()=>{s(m.Yw)}}),(0,a.jsx)(n.au,{buttonText:"Request Access",type:"tertiary",size:"small",iconPosition:"right",iconName:"chevron_right",onClick:()=>{i?.navigate("RequestAccessPage")}})]})]})},g=()=>{let{t:e}=(0,s.Bd)(["common","registration"]),t=`tel: ${e("notification.accountIneligible.helpPhoneNumber")}`,i=e("notification.accountIneligible.headingText");return(0,a.jsx)(n.PW,{headingText:i,headingLevel:2,iconName:"error",priority:"medium",children:(0,a.jsxs)("p",{className:"text-sm",children:[(0,a.jsx)("span",{"data-testid":"description",children:e("notification.accountIneligible.description")}),(0,a.jsx)("a",{href:t,className:"whitespace-nowrap","data-testid":"helpPhoneNumber",children:e("notification.accountIneligible.helpPhoneNumber")}),(0,a.jsx)("span",{"data-testid":"descriptionPartTwo",children:e("notification.accountIneligible.descriptionPartTwo")}),(0,a.jsx)("a",{href:e("notification.accountIneligible.customerServiceHoursLink"),target:"_blank","data-testid":"descriptionPartThree",rel:"noreferrer",children:e("notification.accountIneligible.descriptionPartThree")})]})})},v=()=>{let{t:e}=(0,s.Bd)(["registration"]);return(0,a.jsx)(n.PW,{headingText:e("notification.maxLookupYourAccount.header"),headingLevel:2,iconName:"warning",priority:"medium","data-testid":"notification-component",children:(0,a.jsx)("p",{"data-testid":"description",children:(0,a.jsx)(s.x6,{i18nKey:"registration:notification.maxLookupYourAccount.description",components:[(0,a.jsx)("a",{className:"ml-1",href:"tel:18772380092",children:"*"},"phone-number"),(0,a.jsx)("a",{target:"_blank",href:m.xx,rel:"noreferrer",children:"*"},"contact-us")]})})})},N=({header:e,fields:t,hasEditButton:i,editLabel:s,navigation:o})=>(0,a.jsxs)("section",{className:"flex flex-col rounded-lg w-full bg-white p-4 gap-1 my-4 ",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center justify-between pb-2",children:[(0,a.jsx)("h2",{className:"text-[#010E3A] text-xl font-semibold pt-2 pb-1 ",children:e}),i&&(0,a.jsx)(n.au,{type:"tertiary",iconSize:20,iconName:"edit",buttonText:s,size:"small",onClick:()=>{o?.navigate("CreateYourOnlineProfilePage")},iconPosition:"left",color:"primary-60","data-testid":"edit-button"})]}),t.map((e,t)=>(0,a.jsxs)("div",{children:[i&&(0,a.jsx)("hr",{className:"h-px bg-gray-300 border-0 dark:bg-gray-700",role:"presentation"}),e]},`${"field-"+t}`))]}),T=({title:e,children:t})=>(0,a.jsxs)("section",{className:"flex flex-col w-full bg-white py-3 gap-2",children:[(0,a.jsx)("h2",{className:"text-neutral-90 text-base font-semibold leading-6",children:e}),(0,a.jsx)("div",{children:t})]},`${e}-field`);function j({ruleText:e,pattern:t,value:i=""}){let s=t.test(i);return(0,a.jsxs)("div",{className:"flex mb-2 gap-1 items-center",children:[s?(0,a.jsx)(n.NW,{"data-testid":"condition-met-icon",fill:1,iconName:"
1check_circle",color:"semantic-positive-03",opticalSize:16}):(0,a.jsx)(n.NW,{"data-testid":"condition-not-met-icon",fill:0,iconName:"highlight_off",opticalSize:16}),(0,a.jsx)("p",{"data-testid":"validation-rule-text",className:"text-sm",children:e})]})}let E=({isDisabled:e,handleSendNewCode:t,handleSendNewCodeErrorCodes:i,hideAllNotifications:o,setIsNewCodeSent:d})=>{let{t:l}=(0,s.Bd)(),c=(0,r.useRef)(!1);return(0,a.jsx)(n.au,{type:"tertiary",...e?{disabled:!0}:{},iconSize:20,iconName:"refresh",buttonText:l("verificationCode:mfa.selectVerificationMethod.sendNewCodeText"),size:"small",iconPosition:"left",color:"primary-60",onClick:()=>{c.current||(c.current=!0,o(),t().then(()=>{d(!0)}).catch(i).finally(()=>c.current=!1))},"data-testid":"send-new-code"})},y=({isDisabled:e,handleSendNewCode:t,hideAllNotifications:i,setIsNewCodeSent:o,handleSendNewCodeErrorCodes:r})=>{let{t:d}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsxs)(n.PW,{"data-testid":"expired-code-notification",headingLevel:6,priority:"high",headingText:d("enterCode.expired.title"),iconName:"warning",children:[(0,a.jsx)("p",{children:d("enterCode.expired.description")}),t&&r&&(0,a.jsx)(E,{isDisabled:e,handleSendNewCode:t,handleSendNewCodeErrorCodes:r,hideAllNotifications:i,setIsNewCodeSent:o})]})})},C=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(n.PW,{"data-testid":"invalid-code-notification",className:"font-normal",headingLevel:6,iconName:"warning",priority:"high",children:e("verificationCode:mfa.errorMessages.invalidCode")})})},b=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(n.PW,{"data-testid":"last-attempt-notification",headingLevel:2,iconName:"error",priority:"medium",children:(0,a.jsx)("p",{"data-testid":"description",children:e("verificationCode:mfa.notifications.LastAttemptVerifyCodeMFA.description")})})})};var M=i(75329);let P=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]),t=(0,x.useRouter)();return(0,a.jsx)(n.fJ,{showModalHeader:!1,"data-testid":"maximum-attempts-exceeded-modal",hasSecondaryButton:!1,primaryButtonSize:"large",primaryButtonType:"primary",primaryButtonText:e("verificationCode:mfa.errorMessages.maximumAttemptsExceeds.return"),onPrimaryButtonEvent:()=>t.push(m.Yw),secondaryButtonSize:"large",type:"input",isFormValid:!0,isOpen:!0,headingText:e("paperless.modalHeading"),showCloseButton:!1,children:(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsx)("h2",{className:"text-left text-xl mb-4",children:"We are sorry."}),(0,a.jsx)("p",{className:"text-left",children:(0,a.jsx)(s.x6,{i18nKey:"verificationCode:mfa.errorMessages.maximumAttemptsExceeds.description1",components:[(0,a.jsx)("a",{href:m.xx,target:"_blank",children:"*"},"link")]})}),(0,a.jsx)("p",{className:"text-left mt-4",children:(0,a.jsx)(s.x6,{i18nKey:"verificationCode:mfa.errorMessages.maximumAttemptsExceeds.description2",components:[(0,a.jsx)(M.HW,{telephoneNumber:e("verificationCode:mfa.errorMessages.maximumAttemptsExceeds.descriptionNumber1"),children:e("verificationCode:mfa.errorMessages.maximumAttemptsExceeds.descriptionNumber1")},"blocked-link")]})}),(0,a.jsx)("p",{className:"text-left mt-4 mb-4",children:(0,a.jsx)(s.x6,{i18nKey:"login:mfa.errorMessages.maximumAttemptsExceeds.description3",components:[(0,a.jsx)(M.HW,{telephoneNumber:e("verificationCode:mfa.errorMessages.maximumAttemptsExceeds.descriptionNumber2"),children:e("verificationCode:mfa.errorMessages.maximumAttemptsExceeds.descriptionNumber2")},"blocked-link")]})})]})})},w=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(n.PW,{bodyText:e("verificationCode:mfa.errorMessages.maxRequestsExceeded.bodyText"),"data-testid":"max-requests-exceeded-notification",headingLevel:6,headingText:e("verificationCode:mfa.errorMessages.maxRequestsExceeded.headingText"),iconName:"warning",priority:"high"})})},A=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(n.PW,{"data-testid":"sent-new-code
1-notification",className:"font-normal",headingLevel:3,iconName:"check_circle",priority:"success",bodyText:e("verificationCode:mfa.errorMessages.newCodeSent"),headingText:e("verificationCode:mfa.errorMessages.newCodeSentTitle")})})},S=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(n.PW,{"data-testid":"one-request-left-notification",headingLevel:6,priority:"medium",headingText:e("verificationCode:mfa.errorMessages.oneMoreRequest.heading"),iconName:"error",bodyText:e("verificationCode:mfa.errorMessages.oneMoreRequest.body")})})},I=()=>{let{t:e}=(0,s.Bd)(["verificationCode"]);return(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(n.PW,{"data-testid":"voip-service-notification",className:"text-sm",iconName:"info",priority:"low",children:(0,a.jsx)(s.x6,{i18nKey:"verificationCode:mfa.infoMessages.voipServiceNotification.description",components:{a:(0,a.jsx)("a",{href:"tel:1-877-238-0092","aria-label":e("verificationCode:mfa.infoMessages.voipServiceNotification.alt")})}})})})};var _=i(19956);let L=({form:e,updateCode:t,showRememberMe:i,handleVerifyCode:n,isDisabled:o})=>{let{t:l}=(0,s.Bd)(["verificationCode"]),{control:c,watch:m}=e,f=(0,r.useRef)(null),x=m("mfaCode");return(0,r.useEffect)(()=>{t(x??"")},[t,x]),(0,a.jsx)("form",{method:"POST",action:"",ref:f,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"one-time-verification-form",children:[(0,a.jsx)(d.A,{control:c,name:"mfaCode",onSubmit:t=>{n(t,e.getValues("rememberMe"))}}),i&&(0,a.jsx)(_.p,{text:l("verificationCode:mfa.selectVerificationMethod.rememberMeText"),checkboxId:"authenticator-otp-remember-me",name:"rememberMe",defaultValue:!1,control:c})]})})};var R=i(1909);let O=(0,s.CI)()(({handleSendNewCode:e,handleSendNewCodeErrorCodes:t,handleVerifyCode:i,hideAllNotifications:o,formHeader:d,formDescription:l,hasRememberMe:c,hasOneRequestLeft:m,isNewCodeSent:f,setIsValidationCodeIncorrect:x,setIsValidationCodeExpired:h,setIsLastAttemptsVerifyCode:p,setIsMaxAttemptsExceeded:u,setIsNewCodeSent:g,isMaxRequestsExceeded:v,verificationType:N})=>{let{t:T}=(0,s.Bd)(["verificationCode"]),j=(0,R.mN)({mode:"onTouched"}),y=(0,r.useRef)(!1),[C,b]=(0,r.useState)(""),M=e=>{b(e)},P=async e=>{let t=e?.response?.status,i=e?.response?.data?.code;o(),A(),401==t&&"INVALID_CODE"===i?x(!0):401==t&&"EXPIRED_CODE"===i?h(!0):403===t?u&&u(!0):429==t&&"ONE_REQUEST_LEFT"===i&&p&&p(!0)},w=e&&t&&!v,A=()=>{j.reset(),M("")};(0,r.useEffect)(()=>{(f||v||m)&&A()},[f,v,m]);let S=()=>
1{if(!y.current)return y.current=!0,i(C,j.getValues("rememberMe")).catch(P).finally(()=>y.current=!1)};return(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col md:w-[500px] md:mx-0",children:[(0,a.jsx)("div",{className:"flex-col justify-center",children:d}),(0,a.jsxs)("div",{className:"rounded-lg flex flex-col bg-white",children:[(0,a.jsx)("div",{className:"mb-4",children:l}),"EMAIL"==N?null:(0,a.jsx)(I,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(L,{form:j,updateCode:M,showRememberMe:c,handleVerifyCode:S,isDisabled:y.current}),w&&(0,a.jsx)(E,{isDisabled:y.current||v,handleSendNewCode:()=>e(),handleSendNewCodeErrorCodes:t,hideAllNotifications:o,setIsNewCodeSent:g}),(0,a.jsx)(n.au,{type:"primary",size:"large",buttonText:T("verificationCode:mfa.selectVerificationMethod.verifyButtonText"),...6!==C.length||y.current?{disabled:!0}:{},onClick:S,className:"ml-auto","data-testid":"verify-code-button"})]})]})]})})});var D=i(85794),F=i(85591),k=i(69703),V=i(95669),B=i.n(V),W=i(98865),G=i(52229),z=i(76110);let U=(0,s.CI)()(({navigation:e,params:t})=>{let{t:i}=(0,s.Bd)(["verificationCode"]),o=(0,x.useRouter)(),d=(0,G.useSearchParams)(),{mfaDestinationInfo:l,mfaIndex:c,mfaType:f,mfaFlow:h}=t??{},{mfaMethods:p,setIsUserInMFAFlow:u}=(0,k.i1)(),{postVerifyMfaCode:g,postSelectMfaMethod:v}=(0,F.Zg)(),[N,T]=(0,r.useState)(!1),[j,E]=(0,r.useState)(!1),[y,M]=(0,r.useState)(!1),[I,_]=(0,r.useState)(!1),[L,R]=(0,r.useState)(!1),[V,U]=(0,r.useState)(!1),{sendLoginGtmEvent:Y}=(0,z.N3)(),Z=()=>{E(!1),M(!1),_(!1),R(!1),U(!1),T(!1)},K=async e=>{e?.response?.status===429&&(e?.response?.data?.code==="ONE_REQUEST_LEFT"&&(Z(),R&&R(!0)),e?.response?.data?.code==="MAX_REQUESTS_EXCEEDED"&&(Z(),U&&U(!0)))},X=i(h===F.Zy.FORGOT?"forgotPassword:mfaPassword.enterVerificationCode.pageTitle":"login:mfa.enterVerificationCode.pageTitle");return(0,r.useEffect)(()=>{(0,W.sendGTMEvent)({event:"pageTitle",value:X})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B(),{children:(0,a.jsx)("title",{children:X})}),(0,a.jsx)("div",{className:"flex justify-center mb-16",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6 mt-10 md:w-[500px] mx-4 md:mx-0",children:[(0,a.jsxs)("div",{className:"flex-col justify-center",children:[h===F.Zy.FORGOT&&(0,a.jsx)("h3",{className:"md:text-center font-medium text-neutral-90",children:i("verificationCode:mfaPassword.title")}),h===F.Zy.LOGIN&&(0,a.jsx)("h3",{className:"md:text-center font-medium text-neutral-90",children:i("verificationCode:mfa.selectVerificationMethod.title")}),(0,a.jsx)("h1",{className:"md:text-center font-medium text-2xl text-[#010E3A] mt-2",children:i("verificationCode:mfa.selectVerificationMethod.verificationCodeText")}),(0,a.jsxs)("div",{className:"flex-col justify-center",children:[j&&(0,a.jsx)(C,{}),L&&(0,a.jsx)(S,{}),V&&(0,a.jsx)(w,{}),I&&(0,a.jsx)(A,{}),y&&(0,a.jsx)(b,{}),N&&(0,a.jsx)(P,{})]})]}),(0,a.jsx)("div",{className:"rounded-lg flex flex-col bg-white p-6 gap-4",children:(0,a.jsx)(O,{handleSendNewCode:f!==F.zd.TOTP?()=>v({mfaFlow:h,mfaIndex:c}):void 0,handleSendNewCodeErrorCodes:K,hideAllNotifications:Z,hasRememberMe:!0,handleVerifyCode:(t,i)=>g({mfaCode:t,mfaFlow:h,mfaIndex:c,trustDevice:i}).then(()=>{let t=d?.get("callback");if(h===F.Zy.LOGIN){let e=t||`${o.basePath}${m.Eo}`;u(!1),(0,D.Uj)(e),(0,W.sendGTMEvent)({event:"mfaLoginSuccess"}),e.endsWith(m.Eo)&&Y("HomePage")}else e?.navigate("ResetPasswordPage")}),setIsValidationCodeIncorrect:E,setIsValidationCodeExpired:E,hasOneRequestLeft:L,isMaxRequestsExceeded:V,isNewCodeSent:I,setIsNewCodeSent:_,setIsLastAttemptsVerifyCode:M,setIsMaxAttemptsExceeded:T,formDescription:(0,a.jsx)("p",{className:"font-medium text-neutral-90",children:f===F.zd.TOTP?(0,a.jsx)(a.Fragment,{children:i("verificationCode:mfa.selectVerificationMethod.TOTP.sentOtpText")}):(0,a.jsx)(s.x6,{i18nKey:`verificationCode:mfa.selectVerificationMethod.${f}.sentOtpText`,values:{verificationInfo:l}})})})})]})}),(0,a.jsx)(n.qr,{children:p?.length>1&&(0,a.jsx)(n.au,{slot:"back-button",buttonText:i("verificationCode:button.back"),size:"small",type:"primary",iconName:"
1chevron_left",iconPosition:"left",iconSize:15,onClick:()=>e?.navigate("MfaMethodSelectionPage",{mfaFlow:h})})})]})}),Y=(0,s.CI)()(()=>{let{t:e}=(0,s.Bd)(["login"]),t=(0,x.useRouter)();return(0,a.jsx)("section",{className:"flex-grow mb-16",children:(0,a.jsx)("div",{className:"md:px-16 pt-10 px-4",children:(0,a.jsxs)(n.PW,{headingText:e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.headingText"),headingLevel:2,iconName:"info",priority:"medium","data-testid":"max-attempts-exceeded-notification",children:[(0,a.jsxs)("div",{className:"text-sm font-normal pt-2 text-neutral-90",children:[(0,a.jsx)("p",{className:"pb-4",children:e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.bodyText")}),(0,a.jsx)("p",{className:"pb-4",children:e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.callUsText")}),(0,a.jsxs)("p",{className:"pb-4 md:flex",children:[e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.line1")," ",(0,a.jsx)("a",{href:"tel:18772380092",children:e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.link1")})]}),(0,a.jsxs)("p",{className:"md:flex",children:[e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.line2")," ",(0,a.jsx)("a",{href:"tel:18004272000",children:e("login:mfa.errorMessages.maxAttemptsExceededInvalidCode.link2")})]})]}),(0,a.jsx)(n.au,{buttonText:"Return to Log In",type:"tertiary",size:"small",iconPosition:"right",onClick:()=>{t.push(m.Yw)}})]})})})}),Z=(0,s.CI)()(({navigation:e,params:t})=>{let{t:i}=(0,s.Bd)(["login","forgotPassword"]),[o,d]=(0,r.useState)(!1),{handleRetriveMfaMethods:l}=(0,z.vz)(e),{mfaMethods:c}=(0,k.i1)(),{postSelectMfaMethod:m,postRetrieveMfaMethods:f}=(0,F.Zg)(),{mfaFlow:x}=t??{};(0,r.useEffect)(()=>{o||x!==F.Zy.FORGOT||f({mfaFlow:x}).then(e=>{l(e,x),d(!0)}),(0,W.sendGTMEvent)({event:"pageTitle",value:h})},[]);let h=x===F.Zy.FORGOT?i("forgotPassword:mfaPassword.pageTitle"):i("login:mfa.selectVerificationMethod.pageTitle");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B(),{children:(0,a.jsx)("title",{children:h})}),(0,a.jsx)("div",{className:"flex justify-center mb-16",children:(0,a.jsxs)("div",{className:"flex flex-col md:gap-6 gap-4 mt-4 md:mt-10 md:w-[500px] mx-4 md:mx-0",children:[(0,a.jsxs)("div",{className:"flex-col justify-center",children:[x===F.Zy.FORGOT&&(0,a.jsx)("h3",{className:"md:text-center font-medium text-neutral-90",children:i("forgotPassword:mfaPassword.title")}),x===F.Zy.LOGIN&&(0,a.jsx)("h3",{className:"md:text-center font-medium text-neutral-90",children:i("login:mfa.selectVerificationMethod.title")}),(0,a.jsx)("h1",{className:"md:text-center font-medium text-2xl text-[#010E3A] mt-2",children:i("login:mfa.selectVerificationMethod.subTitle")}),x===F.Zy.FORGOT&&(0,a.jsx)("p",{className:"md:text-center font-normal text-neutral-90 mt-4 md:mt-6",children:i("forgotPassword:mfaPassword.description")}),x===F.Zy.LOGIN&&(0,a.jsx)("p",{className:"md:text-center font-normal text-neutral-90 mt-4 md:mt-6",children:i("login:mfa.selectVerificationMethod.description")})]}),c?.map(t=>(0,a.jsxs)("button",{className:"flex rounded-lg w-full bg-white p-4 gap-4 text-start justify-between items-center","data-testid":`${t.mfaType}-mfa-verification-${t.mfaIndex}`,onClick:()=>{m({mfaFlow:x,mfaIndex:t.mfaIndex}).then(()=>{e?.navigate("EnterVerificationCodeMFAPage",{mfaFlow:x,mfaDestinationInfo:t.mfaDestinationInfo,mfaIndex:t.mfaIndex,mfaType:t.mfaType})})},children:[(0,a.jsxs)("div",{className:"flex flex-col text-neutral-90 gap-1",children:[(0,a.jsx)("h3",{className:"font-medium",children:i(`login:mfa.selectVerificationMethod.${t.mfaType}.title`)}),"TOTP"!==t.mfaType&&(0,a.jsx)("p",{className:"font-semibold text-sm font-[Public-Sans]",children:(0,a.jsx)(s.x6,{i18nKey:`login:mfa.selectVerificationMethod.${t.mfaType}.heading`,values:t.mfaType===F.zd.CELL?{lastFourDigit:t.mfaDestinationInfo}:{email:t.mfaDestinationInfo}})}),(0,a.jsx)("p",{className:"text-sm font-normal font-[Public-Sans]",children:i(`login:mfa.selectVerificationMethod.${t.mfaType}.description`)})]}),(0,a.jsx)("div",{"data-testid":"card-right-icon",className:"flex items-center justify-center p-1 rounded-3xl bg-[#E7F1FF]",children:(0,a.jsx)(n.NW,{iconName:"
1chevron_right",opticalSize:20,color:"primary-60"})})]},t.mfaType))]})})]})})},65405:(e,t,i)=>{i.d(t,{Zy:()=>s,Zg:()=>n});var a=i(87304);let n=()=>({postForgotPassword:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/forgot-password",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postRetrieveVerificationMethods:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/retrieve-verification-methods",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postSelectVerificationMethod:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/select-verification-method",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postVerifySecurityInfo:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/verify-security-info",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postFindUserProfile:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/find-user-profile",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postRetrieveUsername:(e,t)=>(0,a.rP)({url:"/v1/web-user/authentication/retrieve-username",method:"POST",headers:{"Content-Type":"application/json"},data:e},t)}),s={LOGIN:"LOGIN",FORGOT:"FORGOT"}},76110:(e,t,i)=>{i.d(t,{bG:()=>g,vz:()=>C,N3:()=>T});var a=i(85591),n=i(81278),s=i(55729),o=i(1909),r=i(69703),d=i(53100),l=i(73697),c=i(85794),m=i(67853),f=i(98865),x=i(65405),h=i(52229),p=i(67889),u=i(46334);let g=(0,p.y)()((0,u.Zr)(e=>({gaStepStack:[],reset:()=>e({gaStepStack:[]}),setGaStepStack:t=>e({gaStepStack:t})}),{name:"login-step-stack"})),v={LoginPage:{event:"start_step",flow:"login",stepName:"login"},MfaMethodSelectionPage:{event:"load_step",flow:"login",stepName:"select_mfa_method"},EnterVerificationCodeMFAPage:{event:"load_step",flow:"login",stepName:"enter_mfa_code",mfaType:"authenticator_app"},LoginResetPasswordPage:{event:"load_step",flow:"login",stepName:"create_new_password"},HomePage:{event:"end_step",flow:"login",stepName:"home"}},N={TOTP:"authenticator_app",CELL:"text",EMAIL:"email"},T=(e,t)=>{let{gaStepStack:i,reset:a,setGaStepStack:n}=g.getState(),o=e=>{let s=v[e];if(!s||i.length>0&&i.at(-1)===e)return;if(i.includes(e)){let t=i.indexOf(e);i.splice(t+1)}else i.push(e);n(i);let o={...s,stepNumber:i.length,...s.mfaType?{mfaType:N[t?.mfaType]}:{}};(0,f.sendGTMEvent)(o),"HomePage"===e&&a()};return(0,s.useEffect)(()=>{e&&o(e)},[e]),{sendLoginGtmEvent:o}},j=()=>document.cookie.split("; "),E=e=>e.find(e=>e.startsWith("prefill_user="))?.split("=")[1],y=()=>!!E(j()),C=e=>{let[t,i]=(0,s.useState)(!1),[p,u]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[b,M]=(0,s.use
1State)(!1),[P,w]=(0,s.useState)(!1),[A,S]=(0,s.useState)(!1),I=E(j())??"",_=y(),{session:{status:L},refreshSession:R}=(0,l.wV)(),O=(0,h.useSearchParams)(),{resetAllStores:D}=(0,r.on)(),{maxLoginAttempts:F,setFoundUsername:k,setMaxLoginAttempts:V,setMfaMethods:B,setVerificationMethods:W,setIsUserInMFAFlow:G,isLinkedAccount:z,setIsLinkedAccount:U}=(0,r.i1)(),{fetchData:Y}=(0,r.nk)(),{treatment:Z}=(0,m.S)({name:"myAccount_mfaEnabled_frontend"}),K=(0,n.useRouter)(),{postLogin:X,postRememberMe:q,postRetrieveMfaMethods:$,postSelectMfaMethod:H}=(0,a.Zg)(),{postSelectVerificationMethod:J}=(0,x.Zg)(),Q=(0,o.mN)({mode:"onTouched",defaultValues:{password:"",rememberMe:_}}),{isPageLoading:ee}=(0,r.d0)({handleMFAFlow:ea,handleLoginErrorFlow:es}),{sendLoginGtmEvent:et}=T();(0,s.useEffect)(()=>{"authenticated"===L&&K.push(d.Eo)},[w,L]);let ei=Q.handleSubmit(async({email:e,password:t,rememberMe:i,recaptchaToken:a})=>{(0,f.sendGAEvent)({event:"loginButtonClicked",value:e});let n={userId:e,password:t,rememberMe:i};null!==a&&(n={...n,"g-recaptcha-response":a}),S(!1),R(),await Y(()=>X(n)).then(e=>{ea(e?.code)},e=>es(e))});async function ea(t){if(D(),w(!1),V(0),k(void 0),t===d.gK.MFA)if("off"!==Z){let e=await Y(()=>$({mfaFlow:"LOGIN"}));await en(e,a.Zy.LOGIN)}else e?.navigate("GlobalErrorPage");else{(0,f.sendGTMEvent)({event:"successfulLogin",value:""});let e=O?.get("callback")??`${K.basePath}${d.Eo}`;(0,c.Uj)(e),e.endsWith(d.Eo)&&et("HomePage")}}let en=async(t,i)=>{if(G(!0),B(t.mfaMethodsArray),t.mfaMethodsArray.length>1)e?.navigate("MfaMethodSelectionPage",{mfaFlow:i});else try{await Y(()=>H({mfaFlow:i,mfaIndex:t.mfaMethodsArray[0].mfaIndex})),e?.navigate("EnterVerificationCodeMFAPage",{mfaFlow:i,mfaDestinationInfo:t.mfaMethodsArray[0].mfaDestinationInfo,mfaIndex:t.mfaMethodsArray[0].mfaIndex,mfaType:t.mfaMethodsArray[0].mfaType})}catch{}};function es(t){switch(w(!1),M(!1),k(void 0),Q.reset(),t?.response?.data?.code){case d.gK.PASSWORD_RECENTLY_CHANGED:C(!0);break;case d.gK.MUST_CHANGE_PASSWORD:e?.navigate("LoginResetPasswordPage");break;case d.gK.UNAUTHORIZED:F+1===d.uD&&((0,f.sendGTMEvent)({event:"login_9th_attempt"}),K.push("/forgot-password")),V(F+1),w(!0);break;case d.gK.FORBIDDEN:(0,f.sendGTMEvent)({event:"login_10th_attempt"}),u(!0);break;case d.gK.ACCOUNT_LOCKED:v(!0);break;case d.gK.MULTIPLE_PROFILES:(0,f.sendGTMEvent)({event:"login_multiple_profiles"}),M(!0);break;default:{let e=t.response;if(e){let i=e.status;(0,c.xZ)(`useLogin: handleFormSubmitError: unhandled response - ${i}`,t),K.push(d.Bi)}else(0,c.xZ)("useLogin: handleFormSubmitError: no response received",t),S(!0)}}}let eo=e=>{Q.setValue("email",e.userId)},er=e=>{e?.response?.status===400&&i(!0)};return{form:Q,shouldRememberMeBeChecked:y,encryptedUserId:I,getCookies:j,getPrefillUserCookie:E,handleCancelDialogBox:()=>{u(!1),v(!1)},handleFormSubmit:ei,handleFormSubmitSuccess:ea,handleFormSubmitError:es,handleRememberMeSubmit:e=>{Y(()=>q(e)).then(e=>eo(e),e=>er(e))},handleRememberMeSubmitSuccess:eo,handleRememberMeSubmitError:er,handleRetriveMfaMethods:en,handleRetrieveVerificationMethods:async(t,i)=>{W(t.verificationMethodsArray),1===t.verificationMethodsArray.length?await Y(()=>J({verificationIndex:t.verificationMethodsArray[0].verificationIndex,verificationType:t.verificationMethodsArray[0].verificationType})).then(()=>{e?.navigate("EnterVerificationCodeNonMFAPage",{mfaFlow:i,forgotFlow:"password",verificationMethod:{verificationInfo:t.verificationMethodsArray[0].verificationInfo,verificationType:t.verificationMethodsArray[0].verificationType,verificationIndex:t.verificationMethodsArray[0].verificationIndex}})}):e?.navigate("MobileOnFileSelectionPage",{mfaFlow:i,verificationMethods:t.verificationMethodsArray})},setMfaMethods:B,setVerificationMethods:W,hasMultipleProfiles:b,isBadRequestRememberMe:t,isRememberMeChecked:_,isMaxAttemptsExceeded:p,isCSRAccountLocked:g,isUserRecentlyChangedPassword:N,isUserUnauthorized:P,maxLoginAttempts:F,isLinkedAccount:z,setIsLinkedAccount:U,isPageLoading:ee,isNetworkError:A,setIsNetworkError:S}}},83351:(e,t,i)=>{i.d(t,{V4:()=>s,vT:()=>
1o,DX:()=>d,av:()=>r,Es:()=>n});var a=i(87304);let n=()=>({postFetchManageAlerts:(e,t)=>(0,a.Il)({url:"/v1/web-user/preferences/fetch-manage-alerts",method:"POST",headers:{"Content-Type":"application/json"},data:e},t),postSaveManageAlerts:(e,t)=>(0,a.Il)({url:"/v1/web-user/preferences/save-manage-alerts",method:"POST",headers:{"Content-Type":"application/json"},data:e},t)}),s={GENERAL:"GENERAL",TEXT_ALERT:"TEXT_ALERT"},o={BILL_TRACKER:"BILL_TRACKER",PAYMENT_REMINDER:"PAYMENT_REMINDER",BILL_READY_NOTIFICATION_TEXT:"BILL_READY_NOTIFICATION_TEXT",PAY_BY_TEXT:"PAY_BY_TEXT",OBTAIN_BALANCE_BY_TEXT:"OBTAIN_BALANCE_BY_TEXT"},r={VERIFICATION_NEEDED:"VERIFICATION_NEEDED",ATTEMPTS_EXCEEDED_WARNING:"ATTEMPTS_EXCEEDED_WARNING",ATTEMPTS_EXCEEDED:"ATTEMPTS_EXCEEDED",UNMATCHED_CODE:"UNMATCHED_CODE",SAVED_SUCCESSFULLY:"SAVED_SUCCESSFULLY"},d={INDIVIDUAL:"INDIVIDUAL",BUSINESS:"BUSINESS"}}}]);

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.