1"use strict";(self.webpackChunkwebsite_mdot=self.webpackChunkwebsite_mdot||[]).push([[5382],{15357:function(P,y,i){i.d(y,{S:function(){return c}});var h=i(2126),b=i(47989),d=i(92189),l=i(15491),A=i(97668),c=function(){return(0,b.Z)(function m(p){(0,h.Z)(this,m),this.elementRef=p,this.subs=new l.Y},[{key:"ngOnInit",value:function(){var u=this.elementRef.nativeElement;this.subs.add((0,d.R)(u.parentNode,"click",{capture:!0}).subscribe(function(f){f.target===u&&u.classList.contains("disabled")&&(f.stopImmediatePropagation(),f.preventDefault(),f.stopPropagation(),u.classList.contains("shake")||(u.classList.add("shake"),setTimeout(function(){u.classList.remove("shake")},200)))}))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}}])}();c.\u0275fac=function(p){return new(p||c)(A.Y36(A.SBq))},c.\u0275dir=A.lG2({type:c,selectors:[["","btnDisabled",""]]})},35382:function(P,y,i){i.r(y),i.d(y,{UserPaymentModule:function(){return g}});var h=i(47989),b=i(2126),d=i(91890),l=i(81849),A=i(67064),c=i(86283),m=i(74711),p=i(14015),u=i(15491),f=i(3614),R=i(53051),e=i(97668),I=i(66088),Z=i(15357),S=i(39046),T=function(n){return{disabled:n}};function E(o,n){if(1&o){var t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().editAutoRebill()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&o){var a=e.oxw();e.Q6J("ngClass",e.VKq(5,T,!a.isPreAuthEnabled())),e.uIk("aria-disabled",!a.isPreAuthEnabled()),e.xp6(1),e.hij(" ",e.lcZ(2,3,"EDIT")," ")}}function x(o,n){1&o&&e._UZ(0,"i",32)}function O(o,n){if(1&o&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){var t=e.oxw();e.xp6(1),e.AsE(" ",e.lcZ(2,2,"AMOUNT_SHOULD_BE_GRATHER_THAN_TEXT")," $",t.topupAmount," ")}}function k(o,n){if(1&o&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){var t=e.oxw();e.xp6(1),e.AsE(" ",e.lcZ(2,2,"AMOUNT_SHOULD_BE_GRATHER_THAN_TEXT")," $",t.rebillThresholdLimit," ")}}function N(o,n){if(1&o&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){var t=e.oxw();e.xp6(1),e.AsE(" ",e.lcZ(2,2,"AMOUNT_SHOULD_BE_GRATHER_THAN_TEXT")," $",t.rebillThresholdLimit," ")}}function L(o,n){1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CANCEL")," "))}function U(o,n){1&o&&(e.TgZ(0,"span"),e._uU(1," Canceling... "),e.qZA())}function M(o,n){1&o&&e._UZ(0,"i",37)}function B(o,n){if(1&o){var t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw().canclePreAuthorizationAmout()})("click",function(){return e.CHM(t),e.oxw().cancel()}),e.YNc(1,L,3,3,"span",35),e.YNc(2,U,2,0,"span",35),e.YNc(3,M,1,0,"i",36),e.qZA()}if(2&o){var a=e.oxw();e.Q6J("disabled",a.isProcessing)("ngClass",e.VKq(6,T,a.isProcessing)),e.uIk("aria-disabled",a.isProcessing),e.xp6(1),e.Q6J("ngIf",!a.isCancelProcessing),e.xp6(1),e.Q6J("ngIf",a.isCancelProcessing),e.xp6(1),e.Q6J("ngIf",a.isCancelProcessing)}}function D(o,n){1&o&&e._UZ(0,"i",40)}function F(o,n){if(1&o){var t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCardPreAuthorizationAmount()}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,D,1,0,"i",39),e.qZA()}if(2&o){var a=e.oxw();e.Q6J("disabled",a.isProcessing)("ngClass",e.VKq(7,T,!a.autoRebillInfoFormGroup.valid)),e.uIk("aria-disabled",!a.autoRebillInfoFormGroup.valid),e.xp6(1),e.hij(" ",e.lcZ(2,5,"SAVE")," "),e.xp6(2),e.Q6J("ngIf",a.isProcessing)}}var v=function(){return(0,h.Z)(function o(n,t,a,r,s,X,$){(0,b.Z)(this,o),this.accountService=n,this.configurationService=t,this.formBuilder=a,this.databaseMapService=r,this.alertService=s,this.logService=X,this.cd=$,this.topupAmount=4,this.rebillThresholdLimit=20,this.isProcessing=!1,this.rebillEdit=!1,this.subs=new u.Y,this.preAuthStaus=!1,this.isCancelProcessing=!1,this.accountProfileOptions=[]},[{key:"autoRebillInfo",get:function(){return this.autoRebillInfoFormGroup.controls}},{key:"ngOnInit",value:function(){var t=this;this.pmtReq=c.tqN.createBlank(),this.autoRebillInfoFormGroup=this.formBuilder.group({rebillStatus:[""],rebillAmount:["",l.kI.required],rebillThreshold:["",l.kI.required],balanceWarningThreshold:["",l.kI.min(0)]}),this.subs.add(this.accountService.activeAccount.pipe((0,f.w)(function(a){return t.account=a,t.configurationService.getAccountProfiles()})).subscribe(function(a){t.accountProfileOptions=a;var r=t.accountProfileOptions.find(function(s){return s.AccountProfileID===t.account.AccountProfileID});r&&(t.topupAmount=Math.abs(r.BalanceReplenishAmount),t.rebillThresholdLimit=Math.abs(r.BalanceReplenishThreshold)),t.getCredit
1Card(),t.autoRebillInfoFormGroup&&(t.autoRebillInfoFormGroup.controls.rebillStatus.setValue(t.getPreAuthStatus(t.account)),t.autoRebillInfoFormGroup.controls.rebillStatus.updateValueAndValidity(),t.autoRebillInfoFormGroup.controls.rebillAmount.setValue(-1*t.account.TopUpAmount),t.autoRebillInfoFormGroup.controls.rebillAmount.setValidators([l.kI.min(t.topupAmount),l.kI.required]),t.autoRebillInfoFormGroup.controls.rebillAmount.updateValueAndValidity(),t.autoRebillInfoFormGroup.controls.rebillThreshold.setValue(-1*t.account.LowBalanceAmount),t.autoRebillInfoFormGroup.controls.rebillThreshold.setValidators([l.kI.min(t.rebillThresholdLimit),l.kI.required]),t.autoRebillInfoFormGroup.controls.rebillThreshold.updateValueAndValidity(),t.autoRebillInfoFormGroup.controls.balanceWarningThreshold.setValue(-1*t.account.BalanceWarning),t.autoRebillInfoFormGroup.controls.balanceWarningThreshold.setValidators([l.kI.min(0)]),t.autoRebillInfoFormGroup.controls.balanceWarningThreshold.updateValueAndValidity()),t.account.PaymentNumber?t.autoRebillInfoFormGroup.enable():t.autoRebillInfoFormGroup.disable(),t.cd.markForCheck()},function(a){console.error("error in onChangeAccType: "+a)})),this.subs.add(this.autoRebillInfoFormGroup.controls.rebillStatus.valueChanges.subscribe(function(a){t.getPreAuthStatus(t.account)!==a&&t.enablePreAuth(a)}))}},{key:"getCreditCard",value:function(){var t=this;this.accountService.getCreditCard(this.account.AccountID).subscribe(function(a){t.pmtReq.paymentType=2,t.pmtReq.card_num=a.PaymentNum,t.pmtReq.exp_month=a.PaymentCardExpiryMonth,t.pmtReq.exp_year=a.PaymentCardExpiryYear.toString().length<=2?a.PaymentCardExpiryYear+2e3:a.PaymentCardExpiryYear,t.pmtReq.nameOnCard=a.PaymentLastName,t.creditCard=a,t.oldBalanceReplenishAmount=t.convertDebitCredit(t.creditCard.BalanceReplenishAmount),t.oldBalanceReplenishThreshold=t.convertDebitCredit(t.creditCard.BalanceReplenishThreshold),t.BalanceReplenishAmount=t.convertDebitCredit(t.creditCard.BalanceReplenishAmount),t.BalanceReplenishThreshold=t.convertDebitCredit(t.creditCard.BalanceReplenishThreshold),t.creditCard.BalanceReplenishAmount=t.convertDebitCredit(t.creditCard.BalanceReplenishAmount),t.creditCard.BalanceReplenishThreshold=t.convertDebitCredit(t.creditCard.BalanceReplenishThreshold)},function(a){})}},{key:"getPreAuthStatus",value:function(t){return 1===t.PreAuthStatus?(this.preAuthStaus=!0,this.preAuthStaus):2===t.PreAuthStatus?(this.preAuthStaus=!1,this.preAuthStaus):void 0}},{key:"isAccountActive",value:function(){try{return this.account.AccountStatus===this.databaseMapService.eAccountStatusDMap.Active||this.account.AccountStatus===this.databaseMapService.eAccountStatusDMap["Active Partial"]}catch(a){return!1}}},{key:"isPreAuthEnabled",value:function(){return void 0!==this.account&&this.account.PreAuthStatus===this.databaseMapService.ePreAuthStatus.active}},{key:"setCardPreAuthorizationAmount",value:function(){var t=this;this.isProcessing=!0;var a=this.isPreAuthEnabled();this.creditCard.PaymentCardType=this.databaseMapService.getCardType(this.getCardType(this.pmtReq.card_num)),this.creditCard.PaymentCardExpiryMonth=this.pmtReq.exp_month,this.creditCard.PaymentCardExpiryYear=this.pmtReq.exp_year-2e3,this.creditCard.PaymentLastName=this.pmtReq.nameOnCard,this.creditCard.PaymentCardType=this.account.PaymentCardType,this.creditCard.BalanceReplenishAmount=this.autoRebillInfoFormGroup.controls.rebillAmount.value,this.creditCard.BalanceReplenishThreshold=this.autoRebillInfoFormGroup.controls.rebillThreshold.value,this.creditCard.BalanceWarningThreshold=this.autoRebillInfoFormGroup.controls.balanceWarningThreshold.value,this.creditCard.CardIssuerId=this.account.BankCardIssuerId,this.accountService.enableCardPreAuthorization(this.creditCard,a).subscribe(function(){t.accountService.loadActiveAccount(t.account.AccountID).subscribe(function(){t.autoRebillInfoFormGroup.controls.rebillStatus.enable(),t.autoRebillInfoFormGroup.controls.rebillStatus.updateValueAndValidity(),t.isProcessing=!1,t.rebillEdit=!1,t.alertService.success("Rebill amount was successfully updated!",!0)},function(r){t.isProcessing=!1,t.autoRebillInfoFormGroup.controls.rebillStatus.enable(),t.autoRebillInfoFormGroup.controls.rebillStatus.updateV
1alueAndValidity()})},function(r){t.autoRebillInfoFormGroup.controls.rebillStatus.enable(),t.autoRebillInfoFormGroup.controls.rebillStatus.updateValueAndValidity(),t.isProcessing=!1,t.alertService.error("There was an error in editing rebill Amount! "+r,!0)})}},{key:"enablePreAuth",value:function(t){var a=this;console.log("enablePreAuth: Update to->"+t),this.pmtReq.card_num&&(this.isProcessing=!0,"*"==this.pmtReq.card_num[0]?this.creditCard.PaymentCardType=this.account.PaymentCardType:this.creditCard.PaymentCardType=this.databaseMapService.getCardType(this.getCardType(this.pmtReq.card_num)),this.creditCard.PaymentCardExpiryMonth=this.pmtReq.exp_month,this.creditCard.PaymentCardExpiryYear=this.pmtReq.exp_year,this.creditCard.PaymentLastName=this.pmtReq.nameOnCard,this.creditCard.BalanceReplenishAmount=this.autoRebillInfoFormGroup.controls.rebillAmount.value,this.creditCard.BalanceReplenishThreshold=this.autoRebillInfoFormGroup.controls.rebillThreshold.value,this.creditCard.BalanceWarningThreshold=Math.abs(this.account.BalanceWarning),this.creditCard.CardIssuerId=this.account.BankCardIssuerId,this.accountService.enableCardPreAuthorization(this.creditCard,t).subscribe(function(){a.accountService.loadActiveAccount(a.account.AccountID).subscribe(function(){setTimeout(function(){a.isProcessing=!1},1e3),t?a.alertService.success("Auto Replenishment has been enabled ",!0):a.alertService.success("Auto Replenishment has been disabled ",!0)})},function(r){a.logService.logMessage("payment process failed at enablePreAuth"+JSON.stringify(a.creditCard)+"; error: "+JSON.stringify(r)),a.isProcessing=!1}))}},{key:"convertDebitCredit",value:function(t){return Math.abs(t)}},{key:"cancel",value:function(){var t=this;this.isCancelProcessing=!0,this.accountService.loadActiveAccount(this.account.AccountID).subscribe(function(){t.autoRebillInfoFormGroup.controls.rebillStatus.enable(),t.autoRebillInfoFormGroup.controls.rebillStatus.updateValueAndValidity(),t.rebillEdit=!1,t.isCancelProcessing=!1})}},{key:"canclePreAuthorizationAmout",value:function(){this.creditCard.BalanceReplenishAmount=this.oldBalanceReplenishAmount,this.creditCard.BalanceReplenishThreshold=this.oldBalanceReplenishThreshold}},{key:"editAutoRebill",value:function(){this.autoRebillInfoFormGroup.controls.rebillStatus.disable(),this.autoRebillInfoFormGroup.controls.rebillStatus.updateValueAndValidity(),this.rebillEdit=!0}},{key:"getCardType",value:function(t){var a="undefined";return t.startsWith("4")?a="visa":t.startsWith("54")||t.startsWith("55")||t.startsWith("36")?a="dinners":t.startsWith("5")?a="mastercard":t.startsWith("3")&&(a="amex"),a}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}}])}();v.\u0275fac=function(n){return new(n||v)(e.Y36(c.BRM),e.Y36(c.eBC),e.Y36(l.qu),e.Y36(c.PIJ),e.Y36(c.c9N),e.Y36(c.$VY),e.Y36(e.sBO))},v.\u0275cmp=e.Xpm({type:v,selectors:[["auto-rebill"]],viewQuery:function(n,t){var a;(1&n&&e.Gf(R._L,5),2&n)&&(e.iGM(a=e.CRH())&&(t.autoRebillTooltip=a.first))},decls:59,vars:38,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"h4","float-start","mb-0","mt-2"],["class","btn btn-app-primary float-end","btnDisabled","",3,"ngClass","click",4,"ngIf"],[1,"card-body"],[3,"formGroup"],[1,"row","ms-0","mb-2"],[1,"form-group","form-check","form-check-inline","form-check","ps-0"],["placement","top",1,"form-check","form-switch","form-switch-sm","float-start",3,"ngbTooltip"],["type","checkbox","id","rebillStatusCheck","formControlName","rebillStatus",1,"form-check-input","rebillStatus"],["type","checkbox","for","rebillStatusCheck",1,"form-check-label"],["class","fa fa-lg fa-spinner fa-spin align-middle ms-3 float-end",4,"ngIf"],[1,"ps-0"],["id","preAuthAmount",1,"row"],[1,"col-12"],["for","rebillAmount",1,"form-label"],[1,"input-group"],["for","rebillAmount",1,"input-group-text"],["mask","separator.2","type","text","id","rebillAmount","name","rebillAmount","formControlName","rebillAmount","name","rebillAmount",1,"form-control",3,"allowNegativeNumbers","readonly"],[1,"pt-1","ps-4"],["class","text-danger",4,"ngIf"],[1,"row","mt-3"],[1,"form-label"],["for","rebillThreshold",1,"input-group-text"],["mask","separator.2","type","text","id","rebillThreshold","formControlName","rebillThreshold","name","rebillThreshold","aria-label","rebillThreshold","aria-describedby","rebillThreshold",1,"form-control",3,"allowNegativeNumbers","readonly"],["for","balanceWarningThreshold",1,"form-label"],["for","balanceWarningThreshold",1,"input-group-text"],["mask","separator.2","type","text","id","balanceWarningThreshold","formControlName","balanceWarningThreshold","name","balanceWarningThreshold","aria-label","balanceWarningThreshold","aria-describedby","balanceWarningThreshold",1,"form-control",3,"allowNegativeNumbers","readonly"],[1,"row","pt-2"],["aria-label","CANCEL","btnDisabled","","class","btn btn-app-secondary float-start","role","button",3,"disabled","ngClass","click",4,"ngIf"],["class","btn btn-app-primary float-end","role","button","aria-label","save","btnDisabled","",3,"disabled","ngClass","click",4,"ngIf"],["btnDisabled","",1,"btn","btn-app-primary","float-end",3,"ngClass","click"],[1,"fa","fa-lg","fa-spinner","fa-spin","align-middle","ms-3","float-end"],[1,"text-danger"],["aria-label","CANCEL","btnDisabled","","role","button",1,"btn","btn-app-secondary","float-start",3,"disabled","ngClass","click"],[4,"ngIf"],["class","fa fa-spinner fa-pulse",4,"ngIf"],[1,"fa","fa-spinner","fa-pulse"],["role","button","aria-label","save","btnDisabled","",1,"btn","btn-app-primary","float-end",3,"disabled","ngClass","click"],["class","fa fa-lg fa-spinner fa-pulse align-middle",4,"ngIf"],[1,"fa","fa-lg","fa-spinner","fa-pulse","align-middle"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,E,3,7,"button",3),e.qZA(),e.TgZ(6,"div",4)(7,"form",5)(8,"div",6)(9,"div",7)(10,"div",8),e.ALo(11,"translate"),e._UZ(12,"input",9),e.TgZ(13,"label",10),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.YNc(16,x,1,0,"i",11),e.qZA()(),e.TgZ(17,"div",6)(18,"label",12),e._uU(19),e.ALo(20,"translate"),e.qZA()(),e.TgZ(21,"div")(22,"div",13)(23,"div",14)(24,"label",15),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.TgZ(27,"div",16)(28,"span",17),e._uU(29),e.qZA(),e._UZ(30,"input",18),e.qZA()(),e.TgZ(31,"div",19),e.YNc(32,O,3,4,"p",20),e.qZA()(),e.TgZ(33,"div",21)(34,"div",14)(35,"label",22),e._uU(36),e.ALo(37,"translate"),e.qZA(),e.TgZ(38,"div",16)(39,"span",23),e._uU(40),e.qZA(),e._UZ(41,"input",24),e.qZA()(),e.TgZ(42,"div",19),e.YNc(43,k,3,4,"p",20),e.qZA()(),e.TgZ(44,"div",21)(45,"div",14)(46,"label",25),e._uU(47),e.ALo(48,"translate"),e.qZA(),e.TgZ(49,"div",16)(50,"span",26),e._uU(51),e.qZA(),e._UZ(52,"input",27),e.qZA()(),e.TgZ(53,"div",19),e.YNc(54,N,3,4,"p",20),e.qZA()(),e.TgZ(55,"div",28)(56,"div",14),e.YNc(57,B,4,8,"button",29),e.YNc(58,F,4,9,"button",30),e.qZA()()()()()()),2&n&&(e.xp6(3),e.Oqu(e.l
1cZ(4,24,"AUTO_REBILL")),e.xp6(2),e.Q6J("ngIf",!t.rebillEdit&&t.preAuthStaus),e.xp6(2),e.Q6J("formGroup",t.autoRebillInfoFormGroup),e.xp6(3),e.s9C("ngbTooltip",e.lcZ(11,26,"ENABLE_AUTO_REPLENISHMENT_TOOLTIP_MSG")),e.xp6(4),e.hij(" ",e.lcZ(15,28,"ENABLE_AUTO_REPLENISHMENT")," "),e.xp6(2),e.Q6J("ngIf",t.isProcessing),e.xp6(3),e.hij(" ",e.lcZ(20,30,"AUTO_REBILL_MSG")," "),e.xp6(6),e.hij("",e.lcZ(26,32,"AUTO_REPLENISHMENT_AMOUNT")," "),e.xp6(4),e.hij(" ",t.configurationService.GetCurrencyCode(),""),e.xp6(1),e.Q6J("allowNegativeNumbers",!1)("readonly",!t.rebillEdit),e.xp6(2),e.Q6J("ngIf",null==t.autoRebillInfo.rebillAmount||null==t.autoRebillInfo.rebillAmount.errors?null:t.autoRebillInfo.rebillAmount.errors.min),e.xp6(4),e.Oqu(e.lcZ(37,34,"AUTO_REPLENISHMENT_THRESHOLD")),e.xp6(4),e.hij(" ",t.configurationService.GetCurrencyCode(),""),e.xp6(1),e.Q6J("allowNegativeNumbers",!1)("readonly",!t.rebillEdit),e.xp6(2),e.Q6J("ngIf",null==t.autoRebillInfo.rebillThreshold||null==t.autoRebillInfo.rebillThreshold.errors?null:t.autoRebillInfo.rebillThreshold.errors.min),e.xp6(4),e.hij(" ",e.lcZ(48,36,"LOW_BALANCE_THRESHOLD")," "),e.xp6(4),e.hij(" ",t.configurationService.GetCurrencyCode(),""),e.xp6(1),e.Q6J("allowNegativeNumbers",!1)("readonly",!t.rebillEdit),e.xp6(2),e.Q6J("ngIf",null==t.autoRebillInfo.balanceWarningThreshold||null==t.autoRebillInfo.balanceWarningThreshold.errors?null:t.autoRebillInfo.balanceWarningThreshold.errors.min),e.xp6(3),e.Q6J("ngIf",t.rebillEdit),e.xp6(1),e.Q6J("ngIf",t.rebillEdit))},directives:[d.O5,I.S,Z.S,d.mk,l._Y,l.JL,l.sg,R._L,l.Wl,l.JJ,l.u,S.hx,l.Fj],pipes:[m.X$],styles:["[_nghost-%COMP%]{content:content}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}b[_ngcontent-%COMP%]{font-weight:500!important}[type=checkbox][_ngcontent-%COMP%]{vertical-align:middle}.rebillStatus-check[_ngcontent-%COMP%]:after{background-color:var(--primary-color)!important;color:var(--primary-color)!important}.form-check-input[_ngcontent-%COMP%]:checked{background-color:var(--primary-color)!important;border-color:var(--primary-color)!important}"]});var G=i(89027),q=i(92774),Y=i(81099),J=i(790),W=i(92820),w=i(71054);function V(o,n){if(1&o&&(e.TgZ(0,"small",9),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"dateTimeFormatter"),e.qZA()),2&o){var t=e.oxw();e.xp6(1),e.AsE(" ",e.lcZ(2,2,"UPDATED_ON"),": ",e.lcZ(3,4,t.getDate(null==t.account?null:t.account.LastPaymentDateTime)),"")}}var Q=function(n,t,a){return{"text-danger":n,"text-warning":t,"text-success":a}},C=function(){return(0,h.Z)(function o(n,t){(0,b.Z)(this,o),this.accountService=n,this.configurationService=t,this.isLoading=!1,this.subs=new u.Y},[{key:"ngOnInit",value:function(){var t=this;this.subs.add(this.accountService.activeAccount.subscribe(function(a){t.account=a,t.isLoading=!1}))}},{key:"getDate",value:function(t){return new Date(t)}},{key:"parseAmount",value:function(t){return-t}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}}])}();function H(o,n){if(1&o){var t=e.EpF();e.TgZ(0,"div",19)(1,"moneris-auto-rebill",20),e.NdJ("cardChanged",function(r){return e.CHM(t),e.oxw().cardChanged(r)}),e.qZA()()}}function j(o,n){if(1&o){var t=e.EpF();e.TgZ(0,"div",19)(1,"evalon-auto-rebill",20),e.NdJ("cardChanged",function(r){return e.CHM(t),e.oxw().cardChanged(r)}),e.qZA()()}}function z(o,n){1&o&&(e.TgZ(0,"div",19),e._UZ(1,"moneris-one-time"),e.qZA())}function K(o,n){1&o&&(e.TgZ(0,"div",19),e._UZ(1,"evalon-one-time"),e.qZA())}C.\u0275fac=function(n){return new(n||C)(e.Y36(c.BRM),e.Y36(c.eBC))},C.\u0275cmp=e.Xpm({type:C,selectors:[["account-balance"]],decls:16,vars:16,consts:[[1,"container-12"],[1,"row>"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body","text-center"],[1,"card-title","text-center"],[1,"text-muted","h4"],[1,"card-title","h4",3,"ngClass"],["class","card-footer text-muted text-center",4,"ngIf"],[1,"card-footer","text-muted","text-center"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",4)(7,"div",5)(8,"div",6),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"div",7),e._UZ(12,"currency-type"),e._uU(13),e.ALo(14,"currency"),e.qZA()(),e.YNc(15,V,4,6,"small",8),e.qZA()()()),2&n&&(e.xp6(4),e.hij(" ",e.lcZ(5,5,"BALANCE")," "),e.xp6(5),e.Oqu(e.l
1cZ(10,7,"BALANCE_ON_ACCOUNT")),e.xp6(2),e.Q6J("ngClass",e.kEZ(12,Q,3==(null==t.account?null:t.account.BalanceStatus),2==(null==t.account?null:t.account.BalanceStatus),1==(null==t.account?null:t.account.BalanceStatus))),e.xp6(2),e.hij(" ",e.xi3(14,9,t.parseAmount(null==t.account?null:t.account.AccountBalance),t.configurationService.config.DefaultCurrency)," "),e.xp6(2),e.Q6J("ngIf",null==t.account?null:t.account.LastPaymentDateTime))},directives:[d.mk,W.h,d.O5],pipes:[m.X$,d.H9,w.b],styles:["[_nghost-%COMP%]{content:content}.text-muted[_ngcontent-%COMP%]{color:#000!important}"]});var _=function(){return(0,h.Z)(function o(n,t){(0,b.Z)(this,o),this.configurationService=n,this.accountService=t,this.isLoading=!1,this.subs=new u.Y,this.enablePaymentSubmit=!1,this.enableCCSubmit=!0},[{key:"ngOnInit",value:function(){var t=this;this.subs.add(this.accountService.activeAccount.subscribe(function(a){t.account=a,t.isLoading=!1}))}},{key:"ngDoCheck",value:function(){this.onAmountChange()}},{key:"onAmountChange",value:function(){this.amountOrig&&this.amountOrig>=4?this.enablePaymentSubmit=!0:this.enablePaymentSubmit=!1}},{key:"cardChanged",value:function(t){var r,a=this;t&&this.account.BankCardTokenId&&2==this.account.PreAuthStatus&&(null===(r=this.autoRebill)||void 0===r||r.autoRebillTooltip.open(),setTimeout(function(){var s;null===(s=a.autoRebill)||void 0===s||s.autoRebillTooltip.close()},8e3))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}}])}();_.\u0275fac=function(n){return new(n||_)(e.Y36(c.eBC),e.Y36(c.BRM))},_.\u0275cmp=e.Xpm({type:_,selectors:[["ibitoll-user-payment"]],viewQuery:function(n,t){var a;(1&n&&e.Gf(v,5),2&n)&&(e.iGM(a=e.CRH())&&(t.autoRebill=a.first))},decls:31,vars:13,consts:[[1,"card","container-12","mx-md-4","mb-2","mt-4","shadow"],[1,"card-header"],[1,"mb-0","mt-1","align-middle","h3","title-text"],[1,"card-body","pb-5"],[1,"container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","autoRebill-tab","data-bs-toggle","tab","data-bs-target","#autoRebill","type","button","role","tab","aria-controls","autoRebill","aria-selected","true",1,"nav-link","active"],["id","directPayment-tab","data-bs-toggle","tab","data-bs-target","#directPayment","type","button","role","tab","aria-controls","directPayment","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content"],["id","autoRebill","role","tabpanel","aria-labelledby","autoRebill-tab",1,"tab-pane","fade","show","active"],[1,"row","mt-1"],["class","col-xs-12 col-sm-12 col-md-6 order-2 order-md-1",4,"ngIf"],[1,"col-xs-12","col-sm-12","col-md-6","order-1","order-md-2"],["id","directPayment","role","tabpanel","aria-labelledby","directPayment-tab",1,"tab-pane","fade"],[1,"row","mt-3"],[1,"col-xs-12","col-sm-12","col-md-6","order-1","order-md-2","account-balance-hide"],[1,"col-xs-12","col-sm-12","col-md-6","order-2","order-md-1"],[3,"cardChanged"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"ul",7)(10,"li",8)(11,"button",9),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.TgZ(14,"li",8)(15,"button",10),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"div",11)(19,"div",12)(20,"div",13),e.YNc(21,H,2,0,"div",14),e.YNc(22,j,2,0,"div",14),e.TgZ(23,"div",15),e._UZ(24,"auto-rebill"),e.qZA()()(),e.TgZ(25,"div",16)(26,"div",17),e.YNc(27,z,2,0,"div",14),e.YNc(28,K,2,0,"div",14),e.TgZ(29,"div",18),e._UZ(30,"account-balance"),e.qZA()()()()()()()()()),2&n&&(e.xp6(3),e.hij(" ",e.lcZ(4,7,"PAYMENTS")," "),e.xp6(9),e.hij(" ",e.lcZ(13,9,"AUTO_REBILL")," "),e.xp6(4),e.hij(" ",e.lcZ(17,11,"MAKE_PAYMENT")," "),e.xp6(5),e.Q6J("ngIf","moneris"===t.configurationService.config.PaymentProvider),e.xp6(1),e.Q6J("ngIf","elavon"===t.configurationService.config.PaymentProvider),e.xp6(5),e.Q6J("ngIf","moneris"===t.configurationService.config.PaymentProvider),e.xp6(1),e.Q6J("ngIf","elavon"===t.configurationService.config.PaymentProvider))},directives:[d.O5,G.l,q.n,v,Y.i,J.C,C],pipes:[m.X$],styles:[".nav-link[_ngcontent-%COMP%]{color:var(--hyper-link-color)!important}.title-text[_ngcontent-%COMP%]{font-weight:500!important}"]});var g=(0,h.Z)(function o(){(0,b.Z)(this,o)});g.\u0275fac=function(n){return new(n||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[[d.ez,l.u5,A.Bz.forChild([{path:"",component:_}]),c.msu,m.aw.forChild(),p.m]]})}}]);
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.