1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[815],{43187:(L,d,i)=>{i.d(d,{o:()=>T});class T{constructor(O,c,r){this.nextBestActionService=O,this.globalServiceErrorHandler=c,this.pageName=r,this.nbaProgram=void 0,this.hideNBA=!1,this.page=void 0,this.page=r,this.nextBestActionService.closeNBAPlacementTileSuggestionEvent.subscribe(()=>{this.hideNBA=!0})}loadNBATile(O){this.nextBestActionService.getNBAPlacementTileRankList(this.page,O).then(c=>{void 0!==c[0]&&(this.nbaProgram=c[0].program)}).catch(c=>{this.globalServiceErrorHandler.showToast()})}}},90815:(L,d,i)=>{i.r(d),i.d(d,{TouCancelPageModule:()=>at});var T=i(36895),h=i(24006),O=i(90603),c=i(89383),r=i(36690),g=i(15861),v=i(591),f=i(17914),D=i(1912),b=i(50132),p=i(61213),R=i(9129),u=i(33691),t=i(55062),M=i(33441),x=i(6766),m=i(39394),A=i(39146),y=i(10913),$=i(8085),B=i(43187),Z=i(71047),Y=i(52916),F=i(51930),H=i(47994),w=i(75834),G=i(97670),j=i(15638),U=i(40751);function J(e,l){if(1&e&&(t.TgZ(0,"div",6)(1,"div",7)(2,"p"),t._uU(3),t.qZA()()()),2&e){const a=t.oxw();t.xp6(3),t.hij(" ",a.messageDescription," ")}}function V(e,l){if(1&e){const a=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",8)(3,"div",9)(4,"button",10),t.NdJ("click",function(){t.CHM(a);const o=t.oxw();return t.KtG(o.submit())}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",11),t.NdJ("click",function(){t.CHM(a);const o=t.oxw();return t.KtG(o.goBack())}),t._uU(8),t.ALo(9,"translate"),t.qZA()()()()()}if(2&e){const a=t.oxw();t.xp6(4),t.Q6J("disabled",a.processingRequest||a.submitButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(6,3,"COMPONENTS.TOU.CANCELLATION.BUTTONS.SUBMIT")," "),t.xp6(3),t.hij(" ",t.lcZ(9,5,"COMPONENTS.TOU.CANCELLATION.BUTTONS.NEVERMIND")," ")}}function W(e,l){if(1&e&&(t.TgZ(0,"div",16)(1,"div",1),t._UZ(2,"nve-next-best-action-tile",17),t.qZA()()),2&e){const a=t.oxw(2);t.xp6(2),t.Q6J("fromCancelConfirmation",!0)("isMobile",!1)("program",a.nbaProgram)}}const X=function(e){return{nbaAccountNumber:e,accordionToBeOpened:"communications"}};function Q(e,l){if(1&e&&(t.TgZ(0,"div")(1,"div",1)(2,"div",12)(3,"span"),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"a",13),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"div",8)(12,"div",9)(13,"button",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()()(),t.YNc(16,W,3,3,"div",15),t.qZA()),2&e){const a=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,9,"COMPONENTS.FLEXPAY.CANCELLATION.CONFIRMATION_1")),t.xp6(2),t.Q6J("moveToPage","my-account/profile-and-preferences")("moveToPageParam",t.VKq(17,X,a.accountNumber)),t.xp6(1),t.Oqu(t.lcZ(8,11,"COMPONENTS.FLEXPAY.CANCELLATION.CONFIRMATION_2")),t.xp6(2),t.Oqu(t.lcZ(10,13,"COMPONENTS.FLEXPAY.CANCELLATION.CONFIRMATION_3")),t.xp6(4),t.Q6J("moveToPage","my-account")("setPageToRoot",!0),t.xp6(1),t.hij(" ",t.lcZ(15,15,"COMPONENTS.FLEXPAY.CANCELLATION.DONE")," "),t.xp6(2),t.Q6J("ngIf",!a.hideNBA&&null!=a.nbaProgram)}}let _=(()=>{var e;class l extends B.o{constructor(n,o,s,C,N,S,E,P,I){super(s,n,"tou-cancel"),this.globalServiceErrorHandler=n,this.touService=o,this.nextBestActionService=s,this.navUtil=C,this.communicationServices=N,this.taggingService=S,this.logger=E,this.translationService=P,this.userService=I,this.headingTitle="",this.messageDescription="",this.submitButtonDisabled=!1,this.touCancelDescriptionPath="COMPONENTS.TOU.CANCELLATION.DESCRIPTION.",this.phoneNumber="",this.cancellableStatuses=[A.Eu.cancellationCancellable,A.Eu.signupCancellable,A.Eu.updateCancellable],this.showConfirmation=!1,this.processingRequest=!1,this.myAccountService=Z.$.getInstance()}ngOnInit(){this.phoneNumber="30"===this.userService.getUser().getCompanyID()?"702-402-5555 or 800-331-3103":"775-834-4444 or 800-962-0399",this.updateFieldsBasedOnEligibility(this.eligibility)}goBack(){this.navUtil.canPop()?this.navUtil.pop():this.navUtil.navigate($.$.profileAndPreferences,!1,{accordionToBeOpened:"programAndBilling"})}submit(){var n=this;return(0,g.Z)(function*(){n.processingRequest||(n.eligibility.pendingStatus===A.Eu.noPendingTransactions?n.submitTouSignup():n.cancellableStatuses.includes(n.eligibility.pendingStatus)&&n.enrollFlatRate&&n.eligibility.currentPlanCode!==u.aw.FLAT?(yield n.updateTouStatus(),n.submitTouSignup()):n.updateTouStatus()),n.myAccountService.refreshWidgetList()})()}submitTouSignup(){var n=this;return(0,g.Z)(function*(){let o;n.processingRequest=!0;try{o=yield n.touService.submitTouSignup("N/A","N/A","N/A",u.aw.FLAT,null,"N/A")}catch(s){n.logger.error("Error occurred while fetching response for submitTouSignup.",s),n.globalServiceErrorHandler.showToast(s.message)}null!==o.messageID?(n.globalServiceErrorHandler.showToast(o.messageText),n.processingRequest=!1):(n.showConfirmation=!0,n.loadNBATile(n.accountNumber),n.processingRequest=!1)})()}updateTouStatus(){var n=this;return(0,g.Z)(function*(){let o;n.processingRequest=!0;try{o=yield n.touService.updateTouStatus("X")}catch(s){n.logger.error("Error occurred while fetching response for submitting updateTouStatus.",s),n.globalServiceErrorHandler.showToast(s.message)}null!==o.messageID?(n.globalServiceErrorHandler.showToast(o.messageText),n.processingRequest=!1):(n.showConfirmation=!0,n.loadNBATile(n.accountNumber),n.processingRequest=!1)})()}updateFieldsBasedOnEligibility(n){const o=(0,m.F)(n),s=(0,y.m)(n);let C,N;const E=[{condition:()=>n.isEnrolledInTou&&this.enrollFlatRate,action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.STANDARDRATEENROLLMENT",N=String(this.translationService.instant(this.eligibility.pendingStatus!==A.Eu.noPendingTransactions?"COMPONENTS.TOU.CANCELLATION.DESCRIPTION.FLATENROLLWITHPENDINGTRANSACTION":"COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELTOU"))}},{condition:()=>n.isEnrolledInTou&&o===m.f.TouEnrolled,action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUCANCELLATION",N="Y"===this.eligibility.lessThan12MosInd?`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELTOUORPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.LESSTHAN12")}`:String(this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELTOUORPENDING"))}},{condition:()=>n.isEnrolledInTou&&s.isTOUSwitchToCPP,action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUADVANCEDCANCELLATION",N=`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.ADVANCED")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.STANDARDTOU")}`}},{condition:()=>n.isEnrolledInTou&&s.isCPPSwitchToTOU,action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUSTANDARDCANCELLATION",N=`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.STANDARD")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.ADVANCEDTOU")}`}},{condition:()=>n.isEnrolledInTou&&(s.isCPPUpdate||s.isCPPUpdateToHEV||s.isCPPUpdateToDDP||s.isCPPUpdateToHEVDDP),action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUADVANCEDCANCELLATION",N=`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.ADVANCED")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CURRENTPLAN")}`}},{condition:()=>n.isEnrolledInTou&&(s.isTOUUpdate||s.isTOUUnenrollmentFromHEV),action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUSTANDARDCANCELLATION",N=`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.STANDARD")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CURRENTPLAN")}`}},{condition:()=>n.isEnrolledInTou&&s.isUnenrollment,action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.UNENROLLMENT",N=n.currentPlanCode.includes(u.aw.CPP)||n.currentPlanCode.includes(u.aw.CPP_HEV)||n.currentPlanCode.includes(u.aw.CPP_HEV_DDP)?`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUUNENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.ADVANCEDTOU")}`:`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUUNENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.STANDARDTOU")}`}},{condition:()=>!n.isEnrolledInTou&&(o===m.f.FlatRateTouPendingCancellable||s.isTOUPending),action:()=>{C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUCANCELLATION",N="Y"===this.eligibility.lessThan12MosInd?`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CURRENTPLAN")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.LESSTHAN12")}`:`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CANCELPENDING")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.TOUENROLLMENT")} ${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.DESCRIPTION.CURRENTPLAN")}`}}].find(P=>P.condition());E?E.action():(this.submitButtonDisabled=!0,C="COMPONENTS.TOU.CANCELLATION.HEADING.TOUCANCELLATION",N=`${this.translationService.instant("COMPONENTS.TOU.CANCELLATION.ERRORS.UNABLETODETERMINE")} ${this.phoneNumber}`),this.headingTitle=C,this.messageDescription=N}}return(e=l).\u0275fac=function(n){return new(n||e)(t.Y36(w.o),t.Y36(u.Mw),t.Y36(F.E),t.Y36(f.H),t.Y36(H.n),t.Y36(Y.w),t.Y36(M.Y),t.Y36(c.sK),t.Y36(p.K))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nve-tou-cancel"]],inputs:{accountNumber:"accountNumber",eligibility:"eligibility",enrollFlatRate:"enrollFlatRate"},features:[t.qOj],decls:10,vars:6,consts:[[1,"tou-cancel-component"],[1,"clearfix"],[1,"col-xs-12"],["tabindex","0",1,"heading","center-text"],["class","clearfix margin-top-15",4,"ngIf"],[4,"ngIf"],[1,"clearfix","margin-top-15"],[1,"col-sm-12","center-text"],[1,"col-sm-12"],[1,"bottom-nav"],["csrDisable","",1,"nv
1-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],["tabindex","0",1,"col-sm-12","margin-top-15","center-text"],[3,"moveToPage","moveToPageParam"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"moveToPage","setPageToRoot"],["class","clearfix margin-top-30 tou-cancel-confirmation",4,"ngIf"],[1,"clearfix","margin-top-30","tou-cancel-confirmation"],[3,"fromCancelConfirmation","isMobile","program"]],template:function(n,o){1&n&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h1",3),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.YNc(7,J,4,1,"div",4),t.YNc(8,V,10,7,"div",5),t.YNc(9,Q,17,19,"div",5),t.qZA()()),2&n&&(t.xp6(5),t.hij(" ",t.lcZ(6,4,o.headingTitle)," "),t.xp6(2),t.Q6J("ngIf",!o.showConfirmation),t.xp6(1),t.Q6J("ngIf",!o.showConfirmation),t.xp6(1),t.Q6J("ngIf",o.showConfirmation))},dependencies:[T.O5,G.a,j.$,U.a,c.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.tou-cancel-component[_ngcontent-%COMP%]{width:50%;margin:75px auto;padding:15px}@media (max-width: 1023px){.tou-cancel-component[_ngcontent-%COMP%]{width:90%}}@media only screen and (min-width: 64.063em){.tou-cancel-component[_ngcontent-%COMP%] .tou-cancel-confirmation[_ngcontent-%COMP%]{width:68.5%}}@media only screen and (min-width: 64.063em){.tou-cancel-component[_ngcontent-%COMP%] .tou-cancel-confirmation[_ngcontent-%COMP%] .widget-component-cancel-confirmation[_ngcontent-%COMP%]{width:100%}}@media (max-width: 767px){.center-text[_ngcontent-%COMP%]{display:flex;text-align:center}}"]}),l})();function K(e,l){if(1&e&&(t.TgZ(0,"div"),t._UZ(1,"nve-tou-cancel",1),t.ALo(2,"async"),t.qZA()),2&e){const a=t.oxw();t.xp6(1),t.Q6J("accountNumber",a.accountNumber)("enrollFlatRate",a.enrollFlatRate)("eligibility",t.lcZ(2,3,a.eligibility$))}}function z(e,l){1&e&&(t.TgZ(0,"div"),t._UZ(1,"nve-spinner"),t.qZA())}const tt=[{path:"",component:(()=>{var e;class l{constructor(n,o,s,C,N,S,E,P,I){this.router=n,this.navUtil=o,this.loginService=s,this.userService=C,this._logger=N,this.accountListService=S,this.alertService=E,this.touService=P,this.activatedRoute=I,this.eligibility$=new v.X(null),this.loading$=new v.X(!1),this.activatedRoute.queryParams.subscribe(st=>{this.enrollFlatRate=st.enrollFlatRate}),this.accountNumber=this.userService.getUser().getCurrentAccount().accountNumber,this.getEligibility()}getEligibility(){var n=this;return(0,g.Z)(function*(){n.loading$.next(!0),yield n.touService.getTouEligibility().then(o=>{n.eligibility$.next(o),n.loading$.next(!1)}).catch(o=>{n._logger.error("Error occurred while fetching response for getEligibility from server.",o),n.loading$.next(!1)})})()}}return(e=l).\u0275fac=function(n){return new(n||e)(t.Y36(r.F0),t.Y36(f.H),t.Y36(R.r),t.Y36(p.K),t.Y36(M.Y),t.Y36(D.x),t.Y36(b.c),t.Y36(u.Mw),t.Y36(r.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-tou-cancel"]],decls:4,vars:6,consts:[[4,"ngIf"],[3,"accountNumber","enrollFlatRate","eligibility"]],template:function(n,o){1&n&&(t.YNc(0,K,3,5,"div",0),t.ALo(1,"async"),t.YNc(2,z,2,0,"div",0),t.ALo(3,"async")),2&n&&(t.Q6J("ngIf",!1===t.lcZ(1,2,o.loading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,o.loading$)))},dependencies:[x.$,T.O5,_,T.Ov]}),l})(),resolve:{response:i(76237).O}}];let nt=(()=>{var e;class l{}return(e=l).\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[r.Bz.forChild(tt),r.Bz]}),l})();var et=i(37257),it=i(29026),ot=i(49512);let at=(()=>{var e;class l{}return(e=l).\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[ot.m,T.ez,h.u5,c.aw,it.D,et.o,O.Pc,nt,U.a]}),l})()},71047:(L,d,i)=>{i.d(d,{$:()=>O});var T=i(591),h=i(55062);let O=(()=>{var c;
1class r{constructor(){this.refreshCurrentBillTileSubject=new T.X(!1),this.refreshWidgetListSubject=new T.X(!1),this.myAccountWillEnterSubject=new T.X(!1)}static getInstance(){return null==r.instance&&(r.isCreating=!0,r.instance=new r,r.isCreating=!1),r.instance}refreshCurrentBillTile(){this.refreshCurrentBillTileSubject.next(!0)}refreshWidgetList(){this.refreshWidgetListSubject.next(!0)}myAccountDidEnter(){this.myAccountWillEnterSubject.next(!0)}get onRefreshCurrentBillTile(){return this.refreshCurrentBillTileSubject.asObservable()}get onRefreshWidgetList(){return this.refreshWidgetListSubject.asObservable()}get myAccountOnDidEnter(){return this.myAccountWillEnterSubject.asObservable()}}return(c=r).isCreating=!1,c.\u0275fac=function(v){return new(v||c)},c.\u0275prov=h.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),r})()}}]);
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.