PageSourceSearch

https://www.tgv.com.my/9264.8a19e880e00c98a8.js

js tgv.com.my collected 2026-10-02 06:52:28 UTC 10,544 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktgv_main=self.webpackChunktgv_main||[]).push([[9264],{89512:(C,p,a)=>{a.d(p,{n:()=>u});var c=a(51093),d=a(36856),v=a(87043);let u=(()=>{var e;class _{constructor(){this.basePageLayoutStore=(0,c.f3M)(v.a)}get pageContent(){if(this.sitePageLayoutComponent&&this.sitePageLayoutComponent.pageContent)return this.sitePageLayoutComponent.pageContent}ionViewWillEnter(){this.sitePageLayoutComponent.setSitePageLayout(),this.basePageLayoutStore.setScrollCheck({timestamp:(new Date).getTime(),pageContent:this.pageContent})}scrollPageToTop(){this.sitePageLayoutComponent.scrollToTopInstant()}scrollPageTo(r){this.sitePageLayoutComponent.scrollBy(r)}}return(e=_).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=c.Xpm({type:e,selectors:[["ng-component"]],viewQuery:function(r,h){if(1&r&&c.Gf(d.K,5),2&r){let m;c.iGM(m=c.CRH())&&(h.sitePageLayoutComponent=m.first)}},decls:0,vars:0,template:function(r,h){},encapsulation:2}),_})()},69264:(C,p,a)=>{a.r(p),a.d(p,{ProfileEmailCodePageModule:()=>O});var c=a(78594),d=a(82937),v=a(61194),u=a(27740),e=a(51093),_=a(85499),o=a(88276),r=a(82990),h=a(7737),m=a(67916),f=a(37291),P=a(89512),E=a(36856);const x=["leavePrompt"];function y(n,l){if(1&n){const s=e.EpF();e.TgZ(0,"p",12)(1,"button",13),e.NdJ("click",function(){e.CHM(s);const i=e.oxw();return e.KtG(i.resendCode())}),e._uU(2," RESEND CODE "),e.qZA(),e.TgZ(3,"span",14),e._uU(4," in "),e.qZA(),e._UZ(5,"tgv-timer",15),e.qZA()}if(2&n){const s=e.oxw();e.xp6(1),e.Q6J("disabled",s.resendDisabled),e.xp6(4),e.Q6J("durationInSeconds",s.resendDuration)}}function b(n,l){if(1&n){const s=e.EpF();e.TgZ(0,"p",12),e._uU(1," DID NOT RECEIVE IT? "),e.TgZ(2,"button",16),e.NdJ("click",function(){e.CHM(s);const i=e.oxw();return e.KtG(i.resendCode())}),e._uU(3," RESEND CODE "),e.qZA()()}}function M(n,l){if(1&n){const s=e.EpF();e.TgZ(0,"tgv-modal-prompt-popup",17),e.NdJ("dialogInteracted",function(i){e.CHM(s);const g=e.oxw();return e.KtG(g.leaveDialogButtonClicked(i))}),e.qZA()}}const T=[{path:"",component:(()=>{var n;class l extends P.n{constructor(){super(...arguments),this.sitePageLayout=new _.Iu({siteHeader:{simple:{enabled:!0,steps:["Enter Mobile code","Update Email Address","Enter Email Code"],current:3,onClose:()=>{this.openLeaveDialog()}}},siteFooter:{nav:!1},backToTop:{enabled:!1}}),this.emailCode=new d.p4("",[d.kI.required,d.kI.minLength(4),d.kI.maxLength(4)]),this.resendDisabled=!0,this.initialTac=!0,this.resendDuration=0,this.tacAttempts=0,this.attemptsExceeded=!1,this._tgvModalPopupService=(0,e.f3M)(o.a7u),this._tgvTimerService=(0,e.f3M)(o.nN),this._tacStore=(0,e.f3M)(h.T),this._profileService=(0,e.f3M)(r.H),this._snackbarService=(0,e.f3M)(o.xml)}ionViewWillEnter(){super.ionViewWillEnter(),this.email=this._profileService.maskEmailAddress(this._tacStore.state.email),this._tgvTimerService.timerState.subscribe(t=>{"start"===t?this.resendDisabled=!0:"end"===t&&(this.resendDisabled=!1)}),("inactive"===this._tgvTimerService.timerState.value||this.initialTac)&&this.resendCode(),this.emailCodeSub=this.emailCode.valueChanges.subscribe(t=>{this.emailCode.setErrors({invalidCode:!1}),4===t.length&&this.checkCode(t)})}ionViewWillLeave(){var t;this._tgvTimerService.setTimerState("end"),null===(t=this.emailCodeSub)||void 0===t||t.unsubscribe()}openLeaveDialog(){this._tgvModalPopupService.open(this.leavePrompt)}leaveDialogButtonClicked(t){this._tgvModalPopupService.close(()=>{t&&window.history.go(-3)})}resendCode(){(this.initialTac?this._profileService.changeEmailMobtelInit(m.cu.alwaysCallAPI,{targettype:"email",target:this._tacStore.state.email}):this._profileService.changeEmailMobtelTacResend(m.cu.alwaysCallAPI,{changeemailmobtelticketidps:this.tacTicketId})).pipe((0,f.q)(1)).subscribe({next:i=>{this.handleCodeResponse(i)},error:i=>{var g;this._snackbarService.toggle(!0,new o.hkh({message:(null==i?void 0:i.message)||(null==i||null===(g=i.error)||void 0===g?void 0:g.message),mobileOffsetY:-50,type:"alert"}))}})}checkCode(t){this.emailCode.disable({emitEvent:!1}),this._profileService.changeEmailMobtelTacValidate(m.cu.alwaysCallAPI,{changeemailmobtelticketidps:this.tacTicketId,taccode:t.toString()}).pipe((0,f.q)(1)).subscribe({next:i=>{i.results.tacsuccess?(this.tacTicketId=i.results.changeemailmobtelticketidps,this.changeEmailComplete()):this.handleError()},error:i=>this.handleError()})}changeEmailComplete(){this._profileService.changeEmailMobtelComplete(m.cu.alwaysCallAPI,{changeemailmobtelticketidps:this.tacTicketId,newemail:this._tacStore.state.email}).pipe((0,f.q)(1)).subscribe({next:()=>{window.history.go(-3),this._snackbarService.toggle(!0,{type:"success",message:"Succesfully updated email."})},error:t=>this.handleError()})}handleError(){this.emailCode.setValue(""),this.emailCode.enable({emitEvent:!1}),this.emailCode.setErrors({invalidCode:!0},{emitEvent:!1})}handleCodeResponse(t){this.resendDuration=60*t.results.tacparams.retryTACDelayMins,this.tacAttempts=t.results.tacparams.retryTACRetries,this.tacTicketId=t.results.changeemailmobtelticketidps,this._tacStore.setUserTacTicketId(this.tacTicketId),this.tacAttempts<=t.results.tacparams.retryMaxLimit?(setTimeout(()=>{this._tgvTimerService.setTimerState("start")},1e3),this.initialTac||this._snackbarService.toggle(!0,{type:"success",message:"Successfully resend code."}),this.initialTac=!1):this._snackbarService.toggle(!0,new o.hkh({message:"attempt exceeded",mobileOffsetY:-50,type:"alert"})),this.resendDisabled=!0}}return(n=l).\u0275fac=function(){let s;return function(i){return(s||(s=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["tgv-main-profile-email-code"]],viewQuery:function(t,i){if(1&t&&e.Gf(x,5),2&t){let g;e.iGM(g=e.CRH())&&(i.leavePrompt=g.first)}},features:[e.qOj],decls:19,vars:8,consts:[[3,"props"],[1,"tgv-sign-in-enter-email-code"],[1,"tgv-sign-in-enter-email-code__wrapper"],["src","assets/images/background/sign-in/popcorn-3.png","alt","",1,"tgv-sign-in-enter-email-code__popcorn","mobile--"],["src","assets/images/background/sign-in/popcorn-3-desktop.png","alt","",1,"tgv-sign-in-enter-email-code__popcorn","de
1sktop--"],[1,"tgv-sign-in-enter-email-code__container"],[1,"tgv-sign-in-enter-email-code__header"],[1,"tgv-sign-in-enter-email-code__description"],[1,"tgv-sign-in-enter-email-code__form-container"],["label","4-digit code","autocomplete","one-time-code",3,"control","lengthOfCode","focus","checkCodeValidity"],["class","tgv-sign-in-enter-email-code__resend",4,"ngIf"],["leavePrompt",""],[1,"tgv-sign-in-enter-email-code__resend"],["type","button","tgv-button","tertiary large",1,"tgv-sign-in-enter-email-code__resend-link",3,"disabled","click"],[1,"tgv-sign-in-enter-email-code__resend-text"],[3,"durationInSeconds"],["type","button","tgv-button","tertiary large",1,"tgv-sign-in-enter-email-code__resend-link","resend--",3,"click"],["imageSource","assets/images/illustrations/warning.png","imageAlt","Warning Image","header","Leaving so soon?","subheading","Any details entered will be lost.",3,"dialogInteracted"]],template:function(t,i){1&t&&(e.TgZ(0,"tgv-main-site-page-layout",0)(1,"div",1)(2,"tgv-wrapper",2),e._UZ(3,"img",3)(4,"img",4),e.TgZ(5,"div",5)(6,"h1",6),e._uU(7,"ENTER EMAIL CODE"),e.qZA(),e.TgZ(8,"p",7),e._uU(9," We've sent it to "),e.TgZ(10,"strong"),e._uU(11),e.qZA()(),e.TgZ(12,"tgv-form-container",8)(13,"tgv-form-block"),e._UZ(14,"tgv-code-input",9),e.qZA()(),e.YNc(15,y,6,2,"p",10),e.YNc(16,b,4,0,"p",10),e.qZA()()()(),e.YNc(17,M,1,0,"ng-template",null,11,e.W1O)),2&t&&(e.Q6J("props",i.sitePageLayout),e.xp6(11),e.Oqu(i.email),e.xp6(3),e.Q6J("control",i.emailCode)("lengthOfCode",4)("focus",!0)("checkCodeValidity",!0),e.xp6(1),e.Q6J("ngIf",i.resendDisabled),e.xp6(1),e.Q6J("ngIf",!i.resendDisabled))},dependencies:[c.O5,E.K,o.Bat,o.JPT,o.R0C,o.and,o.Hr$,o.Lxz,o.yEN],styles:[".tgv-sign-in-enter-email-code[_ngcontent-%COMP%]{flex:1;padding:125px 0 80px;position:relative;background:linear-gradient(176deg,#121212 200px,#330004 800px,#630000 1240px,#290608 1600px,#170F10 2070px)}.tgv-sign-in-enter-email-code__wrapper[_ngcontent-%COMP%]{max-width:460px;height:100%;margin-bottom:24px}.tgv-sign-in-enter-email-code__popcorn[_ngcontent-%COMP%]{width:100%;position:absolute;left:0;bottom:0}.tgv-sign-in-enter-email-code__popcorn.desktop--[_ngcontent-%COMP%]{display:none}.tgv-sign-in-enter-email-code__header[_ngcontent-%COMP%]{margin:0;font-size:26px;font-family:var(--heading-font-family);line-height:28px;letter-spacing:1px;text-align:center}.tgv-sign-in-enter-email-code__description[_ngcontent-%COMP%]{margin:8px 0 0;font-size:14px;line-height:20px;letter-spacing:.2px;text-align:center;color:#dedede}.tgv-sign-in-enter-email-code__form-container[_ngcontent-%COMP%]{margin-top:32px}.tgv-sign-in-enter-email-code__resend[_ngcontent-%COMP%]{margin-top:36px;text-align:center;font-size:14px}.tgv-sign-in-enter-email-code__resend-link.resend--[_ngcontent-%COMP%]{margin-left:4px}.tgv-sign-in-enter-email-code__resend-link[_ngcontent-%COMP%]     span{text-decoration:underline}.tgv-sign-in-enter-email-code__resend-text[_ngcontent-%COMP%]{position:relative;top:-1px}@media (min-width: 480px){.tgv-sign-in-enter-email-code__popcorn.mobile--[_ngcontent-%COMP%]{display:none}.tgv-sign-in-enter-email-code__popcorn.desktop--[_ngcontent-%COMP%]{display:block}}@media (min-width: 1025px){.tgv-sign-in-enter-email-code[_ngcontent-%COMP%]{padding-top:180px}.tgv-sign-in-enter-email-code__wrapper[_ngcontent-%COMP%]{height:unset}.tgv-sign-in-enter-email-code__popcorn.mobile--[_ngcontent-%COMP%]{display:none}.tgv-sign-in-enter-email-code__popcorn.desktop--[_ngcontent-%COMP%]{display:block}.tgv-sign-in-enter-email-code__header[_ngcontent-%COMP%]{font-size:40px;line-height:40px;letter-spacing:2px}.tgv-sign-in-enter-email-code__description[_ngcontent-%COMP%]{margin-top:16px;font-size:18px;line-height:24px}.tgv-sign-in-enter-email-code__form-container[_ngcontent-%COMP%]{margin-top:60px}.tgv-sign-in-enter-email-code__resend[_ngcontent-%COMP%]{font-size:16px}.tgv-sign-in-enter-email-code__button[_ngcontent-%COMP%]{margin-top:72px}}@media (min-width: 1440px){.tgv-sign-in-enter-email-code__popcorn[_ngcontent-%COMP%]{width:100%;left:0;transform:unset}}"]}),l})()}];let S=(()=>{var n;class l{}return(n=l).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[u.Bz.forChild(T),u.Bz]}),l})();var k=a(7457);let O=(()=>{var n;class l{}return(n=l).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,d.u5,v.Pc,S,k.L,o.pxK,o.fpC,o.wAB,o.uYk,o.fY,o.pbk,o.tZp]}),l})()}}]);

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.