(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"/DVL":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("2wny"),r=n("3aYb"),i=n("Iq5M"),c=function(){function e(){this.urlSub=new o.a,this.urlSub.next("")}return e.prototype.getEndpoint=function(){return this.urlSub.asObservable().pipe(Object(r.a)(1))},e.prototype.setEndpoint=function(e){this.urlSub.next(e||"")},e.\u0275prov=i.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},0:function(e,t,n){e.exports=n("zUnb")},"0/pO":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("UNrv"),r=n("Iq5M"),i=n("Tm5P"),c=n("zEVE"),a=function(){function e(e,t,n){this.translateService=e,this.alertController=t,this.toastController=n}return e.prototype.errorTranslate=function(e,t,n,r){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="toast-bottom-center"),this.alert&&this.alert.dismiss(),this.translateService.get(e).subscribe((function(e){return Object(o.a)(i,void 0,void 0,(function(){var t;return Object(o.d)(this,(function(n){switch(n.label){case 0:return t=this,[4,this.alertController.create({header:this.translateService.instant("ERROR"),message:e,buttons:[this.translateService.instant("OK")]})];case 1:return t.alert=n.sent(),[4,this.alert.present()];case 2:return n.sent(),[2]}}))}))}))},e.prototype.confirmationTranslate=function(e,t,n,r){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="toast-bottom-center"),this.alert&&this.alert.dismiss(),this.translateService.get(e).subscribe((function(e){return Object(o.a)(i,void 0,void 0,(function(){var t;return Object(o.d)(this,(function(n){switch(n.label){case 0:return t=this,[4,this.alertController.create({message:e,buttons:[this.translateService.instant("CLOSE")]})];case 1:return t.alert=n.sent(),[4,this.alert.present()];case 2:return n.sent(),[2]}}))}))}))},e.\u0275fac=function(t){return new(t||e)(r.dc(i.d),r.dc(c.a),r.dc(c.b))},e.\u0275prov=r.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"0aJ/":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n("UNrv"),r=n("3ukZ"),i=n("ldfw"),c=n("kpJz"),a=n("jOUA"),s=n("ZVhi"),l=n("5Hhi"),u=n("ca4W"),d=n("CEOs"),b=n("CRj3"),p=n("Iq5M"),f=n("/DVL"),h=n("XdgQ"),g=n("8pj5"),m=n("Tm5P"),v=n("FOl/"),y=function(){function e(e,t,n,o,i,c){var a=this;this.http=e,this.proxy=t,this.localStorage=n,this.themeService=o,this.translateService=i,this.reCaptchaService=c,this.endpointUrl="",this.configurationEndpoint="api/Configuration",this.headers=new r.e({"Content-Type":"application/json"}),this.subs=new u.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){a.endpointUrl=e})))}return e.prototype.resetAllConfigurationServiceCache=function(){this.resetCachedTollCategories(),this.resetCachedAccountProfileConfig(),this.resetCachedProvinces(),this.resetCachedTransponderTypes(),this.resetCachedCenposMerchantId()},e.prototype.resetCachedTollCategories=function(){this.cachedTollCategories=null},e.prototype.resetCachedAccountProfileConfig=function(){this.cachedAccountProfileConfig=null},e.prototype.resetCachedProvinces=function(){this.cachedProvinces=null},e.prototype.resetCachedTransponderTypes=function(){this.cachedTransponderTypes=null},e.prototype.resetCachedCenposMerchantId=function(){this.cachedCenposMerchantId=null},e.prototype.GetLocalClientConfiguration=function(){var e=this;return new Promise((function(t){e.http.get("assets/clientConfig.json").subscribe((function(n){e.endpointUrl=n.serverUrl,e.config=n,e.themeService.setActiveTheme(e.config),e.proxy.setEndpoint(n.serverUrl),e.loadLanguage(),t()}),(function(e){console.log(e),t()}))}))},e.prototype.loadLanguage=function(){this.translateService.setDefaultLang(this.config.DefaultLanguage),this.translateService.use(this.config.DefaultLanguage)},e.prototype.GetClientLanguage=function(){return this.localStorage.check(d.d)?this.localStorage.getItem(d.d):this.config?(this.config&&this.localStorage.setItem(d.d,this.config.DefaultLanguage),this.config.DefaultLanguage):"en"},e.prototype.GetCurrencyCode=function(){return this.config&&this.config.DefaultCurrencyCode===d.c?"\u20ac ":"$"},e.prototype.SetClientLanguage=function(e){e&&(this.localStorage.setItem(d.d,e),this.config.DefaultLanguage=e)},e.prototype.getBrowserLang=function(){return this.translateService.getBrowserLang()},e.prototype.getCenposMerchantId=function(){return this.cachedCenposMerchantId?this.cachedCenposMerchantId:this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetCenposMerchantId",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.getConfigParameter=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/GetConfigParameter",JSON.stringify(e),{headers:this.headers}).pipe(Object(c.a)((function(t){return console.log("Parameter("+e+") read: "+JSON.stringify(t)),t})))},e.prototype.getIbiSystemIntegrityCheck=function(){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/IbiSystemIntegrityCheck",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.getInitialInvoiceNumber=function(){var e=this;return this.reCaptchaService.refresh("getInitialInvoiceNumber").pipe(Object(a.a)((function(){return e.http.post(e.endpointUrl+e.configurationEndpoint+"/GetInitialInvoiceNumber",{})})))},e.prototype.getAccountCreateFeeType=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/GetAccountCreateFeeType",JSON.stringify(e),{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.getWebPayConfig=function(){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetWebPayConfig",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.getSimpleWebPayConfig=function(){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetSimpleWebPayConfig",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.getTollCategories=function(){return this.cachedTollCategories||(this.cachedTollCategories=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetTollCategoryInfoList",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})),Object(s.a)(),Object(l.a)())),this.cachedTollCategories},e.prototype.getTollCategoryInfoByAccountProfile=function(e){var t=(new r.f).set("accountId",e.toString());return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetTollCategoryInfoByAccountProfile",{headers:this.headers,params:t})},e.prototype.getProvinces=function(){return this.cachedProvinces||(this.cachedProvinces=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetProvinceInfoList",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})),Object(s.a)(1),Object(l.a)())),this.cachedProvinces},e.prototype.getCountries=function(){return this.cachedCountries||(this.cachedCountries=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetCountyInfoList",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})),Object(s.a)(1),Object(l.a)())),this.cachedCountries},e.prototype.getNodes=function(){return this.cachedNodes||(this.cachedNodes=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetNodeInfoList",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})),Object(s.a)(1),Object(l.a)())),this.cachedNodes},e.prototype.getTransponderTypes=function(){return this.cachedTransponderTypes||(this.cachedTransponderTypes=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetTransponderTypes",{headers:this.headers}).pipe(Object(c.a)((function(e){return e})),Object(s.a)(1),Object(l.a)())),this.cachedTransponderTypes},e.prototype.getAccountProfiles=function(e){return void 0===e&&(e=!1),this.cachedAccountProfileConfig||(this.cachedAccountProfileConfig=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetAccountProfiles",{headers:this.headers}).pipe(Object(c.a)((function(t){return e?t.filter((function(e){return!0===e.Selectable})):t})))),this.cachedAccountProfileConfig},e.prototype.getTaxAuthorities=function(){return this.cachedTaxAuthorityInfo||(this.cachedTaxAuthorityInfo=this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetTaxAuthorities",{headers:this.headers}).pipe(Object(s.a)(1),Object(l.a)())),this.cachedTaxAuthorityInfo},e.prototype.getCurrentPlazaFares=function(){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetCurrentPlazaFares",{headers:this.headers})},e.prototype.GetClientConfiguration=function(){return this.http.get(this.endpointUrl+"api/Configuration/GetClientConfig")},e.prototype.CheckDbStatus=function(){return this.http.get(this.endpointUrl+"api/Configuration/IsOnline")},e.prototype.SaveClientConfiguration=function(e){this.http.post(this.endpointUrl+"api/Configuration/SaveClientConfig",e).subscribe((function(){window.location.reload()}))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(p.dc(r.b),p.dc(f.a),p.dc(h.a),p.dc(g.a),p.dc(m.d),p.dc(v.a))},e.\u0275prov=p.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[Number]),Object(o.e)("design:returntype",i.a)],e.prototype,"getAccountCreateFeeType",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[]),Object(o.e)("design:returntype",i.a)],e.prototype,"getTollCategories",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[Number]),Object(o.e)("design:returntype",i.a)],e.prototype,"getTollCategoryInfoByAccountProfile",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[]),Object(o.e)("design:returntype",i.a)],e.prototype,"getProvinces",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[]),Object(o.e)("design:returntype",i.a)],e.prototype,"getCountries",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[]),Object(o.e)("design:returntype",i.a)],e.prototype,"getNodes",null),Object(o.b)([Object(b.a)({maxAge:12e4,slidingExpiration:!0}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[Boolean]),Object(o.e)("design:returntype",i.a)],e.prototype,"getAccountProfiles",null),e}()},"4aas":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("B+oH"),r=n("ca4W"),i=n("Iq5M"),c=function(){function e(e,t){this.elementRef=e,this.accountService=t,this.subs=new r.a}return e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.accountService.getActiveAccount().subscribe((function(t){e.elementRef.nativeElement.style.display=t?5===t.AccountStatus?"none":"block":"none"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(i.Pb(i.l),i.Pb(o.a))},e.\u0275dir=i.Kb({type:e,selectors:[["","InActiveAccount",""]]}),e}()},"5bg6":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("3ukZ"),r=n("jOUA"),i=n("kpJz"),c=n("ca4W"),a=n("f+Tu"),s=n("/DVL"),l=n("FOl/"),u=n("Iq5M"),d=function(){function e(e,t,n,r){var i=this;this.http=e,this.reCaptchaService=t,this.errorhandlerService=n,this.proxy=r,this.paymentEndpoint="api/Evalon",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new c.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){i.endpointUrl=e})))}return e.prototype.getPaymentToken=function(e,t){var n=this;return this.reCaptchaService.refresh("getPaymentToken").pipe(Object(r.a)((function(){return n.http.post(n.endpointUrl+n.paymentEndpoint+"/GetPaymentToken",{amount:e,transactionType:t},{headers:n.headers})})))},e.prototype.ProcessBankAccountPayment=function(e){var t=this;return this.reCaptchaService.refresh("ProcessBankAccountPayment").pipe(Object(r.a)((function(){return t.http.post(t.endpointUrl+t.paymentEndpoint+"/ProcessBankAccountPayment",JSON.stringify(e),{headers:t.headers}).pipe(Object(i.a)((function(e){return console.log("getPreauthToken returns: "+e),e})))})))},e.prototype.PostEvalonPayment_backend=function(e){return this.http.post(this.endpointUrl+this.paymentEndpoint+"/PostEvalonPayment",JSON.stringify(e),{headers:this.headers})},e.prototype.getPreauthToken=function(e){var t=this;return this.reCaptchaService.refresh("getPreauthToken").pipe(Object(r.a)((function(){return t.http.post(t.endpointUrl+t.paymentEndpoint+"/GetPreauthToken",JSON.stringify(e),{headers:t.headers})})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(u.dc(o.b),u.dc(l.a),u.dc(a.a),u.dc(s.a))},e.\u0275prov=u.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"7XHD":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("Iq5M"),r=n("oIEy"),i=function(){function e(e){this.router=e,this.activePageChanged=new o.n(!0),this.activateEInvoiceRequested=new o.n(!0)}return e.prototype.setActivePage=function(e){this.activePageChanged.emit(e)},e.prototype.requestActivateEInvoice=function(){this.activateEInvoiceRequested.emit("")},e.prototype.reloadCurrentRoute=function(){var e=this,t=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then((function(){return e.router.navigate([t])}))},e.\u0275fac=function(t){return new(t||e)(o.dc(r.f))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"8pj5":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("CEOs"),r=n("I7ex"),i=n("XdgQ"),c=n("Iq5M"),a=function(){function e(e,t){this.appState=e,this.localstorageService=t}return e.prototype.setActiveTheme=function(e){this.active=e,this.active.Properties&&this.updateActiveTheme()},e.prototype.updateActiveTheme=function(){this.active.Properties.forEach((function(e){document.documentElement.style.setProperty(e.Name,e.Value)}))},e.prototype.GetCurrencyCode=function(){return this.active.DefaultCurrencyCode===o.c?"\u20ac":"$"},e.prototype.SetClientLanguage=function(e){this.localstorageService.setItem(o.d,e)},e.prototype.GetClientLanguage=function(){return this.localstorageService.check(o.d)?this.localstorageService.getItem(o.d):this.active.DefaultLanguage},e.\u0275fac=function(t){return new(t||e)(c.dc(r.a),c.dc(i.a))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},ALsj:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){return function(){}}()},"B+oH":function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n("3ukZ"),r=n("2wny"),i=n("fwXJ"),c=n("f+Ej"),a=n("amuK"),s=n("CEOs"),l=n("VHhc"),u=n("/DVL"),d=n("lgJ9"),b=n("kpJz"),p=n("jOUA"),f=n("MxAX"),h=n("ZVhi"),g=n("5Hhi"),m=n("ca4W"),v=n("YjXq"),y=n("fNNA"),U=n("XdgQ"),V=n("FOl/"),T=n("kxGQ"),I=n("Iq5M"),C=function(){function e(e,t,n,i,c){var a=this;this.http=e,this.proxy=t,this.databaseMapService=n,this.reCaptchaService=i,this.localstorageService=c,this.activeAccount=new r.a(1),this.expiryMinutes=15,this.accountEndpoint="api/Account",this.headers=new o.e({"Content-Type":"application/json"}),this.headers2=new o.e({"Content-Type":"application/json",ResponseType:"arraybuffer"}),this.accountTranspondersObservableCache={},this.accountTranspondersCache={},this.subs=new m.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){a.endpointUrl=e})))}return e.prototype.setLoadTime=function(e){this.loadTime=e},e.prototype.clearActiveAccount=function(){this.activeAccount.complete(),this.activeAccount=new r.a(1),this.accountTranspondersCache={},this.accountTranspondersObservableCache={}},e.prototype.resetAllAccountServiceCache=function(){this.resetCachedRequestedVehicleInfo(),this.resetCachedAccountObservable(),this.activeAccount.complete()},e.prototype.resetCachedAccountObservable=function(){this.accountObservable=null},e.prototype.resetCachedRequestedVehicleInfo=function(){this.cachedRequestedVehicleInfo=null},e.prototype.loadActiveAccount=function(e){var t=this;return this.getRefreshAccount(e).pipe(Object(d.a)((function(e){t.setActiveAccount(e)})))},e.prototype.setActiveAccount=function(e){e.LoadTime=this.loadTime,this.setLocalSelectedAccountID(e),this.selectedAccount=e,this.activeAccount.next(e)},e.prototype.setLocalSelectedAccountID=function(e){this.localstorageService.setItem(s.a,e.AccountID.toString())},e.prototype.getLocalSelectedAccountID=function(){return Number(this.localstorageService.getItem(s.a))},e.prototype.getActiveAccount=function(){return this.activeAccount.asObservable()},e.prototype.getActiveAccountInfo=function(){return this.checkIfInfoExpired(),this.selectedAccount},e.prototype.checkIfInfoExpired=function(){var e=this;this.selectedAccount&&this.selectedAccount.LoadTime&&new Date(this.selectedAccount.LoadTime.getTime()+6e4*this.expiryMinutes)<new Date&&this.getRefreshAccount(this.selectedAccount.AccountID).subscribe((function(t){e.setLoadTime(new Date),e.setActiveAccount(t)}))},e.prototype.checkAccountStatus=function(e){return!(!this.selectedAccount||5===this.selectedAccount.AccountStatus&&e)},e.prototype.getAccountStatement=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/DownloadAccountStatement",JSON.stringify(e),{headers:this.headers2}).pipe(Object(b.a)((function(e){return e})))},e.prototype.downloadStatement=function(e,t){var n=new l.a;n.AccountId=e,n.Statement=new c.a,n.Statement.BillingDate=t;var r=this.endpointUrl+this.accountEndpoint+"/DownloadAccountStatement",i=new o.e({"Content-Type":"application/json",Accept:"application/json"});return this.http.post(r,n,{headers:i,responseType:"blob"})},e.prototype.getStatementToken=function(e,t){var n=new l.a;return n.AccountId=e,n.Statement=new c.a,n.Statement.BillingDate=t,this.http.post(this.endpointUrl+this.accountEndpoint+"/statementToken",n)},e.prototype.getStatementInfoRecords=function(e){var t=(new o.f).set("accountId",e.toString());return this.http.get(this.endpointUrl+this.accountEndpoint+"/GetStatementInfoRecords",{headers:this.headers,params:t})},e.prototype.getStatementInfoRecordsForStatementPeriod=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/GetStatementInfoRecordsForStatementPeriod",e,{headers:this.headers,responseType:"blob"}).pipe(Object(b.a)((function(e){return e})))},e.prototype.getAccountBillingDateInfo=function(e){var t=(new o.f).set("accountId",e.toString());return this.http.get(this.endpointUrl+this.accountEndpoint+"/GetAccountBillingDateInfo",{headers:this.headers,params:t})},e.prototype.downloadDocument=function(e,t){var n=new a.a;return n.DocumentType=t,n.DocumentInfo=e,this.http.post(this.endpointUrl+this.accountEndpoint+"/GetDocumentContent",n,{headers:this.headers,responseType:"blob"}).pipe(Object(b.a)((function(e){return e})))},e.prototype.getAccountStatemetsInfo=function(e,t,n,o){var r=new a.c;return r.AccountId=t,r.Year=o,r.EInvoiceStatus=n,r.User=e,this.http.post(this.endpointUrl+this.accountEndpoint+"/GetAccountStatements",r,{headers:this.headers})},e.prototype.getEmployees=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/GetEmployees/"+e,{headers:this.headers}).pipe(Object(b.a)((function(e){return e})))},e.prototype.setCardPreAuthorizationAmount=function(e,t){var n=JSON.parse(JSON.stringify(e));return n.BalanceReplenishAmount=t,this.updatePaymentDetails(n)},e.prototype.enableCardPreAuthorization=function(e,t){var n=JSON.parse(JSON.stringify(e));return n.PreauthStatus=t?this.databaseMapService.ePreAuthStatus.active:this.databaseMapService.ePreAuthStatus.suspended,this.updatePaymentDetails(n)},e.prototype.removeCreditCardFromAccount=function(e){var t=new v.a;return t.UserId=e.UserId,t.UserLogonId=e.UserLogonId,t.AccountId=e.AccountId,t.PaymentType=null,t.PaymentCardType=null,t.PaymentNum=null,t.PaymentLastName=null,t.PaymentCardExpiryYear=null,t.PaymentCardExpiryMonth=null,t.BalanceReplenishAmount=null,t.CardBankTokenId=null,t.PreauthStatus=this.databaseMapService.ePreAuthStatus.disabled,this.updatePaymentDetails(t).pipe(Object(b.a)((function(){return!0})))},e.prototype.getCreditCard=function(e,t){var n=this;return void 0===t&&(t=!1),this.getAccount(e,t).pipe(Object(b.a)((function(e){var t=new v.a;return t.UserId=n.getCurrentUser().UserId,t.UserLogonId=n.getCurrentUser().UserName,t.AccountId=e.AccountID,t.PaymentType=e.PaymentType,t.PaymentCardType=e.PaymentCardType,t.PaymentNum=null!=e.PaymentNumber?e.PaymentNumber.toString():"",t.PaymentLastName=e.PreAuthCardHolder,t.PaymentCardExpiryYear=e.PreAuthCardExpiryYear,t.PaymentCardExpiryMonth=e.PreAuthCardExpiryMonth,t.BalanceReplenishAmount=e.TopUpAmount,t.BalanceReplenishThreshold=e.LowBalanceAmount,t.CardBankTokenId=e.BankCardTokenId,t.PreauthStatus=e.PreAuthStatus,t})))},e.prototype.updatePaymentDetails=function(e){var t=this;return this.reCaptchaService.refresh("UpdatePaymentDetails").pipe(Object(p.a)((function(){return t.http.post(t.endpointUrl+t.accountEndpoint+"/UpdatePaymentDetails",JSON.stringify(e),{headers:t.headers})})))},e.prototype.updatePaymentDetailsWithChase=function(e){var t=this;return this.reCaptchaService.refresh("UpdatePaymentDetailsWithChase").pipe(Object(p.a)((function(){return t.http.post(t.endpointUrl+t.accountEndpoint+"/UpdatePaymentDetailsWithChase",JSON.stringify(e),{headers:t.headers})})))},e.prototype.updateAccountInformation=function(e){var t=this,n=T.a.fromAccount(e);return this.reCaptchaService.refresh("UpdateAccountInformation").pipe(Object(p.a)((function(){return t.http.post(t.endpointUrl+t.accountEndpoint+"/UpdateAccountInformation",JSON.stringify(n),{headers:t.headers})})))},e.prototype.updateSuspendTag=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/UpdateSuspendTag",JSON.stringify(e),{headers:this.headers})},e.prototype.logOnlinePaymentTransaction=function(e){var t=this;return this.reCaptchaService.refresh("LogOnlinePaymentTransaction").pipe(Object(p.a)((function(){return t.http.post(t.endpointUrl+t.accountEndpoint+"/LogOnlinePaymentTransaction",JSON.stringify(e),{headers:t.headers})})))},e.prototype.getInvoiceNumber=function(e){var t=(new o.f).set("accountId",e.toString());return this.http.get(this.endpointUrl+this.accountEndpoint+"/GetInvoiceNumber",{headers:this.headers,params:t})},e.prototype.getAccountRecentActivities=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/GetAccountRecentActivities",JSON.stringify(e),{headers:this.headers})},e.prototype.getTransponderVehicleInfo=function(e,t){return void 0===t&&(t=!1),this.accountTranspondersCache[e]&&!t?Object(i.a)(this.accountTranspondersCache[e]):(this.accountTranspondersObservableCache[e]||(this.accountTranspondersObservableCache[e]=this.fetchTransponderVehicleInfo(e)),this.accountTranspondersObservableCache[e])},e.prototype.fetchTransponderVehicleInfo=function(e){var t=this;return this.http.get(this.endpointUrl+this.accountEndpoint+"/GetTransponderVehicleInfo/"+e,{headers:this.headers}).pipe(Object(b.a)((function(n){return t.accountTranspondersObservableCache[e]=null,t.accountTranspondersCache[e]=n,t.accountTranspondersCache[e]})),Object(f.a)())},e.prototype.getRequestedVehicleInfo=function(e){if(!this.cachedRequestedVehicleInfo){var t=(new o.f).set("accountId",e.toString());this.cachedRequestedVehicleInfo=this.http.get(this.endpointUrl+this.accountEndpoint+"/GetRequestedVehicleInfo",{headers:this.headers,params:t}).pipe(Object(b.a)((function(e){return e})),Object(h.a)(1),Object(g.a)())}return this.cachedRequestedVehicleInfo},e.prototype.getAccount=function(e,t){var n=this;void 0===t&&(t=!1);var o=new r.a;return!t&&null!=this.currentAccount&&this.currentAccount.AccountID>0?o.next(JSON.parse(JSON.stringify(this.currentAccount))):this.getRefreshAccount(e).subscribe((function(e){e.LoadTime=n.loadTime,n.setActiveAccount(e),o.next(e),o.complete()})),o},e.prototype.refreshActiveAccount=function(){var e=this,t=this.getCurrentUser(),n=this.getLocalSelectedAccountID();this.getUserAccounts().subscribe((function(o){t.Accounts=o,e.localstorageService.setItem(s.b,JSON.stringify(t)),e.loadActiveAccount(n).subscribe()}))},e.prototype.getUserAccounts=function(){return this.http.get(this.endpointUrl+"api/Account/GetUserAccountsInfo",{headers:this.headers}).pipe(Object(b.a)((function(e){return e})))},e.prototype.getRefreshAccount=function(e){var t=this;return this.http.get(this.endpointUrl+this.accountEndpoint+"/GetAccount/"+e,{headers:this.headers}).pipe(Object(b.a)((function(e){var n=e;return n.LoadTime=new Date,t.currentAccount=JSON.parse(JSON.stringify(n)),n})))},e.prototype.requestTransponder=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/TransponderRequest",e,{headers:this.headers}).pipe(Object(b.a)((function(e){return e})))},e.prototype.getCurrentUser=function(){try{return JSON.parse(this.localstorageService.getItem(s.b))}catch(e){return null}},e.prototype.updateEInvoiceStatus=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/UpdateEInvoiceStatus",e,{headers:this.headers}).pipe(Object(b.a)((function(e){return e})))},e.prototype.validateQRCode=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/ValidateQRCode",JSON.stringify(e),{headers:this.headers})},e.prototype.createQrTransponder=function(e){return this.http.post(this.endpointUrl+this.accountEndpoint+"/CreateQrTransponder",e,{headers:this.headers})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(I.dc(o.b),I.dc(u.a),I.dc(y.a),I.dc(V.a),I.dc(U.a))},e.\u0275prov=I.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},CEOs:function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var o="IBI_GROUPS",r="token",i="refresh_token",c="current_user",a="acctive_account",s="user_logon_id",l="lang",u="fr-FR"},EdX2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){}return e.prototype.clickEvent=function(e){e.srcElement.setAttribute("disabled",!0),setTimeout((function(){e.srcElement.removeAttribute("disabled")}),1e3)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Kb({type:e,selectors:[["","noDblClick",""]],hostBindings:function(e,t){1&e&&o.hc("click",(function(e){return t.clickEvent(e)}))}}),e}()},"FOl/":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("EVwY"),r=n("fwXJ"),i=n("8pj5"),c=n("Iq5M"),a=n("Bc94"),s=function(){function e(e,t){this.recaptchaV3Service=e,this.themeService=t,this.gToken=""}return e.prototype.refresh=function(e){var t=this,n=new o.a;if(!this.themeService.active.GoogleRecaptch)return Object(r.a)(!0);var i=setTimeout((function(){n.error("gRCaptch3:Unable to verify"),n.complete()}),5e3);return this.recaptchaV3Service.execute(this.themeService.active.GoogleRecaptch,e,(function(e){e?(clearTimeout(i),t.gToken=e,n.next(!0),n.complete()):(n.error("gRCaptch4:Unable to verify"),n.complete())}),{useGlobalDomain:!1}),n.asObservable()},e.prototype.ngOnDestroy=function(){this.gTokenSubscription&&this.gTokenSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(c.dc(a.b),c.dc(i.a))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},I7ex:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){this._state={}}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state=this.clone(this._state)},enumerable:!1,configurable:!0}),e.prototype.clone=function(e){return JSON.parse(JSON.stringify(e))},e.prototype.get=function(e){var t=this.state;return t.hasOwnPropertyprop(e)?t[e]:t},e.prototype.set=function(e,t){return this._state[e]=t},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},IjRH:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n("UNrv"),r=n("jOUA"),i=n("ldfw"),c=n("3ukZ"),a=n("ca4W"),s=n("CRj3"),l=n("Iq5M"),u=n("/DVL"),d=n("FOl/"),b=function(){function e(e,t,n){var o=this;this.http=e,this.proxy=t,this.reCaptchaService=n,this.messageboardEndpoint="api/MessageBoard",this.subs=new a.a,this.headers=new c.e({"Content-Type":"application/json"}),this.subs.add(this.proxy.getEndpoint().subscribe((function(e){o.endpointUrl=e})))}return e.prototype.getMessageBoardMsg=function(){return this.http.get(this.endpointUrl+this.messageboardEndpoint+"/GetMessageBoardMsg",{headers:this.headers})},e.prototype.setMessageBoardMsg=function(e){var t=this;return this.reCaptchaService.refresh("SetMessageBoardMsg").pipe(Object(r.a)((function(){return t.http.post(t.endpointUrl+t.messageboardEndpoint+"/SetMessageBoardMsg",JSON.stringify(e),{headers:t.headers})})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(l.dc(c.b),l.dc(u.a),l.dc(d.a))},e.\u0275prov=l.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),Object(o.b)([Object(s.a)({maxAge:3e5,slidingExpiration:!0,shouldCacheDecider:function(e){return e.length}}),Object(o.e)("design:type",Function),Object(o.e)("design:paramtypes",[]),Object(o.e)("design:returntype",i.a)],e.prototype,"getMessageBoardMsg",null),e}()},"J/Pv":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.prototype.CopyFrom=function(e){this.UserLogonId=e.UserLogonId,this.AccountId=e.AccountId,this.AccountEmail=e.AccountEmail,this.LinkExpiryDateTime=e.LinkExpiryDateTime,this.VerificationCode=e.VerificationCode,this.AccessCode=e.AccessCode,this.Uid=e.Uid,this.Email=e.UserEmail},e}()},J1mW:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("EVwY"),r=n("CEOs"),i=n("dOQ6"),c=n("XdgQ"),a=n("Iq5M"),s=n("oIEy"),l=function(){function e(e,t,n){this.router=e,this.authService=t,this.localstorageService=n}return e.prototype.canActivate=function(e,t){var n=this;if(!this.authService.loggedIn()&&this.localstorageService.check(r.e)){var i=new o.a;return this.authService.refreshToken().subscribe((function(){i.next(!0),i.complete()}),(function(e){n.router.navigate(["/login"],{queryParams:{url:t.url}}),i.next(!1),i.complete()})),i.asObservable()}return!!this.authService.loggedIn()||(this.router.navigate(["/login"]),!1)},e.\u0275fac=function(t){return new(t||e)(a.dc(s.f),a.dc(i.a),a.dc(c.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},JkS3:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("3ukZ"),r=n("kpJz"),i=n("jOUA"),c=n("lgJ9"),a=n("ca4W"),s=n("CEOs"),l=n("B+oH"),u=n("XdgQ"),d=n("YdUA"),b=n("/DVL"),p=n("FOl/"),f=n("Iq5M"),h=function(){function e(e,t,n,r,i,c){var s=this;this.accountService=e,this.http=t,this.logService=n,this.proxy=r,this.reCaptchaService=i,this.localstorageService=c,this.userEndpoint="api/User",this.passwordEndpoint="api/Password",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new a.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){s.endpointUrl=e})))}return e.prototype.getCurrentUser=function(){try{return JSON.parse(this.localstorageService.getItem(s.b))}catch(e){return null}},e.prototype.setCurrentUser=function(e){this.localstorageService.setItem(s.b,JSON.stringify(e)),this.accountService.setLoadTime(new Date)},e.prototype.refreshUserAccounts=function(e){var t=this.getCurrentUser();t.Accounts=e,this.localstorageService.setItem(s.b,JSON.stringify(t))},e.prototype.updateEmailAddress=function(e){return console.log("updateEmailAddress()->"+JSON.stringify(e)),this.http.post(this.endpointUrl+this.userEndpoint+"/UpdateUserEmail",JSON.stringify(e.Email),{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.changePassword=function(e){var t=this;return this.reCaptchaService.refresh("ChangePassword").pipe(Object(i.a)((function(){return t.http.post(t.endpointUrl+t.userEndpoint+"/ChangePassword",JSON.stringify(e),{headers:t.headers}).pipe(Object(r.a)((function(e){return e})))})))},e.prototype.changePasswordRecovery=function(e){var t=this;return this.reCaptchaService.refresh("ChangePasswordRecovery").pipe(Object(i.a)((function(){return t.http.post(t.endpointUrl+t.passwordEndpoint+"/ChangePasswordRecovery",JSON.stringify(e),{headers:t.headers})})))},e.prototype.sendChangePasswordEmail=function(e){var t=this;return this.reCaptchaService.refresh("SendChangePasswordEmail").pipe(Object(i.a)((function(){return t.http.post(t.endpointUrl+t.passwordEndpoint+"/SendChangePasswordEmail",JSON.stringify(e),{headers:t.headers})})))},e.prototype.logout=function(){return this.http.post(this.endpointUrl+this.passwordEndpoint+"/Logout",{},{headers:this.headers}).pipe(Object(c.a)((function(){})),Object(r.a)((function(e){return e})))},e.prototype.sendUserMessage=function(e){return this.http.post(this.endpointUrl+this.userEndpoint+"/SendWebUserMessage",JSON.stringify(e),{headers:this.headers})},e.prototype.resetPassword=function(e){return this.http.post(this.endpointUrl+this.passwordEndpoint+"/ResetPassword",JSON.stringify(e),{headers:this.headers})},e.prototype.sendPasswordVerificationCodeEmail=function(e){return this.http.post(this.endpointUrl+this.passwordEndpoint+"/SendPasswordVerificationCodeEmail",JSON.stringify(e),{headers:this.headers})},e.prototype.RegisterUserDevice=function(e){return this.http.post(this.endpointUrl+this.userEndpoint+"/RegisterUserDevice",JSON.stringify(e),{headers:this.headers})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(f.dc(l.a),f.dc(o.b),f.dc(d.a),f.dc(b.a),f.dc(p.a),f.dc(u.a))},e.\u0275prov=f.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},KXn8:function(e){e.exports=JSON.parse('{"Name":"mba","ClientName":"Mackinac Bridge Authority","LogoImageUrl":"assets/images/logo.png","BackgroundImageUrl":"assets/images/background.jpg","HasLanguage":"false","DefaultLanguage":"en","DefaultCurrency":"$","DefaultCurrencyCode":"en-US","RequestTransponder":true,"webRequestOptions":[{"Name":"Account Number","Value":"accountNumber"},{"Name":"MacPass Tag","Value":"transponderNumber"}],"NavLinks":[{"Name":"HOME","Url":"/MainView","Hide":false},{"Name":"TRANSPONDERS_SMARTCARDS","Url":"/Transponders","Hide":false},{"Name":"ACCOUNT_ACTIVITY","Url":"/AccountActivity","Hide":false},{"Name":"ONLINE_PAYMENT","Url":"/PaymentE","Hide":true},{"Name":"ACCOUNT_DETAILS","Url":"/AccountDetail","Hide":false},{"Name":"STATEMENTS","Url":"/Statements","Hide":false},{"Name":"HELP","Url":"/HelpInfo","Hide":false}],"QuickLinks":[{"Name":"MY_ACCOUNT","Url":"/AccountDetail","Hide":true},{"Name":"TRANSPONDERS_SMARTCARDS","Url":"/Transponders","Hide":true},{"Name":"ACCOUNT_ACTIVITY","Url":"/AccountActivity","Hide":true},{"Name":"PAYMENT_METHODS","Url":"/PaymentE","Hide":true},{"Name":"STATEMENTS","Url":"/Statements","Hide":true},{"Name":"CONTACT_US","Url":"https://www.mackinacbridge.org/about-the-bridge/contact-us/"}],"FooterLinks":[{"Name":"Home","Url":"https://www.mackinacbridge.org/"},{"Name":"Toll Schedule","Url":"https://www.mackinacbridge.org/fares-traffic/fare-schedule/"},{"Name":"Current Conditions","Url":"https://www.mackinacbridge.org/fares-traffic/conditions/"},{"Name":"History","Url":"https://www.mackinacbridge.org/history/history-of-the-bridge/"},{"Name":"FAQ","Url":"https://www.mackinacbridge.org/about-the-bridge/frequently-asked-questions/"}],"Properties":[{"Name":"--primary-color","Value":"#498119"},{"Name":"--background-color","Value":"#F9F9FB"},{"Name":"--text-color","Value":"#1479CF"},{"Name":"--darkPrimary-color","Value":"#005d97"},{"Name":"--secondary-color","Value":"#1479CF"},{"Name":"--nav-background-color","Value":"#005d97"},{"Name":"--nav-text-color","Value":"#ffffff"},{"Name":"--nav-hover-color","Value":"#005d97"},{"Name":"--nav-hover-text-color","Value":"#498119"},{"Name":"--nav-button-primary-color","Value":"#005d97"},{"Name":"--nav-button-primary-hover","Value":"#ffffff"},{"Name":"--footer-background-color","Value":"#498119"},{"Name":"--footer-text-color","Value":"#FFFFFF"},{"Name":"--footer-hover-color","Value":"#000000"},{"Name":" --footer-hover-text-color","Value":"#ffffff"}],"customeComponets":[{"name":"app.component.ts","templateUrl":"app.component.html"},{"name":"components/login/login.component.ts","templateUrl":"login.component.html"},{"name":"components/footer-links/footer-links.component.ts","templateUrl":"footer-links.component.html"},{"name":"components/main-view/main-view.component.ts","templateUrl":"main-view.component.html"},{"name":"components/account-summary/account-summary.component.ts","templateUrl":"account-summary.component.html"}],"GoogleAnalyticsKey":"UA-145478576-1","GoogleAnalyticsKey4":"G-V3HT4W9MPC","GoogleRecaptch":"6LcjAEokAAAAAMUevogADrY8NPb6fFSKDiAiHuYk","SessionTimeOut":600,"ProductionCdnScripts":[],"Version":"2.9.22"}')},PCNd:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("HKMU"),r=n("Tm5P"),i=n("3ukZ"),c=n("RlrJ"),a=n("iOcS"),s=n("QvcM"),l=n("Iq5M"),u=function(){function e(){}return e.\u0275mod=l.Nb({type:e}),e.\u0275inj=l.Mb({factory:function(t){return new(t||e)},providers:[o.e,o.c],imports:[[o.b,i.c,c.h,c.u,a.B,a.F,r.b.forChild(),s.b.forRoot()],a.B,a.F,s.b]}),e}()},PcIE:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("3ukZ"),r=n("kpJz"),i=n("ca4W"),c=n("/DVL"),a=n("Iq5M"),s=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.configurationEndpoint="api/Payment",this.subs=new i.a,this.headers=new o.e({"Content-Type":"application/json"}),this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.prepareChasePayment=function(e){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/prepare/"+e+"/",{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.prepareChasePaymentViolation=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/prepare/pv/",JSON.stringify(e),{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.getTxnReceipt=function(e){var t="/receipt/";return e.includes("_pv_")&&(t="/receipt/pv/"),console.log("getTxnReceipt: "+e+"; route: "+t),this.http.get(this.endpointUrl+this.configurationEndpoint+t+e+"/",{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.GetPaymentViolationInfo=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/iou/",JSON.stringify(e),{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(a.dc(o.b),a.dc(c.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},T2Vz:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(e){return e[e.Success=0]="Success",e[e.Error=1]="Error",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e}({})},T5Vf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("3ukZ"),r=n("kpJz"),i=n("ca4W"),c=n("/DVL"),a=n("Iq5M"),s=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.configurationEndpoint="api/alphaPaym",this.subs=new i.a,this.headers=new o.e({"Content-Type":"application/json"}),this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.getTxnReceipt=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/GetTxnReceipt",JSON.stringify(e),{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.getPaymProviderInfo=function(){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetPaymProviderInfo",{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.prepareAlphaBankPayment=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/PrepAlphaPayment",e,{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.getStoredCards=function(){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/GetStoredCards",{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.deleteCard=function(e){return this.http.get(this.endpointUrl+this.configurationEndpoint+"/DeleteStoredCard/"+e,{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.saveCard=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/SaveStoredCard",e,{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(a.dc(o.b),a.dc(c.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},VHhc:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){return function(){}}()},VQfj:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n("Iq5M"),r=n("iOcS"),i=n("xfSh"),c=n("EsSo"),a=n("HKMU"),s=n("gz2M"),l=["paymentRecieptModalBody"];function u(e,t){if(1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Merchant ID: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(n.merchantId?n.merchantId:"N/A")}}function d(e,t){if(1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Processed As: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(n.getCardType(null==n.transactionResponse?null:n.transactionResponse.PaymentCardType))}}function b(e,t){if(1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Reference No: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(null==n.transactionResponse?null:n.transactionResponse.BankTransactionId)}}function p(e,t){if(1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Trace No.: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(null!=n.transactionResponse&&n.transactionResponse.TraceNumber?null==n.transactionResponse?null:n.transactionResponse.TraceNumber:"N/A")}}function f(e,t){if(1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Device ID: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(n.displayDeviceId())}}function h(e,t){1&e&&(o.Vb(0,"div",8),o.Vb(1,"span"),o.Vb(2,"b"),o.Tc(3,"Entry Method: "),o.Ub(),o.Ub(),o.Vb(4,"span"),o.Tc(5,"Manual"),o.Ub(),o.Ub())}var g=function(){function e(e,t,n,r){this.databaseMapService=e,this.configurationService=t,this.utilsService=n,this.dateTimeService=r,this.ModalClose=new o.n,this.paymentNumber=""}return e.prototype.ngOnInit=function(){this.getCenposMerchantId()},e.prototype.ngDoCheck=function(){if(this.transactionResponse){var e=this.transactionResponse.PaymentNumber.substring(0,2),t=this.transactionResponse.PaymentNumber.substring(this.transactionResponse.PaymentNumber.length-4),n=this.transactionResponse.PaymentNumber.substring(2,this.transactionResponse.PaymentNumber.length-4).replace(/\d/g,"*");this.paymentNumber=e+n+t}},e.prototype.getCenposMerchantId=function(){var e=this;this.configurationService.getCenposMerchantId().subscribe((function(t){e.merchantId=t}),(function(e){console.log(e)}))},e.prototype.isApproved=function(){return this.transactionResponse&&this.transactionResponse.BankAuthorizationStatusDB===this.databaseMapService.eAuthorizationStatusTypeMap.approved},e.prototype.getCardType=function(e){return this.databaseMapService.getCardTypeString(e)},e.prototype.parseAmount=function(e){return Math.abs(e)},e.prototype.displayCard=function(){var e="****************";return this.transactionResponse&&(e=this.transactionResponse.PaymentNumber),e},e.prototype.displayDeviceId=function(){var e="N/A";return this.transactionResponse&&(e=this.transactionResponse.NodeID.toString()),e},e.prototype.downloadReceipt=function(){var e=this;console.log("paymentRecieptModalBody"),document.getElementById("paymentRecieptModalBody"),i(this.paymentRecieptModalBody.nativeElement).then((function(t){var n=new c.a;n.setFontSize(20),n.setFont("times","bold"),e.isApproved()?n.text("Approved Online Transaction",55,20):n.text("Declined Online Transaction",55,20),n.setFontSize(12),n.setFont("times","bold"),n.text("Amount :",10,35),n.setFont("times","normal"),n.text("$"+Math.abs(e.transactionResponse.ChargeTotal),55,35),n.setFont("times","bold"),n.text("Card Number :",10,45),n.setFont("times","normal");var o=e.transactionResponse.PaymentNumber.substring(0,2),r=e.transactionResponse.PaymentNumber.substring(e.transactionResponse.PaymentNumber.length-4),i=e.transactionResponse.PaymentNumber.substring(2,e.transactionResponse.PaymentNumber.length-4).replace(/\d/g,"*");if(e.paymentNumber=o+i+r,n.text(e.paymentNumber,55,45),n.setFont("times","bold"),n.text("Approval Code:",10,55),n.setFont("times","normal"),n.text(e.transactionResponse.BankApprovalCode,55,55),n.setFont("times","bold"),n.text("Invoice No.:",10,65),n.setFont("times","normal"),e.transactionResponse.ResponseOrderID.length>40){var a=e.transactionResponse.ResponseOrderID.slice(0,40);n.text(a,55,65),n.text(e.transactionResponse.ResponseOrderID.slice(40,e.transactionResponse.ResponseOrderID.length),55,70),n.setFont("times","bold"),n.text("Processed on:",10,80),n.setFont("times","normal"),n.text(e.dateTimeService.getMackinacShortDateTimeString(new Date(e.transactionResponse.LDateTime)),55,80)}else n.text(e.transactionResponse.ResponseOrderID,55,65),n.setFont("times","bold"),n.text("Processed on:",10,75),n.setFont("times","normal"),n.text(e.dateTimeService.getMackinacShortDateTimeString(new Date(e.transactionResponse.LDateTime)),55,75);n.save("Transaction-"+Date.now()+".pdf")}))},e.prototype.afterModalClose=function(){console.log("afterModalClose"),this.ModalClose.emit(!0)},e.prototype.logInternalData=function(e){console.log("["+e+"]logInternalData: txnRes: "+JSON.stringify(this.transactionResponse))},e.\u0275fac=function(t){return new(t||e)(o.Pb(r.n),o.Pb(r.l),o.Pb(r.J),o.Pb(r.o))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-payment-receipt"]],viewQuery:function(e,t){var n;1&e&&o.Yc(l,!0),2&e&&o.Fc(n=o.ic())&&(t.paymentRecieptModalBody=n.first)},inputs:{transactionResponse:"transactionResponse",currentDate:"currentDate"},outputs:{ModalClose:"ModalClose"},decls:52,vars:20,consts:[["id","paymentReceiptModal","tabindex","-1","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-md"],[1,"modal-content"],["id","paymentRecieptModalBody",1,"modal-body"],["paymentRecieptModalBody",""],[1,"modal-title","text-center","rounded-top"],[1,"fa",3,"ngClass"],[1,"col","border","border-secondary"],[1,"pl-2","my-1"],["class","pl-2 my-1",4,"ngIf"],[1,"text-center"],[1,"modal-footer"],[1,"btn","btn-app-primary","col-sm-4",3,"click"],["aria-hidden","true",1,"fa","fa-cloud-download"],["data-dismiss","modal","type","button",1,"btn","btn-app-primary","col-sm-3","offset-5",3,"click"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3,4),o.Vb(5,"div",5),o.Vb(6,"h3"),o.Qb(7,"i",6),o.Tc(8),o.Ub(),o.Ub(),o.Vb(9,"div",7),o.Vb(10,"div",8),o.Vb(11,"span"),o.Vb(12,"b"),o.Tc(13,"Amount: "),o.Ub(),o.Ub(),o.Vb(14,"span"),o.Tc(15),o.mc(16,"currency"),o.Ub(),o.Ub(),o.Vb(17,"div",8),o.Vb(18,"span"),o.Vb(19,"b"),o.Tc(20,"Card Number: "),o.Ub(),o.Ub(),o.Vb(21,"span"),o.Tc(22),o.Ub(),o.Ub(),o.Rc(23,u,6,1,"div",9),o.Vb(24,"div",8),o.Vb(25,"span"),o.Vb(26,"b"),o.Tc(27,"Approval Code: "),o.Ub(),o.Ub(),o.Vb(28,"span"),o.Tc(29),o.Ub(),o.Ub(),o.Rc(30,d,6,1,"div",9),o.Rc(31,b,6,1,"div",9),o.Rc(32,p,6,1,"div",9),o.Rc(33,f,6,1,"div",9),o.Vb(34,"div",8),o.Vb(35,"span"),o.Vb(36,"b"),o.Tc(37,"Invoice No.: "),o.Ub(),o.Ub(),o.Vb(38,"span"),o.Tc(39),o.Ub(),o.Ub(),o.Rc(40,h,6,0,"div",9),o.Ub(),o.Vb(41,"div",10),o.Vb(42,"span"),o.Tc(43),o.mc(44,"dateTimeFormatter"),o.mc(45,"dateTimeFormatter"),o.Ub(),o.Ub(),o.Ub(),o.Vb(46,"div",11),o.Vb(47,"button",12),o.hc("click",(function(){return t.downloadReceipt()})),o.Qb(48,"i",13),o.Tc(49," Download "),o.Ub(),o.Vb(50,"button",14),o.hc("click",(function(){return t.afterModalClose()})),o.Tc(51," OK "),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(7),o.uc("ngClass",t.isApproved()?"fa-check-circle-o":"fa-exclamation-circle"),o.Bb(1),o.Vc(" ",t.isApproved()?"Approved":"Declined"," Online Transaction "),o.Bb(7),o.Vc("",o.oc(16,13,t.parseAmount(null==t.transactionResponse?null:t.transactionResponse.ChargeTotal),t.configurationService.config.DefaultCurrency)," "),o.Bb(7),o.Vc("",t.paymentNumber," "),o.Bb(1),o.uc("ngIf",!1),o.Bb(6),o.Uc(null!=t.transactionResponse&&t.transactionResponse.BankApprovalCode?null==t.transactionResponse?null:t.transactionResponse.BankApprovalCode:"N/A"),o.Bb(1),o.uc("ngIf",!1),o.Bb(1),o.uc("ngIf",!1),o.Bb(1),o.uc("ngIf",!1),o.Bb(1),o.uc("ngIf",!1),o.Bb(6),o.Uc(null==t.transactionResponse?null:t.transactionResponse.ResponseOrderID),o.Bb(1),o.uc("ngIf",!1),o.Bb(3),o.Vc("Processed on: ",null!=t.transactionResponse&&t.transactionResponse.LDateTime?o.nc(44,16,null==t.transactionResponse?null:t.transactionResponse.LDateTime):o.nc(45,18,t.currentDate)," "))},directives:[a.l,a.n],pipes:[a.c,s.a],styles:[""]}),e}()},VWKs:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("3ukZ"),r=n("lgJ9"),i=n("W0id"),c=n("dOQ6"),a=n("0aJ/"),s=n("0/pO"),l=n("Iq5M"),u=n("Tm5P"),d=function(){function e(e,t,n,o,r,i){this.alertService=e,this.translateService=t,this.authService=n,this.config=o,this.alertMobileService=r,this.injector=i}return e.prototype.intercept=function(e,t){var n=this;return t.handle(e).pipe(Object(r.a)((function(e){}),(function(e){var t,r;if(console.log(JSON.stringify(e)),e instanceof o.d){if(401===e.status)return;var i=void 0;if(504===e.status)i="ERR_MESSAGE_504";else if(502===e.status)i="ERR_MESSAGE_504";else if(403===e.status&&"ERR_MESSAGE_403_IP"===e.error)i=e.error;else if(406===e.status&&(null===(r=null===(t=e.error)||void 0===t?void 0:t.Message)||void 0===r?void 0:r.includes("not valid")))i="ERR_MESSAGE_406";else{var a;if(e.error instanceof Blob){var s=new FileReader;s.addEventListener("loadend",(function(e){var t=JSON.parse(e.srcElement.result),o=n.getErrorCode(a=t.Message);n.alertService.errorTranslate(o)})),s.readAsText(e.error)}else{if(a=e.error.error?e.error.error:e.error.Message,n.authService=n.injector.get(c.a),n.authService.loggedIn()&&"API_ERR_INVALID_WEB_USER_STATUS"===a)return void jQuery("#alertLogoutModal").modal({show:!0});i=n.getErrorCode(a)}}"mobile"===n.config.config.Type?n.alertMobileService.errorTranslate(i):n.alertService.errorTranslate(i)}else console.log("NOT a HttpErrorResponse error")})))},e.prototype.getErrorCode=function(e){var t="UNEXPECTED_ERROR_USER_MESSAGE";return e&&(e.startsWith("API_ERR")?t=e:"account_locked"===e?t="LOGIN_ERROR_ACCOUNT_LOCKED":"account_temp_suspended"===e?t="LOGIN_ERROR_ACCOUNT_SUSPENDED":"Closed"===e?t="LOGIN_ERROR_ACCOUNT_CLOSED":"invalid_grant"===e?t="LOGIN_ERROR_WRONG_PASSWORD":"token_expired"===e&&(t="LOGIN_ERROR_TOKEN_EXPIRED")),t},e.\u0275fac=function(t){return new(t||e)(l.dc(i.a),l.dc(u.d),l.dc(c.a),l.dc(a.a),l.dc(s.a),l.dc(l.s))},e.\u0275prov=l.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},VciZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("3ukZ"),r=n("/DVL"),i=n("ca4W"),c=n("kpJz"),a=n("Iq5M"),s=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.configurationEndpoint="api/customerSupport",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new i.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.sendSupportRequest=function(e){return this.http.post(this.endpointUrl+this.configurationEndpoint+"/SendSupportRequest",e,{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.\u0275fac=function(t){return new(t||e)(a.dc(o.b),a.dc(r.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},VlDB:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("fNNA"),r=n("Iq5M"),i=function(){function e(e){this.databaseMapService=e}return e.prototype.transform=function(e,t){if(e)return this.databaseMapService.getMapValue(e,t)},e.\u0275fac=function(t){return new(t||e)(r.Pb(o.a))},e.\u0275pipe=r.Ob({name:"mapType",type:e,pure:!0}),e}()},W0id:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("oIEy"),r=n("EVwY"),i=n("T2Vz"),c=n("Iq5M"),a=n("Tm5P"),s=function(){function e(e,t){var n=this;this.router=e,this.translateService=t,this.keepAfterRouteChange=!1,this.subject=new r.a,e.events.subscribe((function(e){e instanceof o.d&&(n.keepAfterRouteChange?n.keepAfterRouteChange=!1:n.clear())}))}return e.prototype.getAlert=function(){return this.subject.asObservable()},e.prototype.successTranslate=function(e,t,n){var o=this;void 0===n&&(n=!1),this.translateService.get(e).subscribe((function(e){return o.success(e,t,n)}))},e.prototype.errorTranslate=function(e,t,n,o){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===o&&(o="toast-bottom-center"),this.messageCode!==e&&(this.messageCode=e,this.translateService.get(e).subscribe((function(e){return r.alert(i.a.Error,e,t,n,o)})))},e.prototype.warnTranslate=function(e,t,n){var o=this;void 0===n&&(n=!1),this.translateService.get(e).subscribe((function(e){return o.alert(i.a.Warning,e,t,n)}))},e.prototype.success=function(e,t,n){void 0===n&&(n=!1),this.alert(i.a.Success,e,t,n)},e.prototype.error=function(e,t,n){void 0===n&&(n=!1),this.alert(i.a.Error,e,t,n)},e.prototype.info=function(e,t,n){void 0===n&&(n=!1),this.alert(i.a.Info,e,t,n)},e.prototype.warn=function(e,t,n){void 0===n&&(n=!1),this.alert(i.a.Warning,e,t,n)},e.prototype.alert=function(e,t,n,o,r){void 0===o&&(o=!1),void 0===r&&(r="toast-bottom-center"),this.keepAfterRouteChange=o,this.subject.next({type:e,message:t,autoClose:n,position:r})},e.prototype.clear=function(){this.messageCode="",this.subject.next()},e.\u0275fac=function(t){return new(t||e)(c.dc(o.f),c.dc(a.d))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},XdgQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("CEOs"),r=n("Iq5M"),i=n("Z2t2"),c=function(){function e(e){this.elysStorageService=e}return e.prototype.load=function(){return new Promise((function(e){e()}))},e.prototype.setItem=function(e,t){this.elysStorageService.setData(e,t)},e.prototype.getItem=function(e){return this.elysStorageService.getData(e)},e.prototype.removeItem=function(e){this.elysStorageService.removeItems(e)},e.prototype.check=function(e){return this.elysStorageService.checkIsExist(e)},e.prototype.clear=function(){if(this.elysStorageService.checkIsExist(o.d)){var e=this.getItem(o.d);this.elysStorageService.destroy(),this.setItem(o.d,e)}else this.elysStorageService.destroy()},e.\u0275fac=function(t){return new(t||e)(r.dc(i.b))},e.\u0275prov=r.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},YG2U:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("Iq5M"),r=n("HKMU"),i=function(){function e(e){this.currencyPipe=e}return e.prototype.transform=function(e,t,n,o,r){if(null!=e){var i=this.currencyPipe.transform(e,t,n,o,r),c=String.fromCharCode(8364);if(i.indexOf(c)>0){var a=String.fromCharCode(160),s=new RegExp(String.fromCharCode(160),"g");i=i.replace(" ","").replace(s,""),t&&(i=i.replace(c,a+c))}return i}return""},e.\u0275fac=function(t){return new(t||e)(o.Pb(r.c))},e.\u0275pipe=o.Ob({name:"ibiCurrency",type:e,pure:!0}),e}()},YdUA:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("3ukZ"),r=n("ca4W"),i=n("cS0Z"),c=n("/DVL"),a=n("Iq5M"),s=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.logEndpoint="api/Log",this.localLogEndpoint="AO-web-log/Log",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new r.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.logMessage=function(e){var t=new i.a;t.Name=e;var n=this.headers.append("X-Client-Ref",this.encodeDateToken());this.http.post(this.endpointUrl+this.logEndpoint+"/LogMessage",JSON.stringify(t),{headers:n}).subscribe((function(){}))},e.prototype.logMsgWarn=function(e){console.log("logMsgWarn URL: "+this.endpointUrl+this.localLogEndpoint+"/LogWarn");var t=this.headers.append("X-Client-Ref",this.encodeDateToken());this.http.post(this.endpointUrl+this.localLogEndpoint+"/LogWarn",JSON.stringify(e),{headers:t}).subscribe((function(e){console.log("logMsgWarn->"+JSON.stringify(e))}))},e.prototype.logMessageSync=function(e){var t=new i.a;t.Name=e;var n=new XMLHttpRequest;n.open("POST",this.endpointUrl+this.logEndpoint+"/LogMessage",!1),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(t))},e.prototype.logErrorMessageSync=function(e){this.http.post(this.endpointUrl+this.logEndpoint+"/LogErrorMessage",JSON.stringify(e),{headers:this.headers})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.encodeDateToken=function(){for(var e=(new Date).toISOString()+"#SecureToken",t=btoa(e),n="",o=0;o<t.length;o+=2)n+=o+1<t.length?t[o+1]+t[o]:t[o];return btoa(n)},e.\u0275fac=function(t){return new(t||e)(a.dc(o.b),a.dc(c.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},YjXq:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){return function(){}}()},a8Ky:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("kpJz"),r=n("B+oH"),i=n("ca4W"),c=n("Iq5M"),a=function(){function e(e){this.accountService=e,this.subs=new i.a}return e.prototype.canActivate=function(){return this.accountService.getActiveAccount().pipe(Object(o.a)((function(e){return!!e&&5!==e.AccountStatus})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(c.dc(r.a))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},amuK:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(e){return e[e.eInvoice=0]="eInvoice",e[e.PdfAnalysis=1]="PdfAnalysis",e[e.ExcelAnalysis=2]="ExcelAnalysis",e}({}),r=function(){return function(){}}(),i=function(){return function(){}}()},cS0Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n("UNrv");var o=function(){return function(){}}()},cVFx:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){}return e.prototype.transform=function(e,t){if(!e||!t)return e;for(var n=e,o=(t=t.toLowerCase()).split(" "),r=0;r<o.length;r++)n=this.filterItems(n,o[r]);return n},e.prototype.filterItems=function(e,t){var n=this;return e&&t?e.filter((function(e){return-1!==n.stringifyItemValues(e).toLowerCase().indexOf(t)})):e},e.prototype.stringifyItemValues=function(e){var t="";for(var n in e)t+=e[n]+",";return t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=o.Ob({name:"employeeFilterPipe",type:e,pure:!0}),e}()},dOQ6:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n("3ukZ"),r=n("Iq5M"),i=n("0grR"),c=n("uK5l"),a=n("EVwY"),s=n("kpJz"),l=n("lgJ9"),u=n("ca4W"),d=n("CEOs"),b=n("ALsj"),p=n("B+oH"),f=n("0aJ/"),h=n("XdgQ"),g=n("YdUA"),m=n("/DVL"),v=n("CRj3"),y=function(){return function(){}}(),U=n("oIEy"),V=n("+75V"),T=function(){function e(e,t,n,a,s,l,d,b){var p=this;this.http=e,this.proxy=t,this.logService=n,this.accountService=a,this.router=s,this.configurationService=l,this.keepalive=d,this.localstorageService=b,this.onLoginChanged=new r.n,this.isloggedIn=new c.a(!1),this.isKeepMeSignedIn=!0,this.isloggedInProcess=!1,this.helper=new i.a,this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new u.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){p.endpointUrl=e}))),this.keepalive.interval(5),this.keepalive.onPing.subscribe((function(){return p.checkloggedIn()})),this.loggedIn()}return e.prototype.login=function(e,t){var n,r,i,c,a=this;this.isloggedInProcess=!0;var l=new o.e({"Content-Type":"x-www-form-urlencoded",Audience:"Any"}),u=(null===(r=null===(n=this.configurationService)||void 0===n?void 0:n.config)||void 0===r?void 0:r.ClientId)?null===(c=null===(i=this.configurationService)||void 0===i?void 0:i.config)||void 0===c?void 0:c.ClientId:"123",b=new URLSearchParams;return b.append("username",encodeURIComponent(e)),b.append("password",encodeURIComponent(t)),b.append("grant_type","password"),b.append("client_id",u),b.append("client_secret","secret"),b.append("stay_signed_in",this.isKeepMeSignedIn.toString()),this.http.post(this.endpointUrl+"oauth2/token",b.toString(),{headers:l}).pipe(Object(s.a)((function(t){var n=t;a.localstorageService.setItem(d.g,n.access_token),a.localstorageService.setItem(d.h,e),n.refresh_token&&a.localstorageService.setItem(d.e,n.refresh_token);var o=a.helper.decodeToken(n.access_token);return a.setCurrentUser(o.UserProfile),a.isloggedIn.next(!0),JSON.parse(o.UserProfile)})))},e.prototype.GetUserAccountsInfo=function(e){var t=this;return this.http.get(this.endpointUrl+"api/Account/GetUserAccountsInfo",{headers:this.headers}).pipe(Object(s.a)((function(n){e.Accounts=n;var o=new Date;return e.LoginTokenExpireDateTime=new Date(o.getTime()+1e3*t.configurationService.config.RestoreLoginTokenPeriod),t.setCurrentUser(JSON.stringify(e)),t.accountService.loadActiveAccount(e.Accounts[0].AccountID).subscribe(),t.onLoginChanged.emit(!0),n})))},e.prototype.serverLogout=function(){var e=new o.e({"Content-Type":"application/json"}),t=new y;if(this.localstorageService.check(d.e)&&(t.RefreshToken=this.localstorageService.getItem(d.e)),this.localstorageService.check(d.g)&&(t.AccessToken=this.localstorageService.getItem(d.g)),t.AccessToken||t.RefreshToken)return this.http.post(this.endpointUrl+"api/WebAccess/Logout",t,{headers:e}).pipe(Object(l.a)((function(e){console.log(e)})))},e.prototype.refreshToken=function(){var e,t,n,r,i=this,c=new o.e({"Content-Type":"x-www-form-urlencoded",Audience:"Any"}),a=new URLSearchParams,s=(null===(t=null===(e=this.configurationService)||void 0===e?void 0:e.config)||void 0===t?void 0:t.ClientId)?null===(r=null===(n=this.configurationService)||void 0===n?void 0:n.config)||void 0===r?void 0:r.ClientId:"123";return this.localstorageService.getItem(d.e)?(a.append("grant_type",d.e),a.append(d.e,this.localstorageService.getItem(d.e)),a.append("client_id",s),a.append("client_secret","secret"),this.http.post(this.endpointUrl+"oauth2/token",a.toString(),{headers:c}).pipe(Object(l.a)((function(e){var t=e;i.localstorageService.setItem(d.g,t.access_token),t.refresh_token&&i.localstorageService.setItem(d.e,t.refresh_token);var n=i.helper.decodeToken(t.access_token);console.log("Logon: UserProfile: "+JSON.stringify(n.UserProfile)),i.setCurrentUser(n.UserProfile)})))):this.logout()},e.prototype.logout=function(){var e=this,t=new a.a;if(this.getCurrentUser()&&this.logService.logMessage("Account Id "+JSON.parse(this.getCurrentUser()).AccountId+" Logged out"),"aodos"===this.configurationService.config.Name||"eodos"===this.configurationService.config.Name||"cob"===this.configurationService.config.Name||"mba"===this.configurationService.config.Name){var n=this.serverLogout();n?n.subscribe((function(n){setTimeout((function(){e.logOutClearCache(),t.next(!0)}))})):setTimeout((function(){e.logOutClearCache(),t.next(!0)}))}else this.logOutClearCache(),setTimeout((function(){t.next(!0)}));return t.asObservable()},e.prototype.logOutClearCache=function(){this.localstorageService.clear(),this.softLogout(),this.accountService.clearActiveAccount(),this.onLoginChanged.emit(!1),this.isloggedIn.next(!1),v.b.next(),this.router.navigateByUrl("/login")},e.prototype.clearCache=function(){this.localstorageService.clear(),this.softLogout(),v.b.next(),this.accountService.clearActiveAccount()},e.prototype.loggedIn=function(){if(this.localstorageService.check(d.e))try{var e=this.localstorageService.getItem(d.e),t=this.localstorageService.getItem(d.g),n=!0;t&&(n=this.helper.isTokenExpired(t));var o=this.helper.isTokenExpired(e);if(o){if(!n)return!1;this.isloggedIn.getValue()&&console.log("refresh token expired")}return this.isloggedIn.next(!o),!o}catch(r){return console.log(r),this.logout(),!1}else{if(!this.localstorageService.check(d.g))return this.isloggedIn.next(!1),!1;try{return t=this.localstorageService.getItem(d.g),(n=this.helper.isTokenExpired(t))&&this.isloggedIn.getValue()&&console.log("token expired"),this.isloggedIn.next(!n),!n}catch(r){return console.log(r),this.logout(),!1}}},e.prototype.initializeAccount=function(){var e=this;return new Promise((function(t){e.localstorageService.check(d.b)?e.localstorageService.check(d.a)?(e.subs.add(e.accountService.loadActiveAccount(e.accountService.getLocalSelectedAccountID()).subscribe((function(){e.onLoggedIn()}))),t()):e.getCurrentActiveUser().Accounts?(e.subs.add(e.accountService.loadActiveAccount(e.getCurrentActiveUser().Accounts[0].AccountID).subscribe((function(){e.onLoggedIn()}))),t()):(e.subs.add(e.accountService.loadActiveAccount(e.getCurrentActiveUser().AccountId).subscribe((function(){e.onLoggedIn()}))),t()):t()}))},e.prototype.getLoginToken=function(){return this.localstorageService.getItem(d.g)},e.prototype.setCurrentUser=function(e){this.localstorageService.setItem(d.b,e),this.accountService.setLoadTime(new Date)},e.prototype.softLogout=function(){this.accountService.resetAllAccountServiceCache(),this.configurationService.resetAllConfigurationServiceCache()},e.prototype.getUserLogonId=function(){return this.localstorageService.getItem(d.h)},e.prototype.setUserLogonId=function(e){e&&(this.localstorageService.setItem(d.h,e),this.accountService.setLoadTime(new Date))},e.prototype.checkloggedIn=function(){this.loggedIn()||this.router.url.includes("/login")||this.router.url.includes("/Signup")||this.router.url.includes("/Help")||this.router.url.includes("/ChangePassword")||this.router.url.includes("/ActivateWebAccount")||this.router.url.includes("/ForgotUserName")||this.router.url.includes("/ForgotPassword")||this.router.url.includes("/WebRequest")||this.router.url.includes("/message/msg")||(this.logout(),this.router.navigate(["/login"]))},e.prototype.onLoggedIn=function(){var e="Account Id "+JSON.parse(this.getCurrentUser()).AccountId+" Logged in version "+this.configurationService.config.Version;this.logService.logMessage(e),this.onLoginChanged.emit(!0)},e.prototype.tokenExpirationDate=function(){return this.helper.getTokenExpirationDate(this.localstorageService.getItem(d.g))},e.prototype.updateCurrentUserTokenExpiry=function(e){if(this.localstorageService.check(d.b)){var t=JSON.parse(this.localstorageService.getItem(d.b)),n=new Date;t.LoginTokenExpireDateTime=new Date(n.getTime()+1e3*e),this.localstorageService.removeItem(d.b),this.setCurrentUser(JSON.stringify(t))}},e.prototype.getCurrentUser=function(){return this.localstorageService.getItem(d.b)},e.prototype.getCurrentActiveUser=function(){return this.localstorageService.check(d.b)?this.isLoginExpired()?(this.loggedIn()&&this.logout(),new b.a):JSON.parse(this.localstorageService.getItem(d.b)):new b.a},e.prototype.isLoginExpired=function(){var e=!0;if(this.localstorageService.check(d.b)){var t=JSON.parse(this.localstorageService.getItem(d.b)),n=new Date,o=new Date(t.LoginTokenExpireDateTime);e=n.getTime()>o.getTime()}return e},e.prototype.updateCurrentUserEmail=function(e){var t=this.getCurrentActiveUser();t.EmailAddress=e,this.localstorageService.setItem(d.b,JSON.stringify(t))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(r.dc(o.b),r.dc(m.a),r.dc(g.a),r.dc(p.a),r.dc(U.f),r.dc(f.a),r.dc(V.a),r.dc(h.a))},e.\u0275prov=r.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},dSO4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("RlrJ"),r=n("Iq5M"),i=function(){function e(){}return e.prototype.validate=function(e){return-1==e.value?(e.setErrors({mustSelect:!0}),{mustSelect:!0}):(e.setErrors(null),null)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Kb({type:e,selectors:[["","mustSelect","","ngModel",""]],features:[r.Ab([{provide:o.k,useExisting:e,multi:!0}])]}),e}()},"e+XA":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("RlrJ"),r=n("Iq5M"),i=function(){function e(){}return e.prototype.validate=function(e){if(e.value&&/<[%&<>\/]>/.test(e.value))return{invalidValidaChar:!0}},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Kb({type:e,selectors:[["","InvalidInput",""]],features:[r.Ab([{provide:o.k,useExisting:e,multi:!0}])]}),e}()},ezZp:function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o=n("3ukZ"),r=n("0grR"),i=n("EVwY"),c=n("lIH0"),a=n("jOUA"),s=n("d80J"),l=n("kpJz"),u=n("lgJ9"),d=n("6jvO"),b=n("KovV"),p=n("ca4W"),f=n("J/Pv"),h=function(){return function(){}}(),g=n("CEOs"),m=n("B+oH"),v=n("XdgQ"),y=n("/DVL"),U=n("FOl/"),V=n("iOcS"),T=n("Iq5M"),I=function(){function e(e,t,n,i,c,a){var s=this;this.http=e,this.reCaptchaService=t,this.proxy=n,this.localstorageService=i,this.logService=c,this.accountService=a,this.webAccessEndpoint="api/WebAccess",this.helper=new r.a,this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new p.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){s.endpointUrl=e})))}return e.prototype.requestNewAccount=function(e){var t=this;return this.reCaptchaService.refresh("NewAccount").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/NewAccountRequest",e,{headers:t.headers}).pipe(Object(s.a)(24e4),Object(l.a)((function(e){return e})))})))},e.prototype.validateTollAccount=function(e){var t=this;return this.reCaptchaService.refresh("ValidateTollAccount").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/ValidateTollAccount",JSON.stringify(e),{headers:t.headers})})))},e.prototype.resetUsernameByEmail=function(e){var t=this;return this.reCaptchaService.refresh("ResetUsernameByEmail").pipe(Object(a.a)((function(){var n=(new o.f).set("email",e);return t.http.get(t.endpointUrl+t.webAccessEndpoint+"/ResetUsernameByEmail",{headers:t.headers,params:n})})))},e.prototype.enableWebUserAccount=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/EnableWebUserAccount",JSON.stringify(e),{headers:this.headers})},e.prototype.enableWebUserAccountMobile=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/EnableWebUserAccountMobile",JSON.stringify(e),{headers:this.headers})},e.prototype.requestLinkAccount=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/RequestLinkAccount",JSON.stringify(e),{headers:this.headers})},e.prototype.linkTollAccount=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/LinkTollAccount",JSON.stringify(e),{headers:this.headers})},e.prototype.sendActivationEmail=function(e){var t=this;return this.reCaptchaService.refresh("SendActivationEmail").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/SendActivationEmail",JSON.stringify(e),{headers:t.headers})})))},e.prototype.sendVerificationCodeEmail=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/SendVerificationCodeEmail",JSON.stringify(e),{headers:this.headers})},e.prototype.isValidOwnTransponderID=function(e){return this.http.get(this.endpointUrl+this.webAccessEndpoint+"/IsValidOwnTransponderID/"+e.toString(),{headers:this.headers})},e.prototype.sentRegisterAccountEmail=function(e){var t=this;return this.reCaptchaService.refresh("sentregisteraccountemail").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/sentregisteraccountemail",e,{headers:t.headers})})))},e.prototype.forgotAccountInfo=function(e){var t=this;return this.reCaptchaService.refresh("forgotaccountinfo").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/forgotaccountinfo",e,{headers:t.headers})})))},e.prototype.forgotPassword=function(e){var t=this;return this.reCaptchaService.refresh("forgotpassword").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/forgotpassword",e,{headers:t.headers})})))},e.prototype.GetUserConfiguration=function(e){var t=this;return this.http.get(this.endpointUrl+this.webAccessEndpoint+"/getUserToken/"+e,{headers:this.headers}).pipe(Object(a.a)((function(e){var n=new i.a,o=e.slice(7);if("undefined"!==o&&"null"!==o&&o){t.localstorageService.setItem(g.g,o);var r=t.helper.decodeToken(o);return t.localstorageService.setItem(g.h,r.unique_name),t.localstorageService.setItem(g.a,r.AccountId),t.setCurrentUser(r.UserProfile),setTimeout((function(){n.next(!0),n.complete()})),n}return n.error("GetUsrConf:Unable to verify"),n.complete(),n})))},e.prototype.setTokenData=function(e){var t=new i.a;if("undefined"!==e&&"null"!==e&&e){this.localstorageService.setItem(g.g,e);var n=this.helper.decodeToken(e);this.localstorageService.setItem(g.h,n.unique_name),this.localstorageService.setItem(g.a,n.AccountId),this.setCurrentUser(n.UserProfile),setTimeout((function(){t.next(!0),t.complete()}),100)}return t},e.prototype.getDecryptedCode=function(e){var t=this;return this.reCaptchaService.refresh("GetDecryptedCode").pipe(Object(a.a)((function(){return t.http.get(t.endpointUrl+t.webAccessEndpoint+"/GetDecryptedCode/"+e,{headers:t.headers})})))},e.prototype.postDecryptedCode=function(e){var t=this,n=new f.a;return n.Uid=e,this.reCaptchaService.refresh("GetDecryptedCode").pipe(Object(a.a)((function(){return t.http.post(t.endpointUrl+t.webAccessEndpoint+"/GetDecryptedCode",JSON.stringify(n),{headers:t.headers})})))},e.prototype.getBrowserInfo=function(){return"UserAgent: "+navigator.userAgent+", AppVersion: "+navigator.appVersion+", Platform: "+navigator.platform+", Vendor: "+navigator.vendor},e.prototype.checkUsername=function(e){var t=this,n=new h;n.username=e;var o=this.getBrowserInfo(),r="1.checkUsername("+e+") start;";return this.reCaptchaService.refresh("checkPassword").pipe(Object(u.a)((function(){r+="2.reCaptcha OK;"})),Object(a.a)((function(){return r+="3.call API;",t.http.post(t.endpointUrl+t.webAccessEndpoint+"/VerifyUsername",JSON.stringify(n),{headers:t.headers}).pipe(Object(u.a)((function(e){r+="4.VerifyUsername="+e+";"})),Object(d.a)((function(e){return r+="5.Error during VerifyUsername API call: "+(e.message||e)+";",Object(c.a)((function(){return e}))})))})),Object(d.a)((function(e){return r+="6.Error in reCaptcha refresh or chain: "+(e.message||e)+";",Object(c.a)((function(){return e}))})),Object(b.a)((function(){t.logService.logMessage(r+="7.flow complete. Browser: "+o)})))},e.prototype.setCurrentUser=function(e){this.localstorageService.setItem(g.b,e),this.accountService.setLoadTime(new Date)},e.prototype.updateEInvoiceStatus=function(e){return this.http.post(this.endpointUrl+this.webAccessEndpoint+"/UpdateEInvoiceStatus",e,{headers:this.headers})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(T.dc(o.b),T.dc(U.a),T.dc(y.a),T.dc(v.a),T.dc(V.u),T.dc(m.a))},e.\u0275prov=T.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"f+Ej":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){return function(){}}()},"f+Tu":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YdUA"),r=n("axU3"),i=n("HKMU"),c=n("Iq5M"),a=function(){function e(e){this.injector=e}return e.prototype.handleError=function(e){if(!/Loading chunk [\d]+ failed/.test(e.message)){var t=this.injector.get(o.a),n=this.injector.get(i.k),c=e.message?e.message:e.toString(),a=n instanceof i.q?n.path():"";throw r.fromError(e).then((function(e){var n=e.splice(0,20).map((function(e){return e.toString()})).join("\n");t.logMessage(JSON.stringify({message:c,url:a,stack:n}))}),(function(e){t.logMessage(e)})),e}window.location.reload()},e.\u0275fac=function(t){return new(t||e)(c.dc(c.s))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},fNNA:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){this.eTokenPageMap={1:"Suspended",2:"Active"},this.eTransponderRestrictionMap={1:"Suspended",2:"Active"},this.eAccountStatusMap={1:"Incomplete",2:"Inactive",3:"Active Partial",4:"Active",5:"Closed"},this.eAccountStatusDMap={Incomplete:1,Inactive:2,"Active Partial":3,Active:4,Closed:5},this.eptAccountStatusDMap={1:"Violation",2:"Warning",3:"Good"},this.eListTransponderStatusMap={1:"Good",2:"Warning",3:"Violation"},this.eVatTypeStatusMap={1:"Standard",2:"ATTIKI ODOS SA",3:"Paid by ATTIKI ODOS SA",4:"Government"},this.eCardTypeMap={other:0,visa:1,mastercard:2,maestro:3,amex:4,diners:5},this.eOCardTypeMap={0:"other",1:"visa",2:"mastercard",3:"maestro",4:"amex",5:"diners"},this.eAuthorizationStatusTypeMap={approved:"A",declined:"D"},this.eAccountTransactionTypeMap={payment:"01",toll_charge:"02",transponder_charge:"03",administration_charge:"04",adjustment:"05",refund:"06",tax:"07",adjustment_credit:"08",adjustment_debit:"09"},this.eAccountTransactionSubTypeMap={ORIGINAL_TRANSACTION:"01",TRANSACTION_VOID:"02",TRANSACTION_REVERSAL:"03",ACCOUNT_ADMINISTRATION:"04",TRANSPONDER_ADMINISTRATION:"05",TRANSPONDER_DISTRIBUTION:"06",LOST_STOLEN_TRANSPONDER:"07",DEFECTIVE_TRANSPONDER:"08",MISUSED_ABUSED_TRANSPONDER:"09",RETURNED_FOR_BATTERY_REPLACEMENT:"10",RETURNED_NOLONGER_REQUIRED_TPND:"11",TOLL_CHARGE:"12",COMMUNICATION_FEE:"13",ACCESS_RESTRICTION_FEE:"14",SUBSCRIPTION_FEE:"15",DISCOUNT_FEE:"16",EVENT_FEE:"17"},this.ePaymentMethodMap={CA:"Cash",CH:"Check",DC:"Credit Card",DB:"Direct Bank",PB:"Pre-auth Bank Account",PC:"Pre-auth Credit Card",SP:"Service Provider"},this.ePaymentTypeMap={BankAccount:"B",CreditCard:"C"},this.eAccountTypeMap={O:"Other",P:"Personal",B:"Business"},this.eAccountSubTypeMap={Standard:"0",Employer:"1",Employee:"2"},this.ePreAuthStatus={disabled:0,active:1,suspended:2},this.eBalanceStatusMap={1:"Good",2:"Low",3:"Bad"}}return e.prototype.getMapValue=function(e,t){switch(t){case"eTransponderRestrictionMap":return this.eTransponderRestrictionMap[e];case"eAccountStatusMap":return this.eAccountStatusMap[e];case"eListTransponderStatusMap":return this.eListTransponderStatusMap[e];case"eAccountTypeMap":return this.eAccountTypeMap[e];case"eVatTypeStatusMap":return this.eVatTypeStatusMap[e];case"eptAccountStatusDMap":return this.eptAccountStatusDMap[e];case"eBalanceStatusMap":return this.eBalanceStatusMap[e]}},e.prototype.getCardType=function(e){return e&&e.toLowerCase()in this.eCardTypeMap?this.eCardTypeMap[e.toLowerCase()]:this.eCardTypeMap.other},e.prototype.getCardTypeString=function(e){var t=this,n=Object.keys(this.eCardTypeMap).find((function(n){return t.eCardTypeMap[n]===e}));return n?n.charAt(0).toUpperCase()+n.slice(1):n},e.prototype.getAuthorizationStatusType=function(e){return e&&e.toLowerCase()in this.eAuthorizationStatusTypeMap?this.eAuthorizationStatusTypeMap[e.toLowerCase()]:this.eAuthorizationStatusTypeMap.declined},e.prototype.getAuthorizationStatusTypeMapByValue=function(e){var t=this,n=Object.keys(this.eAuthorizationStatusTypeMap).find((function(n){return t.eAuthorizationStatusTypeMap[n]===e}));return n?n.charAt(0).toUpperCase()+n.slice(1):n},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},fYjX:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("sqVf"),r=n("Iq5M"),i=n("Z2t2"),c=function(){function e(e,t,n){this.elysStorageService=e,this.storage=t,this.globals=n,this.SETTINGS_KEY="_settings"}return e.prototype.load=function(){var e=this;return new Promise((function(t){e.storage.get(e.SETTINGS_KEY).then((function(n){n?(e.globals.settings=JSON.parse(n),e.setAll(e.globals.settings).then((function(e){setTimeout((function(){t(!0)}))}))):t(!0)}))}))},e.prototype.setAll=function(e){return this.storage.set(this.SETTINGS_KEY,JSON.stringify(e))},e.prototype.save=function(){return this.setAll(this.globals.settings)},e.prototype.setItem=function(e,t){this.globals.settings[e]=t,this.save().then((function(){return!0}))},e.prototype.getItem=function(e){return this.globals.settings&&this.globals.settings[e]?this.globals.settings[e]:null},e.prototype.removeItem=function(e){delete this.globals.settings[e]},e.prototype.check=function(e){return void 0!==this.globals.settings[e]},e.prototype.clear=function(){this.globals.settings=[],this.save().then((function(){return!0}))},e.prototype.ngOnDestroy=function(){console.log("ngOnDestroy"),this.save().then((function(){return!0}))},e.\u0275fac=function(t){return new(t||e)(r.dc(i.b),r.dc(Storage),r.dc(o.a))},e.\u0275prov=r.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"g+aA":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){return function(e,t){this.id=e,this.text=t}}()},gz2M:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("y4uT"),r=n("xAfV"),i=n("Iq5M"),c=function(){function e(e,t){this.dateTimeService=e,this.utilsService=t}return e.prototype.transform=function(e){return this.utilsService.isAttiki()?this.dateTimeService.getGreekDateTimeString(e):this.utilsService.isMackinac()?this.dateTimeService.getMackinacShortDateTimeString(e):this.dateTimeService.getShortDateTimeString(e)},e.\u0275fac=function(t){return new(t||e)(i.Pb(o.a),i.Pb(r.a))},e.\u0275pipe=i.Ob({name:"dateTimeFormatter",type:e,pure:!0}),e}()},iOcS:function(e,t,n){"use strict";n.d(t,"g",(function(){return o.a})),n.d(t,"c",(function(){return r.a})),n.d(t,"e",(function(){return i.a})),n.d(t,"i",(function(){return c.a})),n.d(t,"l",(function(){return a.a})),n.d(t,"n",(function(){return s.a})),n.d(t,"o",(function(){return l.a})),n.d(t,"q",(function(){return u.a})),n.d(t,"r",(function(){return d.a})),n.d(t,"s",(function(){return b.a})),n.d(t,"u",(function(){return p.a})),n.d(t,"x",(function(){return f.a})),n.d(t,"z",(function(){return h.a})),n.d(t,"C",(function(){return g.a})),n.d(t,"D",(function(){return m.a})),n.d(t,"E",(function(){return v.a})),n.d(t,"I",(function(){return y.a})),n.d(t,"J",(function(){return U.a})),n.d(t,"L",(function(){return V.a})),n.d(t,"w",(function(){return T.a})),n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return P.a})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return w.a})),n.d(t,"m",(function(){return R.a})),n.d(t,"v",(function(){return O})),n.d(t,"y",(function(){return E})),n.d(t,"A",(function(){return k})),n.d(t,"p",(function(){return x.b})),n.d(t,"G",(function(){return N})),n.d(t,"H",(function(){return _.a})),n.d(t,"K",(function(){return D})),n.d(t,"h",(function(){return L.a})),n.d(t,"t",(function(){return q.a})),n.d(t,"F",(function(){return F.a})),n.d(t,"B",(function(){return j.a}));var o=n("I7ex"),r=n("B+oH"),i=n("W0id"),c=(n("0/pO"),n("T5Vf"),n("dOQ6")),a=(n("qZ3R"),n("0aJ/")),s=(n("PcIE"),n("fNNA")),l=n("y4uT"),u=n("VWKs"),d=(n("f+Tu"),n("5bg6")),b=n("obUD"),p=(n("XdgQ"),n("fYjX"),n("zY4o"),n("YdUA")),f=n("7XHD"),h=n("idNd"),g=n("/DVL"),m=n("FOl/"),v=(n("Iq5M"),n("VciZ"),n("8pj5"),n("u7Hi")),y=(n("v1vG"),n("JkS3")),U=n("xAfV"),V=n("ezZp"),T=(n("sqVf"),n("IjRH")),I=(n("izqJ"),function(){return function(){}}()),C=function(){return function(){}}(),S=(n("kxGQ"),function(){return function(){}}()),P=n("T2Vz"),A=n("UNrv"),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(A.c)(t,e),t}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(A.c)(t,e),t}(function(){return function(){}}())),w=n("J/Pv"),R=n("YjXq"),B=function(){return function(){}}(),O=(n("cS0Z"),n("CEOs"),function(){return function(){}}()),E=function(){return function(){this.Account=new I,this.CreditCard=new R.a,this.TransponderRequest=new Array,this.AccountDocuments=new C,this.TxnResponse=new B}}(),k=function(){function e(e,t,n,o,r){this.amount=e,this.card_num=t,this.exp_month=n,this.exp_year=o,this.cvd=r,this.preauthRequired=!1}return e.createBlank=function(){return new e(0,"",1,1,"")},e}(),x=(n("f+Ej"),n("amuK")),N=(n("VHhc"),function(){return function(){this.Enabled=!0}}()),_=n("ALsj"),D=function(){return function(){}}();n("uZ1c"),n("HKMU"),n("OobH"),n("YgGK"),n("Oeku"),n("ca4W"),n("Tm5P"),n("RlrJ"),n("hLhj"),n("rIVK"),n("gz2M"),n("svWY"),n("5gSk"),n("e+XA"),n("LBVs"),n("KVjz"),n("4aas"),n("VlDB"),n("EdX2"),n("dSO4");var L=n("J1mW"),q=(n("oIEy"),n("a8Ky")),F=n("uOke"),j=n("zXsH");n("cVFx"),n("YG2U")},idNd:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("svWY"),r=n("Iq5M"),i=function(){function e(){}return e.prototype.getPager=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=10);var r,i,c=Math.ceil(e/n);c<=10?(r=1,i=c):t<=6?(r=1,i=10):t+4>=c?(r=c-9,i=c):(r=t-5,i=t+4);var a=(t-1)*n;return{totalItems:e,currentPage:t,pageSize:n,totalPages:c,startPage:r,endPage:i,startIndex:a,endIndex:Math.min(a+n-1,e-1),pages:Object(o.range)(r,i+1)}},e.\u0275prov=r.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},izqJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("Iq5M"),r=n("3ukZ"),i=function(){function e(e){this.http=e}return e.prototype.getIPAddress=function(){return this.http.get("http://api.ipify.org/?format=json")},e.\u0275fac=function(t){return new(t||e)(o.dc(r.b))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},jU3m:function(e,t,n){"use strict";n.d(t,"a",(function(){return Me})),n.d(t,"b",(function(){return we}));var o=n("Iq5M"),r=n("mOIA"),i=n("lIH0"),c=n("fwXJ"),a=n("CtmC"),s=n("/CzS"),l=n("qro9"),u=n("kpJz"),d=n("iOcS"),b=n("g+aA"),p=n("5gSk"),f=n("oIEy"),h=n("HKMU"),g=n("VQfj"),m=n("RlrJ"),v=n("pZWF"),y=n("dSO4"),U=n("EdX2"),V=n("KVjz"),T=n("Tm5P"),I=n("gz2M"),C=["paymentForm"],S=["errorModal"],P=["accountAgreementModal"];function A(e,t){if(1&e&&(o.Vb(0,"option",55),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.name)," ")}}function M(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",51),o.Vb(1,"label",52),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"select",53),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.paymentType=e})),o.Rc(5,A,3,4,"option",54),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(2),o.Vc(" ",o.nc(3,3,"PAYMENT_TYPE")," "),o.Bb(2),o.uc("ngModel",r.pmtReq.paymentType),o.Bb(1),o.uc("ngForOf",r.paymentOptions)}}function w(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",56),o.hc("click",(function(){return o.Jc(n),o.lc(2).enableAddFund()})),o.Qb(1,"i",57),o.Ub()}}function R(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",58),o.hc("click",(function(){return o.Jc(n),o.lc(2).unDoAddFund()})),o.Qb(1,"i",59),o.Ub()}}function B(e,t){if(1&e&&(o.Vb(0,"div",60),o.Vb(1,"small",61),o.Tc(2),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(2),o.Vc(" Minimum amount should be $",n.minAmount," or greater ")}}function O(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",31),o.Vb(1,"div",22),o.Vb(2,"label",62),o.Tc(3),o.Ub(),o.Vb(4,"div",33),o.Vb(5,"div",34),o.Vb(6,"div",35),o.Tc(7),o.Ub(),o.Ub(),o.Vb(8,"input",63,64),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).addfundAmount=e})),o.Ub(),o.Vb(11,"button",65),o.hc("click",(function(){return o.Jc(n),o.lc(2).addFunds()})),o.Tc(12," Add "),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(3),o.Vc("","Add Funds"," "),o.Bb(4),o.Vc(" ",r.configService.GetCurrencyCode()," "),o.Bb(1),o.vc("placeholder","Additional Funds"),o.uc("ngModel",r.addfundAmount)}}function E(e,t){if(1&e&&(o.Vb(0,"option",55),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.name)," ")}}function k(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",51),o.Vb(1,"label",66),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"select",67),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.accountType=e})),o.Rc(5,E,3,4,"option",54),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(2),o.Vc(" ",o.nc(3,3,"BANK_TYPE")," "),o.Bb(2),o.uc("ngModel",r.pmtReq.accountType),o.Bb(1),o.uc("ngForOf",r.bankAccountOptions)}}function x(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"FIRST_NAME_REQUIED")))}function N(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,x,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function _(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",68),o.Vb(1,"label",69),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"div",70),o.Vb(5,"input",71,72),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.firstName=e})),o.mc(7,"translate"),o.Ub(),o.Rc(8,N,2,1,"div",73),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.lc(2);o.Bb(2),o.Vc("",o.nc(3,4,"FIRST_NAME")," "),o.Bb(3),o.vc("placeholder",o.nc(7,6,"FIRST_NAME")),o.uc("ngModel",i.pmtReq.firstName),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function D(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e){var n=o.lc(4);o.Bb(2),o.Uc(o.nc(3,1,90===n.pmtReq.accountType?"LAST_NAME_REQUIRED":"COMPANY_NAME_REQUIRED"))}}function L(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,D,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}var q=function(e,t){return{"col-sm-12 col-md-6":e,"col-12":t}};function F(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",75),o.Vb(1,"label",76),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"div",70),o.Vb(5,"input",77,78),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.lastName=e})),o.mc(7,"translate"),o.Ub(),o.Rc(8,L,2,1,"div",73),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.lc(2);o.uc("ngClass",o.Ac(9,q,90===i.pmtReq.accountType,90!==i.pmtReq.accountType)),o.Bb(2),o.Vc(" ",o.nc(3,5,90===i.pmtReq.accountType?"LAST_NAME":"COMPANY_NAME")," "),o.Bb(3),o.wc("placeholder"," ",o.nc(7,7,90===i.pmtReq.accountType?"LAST_NAME":"COMPANY_NAME"),""),o.uc("ngModel",i.pmtReq.lastName),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function j(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc("",o.nc(3,1,"ACCOUNT_NUMBER_REQUIRED")," "))}function J(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc("",o.nc(3,1,"ACCOUNT_NUMBER_5_DIGITS")," "))}function G(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc("",o.nc(3,1,"ACCOUNT_NUMBER_15_DIGITS")," "))}function W(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,j,4,3,"div",4),o.Rc(2,J,4,3,"div",4),o.Rc(3,G,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(7);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.minlength),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function Q(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",51),o.Vb(1,"label",79),o.Tc(2),o.mc(3,"translate"),o.Qb(4,"i",80),o.Ub(),o.Vb(5,"div",70),o.Vb(6,"input",81,82),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.card_num=e})),o.mc(8,"translate"),o.Ub(),o.Rc(9,W,4,3,"div",73),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(7),i=o.lc(2);o.Bb(2),o.Vc(" ",o.nc(3,4,"BANK_ACCOUNT_NUMBER")," "),o.Bb(4),o.vc("placeholder",o.nc(8,6,"BANK_ACCOUNT_NUMBER")),o.uc("ngModel",i.pmtReq.card_num),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function Y(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"TRAINSIT_NUMBER_REQUIRED")))}function H(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"TRAINSIT_NUMBER_9_DIGITS")))}function z(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,Y,4,3,"div",4),o.Rc(2,H,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.minlength)}}function $(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",51),o.Vb(1,"label",83),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"div",70),o.Vb(5,"input",84,85),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.transit=e})),o.mc(7,"translate"),o.Ub(),o.Rc(8,z,3,2,"div",73),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.lc(2);o.Bb(2),o.Vc("",o.nc(3,4,"TRAINSIT_NUMBER")," "),o.Bb(3),o.vc("placeholder",o.nc(7,6,"TRAINSIT_NUMBER")),o.uc("ngModel",i.pmtReq.transit),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function K(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",51),o.Vb(1,"div",86),o.Vb(2,"div",87),o.Vb(3,"p"),o.Tc(4," By Clicking the \u201cI Agree\u201d box below, you certify the Checking Account information provided is correct and authorize Mackinac Bridge Authority (MBA) to use your Checking Account information to initiate a fund transfer from your account for the requested one-time or auto rebill amount. If your payment is returned from the MBA\u2019s depository bank for any reason, the payment will be reversed in your MacPass account and your MacPass account will be charged an administrative fee, currently twenty-five dollars ($25.00). Your MacPass account will also be closed until the MBA receives full payment for the amount of the returned payment and administrative fee. "),o.Ub(),o.Ub(),o.Vb(5,"div",88),o.Vb(6,"input",89),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).accountAgreement=e})),o.Ub(),o.Vb(7,"p",90),o.Vb(8,"strong"),o.Tc(9,"I Agree"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(6),o.uc("ngModel",r.accountAgreement)}}function Z(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"NAME_ON_CARD_REQUIRED")))}function X(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,Z,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(7);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function ee(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",31),o.Vb(1,"div",22),o.Vb(2,"label",91),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"div",70),o.Vb(6,"input",92,93),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.nameOnCard=e})),o.mc(8,"translate"),o.Ub(),o.Rc(9,X,2,1,"div",73),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(7),i=o.lc(2);o.Bb(3),o.Vc("",o.nc(4,4,"NAME_ON_CARD")," "),o.Bb(3),o.vc("placeholder",o.nc(8,6,"NAME_ON_CARD")),o.uc("ngModel",i.pmtReq.nameOnCard),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function te(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CARD_NUMBER_REQUIRED")))}function ne(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CARD_NUMBER_15_DIGITS")))}function oe(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,te,4,3,"div",4),o.Rc(2,ne,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(7);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.minlength)}}function re(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Vb(2,"strong"),o.Tc(3,"Note:"),o.Ub(),o.Tc(4," Amex cards are not accepted "),o.Ub(),o.Ub())}function ie(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",31),o.Vb(1,"div",22),o.Vb(2,"label",94),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"div",70),o.Vb(6,"input",95,96),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.card_num=e})),o.mc(8,"translate"),o.Ub(),o.Ub(),o.Rc(9,oe,3,2,"div",73),o.Rc(10,re,5,0,"div",4),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(7),i=o.lc(2);o.Bb(3),o.Vc("",o.nc(4,5,"CARD_NUMBER_TITLE")," "),o.Bb(3),o.vc("placeholder",o.nc(8,7,"CARD_NUMBER")),o.uc("ngModel",i.pmtReq.card_num),o.Bb(3),o.uc("ngIf",r.invalid&&(r.dirty||r.touched)),o.Bb(1),o.uc("ngIf","AMEX"===i.getCardType(i.pmtReq.card_num))}}function ce(e,t){if(1&e&&(o.Vb(0,"option"),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.Cb("value",n.id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.name)," ")}}function ae(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc(" ",o.nc(3,1,"EXPIRY_MONTH_REQUIRED"),""))}function se(e,t){if(1&e&&(o.Vb(0,"div",74),o.Rc(1,ae,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.mustSelect)}}function le(e,t){if(1&e&&(o.Vb(0,"option",107),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.vc("value",n.id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.text)," ")}}function ue(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc(" ",o.nc(3,1,"EXPIRY_YEAR_REQUIRED"),""))}function de(e,t){if(1&e&&(o.Vb(0,"div",108),o.Rc(1,ue,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(14);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.mustSelect)}}function be(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",31),o.Vb(1,"div",97),o.Vb(2,"label",98),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"select",99,100),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.exp_month=e})),o.Rc(7,ce,3,4,"option",101),o.Ub(),o.Rc(8,se,2,1,"div",73),o.Ub(),o.Vb(9,"div",97),o.Vb(10,"label",102),o.Tc(11),o.mc(12,"translate"),o.Ub(),o.Vb(13,"select",103,104),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.exp_year=e}))("onchange",(function(){return o.Jc(n),o.lc(2).checkCardDate()})),o.Rc(15,le,3,4,"option",105),o.Ub(),o.Rc(16,de,2,1,"div",106),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.Gc(14),c=o.lc(2);o.Bb(3),o.Vc("",o.nc(4,8,"CARD_EXPIRY_MONTH")," "),o.Bb(2),o.uc("ngModel",c.pmtReq.exp_month),o.Bb(2),o.uc("ngForOf",c.months),o.Bb(1),o.uc("ngIf",r.invalid&&(r.dirty||r.touched)),o.Bb(3),o.Vc("",o.nc(12,10,"CARD_EXPIRY_YEAR")," "),o.Bb(2),o.uc("ngModel",c.pmtReq.exp_year),o.Bb(2),o.uc("ngForOf",c.years),o.Bb(1),o.uc("ngIf",i.invalid&&(i.dirty||i.touched))}}function pe(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc(" ",o.nc(3,1,"CVV_NUMBER_REQUIRED"),""))}function fe(e,t){if(1&e&&(o.Vb(0,"div",108),o.Rc(1,pe,4,3,"div",4),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function he(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",31),o.Vb(1,"div",97),o.Vb(2,"label",109),o.Tc(3,"CVV "),o.Qb(4,"i",110),o.Ub(),o.Vb(5,"input",111,112),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.cvd=e})),o.Ub(),o.Rc(7,fe,2,1,"div",106),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.lc(2);o.Bb(5),o.uc("ngModel",i.pmtReq.cvd),o.Bb(2),o.uc("ngIf",r.invalid&&(r.dirty||r.touched))}}function ge(e,t){1&e&&(o.Vb(0,"div",61),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"PLEASE_FILL_IN_REQUIRED_FIELDS")))}function me(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",113),o.hc("click",(function(){o.Jc(n);var e=o.lc(2);return e.processPayment(e.emailAddress)})),o.Tc(1),o.mc(2,"translate"),o.Ub()}if(2&e){o.lc();var r=o.Gc(1);o.uc("disabled",!r.valid),o.Bb(1),o.Vc(" ",o.nc(2,2,"MAKE_PAYMENT")," ")}}function ve(e,t){1&e&&(o.Vb(0,"button",114),o.Tc(1),o.mc(2,"translate"),o.Qb(3,"i",115),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"PROCESSING")," "))}function ye(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",116),o.Vb(1,"div",117),o.Vb(2,"div",118),o.Vb(3,"input",119),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).pmtReq.preauthRequired=e}))("change",(function(){return o.Jc(n),o.lc(2).processPreauthToken()})),o.Ub(),o.Ub(),o.Vb(4,"div",120),o.Tc(5),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(3),o.uc("ngModel",r.pmtReq.preauthRequired),o.Bb(2),o.Vc(" Please Add this ",1===r.pmtReq.paymentType?"Account":"card"," to my account for Rebill payments. Rebills amount and rebill thresholds defaulted to preset value. Once your account is activated, you can review the information by logging into your account. ")}}function Ue(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",28,29),o.Rc(2,M,6,5,"div",30),o.Vb(3,"div",31),o.Vb(4,"div",22),o.Vb(5,"label",32),o.Tc(6),o.mc(7,"translate"),o.Ub(),o.Vb(8,"div",33),o.Vb(9,"div",34),o.Vb(10,"div",35),o.Tc(11),o.Ub(),o.Ub(),o.Vb(12,"input",36,37),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().pmtReq.amount=e})),o.mc(14,"translate"),o.Ub(),o.Rc(15,w,2,0,"button",38),o.Rc(16,R,2,0,"button",39),o.Ub(),o.Rc(17,B,3,1,"div",40),o.Ub(),o.Ub(),o.Rc(18,O,13,4,"div",41),o.Rc(19,k,6,5,"div",30),o.Vb(20,"div",21),o.Rc(21,_,9,8,"div",42),o.Rc(22,F,9,12,"div",43),o.Ub(),o.Rc(23,Q,10,8,"div",30),o.Rc(24,$,9,8,"div",30),o.Rc(25,K,10,1,"div",30),o.Rc(26,ee,10,8,"div",44),o.Rc(27,ie,11,9,"div",41),o.Rc(28,be,17,12,"div",41),o.Rc(29,he,8,2,"div",41),o.Rc(30,ge,4,3,"div",45),o.Vb(31,"div",31),o.Qb(32,"div",46),o.Vb(33,"div",47),o.Rc(34,me,3,4,"button",48),o.Rc(35,ve,4,3,"button",49),o.Ub(),o.Ub(),o.Rc(36,ye,6,2,"div",50),o.Ub()}if(2&e){var r=o.Gc(1),i=o.Gc(13),c=o.lc();o.Bb(2),o.uc("ngIf",!c.isNewCustomer()),o.Bb(4),o.Vc("",o.nc(7,25,"AMOUNT")," "),o.Bb(5),o.Vc(" ",c.configService.GetCurrencyCode()," "),o.Bb(1),o.vc("placeholder",o.nc(14,27,"AMOUNT")),o.uc("ngModel",c.pmtReq.amount)("readonly",c.amountReadOnly)("gte",c.minAmount),o.Bb(3),o.uc("ngIf",c.amountReadOnly),o.Bb(1),o.uc("ngIf",c.amountReadOnly),o.Bb(1),o.uc("ngIf",null==i||null==i.errors?null:i.errors.gte),o.Bb(1),o.uc("ngIf",c.showAddFunds),o.Bb(1),o.uc("ngIf",1==c.pmtReq.paymentType),o.Bb(2),o.uc("ngIf",1==c.pmtReq.paymentType&&90==c.pmtReq.accountType),o.Bb(1),o.uc("ngIf",1==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",1==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",1==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",1==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",2==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",2==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",2==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",2==c.pmtReq.paymentType),o.Bb(1),o.uc("ngIf",!r.valid),o.Bb(4),o.uc("ngIf",!c.processing&&!c.isNewCustomer()),o.Bb(1),o.uc("ngIf",c.processing),o.Bb(1),o.uc("ngIf",c.isNewCustomer()&&r.valid)}}function Ve(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"h3"),o.Tc(2,"Connection Error"),o.Ub(),o.Vb(3,"div",31),o.Vb(4,"div",121),o.Vb(5,"div"),o.Tc(6," The connection to the bank web site cannot be established at this moment. "),o.Vb(7,"b"),o.Tc(8,"Your payment transaction has been cancelled."),o.Ub(),o.Tc(9," No charge was applied to your credit card. "),o.Ub(),o.Ub(),o.Ub(),o.Vb(10,"div",31),o.Vb(11,"div",121),o.Vb(12,"button",122),o.hc("click",(function(){return o.Jc(n),o.lc().requestProcessed=!1})),o.Tc(13," Close & Try again "),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Te(e,t){if(1&e&&(o.Vb(0,"div",123),o.Vb(1,"div",124),o.Vb(2,"div",21),o.Vb(3,"div",22),o.Vb(4,"h4",125),o.Tc(5,"Payment Details"),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"div",21),o.Vb(7,"div",126),o.Vb(8,"h6",127),o.Tc(9," Initial Deposit "),o.Ub(),o.Ub(),o.Vb(10,"div",128),o.Tc(11),o.mc(12,"currency"),o.Ub(),o.Ub(),o.Vb(13,"div",21),o.Vb(14,"div",126),o.Vb(15,"h6"),o.Tc(16,"Opening fee"),o.Ub(),o.Ub(),o.Vb(17,"div",128),o.Tc(18),o.mc(19,"currency"),o.Ub(),o.Ub(),o.Vb(20,"div",21),o.Vb(21,"div",129),o.Vb(22,"h6"),o.Tc(23,"MacPass fee"),o.Ub(),o.Ub(),o.Vb(24,"div",130),o.Vb(25,"small"),o.Tc(26),o.Ub(),o.Ub(),o.Vb(27,"div",131),o.Tc(28),o.mc(29,"currency"),o.Ub(),o.Ub(),o.Qb(30,"hr"),o.Vb(31,"div",21),o.Vb(32,"div",126),o.Vb(33,"h4"),o.Tc(34,"Total"),o.Ub(),o.Ub(),o.Vb(35,"div",128),o.Tc(36),o.mc(37,"currency"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(11),o.Vc(" ",o.nc(12,5,n.registrationFee-(null==n.fees?null:n.fees.CreateAdminFee)+n.finalAddfundAmount)," "),o.Bb(7),o.Vc(" ",o.nc(19,7,null==n.fees?null:n.fees.CreateAdminFee)," "),o.Bb(8),o.Vc("Number of Vehicle X ",n.numberOfTransponders," "),o.Bb(2),o.Vc(" ",o.nc(29,9,n.numberOfTransponders*(null==n.fees?null:n.fees.TransponderAssignFee))," "),o.Bb(8),o.Vc(" ",o.nc(37,11,n.registrationFee+n.numberOfTransponders*(null==n.fees?null:n.fees.TransponderAssignFee)+n.finalAddfundAmount)," ")}}function Ie(e,t){1&e&&o.Qb(0,"img",140)}function Ce(e,t){if(1&e&&(o.Vb(0,"div",132),o.Vb(1,"div",133),o.Vb(2,"div",134),o.Vb(3,"div",135),o.Vb(4,"h6",136),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Ub(),o.Vb(7,"h4",137),o.Tc(8),o.mc(9,"currency"),o.Ub(),o.Ub(),o.Vb(10,"small",138),o.Tc(11),o.mc(12,"translate"),o.mc(13,"dateTimeFormatter"),o.Ub(),o.Ub(),o.Rc(14,Ie,1,0,"img",139),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(o.nc(6,6,"BALANCE_ON_ACCOUNT")),o.Bb(2),o.uc("ngClass",n.parseAmount(null==n.account?null:n.account.AccountBalance)>0?"text-success":"text-danger"),o.Bb(1),o.Vc(" ",o.oc(9,8,n.parseAmount(null==n.account?null:n.account.AccountBalance),n.configService.config.DefaultCurrency)," "),o.Bb(3),o.Wc(" ",o.nc(12,11,"UPDATED_ON"),": ",o.nc(13,13,null==n.account?null:n.account.LastPaymentDateTime),""),o.Bb(3),o.uc("ngIf",1===n.pmtReq.paymentType)}}function Se(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"h6",141),o.Vb(2,"div",142),o.Qb(3,"i",143),o.Vb(4,"h5"),o.Tc(5),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"p",144),o.Tc(7),o.Ub(),o.Vb(8,"button",145),o.hc("click",(function(){return o.Jc(n),o.lc().$implicit.close()})),o.Tc(9," Close "),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(5),o.Uc(r.errorObj.title),o.Bb(2),o.Uc(r.errorObj.message)}}function Pe(e,t){if(1&e&&o.Rc(0,Se,10,2,"div",4),2&e){var n=o.lc();o.uc("ngIf",n.errorObj)}}function Ae(e,t){if(1&e&&(o.Vb(0,"div",146),o.Vb(1,"h5",147),o.Tc(2," Welcome to the new MacPass website! "),o.Ub(),o.Vb(3,"button",148),o.hc("click",(function(){return t.$implicit.close("false")})),o.Vb(4,"span",18),o.Tc(5,"\xd7"),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"div",19),o.Vb(7,"p"),o.Tc(8),o.Ub(),o.Vb(9,"button",122),o.hc("click",(function(){return t.$implicit.close("true")})),o.Tc(10," Confirm "),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(8),o.Xc(" Checking Account Number: ",n.pmtReq.card_num," Routing Number: ",n.pmtReq.transit," Amount: ",n.pmtReq.amount," ")}}var Me=function(e){return e[e.NewCustomer=0]="NewCustomer",e[e.ReturningCustomer=1]="ReturningCustomer",e}({}),we=function(){function e(e,t,n,r,i,c,a,s,l,u){this.userService=e,this.evalonPaymentService=t,this.accountService=n,this.alertService=r,this.configService=i,this.reCaptchaService=c,this.authService=a,this.logService=s,this.modalService=l,this.router=u,this.numberOfTransponders=0,this.paidStatus=new o.n,this.processing=!1,this.preAuthProcessing=!1,this.preAuthEdit=!1,this.minAmount=20,this.finalAddfundAmount=0,this.addfundAmount=0,this.months=[{id:-1,name:"Select"},{id:1,name:"01"},{id:2,name:"02"},{id:3,name:"03"},{id:4,name:"04"},{id:5,name:"05"},{id:6,name:"06"},{id:7,name:"07"},{id:8,name:"08"},{id:9,name:"09"},{id:10,name:"10"},{id:11,name:"11"},{id:12,name:"12"}],this.years=[],this.initItem=new b.a(-1,"Select"),this.amountReadOnly=!0,this.isPreauthAccount=!1,this.paymentToken="",this.accountAgreement=!1,this.paymentOptions=[{id:1,name:"Checking Account"},{id:2,name:"Credit Card"}],this.bankAccountOptions=[{id:90,name:"Personal"},{id:91,name:"Business"}],this.currentMonth=(new Date).getMonth(),this.currentYear=(new Date).getFullYear(),this.failCard=!0,this.showAddFunds=!1,this.ogAmount=0,this.pmtReq=d.A.createBlank(),this.pmtReq.accountType=90,this.requestProcessed=!1;var p=(new Date).getFullYear();this.years.push(this.initItem);for(var f=0;f<11;f++)this.years.push(new b.a(p+f,""+(p+f)))}return e.prototype.ngOnInit=function(){var e=this;if(this.accountSub=this.accountService.getActiveAccount().subscribe((function(t){e.authService.loggedIn()&&(e.account=t,e.currentAccountId=e.account.AccountID,e.minAmount="B"===e.account.AccountType?50:20,e.pmtReq.paymentType=e.account.BankTransitNumber?1:2,e.accountQuery={UserId:e.userService.getCurrentUser().UserId,UserLogonId:e.userService.getCurrentUser().UserName,AccountId:t.AccountID},e.accountService.getCreditCard(e.currentAccountId).subscribe((function(t){e.creditCard=t})))})),this.clearPaymentForm(),this.paymentMode===Me.NewCustomer?(console.log("PaymentMode: NewCustomer"),this.amountReadOnly=!0):this.paymentMode===Me.ReturningCustomer?(this.amountReadOnly=!1,console.log("PaymentMode: ReturningCustomer")):console.log("Unknown PaymentMode: "+this.paymentMode),this.callback={},this.callback.onError=this.PaymentCallbackError.bind(this),this.callback.onDeclined=this.PaymentCallbackDeclined.bind(this),this.callback.onApproval=this.PaymentCallbackApproval.bind(this),this.paymentMode!==Me.ReturningCustomer){var t=new Date,n=99e12+1e10*(t.getFullYear()-2e3)+1e8*(1+t.getMonth())+1e6*t.getDate()+1e4*t.getHours()+100*t.getMinutes()+t.getSeconds(),o=n.toString();console.log("dt="+t+"sDate="+o+" nDate="+n),this.currentAccountId=n}},e.prototype.cancel=function(){var e=this;this.accountService.loadActiveAccount(this.account.AccountID).subscribe((function(){e.preAuthEdit=!1}))},e.prototype.setTotalAmount=function(e){this.ogAmount=e,this.pmtReq.amount=e},e.prototype.checkCardDate=function(){return 2!==this.pmtReq.paymentType||!(new Date(this.pmtReq.exp_year+"-"+this.pmtReq.exp_month+"-01")<new Date)},e.prototype.processPayment=function(e){var t=this;this.processing=!0,this.configService.CheckDbStatus().subscribe((function(){t.authService.loggedIn()?e=t.paymentProcess(e):t.reCaptchaService.refresh("NewAccount").subscribe((function(){e=t.paymentProcess(e)}),(function(){t.logService.logMessage("payment process failed at  reCaptchaService check"),t.processing=!1,t.paidStatus.emit(!1),t.alertService.error("Unable to process your request at this time please try again later!",!0)}))}),(function(){t.processing=!1,t.alertService.error("Unable to process your request at this time please try again later!",!0)}))},e.prototype.processBankPayment=function(){this.accountAgreementRef.close()},e.prototype.paymentProcess=function(e){var t=this;return this.processing=!0,console.log("paymentProcess starts..."),this.getInvoiceNumber().subscribe((function(){var n="",o=t.accountService.getActiveAccountInfo();o&&(e=o.Email),t.evalonPaymentService.getPaymentToken(t.pmtReq.amount,t.pmtReq.paymentType).subscribe((function(o){var r,i,c,a,s,l,u,d,b,p,f,h;if(n=o,1===t.pmtReq.paymentType){var g={ssl_transaction_type:"ecspurchase",ssl_txn_auth_token:n,ssl_bank_account_type:91===t.pmtReq.accountType?"1":"0",ssl_aba_number:t.pmtReq.transit,ssl_bank_account_number:t.pmtReq.card_num,ssl_agree:"1",ssl_first_name:90===t.pmtReq.accountType?t.pmtReq.firstName:null,ssl_last_name:90===t.pmtReq.accountType?t.pmtReq.lastName:null,ssl_company:91===t.pmtReq.accountType?t.pmtReq.lastName:null,ssl_email:e,ssl_merchant_txn_id:t.sequenceNumber,custom_reference_number:t.invoiceNumber,custom_customer_number:t.currentAccountId,ssl_avs_address:t.account.SameBillingAsMailingAddress?t.account.MailingAddress:t.account.BillingAddress,ssl_avs_zip:t.account.SameBillingAsMailingAddress?null===(i=null===(r=t.account)||void 0===r?void 0:r.MailingPostalCode)||void 0===i?void 0:i.replace("-",""):null===(a=null===(c=t.account)||void 0===c?void 0:c.BillingPostalCode)||void 0===a?void 0:a.replace("-",""),custom_userloginid:t.authService.getUserLogonId()};ConvergeEmbeddedPayment.pay(g,t.callback)}if(2===t.pmtReq.paymentType){var m=t.pmtReq.exp_year;m>2e3&&(m-=2e3);var v={ssl_first_name:(null===(s=t.account)||void 0===s?void 0:s.FirstName)?t.account.FirstName:t.pmtReq.firstName,ssl_last_name:(null===(l=t.account)||void 0===l?void 0:l.FirstName)?t.account.LastName:t.pmtReq.nameOnCard,ssl_txn_auth_token:n,ssl_card_number:t.pmtReq.card_num,ssl_exp_date:t.pmtReq.exp_month.toString().padStart(2,"0")+m.toString().padStart(2,"0"),ssl_cvv2cvc2:t.pmtReq.cvd,ssl_merchant_txn_id:t.sequenceNumber,ssl_partial_auth_indicator:0,ssl_email:e,custom_reference_number:t.invoiceNumber,custom_customer_number:t.currentAccountId,custom_userloginid:t.authService.getUserLogonId(),ssl_avs_address:(null===(u=t.account)||void 0===u?void 0:u.SameBillingAsMailingAddress)?null===(d=t.account)||void 0===d?void 0:d.MailingAddress:t.account.BillingAddress,ssl_avs_zip:(null===(b=t.account)||void 0===b?void 0:b.SameBillingAsMailingAddress)?null===(f=null===(p=t.account)||void 0===p?void 0:p.MailingPostalCode)||void 0===f?void 0:f.replace("-",""):null===(h=t.account.BillingPostalCode)||void 0===h?void 0:h.replace("-","")};ConvergeEmbeddedPayment.pay(v,t.callback)}}),(function(e){t.processing=!1,t.paidStatus.emit(!1),t.logService.logMessage("payment process failed[w2] at getInvoiceNumber"+JSON.stringify(e)),t.alertService.error("Unable to process your request at this time please try again later!",!0)}))}),(function(e){t.logService.logMessage("payment process failed[w3] at getInvoiceNumber"+JSON.stringify(e)),t.processing=!1,t.paidStatus.emit(!1),t.alertService.error("Unable to process your request at this time please try again later!",!0)})),e},e.prototype.displayError=function(e){var t=this;if(e){if(this.requestProcessed=!1,this.errorObj={title:"",message:""},this.errorObj.title="Payment Incomplete!",this.errorObj.message="The payment information provided in the authorization request appears to be invalid.\n      Please check account and transit/routing number details and retry.",e.errorMessage&&(this.errorObj.title=e.errorName,this.errorObj.message=e.errorMessage),e.ErrorCode||e.errorMessage)switch(this.errorObj.title="Payment Incomplete!",e.ErrorCode||e.errorCode){case"5106":this.errorObj.message="The bank information provided in the authorization request appears to be invalid.\n             Please check account and transit/routing number details and retry.";break;case"5001":this.errorObj.message="The credit card expiration date entered is invalid";break;case"5000":this.errorObj.message="The credit card number entered is invalid";break;case"5021":this.errorObj.message="The CVV2 number should be 3 or 4 digits in length";break;case"5022":this.errorObj.message="The CVV2 number should be numeric character only.";break;default:this.errorObj.message="Payment incomplete. The payment information provided in the authorization\n             request appears to be invalid.\n            Please check payment details and try again."}"DECLINED"===e.ssl_result_message&&(this.errorObj.title="Payment Declined!",this.errorObj.message="The payment declined. Please check payment details and try again."),"DECLINED: NSF"===e.ssl_result_message&&(this.errorObj.title="Payment Declined!",this.errorObj.message="The payment declined. Please check payment details and try again."),"SERV NOT ALLOWED"===e.ssl_result_message&&(this.errorObj.title="Invalid Payment",this.errorObj.message="The payment information provided appears to be invalid.\n       Please check payment details and try again."),setTimeout((function(){t.modalService.open(t.errorModal,{size:"lg"})}))}this.processing=!1,this.paidStatus.emit(!1)},e.prototype.PaymentCallbackError=function(e){this.logService.logMessage("payment process failed Error:"+JSON.stringify(e)),this.displayError(e)},e.prototype.PaymentCallbackDeclined=function(e){this.logService.logMessage("payment process failed Declined:"+JSON.stringify(e)),"DECLINED"!==e.ssl_result_message&&this.ContinuePaymentRoute(e),this.displayError(e)},e.prototype.PaymentCallbackApproval=function(e){this.logService.logMessage("payment process approved:"+JSON.stringify(e)),this.ContinuePaymentRoute(e)},e.prototype.ContinuePaymentRoute=function(e){var t=this.userService.getCurrentUser();this.paymentMode===Me.ReturningCustomer?(1===this.pmtReq.paymentType?(e.ssl_bank_account_number=e.ssl_bank_account_number.replace("*","0"),e.PaymentMethod="DB"):(e.ssl_card_number=e.ssl_card_number.replace("*","0"),e.PaymentMethod="DC"),this.PostEvalonPayment(e,t.AccountId,Number(t.UserId),t.UserName)):(this.processing=!1,this.paidStatus.emit(e))},e.prototype.PostEvalonPayment=function(e,t,n,o){var u=this;e.AccountID=t,e.UserID=n,e.UserLogonId=o||this.passwordInfo.getUserName(),this.evalonPaymentService.PostEvalonPayment_backend(e).pipe(Object(a.a)((function(e){return e.pipe(Object(s.a)((function(e,t){return Object(r.a)((function(){return t>1}),Object(i.a)(e),Object(c.a)(e).pipe(Object(l.a)(1e3)))})))}))).subscribe((function(t){u.accountService.loadActiveAccount(u.account.AccountID).subscribe((function(){console.log("Success Receipt Respose: "+JSON.stringify(t)),u.processing=!1,u.clearPaymentForm(),e.ssl_result_message="POSTED",u.paymentMode===Me.NewCustomer?(console.log("PostEvalonPayment -> paidStatus.emit"),u.paidStatus.emit(t)):"D"!==t.BankAuthorizationStatusDB&&u.DisplayReceipt(t)}))}),(function(t){u.logService.logMessage("payment process failed at PostEvalonPaymentbackend "+JSON.stringify(e)+" Error: "+JSON.stringify(t)),u.processing=!1,u.paidStatus.emit("POST_PAYMENT_FAILED"),u.router.url.includes("/Signup")||u.alertService.error("Post payment failed. Please contact customer service for support.",!1)}))},e.prototype.onReceiptClose=function(){console.log("payment-online: onReceiptClose called"),this.paidStatus.emit({type:d.f.Success,message:"Receipt can be closed",autoClose:!0,position:"toast-bottom-center"})},e.prototype.DisplayReceipt=function(e){if(console.log("Payment-online->DisplayReceipt called"),e.ResponseOrderID){for(var t="-",n=e.ResponseOrderID,o=Math.floor(n.length/12);o>0;){var r=12*o;n.length>r&&(n=[n.slice(0,r),t,n.slice(r)].join("")),o--}e.ResponseOrderID=n}this.reciept=e,this.currentDate=new Date,this.transactionResponse=e,jQuery("#paymentReceiptModal").modal({show:!0})},e.prototype.enableAddFund=function(){this.showAddFunds=!this.showAddFunds},e.prototype.addFunds=function(){this.finalAddfundAmount=this.addfundAmount,this.pmtReq.amount+=this.addfundAmount,this.showAddFunds=!1},e.prototype.unDoAddFund=function(){this.finalAddfundAmount=0,this.addfundAmount=0,this.pmtReq.amount=this.ogAmount,this.showAddFunds=!1},e.prototype.parseAmount=function(e){return-e},e.prototype.getInvoiceNumber=function(){var e=this;return this.paymentMode===Me.ReturningCustomer?this.accountService.getInvoiceNumber(this.currentAccountId).pipe(Object(u.a)((function(t){e.invoiceNumber=t.InvoiceNumber,e.sequenceNumber=t.SequenceNumber,console.log("getInvoiceNumber->"+e.invoiceNumber)}))):this.configService.getInitialInvoiceNumber().pipe(Object(u.a)((function(t){e.invoiceNumber=t.InvoiceNumber,e.sequenceNumber=t.SequenceNumber,console.log("getInitialInvoiceNumber->"+e.invoiceNumber)})))},e.prototype.clearPaymentForm=function(){this.pmtReq.paymentType=2,this.pmtReq.exp_month=this.initItem.id,this.pmtReq.exp_year=this.initItem.id,this.pmtReq.amount=null,this.pmtReq.cvd=null,this.pmtReq.card_num=null,this.pmtReq.transit=null},e.prototype.isNewCustomer=function(){return this.paymentMode===Me.NewCustomer},e.prototype.isPreauthSettingValid=function(){var e=!1;return this.pmtReq.preauthRequired?this.pmtReq.preauthRequired&&(this.paymentToken||1===this.pmtReq.paymentType)&&(e=!0):e=!0,e},e.prototype.processPreauthToken=function(){var e=this;if(this.pmtReq.preauthRequired&&2===this.pmtReq.paymentType){this.processing=!0;var t=new d.j;t.Amount=this.pmtReq.amount,t.FirstName=this.pmtReq.firstName,t.LastName=this.pmtReq.lastName,t.NameOnCard=this.pmtReq.nameOnCard,t.CreditCardNumber=this.pmtReq.card_num,t.PaymentType=Number(this.pmtReq.paymentType),t.AccountNumber=this.pmtReq.card_num,t.TransitNumber=this.pmtReq.transit,t.ExpiryMonth=Number(this.pmtReq.exp_month),t.ExpiryYear=Number(this.pmtReq.exp_year),t.Cvv=this.pmtReq.cvd,this.alertService.clear(),this.evalonPaymentService.getPreauthToken(t).subscribe((function(t){console.log("processPreauthToken: "+JSON.stringify(t)),e.paymentToken=t.Token,e.processing=!1}),(function(n){e.processing=!1,t.CreditCardNumber=t.CreditCardNumber.replace(/\d(?=\d{4})/g,"*"),t.AccountNumber=t.AccountNumber.replace(/\d(?=\d{4})/g,"*"),e.logService.logMessage("payment process failed at getPreauthToken"+JSON.stringify(t)),e.alertService.error("Cannot aquire preauth token. Please make sure you provided valid credit card information.",!1),e.pmtReq.preauthRequired=!1,console.log("error in processPreauthToken: "+n)}))}else this.paymentToken="",this.processing=!1},e.prototype.ngOnDestroy=function(){this.accountSub&&this.accountSub.unsubscribe()},e.prototype.getCardType=function(e){if(e){var t=new RegExp("^4");if(null!=e.match(t))return"Visa";if(/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(e))return"Mastercard";if(t=new RegExp("^3[47]"),null!=e.match(t))return"AMEX";if(t=new RegExp("^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)"),null!=e.match(t))return"Discover";if(t=new RegExp("^(4026|417500|4508|4844|491(3|7))"),null!=e.match(t))return"Visa Electron"}return""},e.\u0275fac=function(t){return new(t||e)(o.Pb(d.I),o.Pb(d.r),o.Pb(d.c),o.Pb(d.e),o.Pb(d.l),o.Pb(d.D),o.Pb(d.i),o.Pb(d.u),o.Pb(p.c),o.Pb(f.f))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-payment-online"]],viewQuery:function(e,t){var n;1&e&&(o.Yc(C,!0),o.Yc(S,!0),o.Yc(P,!0)),2&e&&(o.Fc(n=o.ic())&&(t.paymentForm=n.first),o.Fc(n=o.ic())&&(t.errorModal=n.first),o.Fc(n=o.ic())&&(t.accountAgreementModal=n.first))},inputs:{paymentMode:"paymentMode",registrationFee:"registrationFee",numberOfTransponders:"numberOfTransponders",fees:"fees",account:"account"},outputs:{paidStatus:"paidStatus"},decls:36,vars:6,consts:[[1,"row","mt-md-4","no-gutter"],[1,"col-xs-12","col-sm-12","col-md-6","order-3","order-md-1"],[1,"mb-md-4"],["id","ngForm",4,"ngIf"],[4,"ngIf"],["class","col-xs-12 col-sm-12 col-md-6 order-2 order-md-2",4,"ngIf"],["class","col-xs-12 col-sm-12 col-md-4 order-1 order-md-3",4,"ngIf"],[3,"transactionResponse","currentDate","ModalClose"],["class","errorModal"],["errorModal",""],["class","accountAgreement-model"],["accountAgreementModal",""],["id","cvvModal","tabindex","-1","role","dialog","aria-labelledby","cvvModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header","bgGrayLight2","modal-header-pad","modal-header-pad-xs"],[1,"modal-title","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"txtSize18","txtLineHeight-26","txtBlack4"],[1,"txtLineHeight-18"],[1,"txtBold"],[1,"spacer20","hidden-xs"],[1,"spacer25","hidden-lg","hidden-sm","hidden-md"],["id","ngForm"],["paymentForm","ngForm"],["class","form-group",4,"ngIf"],[1,"form-group","row"],["for","amount",1,"col-form-label","col-form-label-sm"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],["required","","id","amount","name","amount","type","","aria-label","amount","aria-label","amount","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.charCode === 46 || event.key === "Backspace"',1,"form-control",3,"ngModel","readonly","gte","placeholder","ngModelChange"],["amount","ngModel"],["class","btn btn-primary","type","submit","aria-label","add",3,"click",4,"ngIf"],["class","btn btn-secondary","aria-label","reset",3,"click",4,"ngIf"],["class","pt-1 ",4,"ngIf"],["class","form-group row",4,"ngIf"],["class","form-group col-sm-12 col-md-6 px-3",4,"ngIf"],["class","form-group px-3",3,"ngClass",4,"ngIf"],["class"," form-group row",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"col-sm-12","col-md-6"],[1,"col-sm-12","col-md-6","d-flex","justify-content-center","justify-content-md-end"],["noDblClick","","class","btn btn-app-primary topbutton",3,"disabled","click",4,"ngIf"],["class","btn btn-app-primary topbutton","disabled","",4,"ngIf"],["class","form-group row px-2",4,"ngIf"],[1,"form-group"],["for","paymentType",1,"col-form-label","col-form-label-sm"],["id","paymentType","aria-label","paymentType","name","paymentType","required","",1,"form-control","form-control-sm","mb-1",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","submit","aria-label","add",1,"btn","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus","align-items-center"],["aria-label","reset",1,"btn","btn-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-undo","align-items-center"],[1,"pt-1"],[1,"text-danger"],["for","addfundAmount",1,"col-form-label","col-form-label-sm"],["id","addfundAmount","name","addfundAmount","type","number","min","0","aria-label","amount","aria-label","addfundAmount","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.charCode===46 ||\n                event.key==="Backspace"',"onDrag","return false","onDrop","return false","onPaste","return false","oninput","validity.valid||(value='');",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["addfunds","","amount","ngModel"],["type","submit",1,"btn","btn-primary","input-group-append",3,"click"],["for","accountType",1,"col-form-label","col-form-label-sm"],["id","accountType","name","accountType","required","",1,"form-control","form-control-sm","mb-1",3,"ngModel","ngModelChange"],[1,"form-group","col-sm-12","col-md-6","px-3"],["for","firstName",1,"col-form-label","col-form-label-sm"],[1,"input-group","clearfix"],["required","","name","firstName","type","text","aria-label","firstName",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["firstName","ngModel"],["class","text-danger col-12 no-gutters p-0",4,"ngIf"],[1,"text-danger","col-12","no-gutters","p-0"],[1,"form-group","px-3",3,"ngClass"],["for","lastName",1,"col-form-label","col-form-label-sm"],["required","","name","lastName","type","text","aria-label","lastName",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["lastName","ngModel"],["for","accountNumber",1,"form-control-labe","col-form-label","col-form-label-sm"],["aria-hidden","true","data-toggle","modal","data-target","#bankModal",1,"fa","fa-info-circle","fa-sm","pl-1"],["required","","minlength","5","maxlength","15","name","accountNumber","type","text","aria-label","accountNumber",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["acctnum","ngModel"],["for","transitNumber",1,"col-form-label","col-form-label-sm"],["required","","minlength","9","name","transitNumber","type","text","aria-label","transitNumber",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["transitnum","ngModel"],[1,"row","px-3","user-consent"],[1,"col-12","m-0","p-0","add-text"],[1,"col-12","m-0","m-0","p-0","pt-2"],["type","checkbox","name","accountAgreement","aria-label","accountAgreement","required","",1,"d-inline-block",3,"ngModel","ngModelChange"],[1,"d-inline-block","pl-2"],["for","nameOnCard",1,"col-form-label","col-form-label-sm"],["required","","name","nameOnCard","type","text","aria-label","name-on-card",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["nameOnCard","ngModel"],["for","cardNumber",1,"col-form-label","col-form-label-sm"],["required","","minlength","15","name","cardNumber","type","text","onPaste","return false","aria-label","card-number",1,"form-control","col-12",2,"min-width","150px",3,"ngModel","placeholder","ngModelChange"],["cardnum","ngModel"],[1,"col-6"],["for","month",1,"col-form-label","col-form-label-sm"],["required","","name","month","appForbiddenName","-1","mustSelect","","aria-label","expiry-month",1,"form-control","mr-2","clearfix",3,"ngModel","ngModelChange"],["month_select","ngModel"],[4,"ngFor","ngForOf"],["for","year",1,"col-form-label","col-form-label-sm"],["required","","name","year","appForbiddenName","-1","mustSelect","","aria-label","expiry-year",1,"form-control","clearfix",3,"ngModel","ngModelChange","onchange"],["year_select","ngModel"],[3,"value",4,"ngFor","ngForOf"],["class","text-danger  no-gutters p-0",4,"ngIf"],[3,"value"],[1,"text-danger","no-gutters","p-0"],["for","cvv",1,"col-form-label","col-form-label-sm"],["aria-hidden","true","data-toggle","modal","data-target","#cvvModal",1,"fa","fa-info-circle","fa-sm","pl-1"],["required","","id","cvv","name","card_cvd","type","text","aria-label","cvv","onPaste","return false","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"placeholder","CVV2",1,"form-control","clearfix",3,"ngModel","ngModelChange"],["card_cvd","ngModel"],["noDblClick","",1,"btn","btn-app-primary","topbutton",3,"disabled","click"],["disabled","",1,"btn","btn-app-primary","topbutton"],["aria-hidden","true",1,"fa","fa-spinner","fa-pulse"],[1,"form-group","row","px-2"],[1,"row","px-4","user-consent"],[1,"col-1","m-0","m-0","p-0"],["type","checkbox","name","isPreauthRequired","aria-label","isPreauthRequired",3,"ngModel","ngModelChange","change"],[1,"col-11","m-0","p-0","add-text"],[1,"col"],[1,"btn","btn-app-primary","topbutton",3,"click"],[1,"col-xs-12","col-sm-12","col-md-6","order-2","order-md-2"],[1,"container"],[1,"mb-5","text-center"],[1,"col-8"],["tooltip","Funds added to the MacPass account to payment of tolls","placement","left"],[1,"col-4","text-right"],[1,"col-4"],[1,"col-5","text-right"],[1,"col-3","text-right"],[1,"col-xs-12","col-sm-12","col-md-4","order-1","order-md-3"],[1,"card","mb-3","topCard","balanceCardBorder"],[1,"card-body","text-center"],[1,"card-title","text-center"],[1,"text-muted"],[1,"card-title",3,"ngClass"],[1,"card-footer","text-muted","text-center"],["src","../../../assets/images/sample_chequ.png","width","100%","aria-label","sample_chequ",4,"ngIf"],["src","../../../assets/images/sample_chequ.png","width","100%","aria-label","sample_chequ"],[1,"modal-header","text-center","text-danger","align-middle","px-2","d-flex","justify-content-center"],[1,"d-inline","align-middle"],[1,"d-inline","align-middle","px-2","fa","fa-times-circle","fa-2x"],[1,"modal-body","text-center"],["data-dismiss","errorModal","aria-label","Close",1,"m-2","btn","btn-danger","float-right",3,"click"],[1,"modal-header","text-center","accountAgreement-header"],[1,"modal-title","w-100","accountAgreement-title"],["type","button","data-dismiss","accountAgreementPopUpModal","aria-label","Close",1,"close",3,"click"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"h4",2),o.Tc(3,"Payment Information"),o.Ub(),o.Rc(4,Ue,37,29,"form",3),o.Rc(5,Ve,14,0,"div",4),o.Ub(),o.Rc(6,Te,38,13,"div",5),o.Rc(7,Ce,15,15,"div",6),o.Ub(),o.Vb(8,"app-payment-receipt",7),o.hc("ModalClose",(function(){return t.onReceiptClose()})),o.Ub(),o.Rc(9,Pe,1,1,"ng-template",8,9,o.Sc),o.Rc(11,Ae,11,3,"ng-template",10,11,o.Sc),o.Vb(13,"div",12),o.Vb(14,"div",13),o.Vb(15,"div",14),o.Vb(16,"div",15),o.Vb(17,"h5",16),o.Tc(18," Card Verification Number "),o.Ub(),o.Vb(19,"button",17),o.Vb(20,"span",18),o.Tc(21,"\xd7"),o.Ub(),o.Ub(),o.Ub(),o.Vb(22,"div",19),o.Vb(23,"div",20),o.Vb(24,"div",21),o.Vb(25,"div",22),o.Vb(26,"div",23),o.Vb(27,"p"),o.Tc(28,"Visa, Mastercard and Discover"),o.Ub(),o.Ub(),o.Vb(29,"div",24),o.Tc(30," A "),o.Vb(31,"span",25),o.Tc(32,"3-digit "),o.Ub(),o.Tc(33," number on the back of your credit card, to the right of the signature. "),o.Ub(),o.Qb(34,"div",26),o.Qb(35,"div",27),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(4),o.uc("ngIf",!t.requestProcessed),o.Bb(1),o.uc("ngIf",t.requestProcessed),o.Bb(1),o.uc("ngIf",t.isNewCustomer()),o.Bb(1),o.uc("ngIf",!t.isNewCustomer()),o.Bb(1),o.uc("transactionResponse",t.transactionResponse)("currentDate",t.currentDate))},directives:[h.n,g.a,m.z,m.o,m.p,m.c,m.v,m.n,m.q,v.b,m.w,h.m,m.r,m.y,m.s,v.c,h.l,m.j,m.i,m.b,m.a,y.a,U.a,V.a],pipes:[T.c,h.c,I.a],styles:[".add-text[_ngcontent-%COMP%]{font-size:smaller}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.user-consent[_ngcontent-%COMP%]{width:100%}}"]}),e}()},kxGQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.fromAccount=function(t){var n=new e;return n.AccountID=t.AccountID,n.ContactPersonTitle=t.ContactPersonTitle,n.ContactPersonLastName=t.ContactPersonLastName,n.ContactPersonFirstName=t.ContactPersonFirstName,n.PhoneBusinessContact=t.PhoneBusinessContact,n.PhoneBusinessContactExt=t.PhoneBusinessContactExt,n.MailingAddress=t.MailingAddress,n.MailingCity=t.MailingCity,n.MailingProvinceID=t.MailingProvinceID,n.MailingCountryID=t.MailingCountryID,n.MailingPostalCode=t.MailingPostalCode,n.SameBillingAsMailingAddress=t.SameBillingAsMailingAddress,n.BillingAddress=t.BillingAddress,n.BillingCity=t.BillingCity,n.BillingProvinceID=t.BillingProvinceID,n.BillingCountryID=t.BillingCountryID,n.BillingPostalCode=t.BillingPostalCode,n.PrimaryPhone=t.PrimaryPhone,n.PrimaryPhoneExt=t.PrimaryPhoneExt,n.AlternatePhone=t.AlternatePhone,n.AlternatePhoneExt=t.AlternatePhoneExt,n.MobilePhone=t.MobilePhone,n.Fax=t.Fax,n.Sms=t.Sms,n.Email=t.Email,n.AltEmail=t.AltEmail,n.TaxAuthorityId=t.TaxAuthorityId,n.FatherLastName=t.FatherLastName,n.Profession=t.Profession,n.StmtDistributionActive=t.StmtDistributionActive,n.ReceiveMarketingEmails=t.ReceiveMarketingEmails,n.LowBalanceAmount=t.LowBalanceAmount,n.BalanceWarning=t.BalanceWarning,n.NationalInsNumber=t.NationalInsNumber,n},e}()},obUD:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("3ukZ"),r=n("kpJz"),i=n("ca4W"),c=n("/DVL"),a=n("Iq5M"),s=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.faqEndpoint="api/Faq",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new i.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.getTollFees=function(){return this.http.post(this.endpointUrl+this.faqEndpoint+"/GetTollFees",{headers:this.headers}).pipe(Object(r.a)((function(e){return e})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(a.dc(o.b),a.dc(c.a))},e.\u0275prov=a.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},qZ3R:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n("3ukZ"),r=n("lIH0"),i=n("fwXJ"),c=n("kpJz"),a=n("3MHA"),s=n("6jvO"),l=n("ca4W"),u=n("0aJ/"),d=n("f+Tu"),b=n("/DVL"),p=n("Iq5M"),f=function(){function e(e,t,n,r){var i=this;this.http=e,this.configurationService=t,this.errorhandlerService=n,this.proxy=r,this.simpleWebPay_useToken_url="https://www3.cenpos.net/simplewebpay/cards/api/UseToken/",this.simpleWebPay_useCryptoToken_url="https://www3.cenpos.net/simplewebpay/cards/api/UseCrypto/",this.simpleWebPay_verifyingPost_url="https://www3.cenpos.net/simplewebpay/cards/?app=genericcontroller&action=siteVerify",this.simpleWebPay_getToken_url="https://www3.cenpos.net/simplewebpay/cards/api/GetToken/",this.simpleWebPay_deleteToken_url="https://www3.cenpos.net/simplewebpay/cards/api/DeleteToken/",this.webPay_verifyingPost_url="https://www3.cenpos.net/webpay/v7/html5/?app=genericcontroller&action=siteVerify",this.cenposEndpoint="api/Cenpos",this.headers=new o.e({"Content-Type":"application/json"}),this.subs=new l.a,this.subs.add(this.proxy.getEndpoint().subscribe((function(e){i.endpointUrl=e}))),this.getCenposConfig()}return e.prototype.getCenposConfig=function(){var e=this;this.configurationService.getWebPayConfig().subscribe((function(t){e.webPay_merchant=t.Merchant,e.webPay_secretKey=t.SecretKey}),(function(e){console.log(e)})),this.configurationService.getSimpleWebPayConfig().subscribe((function(t){e.simpleWebPay_merchant=t.Merchant,e.simpleWebPay_secretKey=t.SecretKey}),(function(e){console.log(e)}))},e.prototype.simpleWebPayPostPayment_backend=function(e){return this.http.post(this.endpointUrl+this.cenposEndpoint+"/PostPayment",JSON.stringify(e),{headers:this.headers}).pipe(Object(c.a)((function(e){return e})))},e.prototype.createWebPayObject=function(e){var t=new URLSearchParams;return t.set("secretkey",this.webPay_secretKey),t.set("merchant",this.webPay_merchant),t.set("email",e),this.webPayVerifyingPost(t)},e.prototype.webPayVerifyingPost=function(e){var t={headers:(new o.e).set("Content-Type","application/x-www-form-urlencoded")};return this.http.post(this.webPay_verifyingPost_url,e.toString(),t).pipe(Object(c.a)((function(e){return e.Data}),(function(){console.log("Error occured in verifyingPost")})))},e.prototype.simpleWebPayVerifyingPost=function(e){var t={headers:(new o.e).set("Content-Type","application/x-www-form-urlencoded")};return this.http.post(this.simpleWebPay_verifyingPost_url,e.toString(),t).pipe(Object(c.a)((function(e){return e.Data})))},e.prototype.createSimpleWebPayObject=function(e){var t=new URLSearchParams;return t.set("secretkey",this.simpleWebPay_secretKey),t.set("merchant",this.simpleWebPay_merchant),t.set("email",e),this.simpleWebPayVerifyingPost(t)},e.prototype.simpleWebPayPostPayment=function(e,t,n,c){var s=this,l={headers:(new o.e).set("Content-Type","application/x-www-form-urlencoded")},u=new URLSearchParams;return u.set("amount",n),u.set("type","Sale"),u.set("email",e),u.set("secretkey",this.simpleWebPay_secretKey),u.set("merchant",this.simpleWebPay_merchant),u.set("invoicenumber",c),u.set("tokenid",t),this.simpleWebPayVerifyingPost(u).pipe(Object(a.a)((function(e){var n=new URLSearchParams;return n.set("verifyingpost",e),n.set("tokenid",t),s.http.post(s.simpleWebPay_useToken_url,n.toString(),l)})),Object(a.a)((function(e){return null==e.ReferenceNumber?Object(r.a)("Transaction could not be processed for this card. Please try again!"):Object(i.a)(e)})))},e.prototype.simpleWebPayDeleteToken=function(e){var t=this,n={headers:(new o.e).set("Content-Type","application/x-www-form-urlencoded")},r=new URLSearchParams;return r.set("secretkey",this.simpleWebPay_secretKey),r.set("merchant",this.simpleWebPay_merchant),r.set("tokenid",e),this.simpleWebPayVerifyingPost(r).pipe(Object(a.a)((function(o){var r=new URLSearchParams;return r.set("verifyingpost",o),r.set("tokenid",e),t.http.post(t.simpleWebPay_deleteToken_url,r.toString(),n)})),Object(a.a)((function(e){return"Approved"===e.Message?Object(i.a)(!0):Object(i.a)(!1)})))},e.prototype.simpleWebPayGetToken=function(e){var t=this,n={headers:(new o.e).set("Content-Type","application/x-www-form-urlencoded")},c=new URLSearchParams;return c.set("secretkey",this.simpleWebPay_secretKey),c.set("merchant",this.simpleWebPay_merchant),c.set("email",e),this.simpleWebPayVerifyingPost(c).pipe(Object(a.a)((function(e){var o=new URLSearchParams;return o.set("verifyingpost",e),t.http.post(t.simpleWebPay_getToken_url,o.toString(),n).pipe(Object(s.a)((function(e){return Object(r.a)(e)})))})),Object(a.a)((function(){return Object(i.a)(!0)})),Object(s.a)((function(e){return Object(r.a)(e)})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(p.dc(o.b),p.dc(u.a),p.dc(d.a),p.dc(b.a))},e.\u0275prov=p.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},rIVK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){this.result=[]}return e.prototype.transform=function(e,t,n,o,r,i,c){return e?(this.result=[],t&&(this.result=this.result.concat(this.getPayment(e))),n&&(this.result=this.result.concat(this.getTransaction(e))),o&&(this.result=this.result.concat(this.getFees(e))),r&&(this.result=this.result.concat(this.getAdjustment(e))),i&&(this.result=this.result.concat(this.getRefund(e))),""!==c?this.result.filter((function(e){return-1!==e.TransponderText.indexOf(c)})).sort((function(e,t){return new Date(e.TransactionLDateTime)>new Date(t.TransactionLDateTime)?-1:1})):this.result.sort((function(e,t){return new Date(t.TransactionLDateTime).getTime()-new Date(e.TransactionLDateTime).getTime()}))):e},e.prototype.getPayment=function(e){return e.filter((function(e){return-1!==e.TransactionType.toLowerCase().indexOf("01")}))},e.prototype.getTransaction=function(e){return e.filter((function(e){return-1!==e.TransactionType.toLowerCase().indexOf("02")}))},e.prototype.getFees=function(e){return e.filter((function(e){return-1!==e.TransactionType.toLowerCase().indexOf("03")||-1!==e.TransactionType.toLowerCase().indexOf("04")}))},e.prototype.getAdjustment=function(e){return e.filter((function(e){return-1!==e.TransactionType.toLowerCase().indexOf("05")||-1!==e.TransactionType.toLowerCase().indexOf("08")||-1!==e.TransactionType.toLowerCase().indexOf("09")}))},e.prototype.getRefund=function(e){return e.filter((function(e){return-1!==e.TransactionType.toLowerCase().indexOf("06")}))},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=o.Ob({name:"transactionTypeFilter",type:e,pure:!0}),e}()},s48P:function(e,t,n){var o={"./ion-action-sheet.entry.js":["odWR",0,14],"./ion-alert.entry.js":["3EzY",0,15],"./ion-app_8.entry.js":["okbQ",0,16],"./ion-avatar_3.entry.js":["bsuk",0,17],"./ion-back-button.entry.js":["xMa/",0,18],"./ion-backdrop.entry.js":["YiJr",19],"./ion-button_2.entry.js":["9/f/",0,20],"./ion-card_5.entry.js":["zKWT",0,21],"./ion-checkbox.entry.js":["5N5V",0,22],"./ion-chip.entry.js":["kBiO",0,23],"./ion-col_3.entry.js":["5K23",24],"./ion-datetime_3.entry.js":["Xb3l",0,25],"./ion-fab_3.entry.js":["Z5qq",0,26],"./ion-img.entry.js":["1NGv",27],"./ion-infinite-scroll_2.entry.js":["kN6Z",28],"./ion-input.entry.js":["3/DA",0,29],"./ion-item-option_3.entry.js":["cb3V",0,30],"./ion-item_8.entry.js":["Sl+X",0,31],"./ion-loading.entry.js":["yE4b",0,32],"./ion-menu_3.entry.js":["j8Mb",0,33],"./ion-modal.entry.js":["JLAR",0,34],"./ion-nav_2.entry.js":["bqwC",0,35],"./ion-popover.entry.js":["Y8rf",0,36],"./ion-progress-bar.entry.js":["DrL1",0,37],"./ion-radio_2.entry.js":["SuUM",0,38],"./ion-range.entry.js":["+iMA",0,39],"./ion-refresher_2.entry.js":["Qahh",0,40],"./ion-reorder_2.entry.js":["T0LN",0,41],"./ion-ripple-effect.entry.js":["BbiK",42],"./ion-route_4.entry.js":["l/Ao",0,43],"./ion-searchbar.entry.js":["1NXT",0,44],"./ion-segment_2.entry.js":["T4Az",0,45],"./ion-select_3.entry.js":["an5k",0,46],"./ion-slide_2.entry.js":["9cAw",47],"./ion-spinner.entry.js":["Pax4",0,48],"./ion-split-pane.entry.js":["liTM",49],"./ion-tab-bar_2.entry.js":["0lTC",0,50],"./ion-tab_2.entry.js":["daHe",0,51],"./ion-text.entry.js":["BHwI",0,52],"./ion-textarea.entry.js":["Ehhc",0,53],"./ion-toast.entry.js":["C6fM",0,54],"./ion-toggle.entry.js":["Z5oK",0,55],"./ion-virtual-scroll.entry.js":["T6pZ",56]};function r(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(o)},r.id="s48P",e.exports=r},sqVf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){this.appName="",this.countries=null,this.provinces=null,this.tollCategories=null,this.accountProfiles=null,this.settings={}}return e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},u7Hi:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("3ukZ"),r=n("uK5l"),i=n("lIH0"),c=n("6jvO"),a=n("jOUA"),s=n("cipv"),l=n("LgQE"),u=n("dOQ6"),d=n("FOl/"),b=n("XdgQ"),p=n("CEOs"),f=n("Iq5M"),h=function(){function e(e,t){this.injector=e,this.localstorageService=t,this.isRefreshing=!1,this.refreshTokenSubject=new r.a(null)}return e.prototype.intercept=function(e,t){var n,r=this;return this.gToken=this.injector.get(d.a),e.url.includes("refreshtoken")||e.url.includes("login")||e.url.includes("assets")||e.url.includes("api/WebAccess/Logout")?n=e:(this.auth=this.injector.get(u.a),n=this.addToken(e,this.auth.getLoginToken())),t.handle(n).pipe(Object(c.a)((function(n){if(e.url.includes("refreshtoken")||e.url.includes("login"))return(e.url.includes("refreshtoken")||e.url.includes("Log/LogMessage"))&&(r.auth=r.injector.get(u.a),r.auth.logout()),Object(i.a)(n);if(!(n instanceof o.d))return Object(i.a)(n);switch(n.status){case 401:return r.handle401Error(e,t);case 400:return r.logOutThrow(n);default:return Object(i.a)(n)}})))},e.prototype.logOutThrow=function(e){return this.auth.logout().pipe(Object(a.a)((function(){return Object(i.a)(e.error)})))},e.prototype.handle401Error=function(e,t){var n=this;return this.localstorageService.check(p.e)?this.isRefreshing?this.refreshTokenSubject.pipe(Object(s.a)((function(e){return null!=e})),Object(l.a)(1),Object(a.a)((function(o){return t.handle(n.addToken(e,o))}))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.auth.refreshToken().pipe(Object(a.a)((function(o){return n.isRefreshing=!1,n.refreshTokenSubject.next(o.access_token),t.handle(n.addToken(e,o.access_token))})),Object(c.a)((function(e){return n.isRefreshing=!1,Object(i.a)(e.error)})))):t.handle(e)},e.prototype.addToken=function(e,t){return e.clone({setHeaders:{Authorization:"Bearer "+t,gid:this.gToken.gToken}})},e.\u0275fac=function(t){return new(t||e)(f.dc(f.s),f.dc(b.a))},e.\u0275prov=f.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},uOke:function(e,t,n){"use strict";n.d(t,"a",(function(){return ne}));var o=n("fYjX"),r=n("LBVs"),i=n("On9e"),c=n("pZWF"),a=n("5gSk"),s=n("RAK1"),l=n("KVjz"),u=n("HKMU"),d=n("3ukZ"),b=n("+75V"),p=n("Z2t2"),f=n("Bc94"),h=n("6+bh"),g=n("J1mW"),m=n("a8Ky"),v=n("CEOs"),y=n("zXsH"),U=n("B+oH"),V=n("W0id"),T=n("T5Vf"),I=n("I7ex"),C=n("dOQ6"),S=n("qZ3R"),P=n("0aJ/"),A=n("fNNA"),M=n("y4uT"),w=n("VWKs"),R=n("f+Tu"),B=n("5bg6"),O=n("obUD"),E=n("XdgQ"),k=n("YdUA"),x=n("7XHD"),N=n("idNd"),_=n("/DVL"),D=n("FOl/"),L=n("VciZ"),q=n("8pj5"),F=n("u7Hi"),j=n("v1vG"),J=n("JkS3"),G=n("xAfV"),W=n("ezZp"),Q=n("RlrJ"),Y=n("hLhj"),H=n("Tm5P"),z=n("0/pO"),$=n("sqVf"),K=n("zY4o"),Z=n("PcIE"),X=n("IjRH"),ee=n("izqJ"),te=n("Iq5M"),ne=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[I.a,U.a,V.a,z.a,T.a,Z.a,C.a,S.a,A.a,M.a,w.a,R.a,B.a,O.a,E.a,o.a,K.a,k.a,x.a,N.a,_.a,D.a,F.a,q.a,j.a,L.a,J.a,W.a,G.a,P.a,$.a,ee.a,X.a,$.a,g.a,m.a,u.e,u.c]}},e.\u0275mod=te.Nb({type:e}),e.\u0275inj=te.Mb({factory:function(t){return new(t||e)},providers:[g.a,m.a,u.e,u.c],imports:[[u.b,d.c,Q.h,Q.u,y.a,b.b.forRoot(),h.b,f.a,i.a,Y.b,l.b,s.a,a.d,c.a,r.b.forRoot(void 0),h.c.forRoot({positionClass:"inline",preventDuplicates:!0}),H.b,p.a.forRoot({isCrypto:!0,cryptoString:v.f,versionStorage:"1.0.0"})],y.a,H.b,c.a,b.b,h.b,f.a,i.a,Y.b,l.b,s.a,a.d]}),e}()},uZ1c:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("6+bh"),r=n("T2Vz"),i=n("W0id"),c=n("0aJ/"),a=n("Iq5M"),s=function(){function e(e,t,n){this.alertService=e,this.toastr=t,this.configuration=n}return e.prototype.ngOnInit=function(){var e=this;this.toastr.overlayContainer=this.toastContainer,this.alertService.getAlert().subscribe((function(t){if(e.alert=t,t)switch(e.toastr.clear(),t.type){case r.a.Success:e.toastr.success(t.message,e.configuration.config.HideTitlesOnalert?null:"Success!",{timeOut:5e3,disableTimeOut:!t.autoClose,progressBar:!0,closeButton:!0,positionClass:t.position,enableHtml:!0});break;case r.a.Error:e.toastr.error(t.message,e.configuration.config.HideTitlesOnalert?null:"Error!",{timeOut:5e3,disableTimeOut:!t.autoClose,progressBar:!0,closeButton:!0,positionClass:t.position,enableHtml:!0});break;case r.a.Info:e.toastr.info(t.message,e.configuration.config.HideTitlesOnalert?null:"Info!",{timeOut:5e3,disableTimeOut:!t.autoClose,progressBar:!0,closeButton:!0,positionClass:t.position,enableHtml:!0});break;case r.a.Warning:e.toastr.warning(t.message,e.configuration.config.HideTitlesOnalert?null:"Warning!",{timeOut:5e3,disableTimeOut:!t.autoClose,progressBar:!0,closeButton:!0,positionClass:t.position,enableHtml:!0})}else e.toastr.clear()}))},e.prototype.closeAlert=function(){this.toastr.clear()},e.\u0275fac=function(t){return new(t||e)(a.Pb(i.a),a.Pb(o.d),a.Pb(c.a))},e.\u0275cmp=a.Jb({type:e,selectors:[["app-alert"]],viewQuery:function(e,t){var n;1&e&&a.Yc(o.a,!0),2&e&&a.Fc(n=a.ic())&&(t.toastContainer=n.first)},decls:1,vars:0,consts:[["toastContainer","",1,"toast-gx"]],template:function(e,t){1&e&&a.Qb(0,"div",0)},directives:[o.a],styles:[".alert[_ngcontent-%COMP%]{position:fixed;z-index:9999;bottom:67px;left:5%;width:90%}.alert-dismissible[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{padding-bottom:0}.alertShadow[_ngcontent-%COMP%]{box-shadow:0 5px 7px rgba(0,0,0,.5)}"]}),e}()},v1vG:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("3ukZ"),r=n("ca4W"),i=n("/DVL"),c=n("Iq5M"),a=function(){function e(e,t){var n=this;this.http=e,this.proxy=t,this.transponderEndpoint="api/ReaderData",this.subs=new r.a,this.headers=new o.e({"Content-Type":"application/json"}),this.subs.add(this.proxy.getEndpoint().subscribe((function(e){n.endpointUrl=e})))}return e.prototype.getTransponders=function(){return this.http.get(this.endpointUrl+this.transponderEndpoint+"/GetTransponders",{headers:this.headers})},e.prototype.requestTransponder=function(e){return this.http.post(this.endpointUrl+this.transponderEndpoint+"/TransponderRequest",e,{headers:this.headers})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(c.dc(o.b),c.dc(i.a))},e.\u0275prov=c.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},xAfV:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("m+4C"),r=n("kpJz"),i=n("CEOs"),c=n("dOQ6"),a=n("0aJ/"),s=n("y4uT"),l=n("sqVf"),u=n("XdgQ"),d=n("8pj5"),b=n("0grR"),p=n("Iq5M"),f=n("oIEy"),h=function(){function e(e,t,n,o,r,i,c,a){this.globals=e,this.configurationService=t,this.themeService=n,this.idle=o,this.dateTimeService=r,this.router=i,this.authService=c,this.localstorageService=a,this.accountId4personal=-1,this.helper=new b.a,this.loadGlobalData()}return e.prototype.getCompanyLogo=function(){return this.themeService.active.LogoImageUrl},e.prototype.getCompanyLogoHeader=function(){return this.getCompanyLogo()},e.prototype.getBackgroungPic=function(){return this.isMackinac(),this.themeService.active.BackgroundImageUrl},e.prototype.isBahamas=function(){return"tba"===this.globals.appName},e.prototype.isMackinac=function(){return"mba"===this.configurationService.config.Name},e.prototype.isAttiki=function(){return"aodos"===this.configurationService.config.Name},e.prototype.isEgnatia=function(){return"eodos"===this.configurationService.config.Name},e.prototype.getSingleTransponderFeeAmount=function(e,t){return this.fees=JSON.parse(localStorage.getItem("accFees")),this.fees.TransponderAssignFee+this.fees.StartTransponderFeeAmount},e.prototype.isLoggedIn=function(){return!!this.localstorageService.getItem(i.b)},e.prototype.getInitialBalanceAmount=function(e){return e===this.accountId4personal?40:200},e.prototype.getAccountProfileIdPersonal=function(){var e=this;this.configurationService.getConfigParameter("AccountProfileIdPersonal").subscribe((function(t){e.accountId4personal=Number(t),console.log("Loaded: accountId4personal="+e.accountId4personal)}),(function(e){console.log(e)}))},e.prototype.getAccountProfileIdBusiness=function(){var e=this;this.configurationService.getConfigParameter("AccountProfileIdBusiness").subscribe((function(t){e.accountId4business=Number(t),console.log("Loaded: accountId4business="+e.accountId4business)}),(function(e){console.log(e)}))},e.prototype.initialiseValues=function(){this.getAccountProfileIdPersonal(),this.getAccountProfileIdBusiness()},e.prototype.getDefaultAccountProfileId=function(e){var t=0;return"P"===e?t=this.accountId4personal:"B"===e&&(t=this.accountId4business),t},e.prototype.getInitialAccountFees=function(e){var t=this,n=this.getDefaultAccountProfileId(e);return console.log("getInitialAccountFees accProfileId = "+n),this.configurationService.getAccountCreateFeeType(n).pipe(Object(r.a)((function(e){t.fees=e,console.log("getInitialAccountFees->"+JSON.stringify(t.fees))}),(function(e){console.log("error in getInitialAccountFees: "+e)})))},e.prototype.getCardType=function(e){var t=new RegExp("^4");return null!=e.match(t)?1:/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(e)?2:(t=new RegExp("^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}"),null!=e.match(t)?3:(t=new RegExp("^3[47]"),null!=e.match(t)?4:(t=new RegExp("^36"),null!=e.match(t)?5:(t=new RegExp("^30[0-5]"),null!=e.match(t)?5:(t=new RegExp("^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)"),null!=e.match(t)?7:(t=new RegExp("^35(2[89]|[3-8][0-9])"),null!=e.match(t)?9:0))))))},e.prototype.isDebug=function(){var e=!1;return("host="+window.location.host).indexOf("localhost:4200")>0&&(e=!0),e},e.prototype.getMaskedCardNumber=function(e){return'00000000"0000'+e.slice(12)},e.prototype.filterTollCategories=function(e){if(this.isMackinac()){var t=new Array,n=new Array,o=e.length,r=void 0;for(r=0;r<o;r++)n[e[r].GroupName]||(n[e[r].GroupName]=!0,t.push(e[r]));return t}return e},e.prototype.parseAmount=function(e){var t="";if(e){var n="";this.isMackinac()?t+="$":this.isAttiki()&&(n="CR","gr"===this.themeService.GetClientLanguage()&&(n="\u03a0"),t+="&euro;"),t+=e<0?(-e).toString()+n:e.toString()}return t},e.prototype.stopIdleService=function(){console.log("stopIdleService Now: "+this.dateTimeService.getTimeString(new Date)),this.idle.stop(),this.idle.onTimeout.observers.length=0,this.idle.onIdleStart.observers.length=0,this.idle.onIdleEnd.observers.length=0,this.idle.onInterrupt.observers.length=0,this.idle.onTimeout.observers.length=0,this.idle.onTimeoutWarning.observers.length=0},e.prototype.initIdleService=function(){var e=this,t=this.themeService.active.SessionTimeOut;if(this.localstorageService.check(i.e))try{var n=this.localstorageService.getItem(i.e),r=this.helper.getTokenExpirationDate(n),c=new Date;r-c>0&&(t=Math.ceil((r-c)/1e3))}catch(a){console.log(a)}console.log("Idle Timeout set to "+t+" sec; Now: "+this.dateTimeService.getTimeString(new Date)),this.idle.setIdle(t),this.idle.setTimeout(10),this.idle.setInterrupts(o.a),this.idle.onTimeout.subscribe((function(){console.log("Idle Tiemout logout: URL"+e.router.url+"; Now: "+e.dateTimeService.getTimeString(new Date)),e.router.url.includes("/Signup")||e.router.url.includes("/login")||e.router.url.includes("/message/msg")||e.router.url.includes("/ActivateWebAccount")||e.router.url.includes("/ForgotPassword")?e.idle.watch():(e.authService.logout(),e.router.navigate(["/login"]),e.stopIdleService())})),this.idle.onInterrupt.subscribe((function(){e.authService.updateCurrentUserTokenExpiry(e.themeService.active.RestoreLoginTokenPeriod)})),this.idle.watch()},e.prototype.loadGlobalData=function(){var e=this;this.configurationService.getCountries().subscribe((function(t){e.globals.countries=t})),this.configurationService.getProvinces().subscribe((function(t){e.globals.provinces=t})),this.configurationService.getTollCategories().subscribe((function(t){e.globals.tollCategories=t})),this.configurationService.getAccountProfiles().subscribe((function(t){e.globals.accountProfiles=t}))},e.prototype.isUrl=function(e){return"/"===e.charAt(0)},e.prototype.isLink=function(e){return!e.SubLinks},e.\u0275fac=function(t){return new(t||e)(p.dc(l.a),p.dc(a.a),p.dc(d.a),p.dc(o.b),p.dc(s.a),p.dc(f.f),p.dc(c.a),p.dc(u.a))},e.\u0275prov=p.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},y4uT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){var e=this;this.dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,this.dateFormatOffset=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}-\d{2}:\d{2}$/,this.dateFormatUTC=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/,this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.monthNamesShort=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],this.monthNamesGreek=["01","02","03","04","05","06","07","08","09","10","11","12"],this.reviver=function(t,n){var o;return"string"==typeof n&&e.dateFormat.test(n)||"string"==typeof n&&e.dateFormatOffset.test(n)?(o=n.split(/\D+/),new Date(parseInt(o[0],10),parseInt(o[1],10)-1,parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseInt(o[5],10))):"string"==typeof n&&e.dateFormatUTC.test(n)?(o=n.split(/\D+/),new Date(Date.UTC(parseInt(o[0],10),parseInt(o[1],10)-1,parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseInt(o[5],10)))):new Date(n)}}return e.prototype.getTimeString=function(e){return null==e?"":("0"+(e=this.reviver(0,e)).getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)},e.prototype.getShortDateString=function(e){return null==e?"":(e=this.reviver(0,e),this.monthNamesShort[e.getMonth()]+" "+e.getDate()+" "+e.getFullYear())},e.prototype.getMackinaShortDateString=function(e){if(null==e)return"";var t=(e=this.reviver(0,e)).getDate().toString().padStart(2,"0");return this.monthNamesGreek[e.getMonth()]+"/"+t+"/"+e.getFullYear()},e.prototype.getMonthYearDateString=function(e){return null==e?"":(e=this.reviver(0,e),this.monthNames[e.getMonth()-1]+"-"+e.getFullYear())},e.prototype.getGreekDateString=function(e){return null==e?"":(e=this.reviver(0,e)).getDate().toString().padStart(2,"0")+"/"+this.monthNamesGreek[e.getMonth()]+"/"+e.getFullYear()},e.prototype.getDateString=function(e){return null==e?"":(e=this.reviver(0,e),this.monthNames[e.getMonth()]+" "+e.getDate()+" "+e.getFullYear())},e.prototype.getShortDateTimeString=function(e){return this.getShortDateString(e)+" "+this.getTimeString(e)},e.prototype.getMackinacShortDateTimeString=function(e){return this.getMackinaShortDateString(e)+" "+this.getTimeString(e)},e.prototype.getGreekDateTimeString=function(e){return this.getGreekDateString(e)+" "+this.getTimeString(e)},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},zUnb:function(e,t,n){"use strict";n.r(t),n("TyUM");var o=n("Iq5M"),r=n("YgGK"),i=(n("Jqtf"),n("EVwY")),c=n("fwXJ"),a=n("Bc94"),s=function(){function e(e){this.recaptchaV3Service=e,this.gToken="",this.googleRecaptchCode="6LcO6rUUAAAAAMk5wCfxZTYq1ITI1VNR96o2mAtI"}return e.prototype.refresh=function(e){var t=this,n=new i.a;if(""===this.googleRecaptchCode)return Object(c.a)(!0);var o=setTimeout((function(){n.error("gRCaptch1:Unable to verify"),n.complete()}),5e3);return this.recaptchaV3Service.execute(this.googleRecaptchCode,e,(function(e){e?(clearTimeout(o),t.gToken=e,n.next(!0),n.complete()):(n.error("gRCaptch2:Unable to verify"),n.complete())}),{useGlobalDomain:!1}),n.asObservable()},e.prototype.ngOnDestroy=function(){this.gTokenSubscription&&this.gTokenSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(o.dc(a.b))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),l=n("LStN"),u=n("3ukZ"),d=n("RlrJ"),b=n("iLUd"),p=n("hLhj"),f=n("oIEy"),h=function(){function e(e){this.router=e}return e.prototype.canLoad=function(e,t){return-1!==location.hostname.indexOf("localhost")||(this.router.navigate(["/login"]),!1)},e.\u0275fac=function(t){return new(t||e)(o.dc(f.f))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),g=n("iOcS"),m=n("HKMU"),v=n("svWY"),y=n("ca4W"),U=n("4aas"),V=n("LBVs"),T=n("e+XA"),I=n("pZWF"),C=n("Tm5P"),S=n("RAK1"),P=["accountDetailForm"];function A(e,t){1&e&&o.Qb(0,"i",11)}function M(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",12),o.hc("click",(function(){return o.Jc(n),o.lc(2).editAccount()})),o.Qb(1,"i",13),o.Tc(2),o.mc(3,"translate"),o.Ub()}2&e&&(o.Bb(2),o.Vc("",o.nc(3,1,"EDIT_ACCOUNT")," "))}function w(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",14),o.hc("click",(function(){return o.Jc(n),o.lc(2).cancel()})),o.Tc(1),o.mc(2,"translate"),o.Ub()}2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"CANCEL")," "))}function R(e,t){1&e&&o.Qb(0,"i",18)}function B(e,t){1&e&&o.Qb(0,"i",19)}function O(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",15),o.hc("click",(function(){return o.Jc(n),o.lc(2).saveAccountDetails()})),o.Rc(1,R,1,0,"i",16),o.Rc(2,B,1,0,"i",17),o.Tc(3),o.mc(4,"translate"),o.Ub()}if(2&e){var r=o.lc(2),i=o.Gc(1);o.uc("disabled",!i.valid),o.Bb(1),o.uc("ngIf",!r.saving),o.Bb(1),o.uc("ngIf",r.saving),o.Bb(1),o.Vc("",o.nc(4,4,"SAVE_CHANGES")," ")}}function E(e,t){if(1&e&&(o.Vb(0,"div",3),o.Vb(1,"div",4),o.Vb(2,"h5",5),o.Vb(3,"div"),o.Vb(4,"b"),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",6),o.Rc(8,A,1,0,"i",7),o.Rc(9,M,4,3,"button",8),o.Rc(10,w,3,3,"button",9),o.Rc(11,O,5,6,"button",10),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Wc("",o.nc(6,6,"ACCOUNT")," (",null==n.account?null:n.account.AccountID,")"),o.Bb(3),o.uc("ngIf",n.isLoading),o.Bb(1),o.uc("ngIf",!n.canEditAccount()),o.Bb(1),o.uc("ngIf",n.canEditAccount()),o.Bb(1),o.uc("ngIf",n.canEditAccount())}}function k(e,t){1&e&&(o.Vb(0,"div",3),o.Vb(1,"div",20),o.Vb(2,"h5"),o.Vb(3,"a",21),o.Vb(4,"b"),o.Tc(5,"Account Agreement"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub())}function x(e,t){if(1&e&&(o.Vb(0,"option",58),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.NameId),o.Bb(1),o.Vc(" ",o.nc(2,2,n.Name)," ")}}function N(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"FIRST_NAME_REQUIRED")))}function _(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,N,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function D(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"LAST_NAME_REQUIRED")))}function L(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,D,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(13);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function q(e,t){1&e&&(o.Vb(0,"div",78),o.Tc(1," Low Balance Threshold required. "),o.Ub())}function F(e,t){if(1&e&&(o.Vb(0,"div",76),o.Rc(1,q,2,0,"div",77),o.Ub()),2&e){o.lc();var n=o.Gc(9);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function j(e,t){1&e&&(o.Vb(0,"div",79),o.Vb(1,"p"),o.Tc(2,"Amount should be greater than $20"),o.Ub(),o.Ub())}function J(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",25),o.Vb(1,"div",67),o.Vb(2,"label",68),o.Tc(3,"Low Balance Threshold"),o.Ub(),o.Vb(4,"div",69),o.Vb(5,"div",70),o.Vb(6,"div",71),o.Tc(7),o.Ub(),o.Ub(),o.Vb(8,"input",72,73),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(3).accountBalanceWarning=e})),o.Ub(),o.Ub(),o.Ub(),o.Rc(10,F,2,1,"div",74),o.Rc(11,j,3,0,"div",75),o.Ub()}if(2&e){var r=o.Gc(9),i=o.lc(3);o.Bb(7),o.Vc(" ",i.configService.GetCurrencyCode()," "),o.Bb(1),o.uc("readonly",!i.canEditAccount())("disabled",!i.canEditAccount())("ngModel",i.accountBalanceWarning),o.Bb(2),o.uc("ngIf",i.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(1),o.uc("ngIf",null==r||null==r.errors?null:r.errors.min)}}function G(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"div",25),o.Vb(2,"label",59),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"input",60,61),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.FirstName=e})),o.Ub(),o.Rc(7,_,2,1,"div",36),o.Ub(),o.Vb(8,"div",25),o.Vb(9,"label",62),o.Tc(10),o.mc(11,"translate"),o.Ub(),o.Vb(12,"input",63,64),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.LastName=e})),o.Ub(),o.Rc(14,L,2,1,"div",36),o.Ub(),o.Rc(15,J,12,6,"div",65),o.Ub()}if(2&e){var r=o.Gc(6),i=o.Gc(13),c=o.lc(2);o.Bb(3),o.Vc(" ",o.nc(4,11,"FIRST_NAME"),""),o.Bb(2),o.uc("readonly",!c.canEditAccount())("ngModel",c.account.FirstName)("disabled",!c.canEditAccount()||c.accountMode!=c.AccountMode.Create),o.Bb(2),o.uc("ngIf",c.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(3),o.Uc(o.nc(11,13,"LAST_NAME")),o.Bb(2),o.uc("readonly",!c.canEditAccount())("ngModel",c.account.LastName)("disabled",!c.canEditAccount()||c.accountMode!=c.AccountMode.Create),o.Bb(2),o.uc("ngIf",c.canEditAccount()&&i.invalid&&(i.dirty||i.touched)),o.Bb(1),o.uc("ngIf",c.accountMode!=c.AccountMode.Create)}}function W(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"BUSINESS_NAME_REQUIRED")))}function Q(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,W,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(6);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function Y(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CONTACT_FIRST_NAME_REQUIED")))}function H(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,Y,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(15);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function z(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CONTACT_LAST_NAME_REQUIED")))}function $(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,z,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(22);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function K(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CONTACT_TITLE_REQUIED")))}function Z(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,K,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(29);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function X(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CONTACT_NUMBER_REQUIRED")))}function ee(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CONTACT_NUMBER_REQUIRED_19_CHARACTERS")))}function te(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,X,4,3,"div",30),o.Rc(2,ee,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(38);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function ne(e,t){1&e&&(o.Vb(0,"div",78),o.Tc(1," Low Balance Threshold required. "),o.Ub())}function oe(e,t){if(1&e&&(o.Vb(0,"div",76),o.Rc(1,ne,2,0,"div",77),o.Ub()),2&e){o.lc();var n=o.Gc(9);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function re(e,t){1&e&&(o.Vb(0,"div",79),o.Vb(1,"p"),o.Tc(2,"Amount should be greater than $20"),o.Ub(),o.Ub())}function ie(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",25),o.Vb(1,"div",67),o.Vb(2,"label",68),o.Tc(3,"Low Balance Threshold"),o.Ub(),o.Vb(4,"div",69),o.Vb(5,"div",70),o.Vb(6,"div",71),o.Tc(7),o.Ub(),o.Ub(),o.Vb(8,"input",98,73),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(3).accountBalanceWarning=e})),o.Ub(),o.Ub(),o.Ub(),o.Rc(10,oe,2,1,"div",74),o.Rc(11,re,3,0,"div",75),o.Ub()}if(2&e){var r=o.Gc(9),i=o.lc(3);o.Bb(7),o.Vc(" ",i.configService.GetCurrencyCode()," "),o.Bb(1),o.uc("readonly",!i.canEditAccount())("disabled",!i.canEditAccount())("ngModel",i.accountBalanceWarning),o.Bb(2),o.uc("ngIf",i.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(1),o.uc("ngIf",i.BalanceViolation>i.accountBalanceWarning||(null==r||null==r.errors?null:r.errors.min))}}function ce(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"div",25),o.Vb(2,"label",62),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"input",63,64),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.LastName=e})),o.Ub(),o.Rc(7,Q,2,1,"div",36),o.Ub(),o.Vb(8,"div",25),o.Vb(9,"div",3),o.Vb(10,"div",80),o.Vb(11,"label",81),o.Tc(12),o.mc(13,"translate"),o.Ub(),o.Vb(14,"input",82,83),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.ContactPersonFirstName=e})),o.Ub(),o.Rc(16,H,2,1,"div",36),o.Ub(),o.Vb(17,"div",80),o.Vb(18,"label",84),o.Tc(19),o.mc(20,"translate"),o.Ub(),o.Vb(21,"input",85,86),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.ContactPersonLastName=e})),o.Ub(),o.Rc(23,$,2,1,"div",36),o.Ub(),o.Ub(),o.Ub(),o.Vb(24,"div",25),o.Vb(25,"label",87),o.Tc(26),o.mc(27,"translate"),o.Ub(),o.Vb(28,"input",88,89),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.ContactPersonTitle=e})),o.Ub(),o.Rc(30,Z,2,1,"div",36),o.Ub(),o.Vb(31,"div",25),o.Vb(32,"div",3),o.Vb(33,"div",90),o.Vb(34,"label",91),o.Tc(35),o.mc(36,"translate"),o.Ub(),o.Vb(37,"input",92,93),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.PhoneBusinessContact=e})),o.Ub(),o.Rc(39,te,3,2,"div",36),o.Ub(),o.Vb(40,"div",94),o.Vb(41,"label",95),o.Tc(42),o.mc(43,"translate"),o.Ub(),o.Vb(44,"input",96,97),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).account.PhoneBusinessContactExt=e})),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Rc(46,ie,12,6,"div",65),o.Ub()}if(2&e){var r=o.Gc(6),i=o.Gc(15),c=o.Gc(22),a=o.Gc(29),s=o.Gc(38),l=o.lc(2);o.Bb(3),o.Uc(o.nc(4,28,"BUSINESS_NAME")),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.LastName)("disabled",!l.canEditAccount()||l.accountMode!=l.AccountMode.Create),o.Bb(2),o.uc("ngIf",l.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(5),o.Vc(" ",o.nc(13,30,"CONTACT_FIRST_NAME")," "),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.ContactPersonFirstName)("disabled",!l.canEditAccount()||l.accountMode!=l.AccountMode.Create),o.Bb(2),o.uc("ngIf",l.canEditAccount()&&i.invalid&&(i.dirty||i.touched)),o.Bb(3),o.Vc(" ",o.nc(20,32,"CONTACT_LAST_NAME")," "),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.ContactPersonLastName)("disabled",!l.canEditAccount()||l.accountMode!=l.AccountMode.Create),o.Bb(2),o.uc("ngIf",l.canEditAccount()&&c.invalid&&(c.dirty||c.touched)),o.Bb(3),o.Uc(o.nc(27,34,"CONTACT_TITLE")),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.ContactPersonTitle),o.Bb(2),o.uc("ngIf",l.canEditAccount()&&a.invalid&&(a.dirty||a.touched)),o.Bb(5),o.Vc(" ",o.nc(36,36,"CONTACT_NUMBER")," "),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.PhoneBusinessContact)("showMaskTyped",!0),o.Bb(2),o.uc("ngIf",l.canEditAccount()&&s.invalid&&(s.dirty||s.touched)),o.Bb(3),o.Uc(o.nc(43,38,"EXT")),o.Bb(2),o.uc("readonly",!l.canEditAccount())("ngModel",l.account.PhoneBusinessContactExt),o.Bb(2),o.uc("ngIf",l.accountMode!=l.AccountMode.Create)}}function ae(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"PRIMARY_NUMBER_REQUIRED")))}function se(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"PRIMARY_NUMBER_REQUIRED_19_CHARACTERS")))}function le(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,ae,4,3,"div",30),o.Rc(2,se,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(28);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function ue(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"EMAIL_ADDRESS_REQUIRED")))}function de(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"EMAIL_ADDRESS_REQUIRED_80_CHARACTERS")))}function be(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"EMAIL_ADDRESS_INVALID")))}function pe(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,ue,4,3,"div",30),o.Rc(2,de,4,3,"div",30),o.Rc(3,be,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(61);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.pattern)}}function fe(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"SECONDARY_EMAIL_ADDRESS_REQUIRED_80_CHARACTERS")))}function he(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"SECONDARY_EMAIL_ADDRESS_INVALID")))}function ge(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,fe,4,3,"div",30),o.Rc(2,he,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(68);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.pattern)}}function me(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",22),o.Vb(1,"div",23),o.Vb(2,"label",24),o.Vb(3,"b"),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Ub(),o.Vb(6,"div",25),o.Vb(7,"div",3),o.Vb(8,"div",26),o.Vb(9,"label",27),o.Tc(10),o.mc(11,"translate"),o.Ub(),o.Vb(12,"select",28),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.AccountType=e}))("ngModelChange",(function(){return o.Jc(n),o.lc().onChangeAccType()})),o.Rc(13,x,3,4,"option",29),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Rc(14,G,16,15,"div",30),o.Rc(15,ce,47,40,"div",30),o.Ub(),o.Vb(16,"div",23),o.Vb(17,"label",31),o.Vb(18,"b"),o.Tc(19),o.mc(20,"translate"),o.Ub(),o.Ub(),o.Vb(21,"div",25),o.Vb(22,"div",3),o.Vb(23,"div",32),o.Vb(24,"label",33),o.Tc(25),o.mc(26,"translate"),o.Ub(),o.Vb(27,"input",34,35),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.PrimaryPhone=e})),o.Ub(),o.Rc(29,le,3,2,"div",36),o.Ub(),o.Vb(30,"div",37),o.Vb(31,"label",38),o.Tc(32),o.mc(33,"translate"),o.Ub(),o.Vb(34,"input",39,40),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.PrimaryPhoneExt=e})),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(36,"div",25),o.Vb(37,"div",3),o.Vb(38,"div",32),o.Vb(39,"label",41),o.Tc(40),o.mc(41,"translate"),o.Ub(),o.Vb(42,"input",42,43),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.AlternatePhone=e})),o.Ub(),o.Ub(),o.Vb(44,"div",37),o.Vb(45,"label",44),o.Tc(46),o.mc(47,"translate"),o.Ub(),o.Vb(48,"input",45,46),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.AlternatePhoneExt=e})),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(50,"div",25),o.Vb(51,"label",47),o.Tc(52),o.mc(53,"translate"),o.Ub(),o.Vb(54,"input",48,49),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MobilePhone=e})),o.Ub(),o.Ub(),o.Vb(56,"div",25),o.Vb(57,"label",50),o.Tc(58),o.mc(59,"translate"),o.Ub(),o.Vb(60,"input",51,52),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.Email=e}))("keydown.space",(function(e){return o.Jc(n),e.preventDefault()})),o.Ub(),o.Rc(62,pe,4,3,"div",36),o.Ub(),o.Vb(63,"div",25),o.Vb(64,"label",50),o.Tc(65),o.mc(66,"translate"),o.Ub(),o.Vb(67,"input",53,54),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.AltEmail=e}))("keydown.space",(function(e){return o.Jc(n),e.preventDefault()})),o.Ub(),o.Rc(69,ge,3,2,"div",36),o.Ub(),o.Vb(70,"div",25),o.Vb(71,"label",55),o.Tc(72),o.mc(73,"translate"),o.Ub(),o.Vb(74,"input",56,57),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.Fax=e})),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(28),i=o.Gc(61),c=o.Gc(68),a=o.lc();o.Bb(4),o.Uc(o.nc(5,39,"ACCOUNT")),o.Bb(6),o.Uc(o.nc(11,41,"ACCOUNT_TYPE")),o.Bb(2),o.uc("disabled",!a.canEditAccount()||a.accountMode!=a.AccountMode.Create)("ngModel",a.account.AccountType),o.Bb(1),o.uc("ngForOf",a.accountTypeOptions),o.Bb(1),o.uc("ngIf","P"==a.account.AccountType),o.Bb(1),o.uc("ngIf","B"==a.account.AccountType),o.Bb(4),o.Vc(" ",o.nc(20,43,"CONTACT")," "),o.Bb(6),o.Uc(o.nc(26,45,a.primaryPhoneLabel)),o.Bb(2),o.uc("readonly",!a.canEditAccount())("showMaskTyped",!0)("ngModel",a.account.PrimaryPhone),o.Bb(2),o.uc("ngIf",a.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(3),o.Vc(" ",o.nc(33,47,"EXT"),""),o.Bb(2),o.uc("readonly",!a.canEditAccount())("ngModel",a.account.PrimaryPhoneExt),o.Bb(6),o.Uc(o.nc(41,49,a.altPhoneLabel)),o.Bb(2),o.uc("readonly",!a.canEditAccount())("showMaskTyped",!0)("ngModel",a.account.AlternatePhone),o.Bb(4),o.Uc(o.nc(47,51,"EXT")),o.Bb(2),o.uc("readonly",!a.canEditAccount())("ngModel",a.account.AlternatePhoneExt),o.Bb(4),o.Uc(o.nc(53,53,"MOBILE")),o.Bb(2),o.uc("showMaskTyped",!0)("readonly",!a.canEditAccount())("ngModel",a.account.MobilePhone),o.Bb(4),o.Uc(o.nc(59,55,"EMAIL_ADDRESS")),o.Bb(2),o.uc("readonly",!a.canEditAccount())("ngModel",a.account.Email),o.Bb(2),o.uc("ngIf",a.canEditAccount()&&i.invalid&&(i.dirty||i.touched)),o.Bb(3),o.Vc(" ",o.nc(66,57,"SECONDARY_EMAIL_ADDRESS")," "),o.Bb(2),o.uc("readonly",!a.canEditAccount())("ngModel",a.account.AltEmail),o.Bb(2),o.uc("ngIf",a.canEditAccount()&&c.invalid&&(c.dirty||c.touched)),o.Bb(3),o.Uc(o.nc(73,59,"FAX")),o.Bb(2),o.uc("readonly",!a.canEditAccount())("showMaskTyped",!0)("ngModel",a.account.Fax)}}function ve(e,t){1&e&&(o.Vb(0,"div",3),o.Qb(1,"div",99),o.Ub())}function ye(e,t){if(1&e&&(o.Vb(0,"option",58),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Uc(o.nc(2,2,n.Name))}}function Ue(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"MAILING_ADDRESS_REQUIRED")))}function Ve(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"MAILING_ADDRESS_REQUIRED_100_CHARACTERS")))}function Te(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,Ue,4,3,"div",30),o.Rc(2,Ve,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(17);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function Ie(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CITY_REQUIRED")))}function Ce(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CITY_REQUIRED_30_CHARACTERS")))}function Se(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,Ie,4,3,"div",30),o.Rc(2,Ce,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(26);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function Pe(e,t){if(1&e&&(o.Vb(0,"optgroup"),o.Vb(1,"option",58),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngValue",n.preferedProvinceId),o.Bb(1),o.Vc(" ",o.nc(3,2,n.preferedProvinceName)," ")}}function Ae(e,t){if(1&e&&(o.Vb(0,"option",58),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.Name)," ")}}function Me(e,t){if(1&e&&(o.Vb(0,"optgroup",132),o.Rc(1,Ae,3,4,"option",29),o.mc(2,"orderBy"),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngForOf",o.pc(2,1,n.mailingProvinces,n.order,!1))}}function we(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"POSTAL_CODE_REQUIRED")))}function Re(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2," Invalid"),o.Ub(),o.Ub())}function Be(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,we,4,3,"div",30),o.Rc(2,Re,3,0,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(40);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.pattern)}}function Oe(e,t){if(1&e&&(o.Vb(0,"option",58),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc("",o.nc(2,2,n.Name)," ")}}function Ee(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"BILLING_ADDRESS_REQUIRED")))}function ke(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,Ee,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(66);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function xe(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"BILLING_CITY_REQUIRED")))}function Ne(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,xe,4,3,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(75);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function _e(e,t){if(1&e&&(o.Vb(0,"optgroup"),o.Vb(1,"option",58),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngValue",n.billingPreferedProvinceId),o.Bb(1),o.Vc(" ",o.nc(3,2,n.billingPreferedProvinceName)," ")}}function De(e,t){if(1&e&&(o.Vb(0,"option",58),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",o.nc(2,2,n.Name)," ")}}function Le(e,t){if(1&e&&(o.Vb(0,"optgroup",133),o.Rc(1,De,3,4,"option",29),o.mc(2,"orderBy"),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngForOf",o.pc(2,1,n.bilingProvinces,n.order,!1))}}function qe(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"BILLING_POSTAL_CODE_REQUIRED")))}function Fe(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2,"Invalid"),o.Ub(),o.Ub())}function je(e,t){if(1&e&&(o.Vb(0,"div",66),o.Rc(1,qe,4,3,"div",30),o.Rc(2,Fe,3,0,"div",30),o.Ub()),2&e){o.lc();var n=o.Gc(89);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.pattern)}}function Je(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",22),o.Vb(1,"div",23),o.Vb(2,"label",31),o.Vb(3,"b"),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Ub(),o.Vb(6,"div",25),o.Vb(7,"label",100),o.Tc(8),o.mc(9,"translate"),o.Ub(),o.Vb(10,"select",101),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MailingCountryID=e}))("ngModelChange",(function(e){return o.Jc(n),o.lc().onMailingCountryChange(e)})),o.Rc(11,ye,3,4,"option",29),o.Ub(),o.Ub(),o.Vb(12,"div",25),o.Vb(13,"label",102),o.Tc(14),o.mc(15,"translate"),o.Ub(),o.Vb(16,"input",103,104),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MailingAddress=e})),o.Ub(),o.Rc(18,Te,3,2,"div",36),o.Ub(),o.Vb(19,"div",25),o.Vb(20,"div",3),o.Vb(21,"div",80),o.Vb(22,"label",105),o.Tc(23),o.mc(24,"translate"),o.Ub(),o.Vb(25,"input",106,107),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MailingCity=e})),o.Ub(),o.Rc(27,Se,3,2,"div",36),o.Ub(),o.Vb(28,"div",80),o.Vb(29,"label",108),o.Tc(30),o.mc(31,"translate"),o.Ub(),o.Vb(32,"select",109),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MailingProvinceID=e})),o.Rc(33,Pe,4,4,"optgroup",30),o.Rc(34,Me,3,5,"optgroup",110),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(35,"div",25),o.Vb(36,"label",111),o.Tc(37),o.mc(38,"translate"),o.Ub(),o.Vb(39,"input",112,113),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.MailingPostalCode=e})),o.Ub(),o.Rc(41,Be,3,2,"div",36),o.Ub(),o.Ub(),o.Vb(42,"div",114),o.Vb(43,"div",3),o.Vb(44,"div",37),o.Vb(45,"label",31),o.Vb(46,"b"),o.Tc(47),o.mc(48,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Vb(49,"div",32),o.Vb(50,"div",115),o.Vb(51,"label",116),o.Vb(52,"input",117),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().sameBillingAsMailingChecked=e}))("change",(function(){return o.Jc(n),o.lc().sameBillingAsMailingChanged()})),o.Ub(),o.Tc(53),o.mc(54,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(55,"div",25),o.Vb(56,"label",118),o.Tc(57),o.mc(58,"translate"),o.Ub(),o.Vb(59,"select",119),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.BillingCountryID=e}))("ngModelChange",(function(e){return o.Jc(n),o.lc().onBillingCountryChange(e)})),o.Rc(60,Oe,3,4,"option",29),o.Ub(),o.Ub(),o.Vb(61,"div",25),o.Vb(62,"label",120),o.Tc(63),o.mc(64,"translate"),o.Ub(),o.Vb(65,"input",121,122),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.BillingAddress=e})),o.Ub(),o.Rc(67,ke,2,1,"div",36),o.Ub(),o.Vb(68,"div",25),o.Vb(69,"div",3),o.Vb(70,"div",80),o.Vb(71,"label",123),o.Tc(72),o.mc(73,"translate"),o.Ub(),o.Vb(74,"input",124,125),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.BillingCity=e})),o.Ub(),o.Rc(76,Ne,2,1,"div",36),o.Ub(),o.Vb(77,"div",80),o.Vb(78,"label",126),o.Tc(79),o.mc(80,"translate"),o.Ub(),o.Vb(81,"select",127),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.BillingProvinceID=e})),o.Rc(82,_e,4,4,"optgroup",30),o.Rc(83,Le,3,5,"optgroup",128),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(84,"div",25),o.Vb(85,"label",129),o.Tc(86),o.mc(87,"translate"),o.Ub(),o.Vb(88,"input",130,131),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().account.BillingPostalCode=e})),o.Ub(),o.Rc(90,je,3,2,"div",36),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(17),i=o.Gc(26),c=o.Gc(40),a=o.Gc(66),s=o.Gc(75),l=o.Gc(89),u=o.lc();o.Bb(4),o.Vc(" ",o.nc(5,49,"MAILING_ADDRESS")," "),o.Bb(4),o.Vc(" ",o.nc(9,51,"COUNTRY"),""),o.Bb(2),o.uc("disabled",!u.canEditAccount())("ngModel",u.account.MailingCountryID),o.Bb(1),o.uc("ngForOf",u.countryOptions),o.Bb(3),o.Vc(" ",o.nc(15,53,"ADDRESS")," "),o.Bb(2),o.uc("readonly",!u.canEditAccount())("ngModel",u.account.MailingAddress),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&r.invalid&&(r.dirty||r.touched)),o.Bb(5),o.Vc(" ",o.nc(24,55,"CITY"),""),o.Bb(2),o.uc("readonly",!u.canEditAccount())("ngModel",u.account.MailingCity),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&i.invalid&&(i.dirty||i.touched)),o.Bb(3),o.Uc(o.nc(31,57,u.provinceLabel)),o.Bb(2),o.uc("disabled",!u.canEditAccount())("ngModel",u.account.MailingProvinceID),o.Bb(1),o.uc("ngIf",u.preferedProvinceId),o.Bb(1),o.uc("ngIf",u.mailingProvinces.length>0),o.Bb(3),o.Uc(o.nc(38,59,u.postalCodeLabel)),o.Bb(2),o.uc("readonly",!u.canEditAccount())("ngModel",u.account.MailingPostalCode)("pattern",u.getPostalCodePattern(u.account.MailingCountryID)),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&c.invalid&&(c.dirty||c.touched)),o.Bb(6),o.Vc(" ",o.nc(48,61,"BILLING_ADDRESS")," "),o.Bb(5),o.uc("disabled",!u.canEditAccount()||u.isMailingAddressValid)("ngModel",u.sameBillingAsMailingChecked),o.Bb(1),o.Vc(" ",o.nc(54,63,"SAME_AS_MAILING_ADDRESS")," "),o.Bb(4),o.Vc(" ",o.nc(58,65,"COUNTRY")," "),o.Bb(2),o.uc("disabled",!u.canEditAccount()||u.sameBillingAsMailingChecked)("ngModel",u.account.BillingCountryID),o.Bb(1),o.uc("ngForOf",u.countryOptions),o.Bb(3),o.Vc(" ",o.nc(64,67,"ADDRESS")," "),o.Bb(2),o.uc("readonly",!u.canEditAccount()||u.sameBillingAsMailingChecked)("ngModel",u.account.BillingAddress),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&a.invalid&&(a.dirty||a.touched)),o.Bb(5),o.Uc(o.nc(73,69,"CITY")),o.Bb(2),o.uc("readonly",!u.canEditAccount()||u.sameBillingAsMailingChecked)("ngModel",u.account.BillingCity),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&s.invalid&&(s.dirty||s.touched)),o.Bb(3),o.Uc(o.nc(80,71,u.provinceLabel)),o.Bb(2),o.uc("disabled",!u.canEditAccount()||u.sameBillingAsMailingChecked)("ngModel",u.account.BillingProvinceID),o.Bb(1),o.uc("ngIf",u.billingPreferedProvinceId),o.Bb(1),o.uc("ngIf",u.bilingProvinces.length>0),o.Bb(3),o.Uc(o.nc(87,73,u.postalCodeLabel)),o.Bb(2),o.uc("readonly",!u.canEditAccount()||u.sameBillingAsMailingChecked)("ngModel",u.account.BillingPostalCode)("pattern",u.getPostalCodePattern(u.account.BillingCountryID)),o.Bb(2),o.uc("ngIf",u.canEditAccount()&&l.invalid&&(l.dirty||l.touched))}}var Ge=function(e){return e[e.View=0]="View",e[e.Edit=1]="Edit",e[e.Create=2]="Create",e}({}),We=function(e){return e[e.Personal=0]="Personal",e[e.Address=1]="Address",e}({}),Qe=function(){function e(e,t,n,r,i,c,a){this.formBuilder=e,this.accountService=t,this.configService=n,this.databaseMapService=r,this.alertService=i,this.utilsService=c,this._document=a,this.AccountMode=Ge,this.AccountCreateMode=We,this.feesChanged=new o.n,this.sameBillingAsMailingChecked=!1,this.accountDocuments=new g.b,this.primaryPhoneLabel="PRIMARY_NUMBER",this.altPhoneLabel="SECONDARY_PHONE_NUMBER",this.provinceLabel="STATE_PROVINCE",this.postalCodeLabel="ZIP_POSTAL_CODE",this.preferedProvinceName="",this.mailingProvinces=[],this.bilingProvinces=[],this.billingPreferedProvinceName="",this.isMailingAddressValid=!0,this.saving=!1,this.accountBalanceWarning=0,this.BalanceViolation=0,this.order="Name",this.isLoading=!1,this.subs=new y.a,this.account=new g.a,this.accountTypeOptions=new Array;for(var s=Object.keys(this.databaseMapService.eAccountTypeMap),l=0;l<s.length;l++)"O"!==s[l]&&this.accountTypeOptions.push({NameId:s[l],Name:this.databaseMapService.eAccountTypeMap[s[l]]});this.accountSubTypeOptions=new Array;var u=Object.keys(this.databaseMapService.eAccountSubTypeMap);for(l=0;l<u.length;l++)u[l]!==u[this.databaseMapService.eAccountSubTypeMap.Employee]&&this.accountSubTypeOptions.push({NameId:this.databaseMapService.eAccountSubTypeMap[u[l]],Name:u[l]})}return e.prototype.ngOnInit=function(){var e=this;this.primaryPhoneLabel="PRIMARY_NUMBER",this.altPhoneLabel="SECONDARY_PHONE_NUMBER",this.provinceLabel="STATE_PROVINCE",this.postalCodeLabel="ZIP_POSTAL_CODE",this.configService.getCountries().subscribe((function(t){e.countryOptions=t,t&&e.accountMode===Ge.Create&&(e.account.MailingCountryID=t.find((function(e){return"USA"===e.Name})).Id),e.refreshCountries(),e.subs.add(e.configService.getProvinces().subscribe((function(t){e.provinceOptions=t,e.refreshProvinces(),e.subs.add(e.configService.getAccountProfiles(e.accountMode&&e.accountMode===Ge.Create).subscribe((function(t){e.accountProfileOptions=t,e.refreshAccountProfiles(),e.accountMode!==Ge.Create?e.getAccount():e.account=new g.a})))})))})),this.utilsService.isDebug()},e.prototype.ngAfterViewInit=function(){var e=this;this.account.AccountID=this.accountService.getLocalSelectedAccountID(),this.subs.add(this.accountDetailForm.valueChanges.subscribe((function(){e.isMailingAddressValid=!1,e.accountDetailForm.controls.mailAddress&&!e.isMailingAddressValid&&(e.isMailingAddressValid=!e.accountDetailForm.controls.mailAddress.valid),e.accountDetailForm.controls.mailPostalCode&&(e.isMailingAddressValid=!(e.accountDetailForm.controls.mailPostalCode.valid&&!e.isMailingAddressValid)),e.accountDetailForm.controls.mailCity&&(e.isMailingAddressValid=!(e.accountDetailForm.controls.mailCity.valid&&!e.isMailingAddressValid))})))},e.prototype.ngOnChanges=function(){this.refreshProvinces(),this.refreshAccountProfiles(),this.accountService.signUpAccount=this.account},e.prototype.onChangeAccType=function(){var e=this;this.account.AccountProfileID=this.utilsService.getDefaultAccountProfileId(this.account.AccountType),-1!==this.account.AccountProfileID&&this.subs.add(this.configService.getAccountCreateFeeType(this.account.AccountProfileID).subscribe((function(t){t.TransponderAssignFee=t.TransponderAssignFee-1,e.feesChanged.emit(t)}),(function(e){console.log("error in onChangeAccType: "+e)})))},e.prototype.onMailingCountryChange=function(e){var t=this;if(e&&null!=this.countryOptions){this.sameBillingAsMailingChecked&&this.accountMode===Ge.Create&&this.sameBillingAsMailingChanged();var n=this.countryOptions.find((function(t){return t.Id===e}));if(this.mailingProvinces=this.filterProvinces(e),"USA"===n.Name){var o=this.mailingProvinces.find((function(e){return"Michigan"===e.Name})),r=this.mailingProvinces.find((function(e){return e.Id===t.account.MailingProvinceID}));o?(this.preferedProvinceId=o.Id,this.preferedProvinceName=o.Name,this.accountDetailForm.controls.mailProvince.setValue(r&&r.Id!==o.Id?r.Id:o.Id,{onlySelf:!0}),Object(v.remove)(this.mailingProvinces,(function(e){return e.Id===o.Id}))):this.mailingProvinces.length>0&&(this.account.MailingProvinceID=this.mailingProvinces[0].Id)}else{var i=this.mailingProvinces.find((function(e){return"Ontario"===e.Name}));r=this.mailingProvinces.find((function(e){return e.Id===t.account.MailingProvinceID})),i?(this.preferedProvinceId=i.Id,this.preferedProvinceName=i.Name,this.accountDetailForm.controls.mailProvince.setValue(r&&r.Id!==i.Id?r.Id:i.Id,{onlySelf:!0}),Object(v.remove)(this.mailingProvinces,(function(e){return e.Id===i.Id}))):this.mailingProvinces.length>0&&(this.account.MailingProvinceID=this.mailingProvinces[0].Id)}}},e.prototype.onBillingCountryChange=function(e){var t=this;if(e){var n=this.countryOptions.find((function(t){return t.Id===e}));if(this.bilingProvinces=this.filterProvinces(e),"USA"===n.Name){var o=this.bilingProvinces.find((function(e){return"Michigan"===e.Name})),r=this.mailingProvinces.find((function(e){return e.Id===t.account.BillingProvinceID}));o?(this.billingPreferedProvinceId=o.Id,this.billingPreferedProvinceName=o.Name,this.accountDetailForm.controls.billProvince.setValue(r&&r.Id!==o.Id?r.Id:o.Id,{onlySelf:!0}),Object(v.remove)(this.bilingProvinces,(function(e){return e.Id===o.Id}))):this.bilingProvinces.length>0&&(this.account.MailingProvinceID=this.bilingProvinces[0].Id)}else{var i=this.bilingProvinces.find((function(e){return"Ontario"===e.Name}));r=this.mailingProvinces.find((function(e){return e.Id===t.account.BillingProvinceID})),i?(this.billingPreferedProvinceId=i.Id,this.billingPreferedProvinceName=i.Name,this.accountDetailForm.controls.billProvince.setValue(r&&r.Id!==i.Id?r.Id:i.Id,{onlySelf:!0}),Object(v.remove)(this.bilingProvinces,(function(e){return e.Id===i.Id}))):this.bilingProvinces.length>0&&(this.account.MailingProvinceID=this.bilingProvinces[0].Id)}}},e.prototype.sameBillingAsMailingChanged=function(){this.account.SameBillingAsMailingAddress=this.sameBillingAsMailingChecked,this.sameBillingAsMailingChecked?(this.onBillingCountryChange(this.accountDetailForm.value.mailCountry),this.accountDetailForm.controls.billCountry.setValue(this.accountDetailForm.value.mailCountry,{onlySelf:!0}),this.accountDetailForm.controls.billAddress.setValue(this.accountDetailForm.value.mailAddress,{onlySelf:!0}),this.accountDetailForm.controls.billCity.setValue(this.accountDetailForm.value.mailCity,{onlySelf:!0}),this.accountDetailForm.controls.billProvince.setValue(this.accountDetailForm.value.mailProvince,{onlySelf:!0}),this.accountDetailForm.controls.billPostalCode.setValue(this.accountDetailForm.value.mailPostalCode,{onlySelf:!0}),this.billingPreferedProvinceId=this.preferedProvinceId,this.billingPreferedProvinceName=this.preferedProvinceName):(this.accountDetailForm.controls.billCountry.setValue(void 0),this.accountDetailForm.controls.billAddress.setValue(null),this.accountDetailForm.controls.billCity.setValue(null),this.accountDetailForm.controls.billProvince.setValue(null),this.accountDetailForm.controls.billPostalCode.setValue(null),this.billingPreferedProvinceId=null,this.billingPreferedProvinceName=" ")},e.prototype.refreshProvinces=function(){var e=this;if(null!=this.account&&null!=this.provinceOptions){var t=this.provinceOptions.findIndex((function(t){return t.Id===e.account.MailingProvinceID}));t>=0&&(this.account.MailingProvinceID=this.provinceOptions[t].Id);var n=this.provinceOptions.findIndex((function(t){return t.Id===e.account.BillingProvinceID}));n>=0&&(this.account.BillingProvinceID=this.provinceOptions[n].Id)}},e.prototype.refreshCountries=function(){var e=this;if(null!=this.account&&null!=this.countryOptions){var t=this.account.MailingCountryID,n=this.account.BillingCountryID,o=this.countryOptions.findIndex((function(t){return t.Id===e.account.MailingCountryID}));o>=0&&(this.account.MailingCountryID=this.countryOptions[o].Id);var r=this.countryOptions.findIndex((function(t){return t.Id===e.account.BillingCountryID}));r>=0&&(this.account.BillingCountryID=this.countryOptions[r].Id),console.log("refreshCountries: MailingCountryID: ["+t+"]->["+this.account.MailingCountryID+"]; BillingCountryID: ["+n+"]->["+this.account.BillingCountryID+"] ")}},e.prototype.refreshAccountProfiles=function(){var e=this;if(null!=this.account&&null!=this.accountProfileOptions){var t=this.accountProfileOptions.findIndex((function(t){return t.Id===e.account.AccountProfileID}));t>=0&&(this.account.AccountProfileID=this.accountProfileOptions[t].Id)}},e.prototype.getAccount=function(){var e=this;this.isLoading=!0,this.subs.add(this.accountService.getActiveAccount().subscribe((function(t){e.account=t,0!==e.account.MailingProvinceID&&null!=e.account.MailingProvinceID||(e.account.MailingProvinceID=1),0!==e.account.BillingProvinceID&&null!=e.account.BillingProvinceID||(e.account.BillingProvinceID=1),e.account.SameBillingAsMailingAddress&&(e.account.BillingCountryID=e.account.MailingCountryID,e.account.BillingAddress=e.account.MailingAddress,e.account.BillingCity=e.account.MailingCity,e.account.BillingProvinceID=e.account.MailingProvinceID,e.account.BillingPostalCode=e.account.MailingPostalCode),e.accountBalanceWarning=0,e.accountBalanceWarning=-1*e.account.BalanceWarning,e.sameBillingAsMailingChecked=e.account.SameBillingAsMailingAddress,e.BalanceViolation=1===Math.sign(e.account.BalanceViolation)?0:e.account.BalanceViolation;try{e.refreshProvinces(),e.refreshAccountProfiles(),e.onMailingCountryChange(e.account.MailingCountryID),e.onBillingCountryChange(e.account.BillingCountryID)}catch(n){}e.isLoading=!1}),(function(t){e.isLoading=!1,console.log("error in GetAccount: "+t)})))},e.prototype.editAccount=function(){this.alertService.clear(),this.accountMode=Ge.Edit},e.prototype.canEditAccount=function(){return this.accountMode===Ge.Create||this.accountMode===Ge.Edit},e.prototype.saveAccountDetails=function(){var e=this;this.saving=!0,this.account.BalanceWarning=this.accountBalanceWarning,this.subs.add(this.accountService.updateAccountInformation(this.account).subscribe((function(){e.subs.add(e.accountService.loadActiveAccount(e.account.AccountID).subscribe((function(){e.saving=!1,e.alertService.success("Account was successfully updated!",!0),e.accountMode=Ge.View})))}),(function(t){e.saving=!1,e.alertService.error(t,!1)})))},e.prototype.cancel=function(){var e=this;this.subs.add(this.accountService.loadActiveAccount(this.account.AccountID).subscribe((function(){e.accountMode=Ge.View})))},e.prototype.filterProvinces=function(e){return this.provinceOptions.filter((function(t){return t.CountryId===e&&"Government"!==t.Name}))},e.prototype.getPostalCodePattern=function(e){if(this.countryOptions){var t=this.countryOptions.find((function(t){return t.Id===e}));return void 0!==t?"USA"===t.Name?"(\\d{5}([\\-]\\d{4})?)":"Canada"===t.Name?"[A-Za-z][0-9][A-Za-z]* ?[0-9][A-Za-z][0-9]":"":""}return""},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(o.Pb(d.d),o.Pb(g.c),o.Pb(g.l),o.Pb(g.n),o.Pb(g.e),o.Pb(g.J),o.Pb(m.d))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-account-detail-info"]],viewQuery:function(e,t){var n;1&e&&o.Yc(P,!0),2&e&&o.Fc(n=o.ic())&&(t.accountDetailForm=n.first)},inputs:{accountMode:"accountMode",accountCreateMode:"accountCreateMode"},outputs:{feesChanged:"feesChanged"},features:[o.zb],decls:7,vars:5,consts:[["accountDetailForm","ngForm"],["class","row",4,"ngIf"],["class","row py-3",4,"ngIf"],[1,"row"],[1,"col-6"],[1,"mb-3"],[1,"col-6","text-right"],["class","fa fa-2x fa-spinner fa-pulse align-middle pr-3",4,"ngIf"],["class","btn btn-app-primary float-right","InActiveAccount","",3,"click",4,"ngIf"],["class","btn mx-3",3,"click",4,"ngIf"],["class","btn btn-app-primary",3,"disabled","click",4,"ngIf"],[1,"fa","fa-2x","fa-spinner","fa-pulse","align-middle","pr-3"],["InActiveAccount","",1,"btn","btn-app-primary","float-right",3,"click"],["aria-hidden","true",1,"fa","fa-pencil-square-o","pr-1"],[1,"btn","mx-3",3,"click"],[1,"btn","btn-app-primary",3,"disabled","click"],["class","fa fa-save pr-1","aria-hidden","true",4,"ngIf"],["class","fa fa-spinner fa-pulse align-middle pr-1","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"fa","fa-save","pr-1"],["aria-hidden","true",1,"fa","fa-spinner","fa-pulse","align-middle","pr-1"],[1,"col"],["href","api/Account/AccountAgreement","target","noopener noreferrer"],[1,"row","py-3"],[1,"col-lg-6","px-md-4"],[1,"col-form-label","col-form-label-sm","account-label"],[1,"form-group"],[1,"col-sm-6"],["for","accountType",1,"col-form-label","col-form-label-sm"],["id","accountType","name","accountType","required","",1,"form-control","form-control-sm",3,"disabled","ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[4,"ngIf"],["for","name",1,"col-form-label","col-form-label-sm","account-label"],[1,"col-sm-8"],["for","primaryPhone",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","primaryPhone","placeholder","(000) 000-0000","mask","(000) 000-0000","name","primaryPhone","maxlength","19","onDrag","return false","onDrop","return false","onPaste","return false","required","",1,"form-control","form-control-sm",3,"readonly","showMaskTyped","ngModel","ngModelChange"],["primaryP","ngModel"],["class","text-danger fade show pl-2","role","alert",4,"ngIf"],[1,"col-sm-4"],["for","primaryPhoneE",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","primaryPhoneE","name","primaryPhoneE","maxlength","5","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm","inline-block",3,"readonly","ngModel","ngModelChange"],["primaryPE","ngModel"],["for","altPhone",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","altPhone","placeholder","(000) 000-0000","mask","(000) 000-0000","name","altPhone","maxlength","19","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","showMaskTyped","ngModel","ngModelChange"],["altP","ngModel"],["for","altPhoneE",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","altPhoneE","name","altPE","maxlength","5","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm","inline-block",3,"readonly","ngModel","ngModelChange"],["altPE","ngModel"],["for","mobile",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"placeholder","(000) 000-0000","mask","(000) 000-0000","id","mobile","name","mobile","maxlength","19","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"showMaskTyped","readonly","ngModel","ngModelChange"],["mobi","ngModel"],["for","email",1,"col-form-label","col-form-label-sm"],["type","email","id","email","name","email","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","required","","maxlength","80",1,"form-control","form-control-sm",3,"readonly","ngModel","ngModelChange","keydown.space"],["emailA","ngModel"],["type","email","id","alt-email","aria-label","alt-email","name","alt-email","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","maxlength","80",1,"form-control","form-control-sm",3,"readonly","ngModel","ngModelChange","keydown.space"],["emailB","ngModel"],["for","fax",1,"col-form-label","col-form-label-sm"],["type","text","id","fax","placeholder","(000) 000-0000","mask","(000) 000-0000","name","fax","maxlength","19","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","showMaskTyped","ngModel","ngModelChange"],["faxN","ngModel"],[3,"ngValue"],["for","firstName",1,"col-form-label","col-form-label-sm"],["type","text","id","firstName","name","firstName","maxlength","50","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","ngModel","disabled","ngModelChange"],["firstN","ngModel"],["for","lastName",1,"col-form-label","col-form-label-sm"],["type","text","id","lastName","name","lastName","maxlength","60","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","ngModel","disabled","ngModelChange"],["lastN","ngModel"],["class","form-group",4,"ngIf"],["role","alert",1,"text-danger","fade","show","pl-2"],[1,"col-12","px-0"],["for","lowBalance",1,"col-form-label","col-form-label-sm"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],["id","lowBalance","name","lowBalance","type","number","min","0","oninput","validity.valid||(value='');","onCopy","return false","onDrag","return false","onDrop","return\n                false","onPaste","return false","autocomplete","off","required","",1,"form-control",3,"readonly","disabled","ngModel","ngModelChange"],["lowBalance","ngModel"],["class","tex-danger fade show pl-2","role","alert",4,"ngIf"],["class","text-danger pt-2 pl-1",4,"ngIf"],["role","alert",1,"tex-danger","fade","show","pl-2"],["class","text-danger pt-2",4,"ngIf"],[1,"text-danger","pt-2"],[1,"text-danger","pt-2","pl-1"],[1,"col","col-sm-6"],["for","contactFirstName",1,"col-form-label","col-form-label-sm"],["type","text","id","contactFirstName","name","contactFirstName","maxlength","60","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","ngModel","disabled","ngModelChange"],["contactFirstName","ngModel"],["for","contactLastName",1,"col-form-label","col-form-label-sm"],["type","text","id","contactLastName","name","contactLastName","maxlength","60","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","ngModel","disabled","ngModelChange"],["contactLastName","ngModel"],["for","contactTitle",1,"col-form-label","col-form-label-sm"],["type","text","id","contactTitle","name","contactTitle","maxlength","60","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"readonly","ngModel","ngModelChange"],["contactTitle","ngModel"],[1,"col","col-sm-8"],["for","contactPhone",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","contactPhone","name","contactPhone","maxlength","19","placeholder","(000) 000-0000","mask","(000) 000-0000","onDrag","return false","onDrop","return false","onPaste","return false","required","",1,"form-control","form-control-sm",3,"readonly","ngModel","showMaskTyped","ngModelChange"],["contactPhone","ngModel"],[1,"col","col-sm-4"],["for","contactPhoneE",1,"col-form-label","col-form-label-sm"],["type","text","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"id","contactPhoneE","name","contactPhoneE","maxlength","5","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm","inline-block",3,"readonly","ngModel","ngModelChange"],["contactPhoneE","ngModel"],["id","lowBalance","name","lowBalance","type","number","required","","required","",1,"form-control",3,"readonly","disabled","ngModel","ngModelChange"],[1,"col",2,"border-bottom","1px solid #ccc"],["for","mailCountry",1,"col-form-label","col-form-label-sm"],["id","mailCountry","name","mailCountry","required","",1,"form-control","form-control-sm",3,"disabled","ngModel","ngModelChange"],["for","mailAddress",1,"col-form-label","col-form-label-sm"],["type","text","id","mailAddress","name","mailAddress","maxlength","100","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","ngModelChange"],["mailA","ngModel"],["for","mailCity",1,"col-form-label","col-form-label-sm"],["type","text","id","mailCity","name","mailCity","maxlength","30","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","ngModelChange"],["mailC","ngModel"],["for","mailProvince",1,"col-form-label","col-form-label-sm"],["id","mailProvince","name","mailProvince","required","",1,"form-control","form-control-sm","mb-1",3,"disabled","ngModel","ngModelChange"],["label","_______________________",4,"ngIf"],["for","mailPostalCode",1,"col-form-label","col-form-label-sm"],["type","text","id","mailPostalCode","name","mailPostalCode","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","pattern","ngModelChange"],["mailPC","ngModel"],[1,"col-lg-6","px-4"],[1,"form-check","form-check-inline","float-sm-right"],[1,"form-check-label","form-check-label-sm"],["type","checkbox","name","billing",1,"form-check-input","mb-1",3,"disabled","ngModel","ngModelChange","change"],["for","billCountry",1,"col-form-label","col-form-label-sm"],["id","billCountry","name","billCountry","required","",1,"form-control","form-control-sm","mb-1",3,"disabled","ngModel","ngModelChange"],["for","billAddress",1,"col-form-label","col-form-label-sm"],["type","text","id","billAddress","name","billAddress","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","ngModelChange"],["billAd","ngModel"],["for","billCity",1,"col-form-label","col-form-label-sm"],["type","text","id","billCity","name","billCity","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","ngModelChange"],["billC","ngModel"],["for","billProvince",1,"col-form-label","col-form-label-sm"],["id","billProvince","name","billProvince","required","",1,"form-control","form-control-sm","mb-1",3,"disabled","ngModel","ngModelChange"],["label","__________________",4,"ngIf"],["for","billPostalCode",1,"col-form-label","col-form-label-sm"],["type","text","id","billPostalCode","name","billPostalCode","onkeypress","return event.charCode != 32 || event.target.selectionStart != 0","onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm","mb-1",3,"readonly","ngModel","pattern","ngModelChange"],["billPC","ngModel"],["label","_______________________"],["label","__________________"]],template:function(e,t){1&e&&(o.Vb(0,"form",null,0),o.Rc(2,E,12,8,"div",1),o.Rc(3,k,6,0,"div",1),o.Rc(4,me,76,61,"div",2),o.Rc(5,ve,2,0,"div",1),o.Rc(6,Je,91,75,"div",2),o.Ub()),2&e&&(o.Bb(2),o.uc("ngIf",t.accountMode!=t.AccountMode.Create),o.Bb(1),o.uc("ngIf",t.accountMode!=t.AccountMode.Create),o.Bb(1),o.uc("ngIf",t.accountMode!=t.AccountMode.Create||t.accountCreateMode==t.AccountCreateMode.Personal),o.Bb(1),o.uc("ngIf",t.accountMode!=t.AccountMode.Create),o.Bb(1),o.uc("ngIf",t.accountMode!=t.AccountMode.Create||t.accountCreateMode==t.AccountCreateMode.Address))},directives:[d.z,d.o,d.p,m.n,U.a,d.w,d.v,d.n,d.q,m.m,V.a,d.c,d.i,T.a,d.t,d.r,d.y,d.s,I.c,d.a],pipes:[C.c,S.b],styles:["input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"]}),e}(),Ye=function(){function e(){this.AccountMode=Ge}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Jb({type:e,selectors:[["app-account-detail"]],decls:6,vars:4,consts:[[1,"section-header","mb-4"],[1,"mx-4"],[3,"accountMode"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub(),o.Vb(4,"div",1),o.Qb(5,"app-account-detail-info",2),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,2,"ACCOUNT_DETAILS")),o.Bb(3),o.uc("accountMode",t.AccountMode.View))},directives:[Qe],pipes:[C.c],styles:[".account-label[_ngcontent-%COMP%]{font-weight:700}input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"]}),e}(),He=n("RBRZ"),ze=n.n(He),$e=n("8ach"),Ke=n.n($e),Ze=n("VlDB"),Xe=n("gz2M");function et(e,t){1&e&&(o.Vb(0,"div",12),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"ACCOUNT")))}function tt(e,t){if(1&e&&(o.Vb(0,"div",16),o.Vb(1,"div"),o.Vb(2,"b"),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Vb(5,"div"),o.Tc(6),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(3),o.Uc(o.nc(4,2,"ACCOUNT_PROFILE")),o.Bb(3),o.Uc(null==n.account?null:n.account.AccountProfile)}}function nt(e,t){if(1&e&&(o.Vb(0,"form",13),o.Vb(1,"div",14),o.Vb(2,"div",15),o.Vb(3,"div",16),o.Vb(4,"div"),o.Vb(5,"b"),o.Tc(6),o.mc(7,"translate"),o.Ub(),o.Ub(),o.Vb(8,"div",17),o.Vb(9,"span"),o.Tc(10),o.mc(11,"currency"),o.Ub(),o.Ub(),o.Ub(),o.Vb(12,"div",16),o.Vb(13,"div"),o.Vb(14,"b"),o.Tc(15),o.mc(16,"translate"),o.Ub(),o.Ub(),o.Vb(17,"div"),o.Tc(18),o.mc(19,"translate"),o.mc(20,"mapType"),o.Ub(),o.Ub(),o.Rc(21,tt,7,4,"div",18),o.Ub(),o.Vb(22,"div",15),o.Vb(23,"div",16),o.Vb(24,"div"),o.Vb(25,"b"),o.Tc(26),o.mc(27,"translate"),o.Ub(),o.Ub(),o.Vb(28,"div"),o.Tc(29),o.mc(30,"currency"),o.mc(31,"dateTimeFormatter"),o.Ub(),o.Ub(),o.Vb(32,"div",16),o.Vb(33,"div"),o.Vb(34,"b"),o.Tc(35),o.mc(36,"translate"),o.Ub(),o.Ub(),o.Vb(37,"div"),o.Tc(38),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(6),o.Uc(o.nc(7,11,"BALANCE")),o.Bb(2),o.uc("ngClass",n.parseAmount(null==n.account?null:n.account.AccountBalance)>0?"text-success":"text-danger"),o.Bb(2),o.Uc(o.oc(11,13,n.parseAmount(null==n.account?null:n.account.AccountBalance),n.configService.config.DefaultCurrency)),o.Bb(5),o.Uc(o.nc(16,16,"ACCOUNT_STATUS")),o.Bb(3),o.Vc(" ",o.nc(19,18,o.oc(20,20,null==n.account?null:n.account.AccountStatus,"eAccountStatusMap"))," "),o.Bb(3),o.uc("ngIf",!1),o.Bb(5),o.Uc(o.nc(27,23,"LAST_PAYMENT")),o.Bb(3),o.Wc(" ",o.oc(30,25,n.parseAmount(null==n.account?null:n.account.LastPaymentAmount),n.configService.config.DefaultCurrency)," on ",o.nc(31,28,null==n.account?null:n.account.LastPaymentDateTime)," "),o.Bb(6),o.Uc(o.nc(36,30,"TOTAL_TAGS")),o.Bb(3),o.Uc(n.transpondersCount)}}function ot(e,t){1&e&&(o.Vb(0,"div",19),o.Qb(1,"i",20),o.Ub())}function rt(e,t){1&e&&(o.Vb(0,"div",21),o.Vb(1,"a",22),o.Tc(2),o.mc(3,"translate"),o.Qb(4,"i",23),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Vc("",o.nc(3,1,"ACCOUNT_DETAILS")," "))}function it(e,t){if(1&e&&(o.Vb(0,"div",24),o.Vb(1,"div",25),o.Vb(2,"span"),o.Tc(3,"Current Balance"),o.Ub(),o.Vb(4,"h1",17),o.Tc(5),o.mc(6,"currency"),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(4),o.uc("ngClass",n.parseAmount(null==n.account?null:n.account.AccountBalance)>0?"text-success":"text-danger"),o.Bb(1),o.Vc(" ",o.oc(6,2,n.parseAmount(null==n.account?null:n.account.AccountBalance),n.configService.config.DefaultCurrency)," ")}}ze.a.extend(Ke.a);var ct=function(){function e(e,t,n){this.accountService=e,this.authService=t,this.configService=n,this.transactions=[],this.isLoading=!0,this.ePassList=[],this.GRITList=[],this.LastTransactionDateTime=null,this.uniqEPassList=[],this.transactionCountCollection=Object.create(null),this.transponderList=[],this.bdate=new Date,this.bdate.setHours(0,0,0,0),this.edate=new Date,this.bdate.setHours(0,0,0,0)}return e.prototype.ngOnInit=function(){var e=this;this.accountSub=this.accountService.getActiveAccount().subscribe((function(t){e.authService.loggedIn()&&(e.webUser=e.accountService.getCurrentUser(),e.account=t,e.loadData())}))},e.prototype.loadData=function(){this.getTransponderVehicleInfo(),this.getAccountProfileInfo(),this.getCurrentUser()},e.prototype.getTransponderVehicleInfo=function(){var e=this;void 0!==this.account&&this.accountService.getTransponderVehicleInfo(this.account.AccountID).subscribe((function(t){e.transponderList=t,t.length>0&&(e.selectedTransponder=t[0]),e.transpondersCount=t.length}),(function(e){console.log("error in GetTransponderVehicleInfo: "+e)}))},e.prototype.getAccountRecentActivities=function(){var e=this;this.isLoading=!0;var t={BeginLDateTime:ze()().utc().startOf("month").toDate(),EndLDateTime:ze()().utc().endOf("day").toDate(),BeginLDateTimeStr:ze()().utc().startOf("month").toDate().toString(),EndLDateTimeStr:ze()().utc().endOf("day").toDate().toString(),AccountId:this.accountService.getActiveAccountInfo().AccountID};this.accountService.getAccountRecentActivities(t).subscribe((function(t){e.isLoading=!1,e.transactions=t,e.transponderList.forEach((function(t){var n;n=e.transactions.filter((function(e){return e.TransponderId===t.TransponderId})).length,e.transactionCountCollection[t.TransponderId]=n})),e.UpdateSelectedTransponder()}),(function(e){console.log("error in GetAccount: "+e)}))},e.prototype.UpdateSelectedTransponder=function(){var e=this,t=Object(v.orderBy)(this.transactions,(function(e){return ze()(e.TransactionLDateTime).toDate()}),"desc").filter((function(t){return t.TransponderId===e.selectedTransponder.TransponderId}));this.ePassList=this.transactions.filter((function(t){return"Y"!==t.PlazaExternal&&t.TransponderId===e.selectedTransponder.TransponderId})),this.GRITList=this.transactions.filter((function(t){return"Y"===t.PlazaExternal&&t.TransponderId===e.selectedTransponder.TransponderId})),t.length>0?(this.LastTransactionDateTime=ze()(Object(v.last)(t).TransactionLDateTime).toDate(),this.noLastTransactionDateTime=!0):this.noLastTransactionDateTime=!1},e.prototype.parseAmount=function(e){return-e},e.prototype.getAccountCount=function(e){return this.transactions.filter((function(t){return t.TransponderId===e})).length},e.prototype.getAccountProfileInfo=function(){var e=this;this.configService.getAccountProfiles(!1).subscribe((function(t){e.accountProfileOptions=t}))},e.prototype.isBalanceGood=function(){},e.prototype.getCurrentUser=function(){this.webUser=this.accountService.getCurrentUser(),console.log("ACSM: UserProfile: "+JSON.stringify(this.webUser)+"LL: "+this.webUser.LastLoginDateTime)},e.prototype.ngOnDestroy=function(){void 0!==this.accountSub&&this.accountSub.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.c),o.Pb(g.i),o.Pb(g.l))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-account-summary"]],inputs:{integrated:"integrated"},decls:16,vars:10,consts:[["class","section-header mb-4",4,"ngIf"],[1,"h-100","mx-4"],[1,"row","mt-2","h-100","border-line-right"],[1,"col-lg-8","col-md-12",2,"border-right","1px solid #EEEEEE"],[1,"pb-3",2,"border-bottom","1px solid #EEEEEE"],[1,"pl-1"],["class","mt-2",4,"ngIf"],["class","text-center mb-3 loader",4,"ngIf"],["class","pull-right",4,"ngIf"],[1,"col-lg-4","col-md-12","text-center","d-flex","align-items-center"],[1,"text-center","w-100"],["class","card",4,"ngIf"],[1,"section-header","mb-4"],[1,"mt-2"],[1,"row"],[1,"col-6"],[1,"my-3"],[3,"ngClass"],["class","my-3",4,"ngIf"],[1,"text-center","mb-3","loader"],["aria-hidden","true",1,"fa","fa-4x","fa-spinner","fa-pulse","align-middle"],[1,"pull-right"],["href","#","routerLink","/AccountDetail",1,"text-primary"],["aria-hidden","true",1,"fas","fa","fa-caret-right"],[1,"card"],[1,"card-body"]],template:function(e,t){1&e&&(o.Rc(0,et,4,3,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"div",4),o.Vb(5,"h4"),o.Vb(6,"b"),o.Tc(7),o.Ub(),o.Ub(),o.Vb(8,"span",5),o.Tc(9),o.Ub(),o.Ub(),o.Rc(10,nt,39,32,"form",6),o.Rc(11,ot,2,0,"div",7),o.Rc(12,rt,5,3,"div",8),o.Ub(),o.Vb(13,"div",9),o.Vb(14,"div",10),o.Rc(15,it,7,5,"div",11),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.uc("ngIf",!t.integrated),o.Bb(1),o.Hb("container",!t.integrated),o.Bb(6),o.Wc("",null==t.account?null:t.account.FirstName," ",null==t.account?null:t.account.LastName,""),o.Bb(2),o.Vc(" ",null==t.account?null:t.account.AccountID,""),o.Bb(1),o.uc("ngIf",t.account),o.Bb(1),o.uc("ngIf",!t.account),o.Bb(1),o.uc("ngIf",!t.integrated),o.Bb(3),o.uc("ngIf",t.account))},directives:[m.n,d.z,d.o,d.p,m.l,f.i],pipes:[C.c,m.c,Ze.a,Xe.a],styles:[".account-label[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{color:#1479cf;color:var(--secondary-color)}.red-circle[_ngcontent-%COMP%]{width:200px;height:200px;border-radius:50%;font-size:15px;font-weight:700;color:#fff;line-height:200px;text-align:center;background:#c82333;border:2px solid #000}.border-line-right[_ngcontent-%COMP%]{border-bottom:1px solid #eee}.green-circle[_ngcontent-%COMP%]{color:#fff;background:green}.green-circle[_ngcontent-%COMP%], .yellow-circle[_ngcontent-%COMP%]{width:200px;height:200px;border-radius:50%;font-size:15px;font-weight:700;line-height:200px;text-align:center;border:2px solid #000}.yellow-circle[_ngcontent-%COMP%]{color:#000;background:#ffc630}"]}),e}(),at=n("qro9"),st=n("VXZa"),lt=n("t7bY"),ut=n("jOUA"),dt=n("kpJz"),bt=n("6jvO"),pt=n("2DJ5"),ft=function(){function e(){}return e.MatchPassword=function(e){if(e.get("password").value===e.get("confirmPassword").value)return e.get("confirmPassword").setErrors(null),null;e.get("confirmPassword").setErrors({MatchPassword:!0})},e.patternValidator=function(e,t){return function(n){return n.value?e.test(n.value)?null:t:null}},e}();function ht(e,t){1&e&&(o.Vb(0,"div",27),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"CHANGE_PASSWORD")))}function gt(e,t){if(1&e&&(o.Vb(0,"div",14),o.Vb(1,"label",28),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Qb(4,"input",29),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.Vc(" ",o.nc(3,2,"USERNAME"),""),o.Bb(2),o.vc("value",null==n.accountParams?null:n.accountParams.UserLogonId)}}function mt(e,t){1&e&&o.Qb(0,"span",32)}var vt=function(e){return{"is-valid":e}};function yt(e,t){if(1&e&&(o.Vb(0,"div",14),o.Vb(1,"label",28),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Qb(4,"input",30),o.mc(5,"translate"),o.Rc(6,mt,1,0,"span",31),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.Vc(" ",o.nc(3,4,"USERNAME"),""),o.Bb(2),o.vc("placeholder",o.nc(5,6,"USERNAME")),o.uc("ngClass",o.zc(8,vt,n.validUsername)),o.Bb(2),o.uc("ngIf",n.checkingUserName)}}function Ut(e,t){if(1&e&&(o.Vb(0,"div",14),o.Vb(1,"label",28),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Qb(4,"input",33),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.Vc(" ",o.nc(3,2,"EMAIL"),""),o.Bb(2),o.vc("value",null==n.accountParams?null:n.accountParams.Email)}}function Vt(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"i",35),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"ENTER_USERNAME")," "))}function Tt(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"i",35),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"UNIQUE_USERNAME")," "))}function It(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"i",35),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"NO_SPACE")," "))}function Ct(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"i",35),o.Tc(2),o.Ub(),o.Tc(3," Unable to verify the username "),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"))}function St(e,t){if(1&e&&(o.Vb(0,"label",34),o.Rc(1,Vt,5,4,"div",21),o.Rc(2,Tt,5,4,"div",21),o.Rc(3,It,5,4,"div",21),o.Rc(4,Ct,4,1,"div",21),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",null==n.form.controls.userName.errors?null:n.form.controls.userName.errors.minlength),o.Bb(1),o.uc("ngIf",null==n.form.controls.userName.errors?null:n.form.controls.userName.errors.unique),o.Bb(1),o.uc("ngIf",null==n.form.controls.userName.errors?null:n.form.controls.userName.errors.whiteSpace),o.Bb(1),o.uc("ngIf",null==n.form.controls.userName.errors?null:n.form.controls.userName.errors.unverfied)}}function Pt(e,t){1&e&&(o.Vb(0,"div",36),o.Vb(1,"div",37),o.Vb(2,"div",14),o.Vb(3,"label",15),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Qb(6,"input",38),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(4),o.Vc(" ",o.nc(5,1,"CURRENT_PASSWORD"),""))}function At(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"PASSWORD_INVALID")," "))}function Mt(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"PASSWORD_NOT_MATCH")," "))}function wt(e,t){if(1&e&&(o.Vb(0,"div",39),o.Rc(1,At,3,3,"span",21),o.Rc(2,Mt,3,3,"span",21),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",n.form.controls.password.dirty&&(null==n.form.controls.password.errors?null:n.form.controls.password.errors.pattern)),o.Bb(1),o.uc("ngIf",(n.form.controls.confirmPassword.dirty||n.form.controls.confirmPassword.touched)&&(null==n.form.controls.confirmPassword.errors?null:n.form.controls.confirmPassword.errors.MatchPassword))}}function Rt(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"div",9),o.Vb(2,"label",40),o.Vb(3,"i",35),o.Tc(4),o.Ub(),o.Tc(5),o.Ub(),o.Vb(6,"label",40),o.Vb(7,"i",35),o.Tc(8),o.Ub(),o.Tc(9," Must contain at least 1 number! "),o.Ub(),o.Vb(10,"label",40),o.Vb(11,"i",35),o.Tc(12),o.Ub(),o.Tc(13," Must contain at least 1 in Capital Case! "),o.Ub(),o.Vb(14,"label",40),o.Vb(15,"i",35),o.Tc(16),o.Ub(),o.Tc(17," Must contain at least 1 Letter in Small Case! "),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.uc("ngClass",n.form.controls.password.hasError("required")||n.form.controls.password.hasError("minlength")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.form.controls.password.hasError("required")||n.form.controls.password.hasError("minlength")?"cancel":"check_circle"),o.Bb(1),o.Vc(" ",n.labelPasswordMustBeAtLeastNChars," "),o.Bb(1),o.uc("ngClass",n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasNumber")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasNumber")?"cancel":"check_circle"),o.Bb(2),o.uc("ngClass",n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasCapitalCase")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasCapitalCase")?"cancel":"check_circle"),o.Bb(2),o.uc("ngClass",n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasSmallCase")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.form.controls.password.hasError("required")||n.form.controls.password.hasError("hasSmallCase")?"cancel":"check_circle")}}function Bt(e,t){1&e&&o.Qb(0,"i",43)}function Ot(e,t){if(1&e&&(o.Vb(0,"button",41),o.Tc(1),o.mc(2,"translate"),o.Rc(3,Bt,1,0,"i",42),o.Ub()),2&e){var n=o.lc();o.uc("disabled",!n.form.valid),o.Bb(1),o.Vc(" ",o.nc(2,3,"CHANGE_PASSWORD")," "),o.Bb(2),o.uc("ngIf",n.isLoading)}}function Et(e,t){1&e&&(o.Vb(0,"div",44),o.Tc(1),o.mc(2,"translate"),o.Vb(3,"button",45),o.Vb(4,"span",46),o.Tc(5,"\xd7"),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"PASSWORD_UPDATE_MSG")," "))}function kt(e,t){1&e&&(o.Vb(0,"div",47),o.Tc(1),o.mc(2,"translate"),o.Vb(3,"button",45),o.Vb(4,"span",46),o.Tc(5,"\xd7"),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"PASSWORD_UPDATE_FAILED_MSG")," "))}function xt(e,t){1&e&&(o.Vb(0,"div",48),o.Vb(1,"a",49),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"LOG_IN")))}var Nt=function(){function e(e,t,n,o,r,i,c,a){this.userService=t,this.webAccessService=n,this.route=o,this.utilsService=r,this.translateService=i,this.authService=c,this.router=a,this.linkExpired=!1,this.passwordRecovery=!1,this.validUsername=!1,this.integrated=!1,this.signup=!1,this.showUsername=!0,this.hideCurrentPassword=!1,this.checkingUserName=!1,this.message="",this.form=e.group({userName:["",[d.x.required,d.x.pattern(/^\S*$/),this.checkSpace.bind(this)],this.checkUsername.bind(this)],password:["",[d.x.required,d.x.pattern("^(?!.* )(?=.{8,})(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*$"),ft.patternValidator(/\d/,{hasNumber:!0}),ft.patternValidator(/[A-Z]/,{hasCapitalCase:!0}),ft.patternValidator(/[a-z]/,{hasSmallCase:!0}),d.x.minLength(8)]],confirmPassword:["",d.x.required]},{validator:ft.MatchPassword})}return e.prototype.ngOnInit=function(){var e=this;"ChangePassword"===this.router.url.split("/")[1]&&(this.showUsername=!1,this.form.removeControl("userName"),this.router.url.split("/")[2]||(this.hideCurrentPassword=!0,this.form.addControl("currentPassword",new d.e("",d.x.required)))),this.passwordSuccess=!1,this.passwordFailure=!1,this.route.params.subscribe((function(t){null==t.accessCode?e.user=e.userService.getCurrentUser():(e.user=new g.H,e.getDecryptedCode(t.accessCode),e.passwordRecovery=!0)})),this.utilsService.isDebug()&&(this.form.get("confirmPassword").setValue("Whatever1"),this.form.get("password").setValue("Whatever1")),this.labelPasswordMustBeAtLeastNChars="Must be at least 6 characters!",this.labelPasswordMustBeAtLeastNChars="Must be at least 8 characters!",this.translateService.get("PASSWORD_MBA_FIRST_REQUIREMENTS").subscribe((function(t){e.passwordPolicy=t}))},e.prototype.getDecryptedCode=function(e){var t=this;this.webAccessService.postDecryptedCode(e).subscribe((function(n){null==n&&(t.linkExpired=!0),t.accountParams=new g.k,t.accountParams.CopyFrom(n),t.accessCode=e,t.user.UserName=t.accountParams.UserLogonId}),(function(e){console.log("error in decrypting code: "+e)}))},e.prototype.checkSpace=function(e){if(e.value)return/\s/.test(e.value)?(this.validUsername=!1,e.setErrors({whiteSpace:!0})):e.setErrors(null)},e.prototype.checkUsername=function(e){var t=this;return this.validUsername=!1,this.checkingUserName=!0,e.valueChanges.pipe(Object(at.a)(800),Object(st.a)(800),Object(lt.a)(),Object(ut.a)((function(n){return t.webAccessService.checkUsername(e.value.trim())})),Object(dt.a)((function(n){return t.checkingUserName=!1,n?{unique:!0}:(t.authService.setUserLogonId(e.value.trim()),t.validUsername=!0,null)})),Object(bt.a)((function(e){return t.checkingUserName=!1,Object(c.a)({unverfied:!0})})),Object(pt.a)())},e.prototype.showSubNav=function(){return"/Signup"!==this.router.url},e.prototype.getUserName=function(){return this.form.get("userName").value},e.prototype.getPassword=function(){return this.form.get("password").value},e.prototype.changePassword=function(){var e=this;this.passwordRecovery?(this.isLoading=!0,this.accountParams.Password=this.form.get("password").value,this.passwordFailure=!1,this.passwordSuccess=!1,this.userService.changePasswordRecovery(this.accountParams).subscribe((function(t){e.isLoading=!1,t?e.passwordSuccess=!0:e.passwordFailure=!0,e.form.reset(),setTimeout((function(){e.router.navigateByUrl("/login")}),5e3)}),(function(){e.translateService.get("PASSWORD_UPDATE_FAILED_MSG").subscribe((function(t){e.isLoading=!1,e.passwordFailure=!0,e.message=t}))}))):(this.isLoading=!0,this.accountParams=new g.k,this.accountParams.AccountId=this.user.AccountId.toString(),this.accountParams.Email=this.user.EmailAddress,this.accountParams.Password=this.form.get("password").value,this.accountParams.CurrentPassword=this.form.get("currentPassword").value,this.accountParams.UserLogonId=this.user.UserName,this.accountParams.LinkExpiryDateTime="",this.accountParams.AccessCode=this.accessCode,this.passwordFailure=!1,this.passwordSuccess=!1,this.userService.changePassword(this.accountParams).subscribe((function(t){e.isLoading=!1,t?(e.passwordSuccess=!0,e.message=t.Message):(e.passwordFailure=!0,e.message=t.Message),e.form.reset()}),(function(){e.translateService.get("PASSWORD_UPDATE_FAILED_MSG").subscribe((function(t){e.isLoading=!1,e.passwordFailure=!0,e.message=t}))})))},e.prototype.handleReset=function(){},e.prototype.handleReady=function(){},e.prototype.handleLoad=function(){},e.prototype.handleSuccess=function(){},e.\u0275fac=function(t){return new(t||e)(o.Pb(d.d),o.Pb(g.I),o.Pb(g.L),o.Pb(f.a),o.Pb(g.J),o.Pb(C.d),o.Pb(g.i),o.Pb(f.f))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-change-password"]],inputs:{user:"user",integrated:"integrated",signup:"signup"},decls:47,vars:35,consts:[["class","section-header mb-4",4,"ngIf"],[3,"ngClass"],[1,"container","no-gutters","p-0","mx-auto"],[1,"form","pb-3",3,"formGroup","ngSubmit"],[1,"row","py-3","no-gutters"],[1,"col-lg-12","pl-m-2"],[1,"row","no-gutters"],[1,"col-sm-12","col-md-6"],["class","form-group",4,"ngIf"],[1,"form-group","m-0","pt-md-3"],["class","col text-danger align-middle pt-md-3",4,"ngIf"],[1,"col-lg-12"],[1,"row","pb-2","no-gutters"],["class","col-12 p-0",4,"ngIf"],[1,"form-group"],["for","password",1,"col-form-label","col-form-label-sm"],["id","password","type","password","formControlName","password","maxlength","40","required","",1,"form-control","form-control-sm"],["for","confirmPassword",1,"col-form-label","col-form-label-sm"],["id","confirmPassword","type","password","formControlName","confirmPassword","maxlength","40","required","",1,"form-control","form-control-sm"],["class","alert alert-danger",4,"ngIf"],[1,"col-sm-12","col-md-6","pt-1","pl-2"],[4,"ngIf"],[1,"col-lg-12","text-justify"],["class","btn btn-app-primary justify-content-sm-center","type","submit",3,"disabled",4,"ngIf"],["class","alert alert-success alert-dismissible fade show","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show","role","alert",4,"ngIf"],["class","text-center mt-4 px-3",4,"ngIf"],[1,"section-header","mb-4"],[1,"col-form-label","col-form-label-sm"],["readonly","","aria-label","username",1,"form-control","form-control-sm",3,"value"],["id","userName","aria-label","username","formControlName","userName","minlength","3","required","",1,"form-control","form-control-sm","is-loading","is-loading-sm",3,"placeholder","ngClass"],["class","spinner-border spinner-border-sm",4,"ngIf"],[1,"spinner-border","spinner-border-sm"],["readonly","",1,"form-control","form-control-sm",3,"value"],[1,"col","text-danger","align-middle","pt-md-3"],[1,"material-icons"],[1,"col-12","p-0"],[1,"col-sm-12","col-md-6","p-0"],["id","currentPassword","type","password","aria-label","currentPassword","formControlName","currentPassword","required","",1,"form-control","form-control-sm"],[1,"alert","alert-danger"],[1,"col","px-0",3,"ngClass"],["type","submit",1,"btn","btn-app-primary","justify-content-sm-center",3,"disabled"],["class","pl-1 fa fa-lg fa-spinner fa-pulse text-left","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"pl-1","fa","fa-lg","fa-spinner","fa-pulse","text-left"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["type","button","data-dismiss","alert","aria-label","Close",1,"close"],["aria-hidden","true"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],[1,"text-center","mt-4","px-3"],["href","#","routerLink","/login"]],template:function(e,t){1&e&&(o.Rc(0,ht,4,3,"div",0),o.Vb(1,"div"),o.Vb(2,"div"),o.Vb(3,"div",1),o.Vb(4,"div"),o.Vb(5,"div"),o.Vb(6,"div",2),o.Vb(7,"form",3),o.hc("ngSubmit",(function(){return t.changePassword()})),o.Vb(8,"div",4),o.Vb(9,"div",5),o.Vb(10,"div",6),o.Vb(11,"div",7),o.Rc(12,gt,5,4,"div",8),o.Rc(13,yt,7,10,"div",8),o.Rc(14,Ut,5,4,"div",8),o.Ub(),o.Vb(15,"div",7),o.Vb(16,"div",9),o.Rc(17,St,5,4,"label",10),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(18,"div",11),o.Vb(19,"div",12),o.Rc(20,Pt,7,3,"div",13),o.Vb(21,"div",7),o.Vb(22,"div",14),o.Vb(23,"label",15),o.Tc(24),o.mc(25,"translate"),o.Ub(),o.Qb(26,"input",16),o.Ub(),o.Vb(27,"div",14),o.Vb(28,"label",17),o.Tc(29),o.mc(30,"translate"),o.Ub(),o.Qb(31,"input",18),o.Ub(),o.Rc(32,wt,3,2,"div",19),o.Ub(),o.Vb(33,"div",20),o.Rc(34,Rt,18,9,"div",21),o.Ub(),o.Ub(),o.Ub(),o.Vb(35,"div",22),o.Vb(36,"h6"),o.Vb(37,"section"),o.Vb(38,"b"),o.Tc(39),o.mc(40,"translate"),o.Ub(),o.Tc(41),o.mc(42,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Rc(43,Ot,4,5,"button",23),o.Ub(),o.Rc(44,Et,6,3,"div",24),o.Rc(45,kt,6,3,"div",25),o.Rc(46,xt,4,3,"div",26),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.uc("ngIf",t.showSubNav()),o.Bb(1),o.Hb("container",!t.integrated),o.Bb(1),o.Hb("row",!t.integrated),o.Bb(1),o.uc("ngClass",t.integrated?"":"col-lg-10 mx-md-auto"),o.Bb(1),o.Hb("card",!t.integrated),o.Bb(1),o.Hb("card-body",!t.integrated),o.Bb(2),o.uc("formGroup",t.form),o.Bb(5),o.uc("ngIf",t.passwordRecovery&&(null==t.accountParams?null:t.accountParams.UserLogonId)),o.Bb(1),o.uc("ngIf",!(t.passwordRecovery&&null!=t.accountParams&&t.accountParams.UserLogonId)&&t.showUsername),o.Bb(1),o.uc("ngIf",t.passwordRecovery&&(null==t.accountParams?null:t.accountParams.Email)),o.Bb(3),o.uc("ngIf",((null==t.form.controls.userName?null:t.form.controls.userName.dirty)||(null==t.form.controls.userName?null:t.form.controls.userName.touched))&&(null==t.form.controls.userName?null:t.form.controls.userName.invalid)),o.Bb(3),o.uc("ngIf",t.hideCurrentPassword),o.Bb(4),o.Vc(" ",o.nc(25,27,"NEW_PASSWORD"),""),o.Bb(5),o.Vc(" ",o.nc(30,29,"CONFIRM_PASSWORD"),""),o.Bb(3),o.uc("ngIf",((null==t.form.controls.confirmPassword?null:t.form.controls.confirmPassword.dirty)||(null==t.form.controls.confirmPassword?null:t.form.controls.confirmPassword.touched))&&(null==t.form.controls.confirmPassword||null==t.form.controls.confirmPassword.errors?null:t.form.controls.confirmPassword.errors.MatchPassword)||t.form.controls.password.dirty&&(null==t.form.controls.password.errors?null:t.form.controls.password.errors.pattern)),o.Bb(2),o.uc("ngIf",t.form.controls.password.dirty||t.form.controls.password.touched),o.Bb(5),o.Vc("",o.nc(40,31,"NOTE"),":"),o.Bb(2),o.Wc(" ",t.passwordPolicy," ",o.nc(42,33,"CASE_SENITIVE")," "),o.Bb(2),o.uc("ngIf",!t.integrated),o.Bb(1),o.uc("ngIf",t.passwordSuccess),o.Bb(1),o.uc("ngIf",t.passwordFailure),o.Bb(1),o.uc("ngIf",t.passwordRecovery))},directives:[m.n,m.l,d.z,d.o,d.g,d.c,d.n,d.f,d.i,d.v,d.j,f.i],pipes:[C.c],styles:[".material-icons[_ngcontent-%COMP%]{display:inline-flex;vertical-align:middle;font-size:larger}"]}),e}(),_t=n("UNrv"),Dt=n("Oeku"),Lt=n.n(Dt),qt=function(e){return{active:e}};function Ft(e,t){if(1&e){var n=o.Wb();o.Vb(0,"li",5),o.Vb(1,"button",6),o.hc("click",(function(){o.Jc(n);var e=t.$implicit;return o.lc(3).setPage(e)})),o.Tc(2),o.Ub(),o.Ub()}if(2&e){var r=t.$implicit,i=o.lc(3);o.uc("ngClass",o.zc(2,qt,i.pager.currentPage===r)),o.Bb(2),o.Uc(r)}}function jt(e,t){if(1&e){var n=o.Wb();o.Vb(0,"ul",2),o.Vb(1,"li"),o.Vb(2,"button",3),o.hc("click",(function(){return o.Jc(n),o.lc(2).setPage(1)})),o.Tc(3," First "),o.Ub(),o.Ub(),o.Vb(4,"li"),o.Vb(5,"button",3),o.hc("click",(function(){o.Jc(n);var e=o.lc(2);return e.setPage(e.pager.currentPage-1)})),o.Tc(6," < "),o.Ub(),o.Ub(),o.Rc(7,Ft,3,4,"li",4),o.Vb(8,"li"),o.Vb(9,"button",3),o.hc("click",(function(){o.Jc(n);var e=o.lc(2);return e.setPage(e.pager.currentPage+1)})),o.Tc(10," > "),o.Ub(),o.Ub(),o.Vb(11,"li"),o.Vb(12,"button",3),o.hc("click",(function(){o.Jc(n);var e=o.lc(2);return e.setPage(e.pager.totalPages)})),o.Tc(13," Last "),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(2),o.uc("disabled",1===r.pager.currentPage),o.Bb(3),o.uc("disabled",1===r.pager.currentPage),o.Bb(2),o.uc("ngForOf",r.pager.pages),o.Bb(2),o.uc("disabled",r.pager.currentPage===r.pager.totalPages),o.Bb(3),o.uc("disabled",r.pager.currentPage===r.pager.totalPages)}}function Jt(e,t){if(1&e&&(o.Vb(0,"div"),o.Rc(1,jt,14,5,"ul",1),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",n.pager.pages&&n.pager.pages.length)}}var Gt=function(){function e(e){this.pagerService=e,this.changePage=new o.n(!0),this.pager={}}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.items.firstChange||this.setPage(1)},e.prototype.setPage=function(e){this.pager=this.pagerService.getPager(this.items.length,e),e<1||e>this.pager.totalPages?this.changePage.emit([]):(this.pagedItems=this.items.slice(this.pager.startIndex,this.pager.endIndex+1),this.changePage.emit(this.pagedItems))},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.z))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-pagination"]],inputs:{items:"items"},outputs:{changePage:"changePage"},features:[o.zb],decls:1,vars:1,consts:[[4,"ngIf"],["class","pagination",4,"ngIf"],[1,"pagination"],[1,"btn","btn-link",3,"disabled","click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"btn","btn-link",3,"click"]],template:function(e,t){1&e&&o.Rc(0,Jt,2,1,"div",0),2&e&&o.uc("ngIf",t.items)},directives:[m.n,m.m,m.l],styles:["ul[_ngcontent-%COMP%]{margin:0;padding:0;display:inline-block}li[_ngcontent-%COMP%]{list-style:none;display:inline;text-align:center}a[_ngcontent-%COMP%]{cursor:pointer;padding:6px 12px;display:block;float:left}.pagination[_ngcontent-%COMP%]{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:relative;float:left;padding:6px 10px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-radius:0}.pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:focus, .pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:hover, .pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:focus, .pagination[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:hover{color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:first-child > button[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:first-child > span[_ngcontent-%COMP%]{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child > button[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child > span[_ngcontent-%COMP%]{border-top-right-radius:4px;border-bottom-right-radius:4px}"]}),e}(),Wt=n("cVFx");function Qt(e,t){1&e&&(o.Vb(0,"div",19),o.Qb(1,"i",20),o.Ub())}function Yt(e,t){if(1&e&&(o.Vb(0,"tr"),o.Vb(1,"td"),o.Tc(2),o.Ub(),o.Vb(3,"td"),o.Tc(4),o.Ub(),o.Vb(5,"td"),o.Tc(6),o.Ub(),o.Vb(7,"td"),o.Tc(8),o.Ub(),o.Vb(9,"td"),o.Tc(10),o.Ub(),o.Vb(11,"td"),o.Tc(12),o.Ub(),o.Vb(13,"td"),o.Tc(14),o.Ub(),o.Vb(15,"td"),o.Tc(16),o.Ub(),o.Vb(17,"td"),o.Tc(18),o.Ub(),o.Vb(19,"td"),o.Tc(20),o.Ub(),o.Vb(21,"td"),o.Tc(22),o.Ub(),o.Ub()),2&e){var n=t.$implicit;o.Bb(2),o.Uc(n.AccountId),o.Bb(2),o.Uc(n.PlateNum),o.Bb(2),o.Uc(n.TollCategoryName),o.Bb(2),o.Uc(n.TransponderText),o.Bb(2),o.Uc(n.TransponderTypeName),o.Bb(2),o.Uc(n.LastName),o.Bb(2),o.Uc(n.FirstName),o.Bb(2),o.Uc(n.ProvinceName),o.Bb(2),o.Uc(n.VehicleMake),o.Bb(2),o.Uc(n.VehicleModel),o.Bb(2),o.Uc(n.VehicleYear)}}function Ht(e,t){if(1&e&&(o.Vb(0,"div",21),o.Vb(1,"table",22),o.Vb(2,"thead"),o.Vb(3,"tr"),o.Vb(4,"th",23),o.Tc(5,"Account ID"),o.Ub(),o.Vb(6,"th",23),o.Tc(7,"Vehicle Plate"),o.Ub(),o.Vb(8,"th",23),o.Tc(9,"Vehicle Group"),o.Ub(),o.Vb(10,"th",23),o.Tc(11,"Transponder"),o.Ub(),o.Vb(12,"th",23),o.Tc(13,"Type"),o.Ub(),o.Vb(14,"th",23),o.Tc(15,"Last Name"),o.Ub(),o.Vb(16,"th",23),o.Tc(17,"First Name"),o.Ub(),o.Vb(18,"th",23),o.Tc(19,"Province"),o.Ub(),o.Vb(20,"th",23),o.Tc(21,"Vehicle Make"),o.Ub(),o.Vb(22,"th",23),o.Tc(23,"Vehicle Model"),o.Ub(),o.Vb(24,"th",23),o.Tc(25,"Vehicle Year"),o.Ub(),o.Ub(),o.Ub(),o.Vb(26,"tbody"),o.Rc(27,Yt,23,11,"tr",24),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(27),o.uc("ngForOf",n.pageOfEmployees)}}function zt(e,t){if(1&e&&(o.Vb(0,"li",28),o.Vb(1,"div",9),o.Vb(2,"h5"),o.Vb(3,"b"),o.Tc(4,"Account ID:"),o.Ub(),o.Tc(5),o.Ub(),o.Ub(),o.Vb(6,"div"),o.Vb(7,"div"),o.Vb(8,"b"),o.Tc(9,"Vehicle Plate:"),o.Ub(),o.Tc(10),o.Ub(),o.Vb(11,"div"),o.Vb(12,"b"),o.Tc(13,"Vehicle Group:"),o.Ub(),o.Tc(14),o.Ub(),o.Vb(15,"div"),o.Vb(16,"b"),o.Tc(17,"Transponder:"),o.Ub(),o.Tc(18),o.Ub(),o.Vb(19,"div"),o.Vb(20,"b"),o.Tc(21,"Type:"),o.Ub(),o.Tc(22),o.Ub(),o.Vb(23,"div"),o.Vb(24,"b"),o.Tc(25,"Last Name:"),o.Ub(),o.Tc(26),o.Ub(),o.Vb(27,"div"),o.Vb(28,"b"),o.Tc(29,"First Name:"),o.Ub(),o.Tc(30),o.Ub(),o.Vb(31,"div"),o.Vb(32,"b"),o.Tc(33,"Province:"),o.Ub(),o.Tc(34),o.Ub(),o.Vb(35,"div"),o.Vb(36,"b"),o.Tc(37,"Vehicle Make:"),o.Ub(),o.Tc(38),o.Ub(),o.Vb(39,"div"),o.Vb(40,"b"),o.Tc(41,"Vehicle Model:"),o.Ub(),o.Tc(42),o.Ub(),o.Vb(43,"div"),o.Vb(44,"b"),o.Tc(45,"Vehicle Year:"),o.Ub(),o.Tc(46),o.Ub(),o.Ub(),o.Ub()),2&e){var n=t.$implicit;o.Bb(5),o.Vc(" ",n.AccountId," "),o.Bb(5),o.Vc(" ",n.PlateNum,""),o.Bb(4),o.Vc(" ",n.TollCategoryName,""),o.Bb(4),o.Vc(" ",n.TransponderText,""),o.Bb(4),o.Vc(" ",n.TransponderTypeName,""),o.Bb(4),o.Vc(" ",n.LastName,""),o.Bb(4),o.Vc(" ",n.FirstName,""),o.Bb(4),o.Vc(" ",n.ProvinceName,""),o.Bb(4),o.Vc(" ",n.VehicleMake,""),o.Bb(4),o.Vc(" ",n.VehicleModel,""),o.Bb(4),o.Vc(" ",n.VehicleYear,"")}}function $t(e,t){if(1&e&&(o.Vb(0,"div",25),o.Vb(1,"ul",26),o.Rc(2,zt,47,11,"li",27),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.uc("ngForOf",n.pageOfEmployees)}}var Kt=function(){function e(e,t){this.userService=e,this.accountService=t,this.pageOfEmployees=new Array,this.employeeTable={AccountId:"Account ID",PlateNum:"Vehicle Plate",TollCategoryName:"Vehicle Group",TransponderText:"Transponder",TransponderTypeName:"Type",LastName:"Last Name",FirstName:"First Name",ProvinceName:"Province",VehicleMake:"Vehicle Make",VehicleModel:"Vehicle Model",VehicleYear:"Vehicle Year"}}return e.prototype.ngOnInit=function(){this.getEmployees()},e.prototype.onChangePage=function(e){this.pageOfEmployees=e},e.prototype.getEmployees=function(){var e=this;this.accountService.getEmployees(this.userService.getCurrentUser().AccountId).subscribe((function(t){e.employees=t}),(function(e){console.log("Error in getting employess of this account! "+e)}))},e.prototype.downloadFile=function(e,t){var n=new Blob([e],{type:"text/csv"});Lt.a.saveAs(n,t)},e.prototype.downloadCsv=function(){for(var e=document.getElementById("data-table"),t="",n=0;n<e.rows.length;n++){var o=e.rows.item(n);n>0&&(t+=n),t+=",";for(var r=0;r<o.cells.length;r++)t+=o.cells.item(r).innerText,r!==o.cells.length-1&&(t+=",");t+="\n"}var i="Account "+this.userService.getCurrentUser().AccountId+" Employees";this.downloadFile(t,i+".csv")},e.prototype.downloadAllEmployees=function(){var e,t,n,o,r="",i=0;try{for(var c=Object(_t.f)(Object.keys(this.employeeTable)),a=c.next();!a.done;a=c.next())r+=this.employeeTable[a.value],i!==Object.keys(this.employeeTable).length-1&&(r+=","),i++}catch(p){e={error:p}}finally{try{a&&!a.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}r+="\n";for(var s=0;s<this.employees.length;s++){i=0;try{for(var l=(n=void 0,Object(_t.f)(Object.keys(this.employeeTable))),u=l.next();!u.done;u=l.next()){var d=u.value;r+=this.employees[s][d]?this.employees[s][d]:"",i!==Object.keys(this.employeeTable).length-1&&(r+=","),i++}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}r+="\n"}var b="Account "+this.userService.getCurrentUser().AccountId+" Employees";this.downloadFile(r,b+".csv")},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.I),o.Pb(g.c))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-employees"]],decls:31,vars:16,consts:[[1,"container-fluid"],[1,"card","mb-3","shadow"],[1,"card-body"],[1,"row","mb-1"],[1,"col-sm-6"],[1,"mb-3"],[1,"card-title"],[1,"btn","btn","btn-app-primary","float-sm-right","break-text",3,"click"],["aria-hidden","true",1,"fa","fa-cloud-download"],[1,"row"],[1,"col-lg-4","col-md-6"],["type","text","name","searchArg","placeholder","Search..",1,"form-control","form-control-md",3,"ngModel","ngModelChange"],["SearchA","ngModel"],[1,"text-muted","pl-4"],[1,"mt-4"],["class","text-center mt-5 loader",4,"ngIf"],["class","table-responsive d-none d-lg-block",4,"ngIf"],["class","d-lg-none",4,"ngIf"],[1,"text-center",3,"items","changePage"],[1,"text-center","mt-5","loader"],["aria-hidden","true",1,"fa","fa-4x","fa-spinner","fa-pulse","align-middle"],[1,"table-responsive","d-none","d-lg-block"],["id","data-table",1,"table","mt-5"],["scope","col"],[4,"ngFor","ngForOf"],[1,"d-lg-none"],[1,"list-group","list-group-flush"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"]],template:function(e,t){if(1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"div",4),o.Vb(5,"h3",5),o.Vb(6,"span",6),o.Tc(7,"Employees"),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",4),o.Vb(9,"button",7),o.hc("click",(function(){return t.downloadAllEmployees()})),o.Qb(10,"i",8),o.Tc(11," Download All as CSV "),o.Ub(),o.Ub(),o.Ub(),o.Vb(12,"div",9),o.Vb(13,"div",10),o.Vb(14,"input",11,12),o.hc("ngModelChange",(function(e){return t.searchArgs=e})),o.Ub(),o.Ub(),o.Vb(16,"span",13),o.Tc(17),o.mc(18,"employeeFilterPipe"),o.mc(19,"employeeFilterPipe"),o.Ub(),o.Ub(),o.Vb(20,"div",14),o.Vb(21,"h6"),o.Vb(22,"section"),o.Vb(23,"b"),o.Tc(24,"Note:"),o.Ub(),o.Tc(25," Transponders / Smart Cards removed after the 15th of the month will still be charged a fee for the month. "),o.Ub(),o.Ub(),o.Ub(),o.Rc(26,Qt,2,0,"div",15),o.Rc(27,Ht,28,1,"div",16),o.Rc(28,$t,3,1,"div",17),o.Vb(29,"app-pagination",18),o.hc("changePage",(function(e){return t.onChangePage(e)})),o.mc(30,"employeeFilterPipe"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=null;o.Bb(14),o.uc("ngModel",t.searchArgs),o.Bb(3),o.Wc("",null==(n=o.oc(18,7,t.employees,t.searchArgs))?null:n.length," ",(null==(n=o.oc(19,10,t.employees,t.searchArgs))?null:n.length)>1?"employees were":"employee was"," found. "),o.Bb(9),o.uc("ngIf",!t.employees),o.Bb(1),o.uc("ngIf",t.employees),o.Bb(1),o.uc("ngIf",t.employees),o.Bb(1),o.uc("items",o.oc(30,13,t.employees,t.searchArgs))}},directives:[d.c,d.n,d.q,m.n,Gt,m.m],pipes:[Wt.a],styles:["[_ngcontent-%COMP%]:root{--primary-color:#12723a;--background-color:#fff;--text-color:#000;--secondary-color:#0f8741;--darkPrimary-color:#015824;--nav-background-color:#fff;--nav-text-color:#fff;--nav-hover-color:rgba(0,123,184,0.49411764705882355);--nav-hover-text-color:#fff;--nav-button-primary-color:#fff;--nav-button-primary-hover:rgba(0,123,184,0.49411764705882355);--footer-background-color:#343a40;--footer-text-color:#182d38;--footer-hover-color:#343a40;--footer-hover-text-color:#fff}.container-fluid[_ngcontent-%COMP%]{max-width:1536px}.pagination[_ngcontent-%COMP%]{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.break-text[_ngcontent-%COMP%]{word-wrap:break-word;white-space:normal}.loader[_ngcontent-%COMP%]{color:#1479cf;color:var(--secondary-color)}"]}),e}(),Zt=n("5gSk"),Xt=n("KVjz"),en=["macPassModal"];function tn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",10),o.Vb(1,"div",13),o.Vb(2,"div",14),o.Vb(3,"label",15),o.Vb(4,"input",16),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.Enabled=e})),o.Ub(),o.Tc(5," Request a Transponder "),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(4),o.uc("ngModel",r.transponderRequest.Enabled)}}function nn(e,t){if(1&e&&(o.Vb(0,"option",50),o.Tc(1),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",n.Name,"")}}function on(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"label",19),o.Vb(2,"b"),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Vb(5,"div",20),o.Vb(6,"label",46),o.Tc(7),o.mc(8,"translate"),o.Ub(),o.Vb(9,"select",47,48),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).transponderRequest.TransponderTypeId=e})),o.Rc(11,nn,2,2,"option",49),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(3),o.Uc(o.nc(4,4,"TRANSPONDER")),o.Bb(4),o.Uc(o.nc(8,6,"TYPE")),o.Bb(2),o.uc("ngModel",r.transponderRequest.TransponderTypeId),o.Bb(2),o.uc("ngForOf",r.transponderTypes)}}function rn(e,t){if(1&e&&(o.Vb(0,"option",51),o.Tc(1),o.Vb(2,"div",52,53),o.Tc(4),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.lc(2);o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",n.GroupName," "),o.Bb(3),o.Vc(" - ",r.getSubNotes(n.GroupName)," ")}}function cn(e,t){if(1&e&&(o.Vb(0,"option",50),o.Tc(1),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",n.Name," ")}}function an(e,t){if(1&e&&(o.Vb(0,"optgroup"),o.Rc(1,cn,2,2,"option",49),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngForOf",n.preferedProvinces)}}function sn(e,t){if(1&e&&(o.Vb(0,"option",50),o.Tc(1),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Id),o.Bb(1),o.Vc(" ",n.Name," ")}}function ln(e,t){if(1&e&&(o.Vb(0,"optgroup",54),o.Rc(1,sn,2,2,"option",49),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngForOf",n.provinces)}}function un(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",20),o.Vb(1,"button",55),o.hc("click",(function(){return o.Jc(n),o.lc(2).addVehicle()})),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()}if(2&e){o.lc(2);var r=o.Gc(1);o.Bb(1),o.uc("disabled",!r.valid),o.Bb(1),o.Vc(" ",o.nc(3,2,"ADD_VEHICLE")," ")}}function dn(e,t){1&e&&(o.Vb(0,"label",60),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e&&(o.Bb(1),o.Uc(o.nc(2,1,"PLEASE_ADD_VEHICLE")))}function bn(e,t){1&e&&(o.Vb(0,"div",61),o.Vb(1,"div",62),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"div",63),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Vb(7,"div",63),o.Tc(8),o.mc(9,"translate"),o.Ub(),o.Vb(10,"div",64),o.Tc(11),o.mc(12,"translate"),o.Ub(),o.Vb(13,"div",62),o.Tc(14),o.mc(15,"translate"),o.Ub(),o.Vb(16,"div",62),o.Tc(17),o.mc(18,"translate"),o.Ub(),o.Qb(19,"div",62),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,6,"CAT")),o.Bb(3),o.Vc(" ",o.nc(6,8,"STATE_PROVINCE")," "),o.Bb(3),o.Uc(o.nc(9,10,"PLATE")),o.Bb(3),o.Uc(o.nc(12,12,"MAKE_MODEL")),o.Bb(3),o.Uc(o.nc(15,14,"COLOR")),o.Bb(3),o.Uc(o.nc(18,16,"YEAR")))}function pn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",65),o.Vb(1,"div",62),o.Tc(2),o.Ub(),o.Vb(3,"div",63),o.Tc(4),o.Ub(),o.Vb(5,"div",63),o.Tc(6),o.Ub(),o.Vb(7,"div",64),o.Tc(8),o.Ub(),o.Vb(9,"div",62),o.Tc(10),o.Ub(),o.Vb(11,"div",62),o.Tc(12),o.Ub(),o.Vb(13,"div",66),o.Vb(14,"a",67),o.hc("click",(function(){o.Jc(n);var e=t.index;return o.lc(3).removeVehicle(e)})),o.Tc(15,"[-]"),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=t.$implicit,i=o.lc(3);o.Bb(2),o.Vc(" ",i.getCategoryText(r.TollCategoryId)," "),o.Bb(2),o.Vc(" ",i.getProvince(r.PlateProvinceId)," "),o.Bb(2),o.Uc(r.PlateNum),o.Bb(2),o.Wc(" ",r.VehicleMake,", ",r.VehicleModel," "),o.Bb(2),o.Uc(r.VehicleColor),o.Bb(2),o.Uc(r.VehicleYear)}}function fn(e,t){if(1&e&&(o.Vb(0,"div",56),o.Vb(1,"label",19),o.Vb(2,"b"),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Vb(5,"div",20),o.Rc(6,dn,3,3,"label",57),o.Rc(7,bn,20,18,"div",58),o.Rc(8,pn,16,7,"div",59),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(3),o.Uc(o.nc(4,4,"VEHICLE_LIST")),o.Bb(3),o.uc("ngIf",0==n.addedTranspCount),o.Bb(1),o.uc("ngIf",n.addedTranspCount>0),o.Bb(1),o.uc("ngForOf",n.transponderRequestList)}}function hn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",17),o.Vb(1,"div",18),o.Rc(2,on,12,8,"div",4),o.Vb(3,"label",19),o.Vb(4,"b"),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Ub(),o.Vb(7,"div",20),o.Vb(8,"label",21),o.Tc(9),o.Ub(),o.Vb(10,"select",22,23),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.TollCategoryId=e})),o.Rc(12,rn,5,3,"option",24),o.Ub(),o.Ub(),o.Vb(13,"div",20),o.Vb(14,"label",25),o.Tc(15),o.mc(16,"translate"),o.Ub(),o.Vb(17,"select",26,27),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.PlateProvinceId=e})),o.Rc(19,an,2,1,"optgroup",4),o.Rc(20,ln,2,1,"optgroup",28),o.Ub(),o.Ub(),o.Vb(21,"div",20),o.Vb(22,"label",29),o.Tc(23),o.mc(24,"translate"),o.Ub(),o.Vb(25,"input",30,31),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.PlateNum=e})),o.Ub(),o.Ub(),o.Vb(27,"div",20),o.Vb(28,"label",32),o.Tc(29),o.mc(30,"translate"),o.Ub(),o.Vb(31,"input",33,34),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.VehicleMake=e})),o.Ub(),o.Ub(),o.Vb(33,"div",20),o.Vb(34,"label",35),o.Tc(35),o.mc(36,"translate"),o.Ub(),o.Vb(37,"input",36,37),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.VehicleModel=e})),o.Ub(),o.Ub(),o.Vb(39,"div",10),o.Vb(40,"div",38),o.Vb(41,"label",39),o.Tc(42),o.mc(43,"translate"),o.Ub(),o.Vb(44,"input",40,37),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.VehicleColor=e})),o.Ub(),o.Ub(),o.Vb(46,"div",38),o.Vb(47,"label",41),o.Tc(48),o.mc(49,"translate"),o.Ub(),o.Vb(50,"input",42,43),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().transponderRequest.VehicleYear=e})),o.Ub(),o.Ub(),o.Ub(),o.Rc(52,un,4,4,"div",44),o.Ub(),o.Rc(53,fn,9,6,"div",45),o.Ub()}if(2&e){var r=o.lc();o.Bb(1),o.Hb("col-lg-4",r.newAccountMode)("col-12",!r.newAccountMode),o.Bb(1),o.uc("ngIf",!1),o.Bb(3),o.Uc(o.nc(6,26,"VEHICLE")),o.Bb(4),o.Uc(r.vehicleCategoryText),o.Bb(1),o.uc("ngModel",r.transponderRequest.TollCategoryId),o.Bb(2),o.uc("ngForOf",r.tollCategories),o.Bb(3),o.Uc(o.nc(16,28,"STATE_PROVINCE")),o.Bb(2),o.uc("ngModel",r.transponderRequest.PlateProvinceId),o.Bb(2),o.uc("ngIf",r.preferedProvinces.length>0),o.Bb(1),o.uc("ngIf",r.provinces.length>0),o.Bb(3),o.Uc(o.nc(24,30,"PLATE")),o.Bb(2),o.uc("ngModel",r.transponderRequest.PlateNum),o.Bb(4),o.Uc(o.nc(30,32,"MAKE")),o.Bb(2),o.uc("ngModel",r.transponderRequest.VehicleMake),o.Bb(4),o.Uc(o.nc(36,34,"MODEL")),o.Bb(2),o.uc("ngModel",r.transponderRequest.VehicleModel),o.Bb(5),o.Uc(o.nc(43,36,"COLOR")),o.Bb(2),o.uc("ngModel",r.transponderRequest.VehicleColor),o.Bb(4),o.Uc(o.nc(49,38,"YEAR")),o.Bb(2),o.uc("showMaskTyped",!0)("ngModel",r.transponderRequest.VehicleYear),o.Bb(2),o.uc("ngIf",r.newAccountMode),o.Bb(1),o.uc("ngIf",r.newAccountMode)}}function gn(e,t){1&e&&o.Qb(0,"i",72)}function mn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"div",68),o.Vb(2,"button",69),o.hc("click",(function(){return o.Jc(n),o.lc().cancelRequest()})),o.Tc(3),o.mc(4,"translate"),o.Ub(),o.Vb(5,"button",70),o.Tc(6),o.mc(7,"translate"),o.Rc(8,gn,1,0,"i",71),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc(),i=o.Gc(1);o.Bb(3),o.Vc(" ",o.nc(4,4,"CANCEL")," "),o.Bb(2),o.uc("disabled",!i.form.valid||r.isRequesting),o.Bb(1),o.Vc(" ",o.nc(7,6,r.newMode?"REQUEST":"UPDATE")," "),o.Bb(2),o.uc("ngIf",r.isRequesting)}}function vn(e,t){1&e&&o.Qb(0,"i",79)}function yn(e,t){1&e&&o.Qb(0,"i",80)}var Un=function(e,t){return{"text-danger":e," text-success":t}},Vn=function(e,t){return{"btn-danger":e,"btn-success":t}};function Tn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div"),o.Vb(1,"h6",73),o.Vb(2,"div",74),o.Rc(3,vn,1,0,"i",75),o.Rc(4,yn,1,0,"i",76),o.Vb(5,"h5"),o.Tc(6),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"p",77),o.Tc(8),o.Ub(),o.Vb(9,"button",78),o.hc("click",(function(){return o.Jc(n),o.lc().$implicit.close()})),o.Tc(10," Close "),o.Ub(),o.Ub()}if(2&e){var r=o.lc(2);o.Bb(1),o.uc("ngClass",o.Ac(6,Un,!r.errorObj.status,r.errorObj.status)),o.Bb(2),o.uc("ngIf",!r.errorObj.status),o.Bb(1),o.uc("ngIf",r.errorObj.status),o.Bb(2),o.Uc(r.errorObj.title),o.Bb(2),o.Uc(r.errorObj.message),o.Bb(1),o.uc("ngClass",o.Ac(9,Vn,!r.errorObj.status,r.errorObj.status))}}function In(e,t){if(1&e&&o.Rc(0,Tn,11,12,"div",4),2&e){var n=o.lc();o.uc("ngIf",n.errorObj)}}var Cn=function(){function e(e,t,n,r,i,c,a){this.userService=e,this.accountService=t,this.configurationService=n,this.alertService=r,this.translate=i,this.modalService=c,this.utilsService=a,this.subs=new y.a,this.newMode=!0,this.tollCategories=[],this.provinces=[],this.transponderTypes=[],this.transponderRequestList=[],this.addedTranspCount=0,this.requestTransponderEnabled=!0,this.vehicleCategoryText="CATEGORY",this.requestedTransponderQuantityChanged=new o.n,this.isEmployer=!1,this.newAccountMode=!1,this.onTransponderRequested=new o.n,this.onTransponderRequestCancelled=new o.n,this.preferedProvinces=[],this.fullProvinces=[],this.isRequesting=!1,this.transponderRequest=new g.G,this.transponderRequest.Enabled=!0,this.transponderRequestList=new Array}return e.prototype.ngOnInit=function(){var e=this;this.configurationService.getTollCategories().subscribe((function(t){var n=new Array,o=Object(v.uniqBy)(t,"GroupName");Object(v.forEach)(o,(function(e){n.push(Object(v.head)(Object(v.sortBy)(Object(v.filter)(t,["GroupName",e.GroupName]),"Id")))})),e.tollCategories=n})),this.configurationService.getProvinces().subscribe((function(t){var n=t.filter((function(e){return 7===e.CountryId})).sort((function(e,t){return e.Name<t.Name?-1:e.Name>t.Name?1:0})),o=t.filter((function(e){return 1===e.CountryId})).sort((function(e,t){return e.Name<t.Name?-1:e.Name>t.Name?1:0})),r=n.concat(o);e.fullProvinces=Object(v.cloneDeep)(r),e.provinces=Object(v.cloneDeep)(r),e.preferedProvinces=e.fullProvinces.filter((function(e){return"Michigan"===e.Name||"Ontario"===e.Name||"Government"===e.Name})),Object(v.remove)(e.provinces,(function(e){return"Michigan"===e.Name||"Ontario"===e.Name||"Government"===e.Name}))})),this.configurationService.getTransponderTypes().subscribe((function(t){e.transponderTypes=t})),this.translate.get("VEHICLE_GROUP",{value:"Vehicle group"}).subscribe((function(t){e.vehicleCategoryText=t})),setTimeout((function(){e.transponderRequest.TollCategoryId=null,e.transponderRequest.PlateProvinceId=null}),500)},e.prototype.getSubNotes=function(e){return"Auto"===e?"passenger car, van, motorcycle, station wagon, SUV, pick-up truck, and school bus.":"Truck"===e?"tractor trailers, buses and step or cube vans.":"RV"===e?"motor homes.":void 0},e.prototype.requestTransponder=function(){var e=this;this.isRequesting=!0,this.transponderRequest.TransponderTypeId=this.getTransponderTypeId(1),this.transponderRequest.WebUserLogonId=+this.userService.getCurrentUser().UserId,this.transponderRequest.AccountId=this.userService.getCurrentUser().AccountId,this.accountService.requestTransponder(this.transponderRequest).subscribe((function(t){!0===t?(e.isRequesting=!1,e.refreshTransponders(),e.transponderRequest=new g.G,e.onTransponderRequested.emit(!0),e.translate.get("TRANSPONDER_REQUEST_SUCCESSFUL",{value:"MacPass request successfully sent!"}).subscribe((function(t){e.errorObj={status:!0,title:t,message:" You have successfully placed an order for MacPass Tag(s). Your tag(s) will be mailed within 7-10 business\n              days. You will receive an email when the MacPass(es) have been assigned to your account."},setTimeout((function(){e.modalService.open(e.macPassModal,{size:"lg"})}))}))):(e.isRequesting=!1,e.translate.get("TRANSPONDER_REQUEST_FAIL",{value:"MacPass could not be requested. Please contact customer Service!"}).subscribe((function(){e.errorObj={status:!1,title:"MacPass could not be requested",message:"MacPass could not be requested. Please contact customer Service!"},setTimeout((function(){e.modalService.open(e.macPassModal,{size:"lg"})}))})))}),(function(){e.isRequesting=!1,e.translate.get("TRANSPONDER_REQUEST_FAIL",{value:"Transponder could not be requested. Please contact customer Service!"}).subscribe((function(t){e.alertService.error(t,!1)}))}))},e.prototype.refreshTransponders=function(){this.accountService.resetCachedRequestedVehicleInfo()},e.prototype.cancelRequest=function(){this.onTransponderRequestCancelled.emit(!0)},e.prototype.addVehicle=function(){var e=this;Object(v.find)(this.transponderRequestList,(function(t){return t.PlateNum.toUpperCase()===e.transponderRequest.PlateNum.toUpperCase()&&t.PlateProvinceId==e.transponderRequest.PlateProvinceId}))?this.alertService.error("Vehicle with plate number "+this.transponderRequest.PlateNum+" is already exists.",!0):(this.transponderRequestList.push(this.transponderRequest),this.addedTranspCount=this.transponderRequestList.length,this.requestedTransponderQuantityChanged.emit(this.addedTranspCount),this.transponderRequest=new g.G)},e.prototype.removeVehicle=function(e){this.transponderRequest=this.transponderRequestList[e],this.transponderRequestList.splice(e,1),this.addedTranspCount=this.transponderRequestList.length,this.requestedTransponderQuantityChanged.emit(this.addedTranspCount)},e.prototype.getTransponderTypeText=function(e){var t="";return this.transponderTypes.forEach((function(n){n.Id!==e||(t=n.Name)})),t},e.prototype.getTransponderTypeId=function(e){var t=0;return this.transponderTypes.forEach((function(n){n.Id!==e||(t=n.Id)})),t},e.prototype.getCategoryText=function(e){var t="";return null!=this.tollCategories&&(t=this.tollCategories.find((function(t){return t.Id===e})).GroupName),t},e.prototype.getProvince=function(e){var t="";return null!=this.fullProvinces&&(t=this.fullProvinces.find((function(t){return t.Id===e})).Name),t},e.prototype.updateTransponder=function(){},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.I),o.Pb(g.c),o.Pb(g.l),o.Pb(g.e),o.Pb(C.d),o.Pb(Zt.c),o.Pb(g.J))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-transponder-info"]],viewQuery:function(e,t){var n;1&e&&(o.Yc(en,!0),o.Yc(d.p,!0)),2&e&&(o.Fc(n=o.ic())&&(t.macPassModal=n.first),o.Fc(n=o.ic())&&(t.transponderForm=n.first))},inputs:{isEmployer:"isEmployer",newAccountMode:"newAccountMode"},outputs:{requestedTransponderQuantityChanged:"requestedTransponderQuantityChanged",onTransponderRequested:"onTransponderRequested",onTransponderRequestCancelled:"onTransponderRequestCancelled"},decls:25,vars:3,consts:[[1,"form",3,"ngSubmit"],["transponderForm","ngForm"],["class","row",4,"ngIf"],["class","row py-3",4,"ngIf"],[4,"ngIf"],["id","autoInfoModal","tabindex","-1","role","dialog","aria-labelledby","autoInfoModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","auto-popup"],[1,"container-fluid"],[1,"row"],["class","macPassModal p-3"],["macPassModal",""],[1,"col-md-6","px-4","pt-2"],[1,"form-check","form-check-inline"],[1,"form-check-label","form-check-label-sm"],["type","checkbox","name","billing",1,"form-check-input",3,"ngModel","ngModelChange"],[1,"row","py-3"],[1,"col-lg-4","px-4"],[1,"col-form-label","col-form-label-sm","account-label"],[1,"form-group"],["for","category",1,"col-form-label","col-form-label-sm"],["id","category","name","category","required","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["category","ngModel"],["class","auto-dropdown",3,"ngValue",4,"ngFor","ngForOf"],["for","prefecture",1,"col-form-label","col-form-label-sm"],["id","prefecture","name","prefecture","required","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["prefecture","ngModel"],["label","__________________",4,"ngIf"],["for","plate",1,"col-form-label","col-form-label-sm"],["name","plate","type","text","aria-label","plate","required","","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["plate","ngModel"],["for","make",1,"col-form-label","col-form-label-sm"],["name","make","type","text","aria-label","make","required","","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["make","ngModel"],["for","model",1,"col-form-label","col-form-label-sm"],["name","model","type","text","aria-label","model","required","","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["model","ngModel"],[1,"form-group","col-6"],["for","color",1,"col-form-label","col-form-label-sm"],["name","color","type","text","aria-label","color","required","","onkeypress","return event.charCode != 32 || event.target.selectionStart !=0","onDrag","return false","onDrop","return false","onPaste","return false","InvalidInput","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["for","year",1,"col-form-label","col-form-label-sm"],["name","year","type","text","mask","0000","aria-label","year","onkeypress",'return event.charCode >= 48 && event.charCode <= 57 || event.key === "Backspace"',"onDrag","return false","onDrop","return false","onPaste","return false","required","","InvalidInput","",1,"form-control","form-control-sm",3,"showMaskTyped","ngModel","ngModelChange"],["year","ngModel"],["class","form-group",4,"ngIf"],["class","col-lg-8 px-4 v-lst",4,"ngIf"],["for","type",1,"col-form-label","col-form-label-sm"],["id","type","name","type","required","",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["TransponderTypeId","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"auto-dropdown",3,"ngValue"],[1,"subDescription"],["subDescription",""],["label","__________________"],["type","button",1,"btn","btn-app-primary",3,"disabled","click"],[1,"col-lg-8","px-4","v-lst"],["class","col-form-label col-form-label-sm",4,"ngIf"],["class","row row-head",4,"ngIf"],["class","row row-striped",4,"ngFor","ngForOf"],[1,"col-form-label","col-form-label-sm"],[1,"row","row-head"],[1,"col-sm-1","col-lg-1"],[1,"col-sm-2","col-lg-2"],[1,"col-sm-3","col-lg-3"],[1,"row","row-striped"],["tooltip","Delete","placement","right","theme","light","offset","0","show-delay","500",1,"col-sm-2","col-lg-2"],["role","button",2,"float","right","cursor","pointer",3,"click"],[1,"form-group","row","pull-right"],["type","button",1,"btn","mx-3",3,"click"],["type","submit",1,"btn","btn-app-primary",3,"disabled"],["class","fa fa-lg fa-spinner fa-pulse align-middle","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"fa","fa-lg","fa-spinner","fa-pulse","align-middle"],[1,"modal-header","text-center","align-middle","px-2","d-flex","justify-content-center",3,"ngClass"],[1,"d-inline","align-middle"],["class","d-inline align-middle px-2 fa fa-times-circle fa-2x",4,"ngIf"],["class","d-inline align-middle px-2 fa fa-check-circle fa-2x",4,"ngIf"],[1,"modal-body","text-center"],["data-dismiss","macPassModal","aria-label","Close",1,"m-2","btn","float-right",3,"ngClass","click"],[1,"d-inline","align-middle","px-2","fa","fa-times-circle","fa-2x"],[1,"d-inline","align-middle","px-2","fa","fa-check-circle","fa-2x"]],template:function(e,t){1&e&&(o.Vb(0,"form",0,1),o.hc("ngSubmit",(function(){return t.newMode?t.requestTransponder():t.updateTransponder()})),o.Rc(2,tn,6,1,"div",2),o.Rc(3,hn,54,40,"div",3),o.Rc(4,mn,9,8,"div",4),o.Ub(),o.Vb(5,"div",5),o.Vb(6,"div",6),o.Vb(7,"div",7),o.Vb(8,"div",8),o.Vb(9,"div",9),o.Vb(10,"div",10),o.Vb(11,"p"),o.Vb(12,"strong"),o.Tc(13,"Note: Auto Group "),o.Ub(),o.Tc(14," includes: passenger car, van, motorcycle, station wagon, SUV, pick-up truck, and school bus."),o.Qb(15,"br"),o.Vb(16,"strong"),o.Tc(17,"Truck Group"),o.Ub(),o.Tc(18," includes: tractor trailers, buses and step or cube vans. "),o.Qb(19,"br"),o.Vb(20,"strong"),o.Tc(21,"RV Group"),o.Ub(),o.Tc(22," includes motor homes. Please select group based on vehicle with MacPass (i.e. lead vehicle). "),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Rc(23,In,1,1,"ng-template",11,12,o.Sc)),2&e&&(o.Bb(2),o.uc("ngIf",t.newAccountMode&&t.isEmployer),o.Bb(1),o.uc("ngIf",t.transponderRequest.Enabled),o.Bb(1),o.uc("ngIf",!t.newAccountMode))},directives:[d.z,d.o,d.p,m.n,d.a,d.n,d.q,d.w,d.v,m.m,d.c,T.a,V.a,d.r,d.y,Xt.a,m.l],pipes:[C.c],styles:[".row-striped[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#efefef}.row-striped[_ngcontent-%COMP%]:nth-of-type(2n){background-color:#fff}.row-head[_ngcontent-%COMP%]{background-color:#1479cf!important;background-color:var(--secondary-color)!important;color:#fff}.auto-popup[_ngcontent-%COMP%]{background-color:#efefef}#autoInfoModal[_ngcontent-%COMP%]{margin-top:3%}.v-lst[_ngcontent-%COMP%]{font-size:.875rem}.auto-dropdown[_ngcontent-%COMP%]{font-weight:700!important}.subDescription[_ngcontent-%COMP%]{font-weight:400!important;color:#00f}"]}),e}(),Sn=function(){function e(){this.onTransponderRequest=new o.n}return e.prototype.ngOnInit=function(){},e.prototype.onTransponderRequested=function(e){this.onTransponderRequest.emit(!0),jQuery("#newTransponderModal").modal("hide")},e.prototype.onTransponderRequestCancelled=function(e){jQuery("#newTransponderModal").modal("hide")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Jb({type:e,selectors:[["app-request-transponders"]],outputs:{onTransponderRequest:"onTransponderRequest"},decls:9,vars:3,consts:[["id","newTransponderModal","tabindex","-1","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-body"],[3,"onTransponderRequested","onTransponderRequestCancelled"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"h3"),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Ub(),o.Vb(7,"div",4),o.Vb(8,"app-transponder-info",5),o.hc("onTransponderRequested",(function(e){return t.onTransponderRequested(e)}))("onTransponderRequestCancelled",(function(e){return t.onTransponderRequestCancelled(e)})),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(5),o.Uc(o.nc(6,1,"REQUEST_TRANSPONDERS_SMARTCARDS")))},directives:[Cn],pipes:[C.c],styles:["[_ngcontent-%COMP%]:root{--primary-color:#12723a;--background-color:#fff;--text-color:#000;--secondary-color:#0f8741;--darkPrimary-color:#015824;--nav-background-color:#fff;--nav-text-color:#fff;--nav-hover-color:rgba(0,123,184,0.49411764705882355);--nav-hover-text-color:#fff;--nav-button-primary-color:#fff;--nav-button-primary-hover:rgba(0,123,184,0.49411764705882355);--footer-background-color:#343a40;--footer-text-color:#182d38;--footer-hover-color:#343a40;--footer-hover-text-color:#fff}"]}),e}(),Pn=function(){function e(){this.onTransponderSuspended=new o.n}return e.prototype.ngOnInit=function(){},e.prototype.confirmSuspension=function(){this.onTransponderSuspended.emit(this.transponder),jQuery("#suspendTransponderModal").modal("hide")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Jb({type:e,selectors:[["app-suspend-transponder-confirmation"]],inputs:{transponder:"transponder"},outputs:{onTransponderSuspended:"onTransponderSuspended"},decls:18,vars:13,consts:[["id","suspendTransponderModal","tabindex","-1","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content","modal-warning"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],["data-dismiss","modal",1,"btn","btn-secondary"],[1,"btn","btn-warning",3,"click"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"h5",4),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Ub(),o.Vb(7,"div",5),o.Vb(8,"span"),o.Tc(9),o.mc(10,"translate"),o.Ub(),o.Ub(),o.Vb(11,"div",6),o.Vb(12,"button",7),o.Tc(13),o.mc(14,"translate"),o.Ub(),o.Vb(15,"button",8),o.hc("click",(function(){return t.confirmSuspension()})),o.Tc(16),o.mc(17,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(5),o.Wc(" ",o.nc(6,5,"TRANSPONDER_REQUEST_SUSPEND_NO"),"",null==t.transponder?null:t.transponder.TransponderDisplayId," "),o.Bb(4),o.Uc(o.nc(10,7,"TRANSPONDER_REQUEST_SUSPEND")),o.Bb(4),o.Vc(" ",o.nc(14,9,"CANCEL")," "),o.Bb(3),o.Vc(" ",o.nc(17,11,"CONFIRM")," "))},pipes:[C.c],styles:[".modal-header[_ngcontent-%COMP%]{background-color:#fcbd02;border-bottom:1px solid #eee;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;border-top-left-radius:5px;border-top-right-radius:5px}"]}),e}();function An(e,t){1&e&&(o.Vb(0,"div",12),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"TRANSPONDERS_SMARTCARDS")))}function Mn(e,t){1&e&&(o.Vb(0,"b"),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e&&(o.Bb(1),o.Uc(o.nc(2,1,"TRANSPONDERS_SMARTCARDS")))}function wn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",13),o.Vb(1,"div",14),o.Vb(2,"h5"),o.Rc(3,Mn,3,3,"b",15),o.Ub(),o.Ub(),o.Vb(4,"div",14),o.Vb(5,"button",16),o.hc("click",(function(){return o.Jc(n),o.lc().launchTransponderRequest()})),o.Qb(6,"i",17),o.Tc(7),o.mc(8,"translate"),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(3),o.uc("ngIf",r.integrated),o.Bb(4),o.Vc(" ",o.nc(8,2,"REQUEST_TRANSPONDERS_SMARTCARDS")," ")}}function Rn(e,t){1&e&&(o.Vb(0,"div",18),o.Qb(1,"i",19),o.Ub())}function Bn(e,t){1&e&&(o.Vb(0,"th",22),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e&&(o.Bb(1),o.Vc(" ",o.nc(2,1,"TRIP_COUNT")," "))}function On(e,t){if(1&e&&(o.Vb(0,"td"),o.Tc(1),o.Ub()),2&e){var n=o.lc().$implicit;o.Bb(1),o.Uc(n.TripCount)}}function En(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",31),o.hc("click",(function(){o.Jc(n);var e=o.lc().$implicit;return o.lc(2).suspendTransponder(e)})),o.Qb(1,"i",32),o.Tc(2),o.mc(3,"translate"),o.Ub()}2&e&&(o.Bb(2),o.Vc(" ",o.nc(3,1,"SUSPEND")," "))}function kn(e,t){if(1&e&&(o.Vb(0,"tr"),o.Vb(1,"td"),o.Tc(2),o.Ub(),o.Vb(3,"td"),o.Tc(4),o.Ub(),o.Vb(5,"td"),o.Tc(6),o.Ub(),o.Vb(7,"td"),o.Tc(8),o.Ub(),o.Vb(9,"td"),o.Tc(10),o.Ub(),o.Vb(11,"td",27),o.Tc(12),o.Ub(),o.Vb(13,"td",28),o.Vb(14,"span"),o.Qb(15,"i",29),o.Tc(16),o.mc(17,"translate"),o.mc(18,"mapType"),o.Ub(),o.Ub(),o.Rc(19,On,2,1,"td",15),o.Vb(20,"td"),o.Rc(21,En,4,3,"button",30),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.lc(2);o.Bb(2),o.Uc(n.TransponderDisplayId),o.Bb(2),o.Uc(n.VehicleMake),o.Bb(2),o.Uc(n.VehicleModel),o.Bb(2),o.Uc(n.VehicleColor),o.Bb(2),o.Uc(n.PlateNum),o.Bb(2),o.Vc(" ",r.getCategoryName(n.TollCategoryId)," "),o.Bb(3),o.uc("ngClass",2!=(null==n?null:n.RestrictionStatus)?"fa-exclamation-circle hov-alert":"fa-check-circle-o hov-ok"),o.Bb(1),o.Vc(" ",o.nc(17,10,o.oc(18,12,n.RestrictionStatus,"eTransponderRestrictionMap")),""),o.Bb(3),o.uc("ngIf",r.isEmployee),o.Bb(2),o.uc("ngIf",2==n.RestrictionStatus)}}function xn(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1,"Ordered"),o.Ub())}function Nn(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1,"Ordered"),o.Ub())}function _n(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1,"Rejected"),o.Ub())}function Dn(e,t){if(1&e&&(o.Vb(0,"td"),o.Tc(1),o.Ub()),2&e){var n=o.lc(2).$implicit;o.Bb(1),o.Uc(n.TripCount)}}function Ln(e,t){if(1&e&&(o.Vb(0,"tr"),o.Vb(1,"td"),o.Tc(2,"Unassigned"),o.Ub(),o.Vb(3,"td"),o.Tc(4),o.Ub(),o.Vb(5,"td"),o.Tc(6),o.Ub(),o.Vb(7,"td"),o.Tc(8),o.Ub(),o.Vb(9,"td"),o.Tc(10),o.Ub(),o.Vb(11,"td"),o.Tc(12),o.Ub(),o.Vb(13,"td"),o.Rc(14,xn,2,0,"span",15),o.Rc(15,Nn,2,0,"span",15),o.Rc(16,_n,2,0,"span",15),o.Ub(),o.Rc(17,Dn,2,1,"td",15),o.Vb(18,"td",33),o.Tc(19," - "),o.Ub(),o.Ub()),2&e){var n=o.lc().$implicit,r=o.lc(2);o.Bb(4),o.Uc(n.VehicleMake),o.Bb(2),o.Uc(n.VehicleModel),o.Bb(2),o.Uc(n.VehicleColor),o.Bb(2),o.Uc(n.PlateNum),o.Bb(2),o.Uc(r.getCategoryName(n.TollCategoryId)),o.Bb(2),o.uc("ngIf","R"===n.WebRequestStatus),o.Bb(1),o.uc("ngIf","R"===n.VehicleStatus&&"V"===n.WebRequestStatus),o.Bb(1),o.uc("ngIf","J"===n.WebRequestStatus),o.Bb(1),o.uc("ngIf",r.isEmployee)}}function qn(e,t){if(1&e&&(o.Tb(0),o.Rc(1,Ln,20,9,"tr",15),o.Sb()),2&e){var n=t.$implicit,r=o.lc(2);o.Bb(1),o.uc("ngIf",!r.IsTransponderRejected(n))}}function Fn(e,t){if(1&e&&(o.Vb(0,"div",20),o.Vb(1,"table",21),o.Vb(2,"thead"),o.Vb(3,"tr"),o.Vb(4,"th",22),o.Tc(5),o.mc(6,"translate"),o.Ub(),o.Vb(7,"th",22),o.Tc(8),o.mc(9,"translate"),o.Ub(),o.Vb(10,"th",22),o.Tc(11),o.mc(12,"translate"),o.Ub(),o.Vb(13,"th",22),o.Tc(14),o.mc(15,"translate"),o.Ub(),o.Vb(16,"th",22),o.Tc(17),o.mc(18,"translate"),o.Ub(),o.Vb(19,"th",23),o.Tc(20),o.mc(21,"translate"),o.Ub(),o.Vb(22,"th",22),o.Tc(23),o.mc(24,"translate"),o.Ub(),o.Rc(25,Bn,3,3,"th",24),o.Vb(26,"th",25),o.Tc(27),o.mc(28,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Vb(29,"tbody"),o.Rc(30,kn,22,15,"tr",26),o.Rc(31,qn,2,1,"ng-container",26),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(5),o.Uc(o.nc(6,11,"TRANSPONDERS_SMARTCARD")),o.Bb(3),o.Vc(" ",o.nc(9,13,"VEHICLE_MAKE")," "),o.Bb(3),o.Vc(" ",o.nc(12,15,"VEHICLE_MODEL")," "),o.Bb(3),o.Uc(o.nc(15,17,"COLOR")),o.Bb(3),o.Vc(" ",o.nc(18,19,"VEHICLE_PLATE")," "),o.Bb(3),o.Vc(" ",o.nc(21,21,"VEHICLE_CATEGORY")," "),o.Bb(3),o.Uc(o.nc(24,23,"STATUS")),o.Bb(2),o.uc("ngIf",n.isEmployee),o.Bb(2),o.Uc(o.nc(28,25,"ACTION")),o.Bb(3),o.uc("ngForOf",n.transponders),o.Bb(1),o.uc("ngForOf",n.pendingTransponders)}}function jn(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",38),o.hc("click",(function(){o.Jc(n);var e=o.lc().$implicit;return o.lc().suspendTransponder(e)})),o.Qb(1,"i",32),o.Tc(2),o.mc(3,"translate"),o.Ub()}2&e&&(o.Bb(2),o.Vc(" ",o.nc(3,1,"SUSPEND")," "))}function Jn(e,t){if(1&e&&(o.Vb(0,"li",34),o.Vb(1,"div",3),o.Vb(2,"div",35),o.Vb(3,"h5"),o.Tc(4),o.Ub(),o.Ub(),o.Vb(5,"div",35),o.Vb(6,"span",36),o.Qb(7,"i",29),o.Tc(8),o.mc(9,"translate"),o.mc(10,"mapType"),o.Ub(),o.Ub(),o.Ub(),o.Vb(11,"div"),o.Rc(12,jn,4,3,"button",37),o.Vb(13,"div"),o.Vb(14,"b"),o.Tc(15),o.mc(16,"translate"),o.Ub(),o.Tc(17),o.Ub(),o.Vb(18,"div"),o.Vb(19,"b"),o.Tc(20),o.mc(21,"translate"),o.Ub(),o.Tc(22),o.Ub(),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.lc();o.Bb(4),o.Vc(" ",n.TransponderDisplayId," "),o.Bb(3),o.uc("ngClass",2!=n.RestrictionStatus?"fa-exclamation-circle hov-alert":"fa-check-circle-o hov-ok"),o.Bb(1),o.Vc(" ",o.nc(9,8,o.oc(10,10,n.RestrictionStatus,"eTransponderRestrictionMap"))," "),o.Bb(4),o.uc("ngIf",2==n.RestrictionStatus),o.Bb(3),o.Vc(" ",o.nc(16,13,"PLATE"),":"),o.Bb(2),o.Vc(" ",n.PlateNum," "),o.Bb(3),o.Vc(" ",o.nc(21,15,"CATEGORY"),":"),o.Bb(2),o.Vc(" ",r.getCategoryName(n.TollCategoryId)," ")}}function Gn(e,t){if(1&e&&(o.Vb(0,"li",34),o.Vb(1,"div",3),o.Vb(2,"div",35),o.Vb(3,"div"),o.Vb(4,"b"),o.Tc(5," Ordered"),o.Ub(),o.Ub(),o.Vb(6,"div"),o.Vb(7,"b"),o.Tc(8),o.mc(9,"translate"),o.Ub(),o.Tc(10),o.Ub(),o.Vb(11,"div"),o.Vb(12,"b"),o.Tc(13),o.mc(14,"translate"),o.Ub(),o.Tc(15),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.lc();o.Bb(8),o.Vc(" ",o.nc(9,4,"PLATE"),":"),o.Bb(2),o.Vc(" ",n.PlateNum," "),o.Bb(3),o.Vc(" ",o.nc(14,6,"CATEGORY"),":"),o.Bb(2),o.Vc(" ",r.getCategoryName(n.TollCategoryId)," ")}}var Wn=function(){function e(e,t,n,o,r){this.configurationService=e,this.accountService=t,this.userService=n,this.alertService=o,this.databaseMapService=r,this.isAO=!1,this.showPendingOrder=!0,this.isLoading=!0}return e.prototype.ngOnInit=function(){var e=this;this.configurationService.getTollCategories().subscribe((function(t){return e.vehicleCategories=t})),this.accountSub=this.accountService.getActiveAccount().subscribe((function(t){t&&(e.account=t,e.isEmployee=t.AccountSubType===e.databaseMapService.eAccountSubTypeMap.Employee,e.getTransponderVehicleInfo(t.AccountID))}))},e.prototype.getCategoryName=function(e){var t="";if(null!=this.vehicleCategories){var n=this.vehicleCategories.filter((function(t){return t.Id===e}));n.length>0&&(t=this.isAO?n[0].Name:n[0].GroupName)}return t},e.prototype.getTransponderVehicleInfo=function(e,t){var n=this;void 0===t&&(t=!1),this.isLoading=!0,this.accountService.getTransponderVehicleInfo(e,t).subscribe((function(t){n.transponders=t,n.accountService.getRequestedVehicleInfo(e).subscribe((function(e){n.pendingTransponders=e,n.isLoading=!1}),(function(e){n.isLoading=!1,console.log("error in GetTransponderVehicleInfo: "+e)}))}),(function(e){n.isLoading=!1,console.log("error in GetTransponderVehicleInfo: "+e)}))},e.prototype.launchTransponderRequest=function(){this.alertService.clear(),jQuery("#newTransponderModal").modal({show:!0})},e.prototype.launchSuspendTransponderConfirmation=function(){jQuery("#suspendTransponderModal").modal({show:!0})},e.prototype.onTransponderSuspended=function(e){var t=this,n=this.userService.getCurrentUser().AccountId;this.accountService.updateSuspendTag({AccountId:n,ManufacturerId:e.ManufacturerId,TransponderId:e.TransponderId}).subscribe((function(){t.alertService.success("MacPass was successfully suspended!",!0),t.getTransponderVehicleInfo(n,!0)}),(function(e){t.alertService.error("Sorry! MacPass could not be suspended. Please contact customer Service!"+e,!1)}))},e.prototype.suspendTransponder=function(e){this.transponder=e,jQuery("#suspendTransponderModal").modal({show:!0})},e.prototype.ngOnDestroy=function(){void 0!==this.accountSub&&this.accountSub.unsubscribe()},e.prototype.onTransponderRequest=function(e){var t=this;e&&(this.accountService.resetCachedRequestedVehicleInfo(),this.accountService.getRequestedVehicleInfo(this.account.AccountID).subscribe((function(e){t.pendingTransponders=e}),(function(e){console.log("error in GetTransponderVehicleInfo: "+e)})))},e.prototype.IsTransponderRejected=function(e){var t=!1;return"J"!==e.WebRequestStatus&&"J"!==e.VehicleStatus||(t=!0),t},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.l),o.Pb(g.c),o.Pb(g.I),o.Pb(g.e),o.Pb(g.n))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-transponders"]],inputs:{integrated:"integrated"},decls:13,vars:7,consts:[["class","section-header mb-4",4,"ngIf"],[1,"mx-3"],["class","row mt-4",4,"ngIf"],[1,"row"],[1,"col","p-0"],["class","text-center d-flex justify-content-center align-self-center",4,"ngIf"],["class","table-responsive conditionalScroll d-none d-md-block d-lg-block d-xl-block","id","scroll-bar",4,"ngIf"],[1,"d-md-none"],[1,"list-group","list-group-flush","mt-2"],["class","list-group-item mb-1",4,"ngFor","ngForOf"],[3,"onTransponderRequest"],[3,"transponder","onTransponderSuspended"],[1,"section-header","mb-4"],[1,"row","mt-4"],[1,"col-6"],[4,"ngIf"],["InActiveAccount","",1,"btn","btn-app-primary","float-sm-right",3,"click"],["aria-hidden","true",1,"fa","fa-plus-square"],[1,"text-center","d-flex","justify-content-center","align-self-center"],[1,"fa","fa-4x","fa-spinner","fa-pulse"],["id","scroll-bar",1,"table-responsive","conditionalScroll","d-none","d-md-block","d-lg-block","d-xl-block"],[1,"table","mt-2"],["scope","col"],["scope","col",1,"d-none","d-md-block"],["scope","col",4,"ngIf"],["scope","col","InActiveAccount",""],[4,"ngFor","ngForOf"],[1,"d-none","d-md-block"],[1,""],[1,"fa",3,"ngClass"],["InActiveAccount","","type","button","class","btn btn-warning btn-sm",3,"click",4,"ngIf"],["InActiveAccount","","type","button",1,"btn","btn-warning","btn-sm",3,"click"],["aria-hidden","true",1,"fa","far","fa-pause-circle"],["InActiveAccount",""],[1,"list-group-item","mb-1"],[1,"col"],[1,"float-right"],["type","button","class","btn btn-warning btn-sm float-right",3,"click",4,"ngIf"],["type","button",1,"btn","btn-warning","btn-sm","float-right",3,"click"]],template:function(e,t){1&e&&(o.Rc(0,An,4,3,"div",0),o.Vb(1,"div",1),o.Rc(2,wn,9,4,"div",2),o.Vb(3,"div",3),o.Vb(4,"div",4),o.Rc(5,Rn,2,0,"div",5),o.Rc(6,Fn,32,27,"div",6),o.Vb(7,"div",7),o.Vb(8,"ul",8),o.Rc(9,Jn,23,17,"li",9),o.Rc(10,Gn,16,8,"li",9),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(11,"app-request-transponders",10),o.hc("onTransponderRequest",(function(e){return t.onTransponderRequest(e)})),o.Ub(),o.Vb(12,"app-suspend-transponder-confirmation",11),o.hc("onTransponderSuspended",(function(e){return t.onTransponderSuspended(e)})),o.Ub(),o.Ub()),2&e&&(o.uc("ngIf",!t.integrated),o.Bb(2),o.uc("ngIf",!t.isEmployee&&t.configurationService.config.RequestTransponder),o.Bb(3),o.uc("ngIf",t.isLoading),o.Bb(1),o.uc("ngIf",!t.isLoading),o.Bb(3),o.uc("ngForOf",t.transponders),o.Bb(1),o.uc("ngForOf",t.pendingTransponders),o.Bb(2),o.uc("transponder",t.transponder))},directives:[m.n,m.m,Sn,Pn,U.a,m.l],pipes:[C.c,Ze.a],styles:["[_ngcontent-%COMP%]:root{--primary-color:#12723a;--background-color:#fff;--text-color:#000;--secondary-color:#0f8741;--darkPrimary-color:#015824;--nav-background-color:#fff;--nav-text-color:#fff;--nav-hover-color:rgba(0,123,184,0.49411764705882355);--nav-hover-text-color:#fff;--nav-button-primary-color:#fff;--nav-button-primary-hover:rgba(0,123,184,0.49411764705882355);--footer-background-color:#343a40;--footer-text-color:#182d38;--footer-hover-color:#343a40;--footer-hover-text-color:#fff}.list-group-item[_ngcontent-%COMP%]{border-radius:10px;border:none}input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"]}),e}();function Qn(e,t){if(1&e&&(o.Vb(0,"a",19),o.mc(1,"translate"),o.Tc(2),o.mc(3,"translate"),o.Ub()),2&e){var n=o.lc().$implicit;o.vc("routerLink",o.nc(1,2,n.Url)),o.Bb(2),o.Uc(o.nc(3,4,n.Name))}}function Yn(e,t){if(1&e&&(o.Vb(0,"a",20),o.mc(1,"translate"),o.Tc(2),o.mc(3,"translate"),o.Ub()),2&e){var n=o.lc().$implicit;o.vc("href",o.nc(1,2,n.Url),o.Lc),o.Bb(2),o.Uc(o.nc(3,4,n.Name))}}function Hn(e,t){if(1&e&&(o.Vb(0,"li",16),o.Rc(1,Qn,4,6,"a",17),o.mc(2,"translate"),o.Rc(3,Yn,4,6,"ng-template",null,18,o.Sc),o.Ub()),2&e){var n=t.$implicit,r=o.Gc(4),i=o.lc();o.Bb(1),o.uc("ngIf",i.isUrl(o.nc(2,2,n.Url)))("ngIfElse",r)}}var zn=function(){function e(e,t,n){this.configService=e,this.authServiceProvider=t,this.accountService=n,this.user=this.accountService.getCurrentUser()}return e.prototype.ngOnInit=function(){},e.prototype.isUrl=function(e){return"/"===e.charAt(0)},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.l),o.Pb(g.i),o.Pb(g.c))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-main-view"]],decls:21,vars:9,consts:[[1,"section-header","mb-4"],[1,"mx-4","mt-2"],[1,"row"],[1,"col-lg-9","col-md-12"],[1,"mb-4",3,"integrated"],[1,"col-lg-3","quicklinks","d-none","d-lg-block"],[1,"blog-sidebar"],[1,"card","mb-2","shadow"],[1,"card-body"],[1,"mb-2"],[1,"card-title"],[1,"list-group","list-group-flush"],["class","list-group-item p-0",4,"ngFor","ngForOf"],[1,"row","mt-2"],[1,"col-lg-12"],[1,"ie-scroll",3,"integrated"],[1,"list-group-item","p-0"],["aria-label","Toggle navigation","class","text-primary list-group-item  list-group-item-action","href","#",3,"routerLink",4,"ngIf","ngIfElse"],["url",""],["aria-label","Toggle navigation","href","#",1,"text-primary","list-group-item","list-group-item-action",3,"routerLink"],["target","noopener noreferrer","aria-label","Toggle navigation",1,"text-primary","list-group-item","list-group-item-action",3,"href"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub(),o.Vb(4,"div",1),o.Vb(5,"div",2),o.Vb(6,"div",3),o.Qb(7,"app-account-summary",4),o.Ub(),o.Vb(8,"div",5),o.Vb(9,"aside",6),o.Vb(10,"div",7),o.Vb(11,"div",8),o.Vb(12,"h4",9),o.Vb(13,"span",10),o.Tc(14),o.mc(15,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Vb(16,"ol",11),o.Rc(17,Hn,5,4,"li",12),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(18,"div",13),o.Vb(19,"div",14),o.Qb(20,"app-transponders",15),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,5,"HOME")),o.Bb(5),o.uc("integrated",!0),o.Bb(7),o.Uc(o.nc(15,7,"QUICK_LINKS")),o.Bb(3),o.uc("ngForOf",t.configService.config.QuickLinks),o.Bb(3),o.uc("integrated",!0))},directives:[ct,m.m,Wn,m.n,f.i],pipes:[C.c],styles:[".container-fluid[_ngcontent-%COMP%]{max-width:1236px}.conditionalScroll[_ngcontent-%COMP%]{width:100%;height:365px;overflow-y:scroll}.quicklinks[_ngcontent-%COMP%]{margin-top:-60px}.list-group-item[_ngcontent-%COMP%]{border:none;color:#000!important}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ie-scroll[_ngcontent-%COMP%]{overflow-y:scroll}}"]}),e}();function $n(e,t){if(1&e&&(o.Vb(0,"tr"),o.Vb(1,"td"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Vb(4,"td"),o.Tc(5),o.mc(6,"translate"),o.mc(7,"currency"),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.lc();o.Bb(2),o.Uc(o.nc(3,2,n.Vehicle)),o.Bb(3),o.Vc(" ",o.nc(6,4,o.oc(7,6,n.Fare,r.configService.config.DefaultCurrency))," ")}}var Kn=function(){function e(e,t){this.faqService=e,this.configService=t}return e.prototype.ngOnInit=function(){this.getTollFees()},e.prototype.getTollFees=function(){var e=this;this.faqService.getTollFees().subscribe((function(t){e.tollfees=t}),(function(){}))},e.prototype.getCashEtcFares=function(){this.cashPaymentFees=[{class:2,description:"Passenger Cars, Taxicabs, Pickup Trucks, Motorcycles with or\n         without a Trailer,and Non-Commercial&amp;nbsp; 2-Axle Vans",axles:2,fare:4},{class:3,description:"Recreation Vehicles and Motor homes with 2 Axles",axles:3,fare:5.25},{class:4,description:"Recreation Vehicles and Motor homes with 3 Axles, Class 2 and 3 Vehicles with 1-Axle Trailer",axles:4,fare:5.25},{class:5,description:"Class 2 and 3 Vehicles with 2-Axle Trailer or 3-Axle Trailer, or Towing a 2-Axle Passenger Vehicle",axles:5,fare:5.25},{class:6,description:"Trucks, Buses, Tractor-trailers, or Equipment Other than Class 2-5 &amp;nbsp;\n         &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 2 Axles",axles:6,fare:6},{class:7,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 3 Axles",axles:7,fare:9},{class:8,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 4 Axles",axles:8,fare:12},{class:9,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 5 Axles",axles:9,fare:15},{class:10,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 6 Axles",axles:10,fare:18},{class:11,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 7 Axles",axles:11,fare:21},{class:12,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Totaling 8 Axles",axles:12,fare:24}],this.etcPaymentFees=[{class:2,description:"Motorcycles with or without a Trailer, Passenger Cars, Taxicabs, Pickup Trucks, and Non-Commercial",extra:"2-Axle Vans",axles:2,fare:2},{class:3,description:"Recreation Vehicles and Motor homes with 2 Axles",extra:"",axles:3,fare:2.75},{class:4,description:"Recreation Vehicles and Motor homes with 3 Axles, Class 2 and 3 Vehicles with 1-Axle Trailer",extra:"",axles:4,fare:2.75},{class:5,description:"Class 2 and 3 Vehicles with 2-Axle Trailer or 3-Axle Trailer, or Towing a 2-Axle Passenger Vehicle",extra:"",axles:5,fare:2.75},{class:6,description:"Trucks, Buses, Tractor-trailers, or Equipment Other than Class 2-5",extra:"Totaling 2 Axles",axles:6,fare:5},{class:7,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5",extra:"Totaling 3 Axles",axles:7,fare:7.5},{class:8,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5",extra:"Totaling 4 Axles",axles:8,fare:10},{class:9,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5",extra:"Totaling 5 Axles",axles:9,fare:12.5},{class:10,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 ",extra:"Totaling 6 Axles",axles:10,fare:15},{class:11,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5 ",extra:"Totaling 7 Axles",axles:11,fare:15},{class:12,description:"Trucks, Buses, Tractor-trailers or Equipment Other Than Class 2-5",extra:"Totaling 8 Axles",axles:12,fare:15}]},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.s),o.Pb(g.l))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-toll-fees"]],decls:17,vars:10,consts:[[1,"container"],[1,"card","mb-3","shadow"],[1,"card-body"],[1,"card-title","pb-3"],["id","cashTable",1,"table","mt-2"],["scope","col"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"h4",3),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Vb(6,"table",4),o.Vb(7,"thead"),o.Vb(8,"tr"),o.Vb(9,"th",5),o.Tc(10),o.mc(11,"translate"),o.Ub(),o.Vb(12,"th",5),o.Tc(13),o.mc(14,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Vb(15,"tbody"),o.Rc(16,$n,8,9,"tr",6),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(4),o.Vc(" ",o.nc(5,4,"TOLLS_AND_FEES")," "),o.Bb(6),o.Vc(" ",o.nc(11,6,"VEHICLE")," "),o.Bb(3),o.Vc(" ",o.nc(14,8,"FARE")," "),o.Bb(3),o.uc("ngForOf",t.tollfees))},directives:[m.m],pipes:[C.c,m.c],styles:[""]}),e}();function Zn(e,t){1&e&&o.Qb(0,"span",26)}function Xn(e,t){1&e&&(o.Vb(0,"label",29),o.Vb(1,"i",30),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"ENTER_USERNAME")," "))}function eo(e,t){1&e&&(o.Vb(0,"label",29),o.Vb(1,"i",30),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"UNIQUE_USERNAME")," "))}function to(e,t){1&e&&(o.Vb(0,"label",29),o.Vb(1,"i",31),o.Tc(2),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"),o.Bb(1),o.Vc(" ",o.nc(4,2,"NO_SPACE")," "))}function no(e,t){1&e&&(o.Vb(0,"label",29),o.Vb(1,"i",31),o.Tc(2),o.Ub(),o.Tc(3," Unable to verify the username "),o.Ub()),2&e&&(o.Bb(2),o.Uc("cancel"))}function oo(e,t){if(1&e&&(o.Vb(0,"div"),o.Rc(1,Xn,5,4,"label",27),o.Rc(2,eo,5,4,"label",28),o.Rc(3,to,5,4,"label",28),o.Rc(4,no,4,1,"label",28),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngIf",null==n.passwordForm.controls.username.errors?null:n.passwordForm.controls.username.errors.required),o.Bb(1),o.uc("ngIf",null==n.passwordForm.controls.username.errors?null:n.passwordForm.controls.username.errors.unique),o.Bb(1),o.uc("ngIf",null==n.passwordForm.controls.username.errors?null:n.passwordForm.controls.username.errors.whiteSpace),o.Bb(1),o.uc("ngIf",null==n.passwordForm.controls.userName||null==n.passwordForm.controls.userName.errors?null:n.passwordForm.controls.userName.errors.unverfied)}}function ro(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"div",12),o.Vb(2,"label",32),o.Vb(3,"i",30),o.Tc(4),o.Ub(),o.Tc(5),o.Ub(),o.Vb(6,"label",32),o.Vb(7,"i",30),o.Tc(8),o.Ub(),o.Tc(9," Must contain at least 1 number! "),o.Ub(),o.Vb(10,"label",32),o.Vb(11,"i",30),o.Tc(12),o.Ub(),o.Tc(13," Must contain at least 1 in Capital Case! "),o.Ub(),o.Vb(14,"label",32),o.Vb(15,"i",30),o.Tc(16),o.Ub(),o.Tc(17," Must contain at least 1 Letter in Small Case! "),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc(2);o.Bb(2),o.uc("ngClass",n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("minlength")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("minlength")?"cancel":"check_circle"),o.Bb(1),o.Vc(" ",n.labelPasswordMustBeAtLeastNChars," "),o.Bb(1),o.uc("ngClass",n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasNumber")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasNumber")?"cancel":"check_circle"),o.Bb(2),o.uc("ngClass",n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasCapitalCase")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasCapitalCase")?"cancel":"check_circle"),o.Bb(2),o.uc("ngClass",n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasSmallCase")?"text-danger":"text-success"),o.Bb(2),o.Uc(n.passwordForm.controls.password.hasError("required")||n.passwordForm.controls.password.hasError("hasSmallCase")?"cancel":"check_circle")}}function io(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1,"Password is invalid. "),o.Ub())}function co(e,t){1&e&&(o.Vb(0,"span"),o.Tc(1,"Passwords do not match."),o.Ub())}function ao(e,t){if(1&e&&(o.Vb(0,"div",33),o.Rc(1,io,2,0,"span",21),o.Rc(2,co,2,0,"span",21),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngIf",n.passwordForm.controls.password.dirty&&(null==n.passwordForm.controls.password.errors?null:n.passwordForm.controls.password.errors.pattern)),o.Bb(1),o.uc("ngIf",(n.passwordForm.controls.confirmPassword.dirty||n.passwordForm.controls.confirmPassword.touched)&&(null==n.passwordForm.controls.confirmPassword.errors?null:n.passwordForm.controls.confirmPassword.errors.MatchPassword))}}var so=function(e){return{"is-valid":e}};function lo(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",8,9),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc().enableWebUserAccount()})),o.Vb(2,"div",10),o.Vb(3,"small"),o.Tc(4),o.Ub(),o.Vb(5,"h6",11),o.Vb(6,"small"),o.Vb(7,"b"),o.Tc(8,"Note:"),o.Ub(),o.Tc(9),o.Vb(10,"u"),o.Tc(11,"case-sensitive"),o.Ub(),o.Tc(12,"."),o.Ub(),o.Ub(),o.Ub(),o.Vb(13,"div",12),o.Vb(14,"label",13),o.Tc(15,"Account Number"),o.Ub(),o.Qb(16,"input",14),o.Ub(),o.Vb(17,"div",12),o.Vb(18,"label",15),o.Tc(19,"Email"),o.Ub(),o.Qb(20,"input",16),o.Ub(),o.Vb(21,"form",17),o.Vb(22,"div",12),o.Vb(23,"label",18),o.Tc(24,"Please choose a unique username"),o.Ub(),o.Vb(25,"input",19),o.hc("keydown.space",(function(e){return o.Jc(n),e.preventDefault()})),o.Ub(),o.Rc(26,Zn,1,0,"span",20),o.Ub(),o.Rc(27,oo,5,4,"div",21),o.Vb(28,"div",12),o.Qb(29,"input",22),o.Ub(),o.Rc(30,ro,18,9,"div",21),o.Vb(31,"div",12),o.Qb(32,"input",23),o.Ub(),o.Rc(33,ao,3,2,"div",24),o.Ub(),o.Vb(34,"button",25),o.Tc(35," Submit "),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(4),o.Uc(r.verifyMessage),o.Bb(5),o.Vc(" ",r.passwordPolicy," Username and password are both "),o.Bb(7),o.vc("placeholder",null==r.accountParams?null:r.accountParams.AccountId),o.Bb(4),o.vc("placeholder",null==r.accountParams?null:r.accountParams.AccountEmail),o.Bb(1),o.uc("formGroup",r.passwordForm),o.Bb(4),o.uc("ngClass",o.zc(11,so,r.passwordForm.controls.username.valid)),o.Bb(1),o.uc("ngIf",r.checkingUserName),o.Bb(1),o.uc("ngIf",((null==r.passwordForm.controls.username?null:r.passwordForm.controls.username.dirty)||(null==r.passwordForm.controls.username?null:r.passwordForm.controls.username.touched))&&(null==r.passwordForm.controls.username?null:r.passwordForm.controls.username.invalid)),o.Bb(3),o.uc("ngIf",r.passwordForm.controls.password.dirty||r.passwordForm.controls.password.touched),o.Bb(3),o.uc("ngIf",r.passwordForm.controls.password.dirty&&(null==r.passwordForm.controls.password.errors?null:r.passwordForm.controls.password.errors.pattern)||(r.passwordForm.controls.confirmPassword.dirty||r.passwordForm.controls.confirmPassword.touched)&&(null==r.passwordForm.controls.confirmPassword.errors?null:r.passwordForm.controls.confirmPassword.errors.MatchPassword)),o.Bb(1),o.uc("disabled",!r.passwordForm.valid)}}function uo(e,t){1&e&&(o.Vb(0,"div",34),o.Vb(1,"a"),o.Tc(2,"Web access is now enabled for your account. Please "),o.Ub(),o.Vb(3,"a",35),o.Tc(4,"Login."),o.Ub(),o.Ub())}function bo(e,t){1&e&&(o.Vb(0,"a"),o.Tc(1,"The verification link is not valid. Please "),o.Ub())}function po(e,t){1&e&&(o.Vb(0,"a"),o.Tc(1,"The verification link for your web request is expired. Please "),o.Ub())}function fo(e,t){if(1&e&&(o.Vb(0,"div",34),o.Rc(1,bo,2,0,"a",21),o.Rc(2,po,2,0,"a",21),o.Vb(3,"a",36),o.Tc(4,"click here"),o.Ub(),o.Vb(5,"a"),o.Tc(6," to submit your request again."),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",n.linkInvalid),o.Bb(1),o.uc("ngIf",n.linkExpired)}}var ho=function(){function e(e,t,n,o,r,i,c){this.alertService=e,this.webAccessService=t,this.route=n,this.formBuilder=o,this.utilsService=r,this.translateService=i,this.configService=c,this.accountEnabled=!1,this.linkExpired=!1,this.linkInvalid=!1,this.passwordPolicy="",this.useAlternativeEmail=!1,this.checkingUserName=!1,this.passwordForm=this.formBuilder.group({username:["",[d.x.required,d.x.pattern(/^\S*$/),this.checkSpace.bind(this)],this.checkUsername.bind(this)],password:["",[d.x.required,d.x.pattern("^(?!.* )(?=.{8,})(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*$"),ft.patternValidator(/\d/,{hasNumber:!0}),ft.patternValidator(/[A-Z]/,{hasCapitalCase:!0}),ft.patternValidator(/[a-z]/,{hasSmallCase:!0}),d.x.minLength(8)]],confirmPassword:["",d.x.required]},{validator:ft.MatchPassword})}return e.prototype.ngOnInit=function(){var e=this;this.route.params.subscribe((function(t){null==t.accessCode||e.getDecryptedCode(t.accessCode)})),this.translateService.get("VERIFIED_ACCESS_MESSAGE").subscribe((function(t){e.verifyMessage=t})),this.labelPasswordMustBeAtLeastNChars="Must be at least 6 characters!",this.labelPasswordMustBeAtLeastNChars="Must be at least 8 characters!",this.translateService.get("PASSWORD_MBA_REQUIREMENTS").subscribe((function(t){e.passwordPolicy=t})),this.backgroundPic=this.utilsService.getBackgroungPic()},e.prototype.getDecryptedCode=function(e){var t=this;this.webAccessService.getDecryptedCode(e).subscribe((function(n){null==n&&(t.linkExpired=!0),t.accountParams=n,t.accountParams.AccessCode=e}),(function(){t.linkInvalid=!0}))},e.prototype.checkSpace=function(e){if(e.value)return/\s/.test(e.value)?(this.checkingUserName=!1,e.setErrors({whiteSpace:!0})):e.setErrors(null)},e.prototype.checkUsername=function(e){var t=this;return this.checkingUserName=!0,e.valueChanges.pipe(Object(at.a)(800),Object(st.a)(800),Object(lt.a)(),Object(ut.a)((function(n){return t.webAccessService.checkUsername(e.value.trim())})),Object(dt.a)((function(e){return t.checkingUserName=!1,e?{unique:!0}:null})),Object(bt.a)((function(e){return t.checkingUserName=!1,Object(c.a)({unverfied:!0})})),Object(pt.a)())},e.prototype.enableWebUserAccount=function(){var e=this,t={WebUserLogonId:this.passwordForm.get("username").value.trim(),WebRequestType:"W",GeneralInfo:"",SecurityQuestion1:"a",SecurityAnswer1:"a",SecurityQuestion2:"",SecurityAnswer2:"",WebUserPassword:this.passwordForm.get("password").value,AccountId:this.accountParams.AccountId,EmailAddress:this.accountParams.AccountEmail,PaymentNum:null,PaymentCardExpiryYear:null,PaymentCardExpiryMonth:null,LinkExpiryDateTime:this.accountParams.LinkExpiryDateTime,AccessCode:this.accountParams.AccessCode};this.webAccessService.enableWebUserAccount(t).subscribe((function(t){t?e.accountEnabled=t:e.linkExpired=!0}),(function(t){e.alertService.error(t,!0),e.passwordForm.reset()}))},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.e),o.Pb(g.L),o.Pb(f.a),o.Pb(d.d),o.Pb(g.J),o.Pb(C.d),o.Pb(g.l))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-enable-web-account"]],decls:13,vars:9,consts:[[1,"container"],["width","200px","id","bg","alt","",3,"src"],[1,"card","mx-auto","col-sm-6","m-5"],[1,"card-body"],[1,"card-title","mb-4","text-center"],["alt","",1,"d-inline-block","align-top","logo","mx-auto",3,"src"],["class","form form-template px-3",3,"ngSubmit",4,"ngIf"],["class","text-center mt-5 px-3 text-left",4,"ngIf"],[1,"form","form-template","px-3",3,"ngSubmit"],["enableUserAccountForm","ngForm"],[1,"mb-3"],[1,"text-justify"],[1,"form-group"],["for","accountNo",1,"col-form-label","col-form-label-sm","mr-2"],["id","accountNo","name","accountNo","type","text","readonly","","InvalidInput","",1,"form-control",3,"placeholder"],["for","email",1,"col-form-label","col-form-label-sm","mr-2"],["id","email","name","email","type","email","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","readonly","",1,"form-control",3,"placeholder"],[1,"form",3,"formGroup"],["for","username",1,"col-form-label","col-form-label-sm","mr-2"],["id","username","name","username","type","text","formControlName","username","placeholder","username","required","","minlength","3","maxlength","30","InvalidInput","",1,"form-control","is-loading","is-loading-sm",3,"ngClass","keydown.space"],["class","spinner-border spinner-border-sm",4,"ngIf"],[4,"ngIf"],["id","password","name","password","type","password","formControlName","password","placeholder","password","maxlength","40","required","",1,"form-control"],["id","confirmPassword","name","confirmPassword","type","password","formControlName","confirmPassword","placeholder","confirm password","maxlength","40","required","",1,"form-control"],["class","alert alert-danger",4,"ngIf"],[1,"btn","btn-app-primary","col-12",3,"disabled"],[1,"spinner-border","spinner-border-sm"],["class"," col text-danger align-middle",4,"ngIf"],["class","col text-danger align-middle",4,"ngIf"],[1,"col","text-danger","align-middle"],[1,"material-icons","align-middle"],[1,"material-icons"],[1,"col",3,"ngClass"],[1,"alert","alert-danger"],[1,"text-center","mt-5","px-3","text-left"],["href","#","routerLink","/login"],["href","#","routerLink","/WebRequest"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Qb(1,"img",1),o.mc(2,"translate"),o.Vb(3,"div",2),o.Vb(4,"div",3),o.Vb(5,"div",4),o.Qb(6,"img",5),o.mc(7,"translate"),o.Vb(8,"h4"),o.Tc(9,"Get web access to your account"),o.Ub(),o.Ub(),o.Rc(10,lo,36,13,"form",6),o.Rc(11,uo,5,0,"div",7),o.Rc(12,fo,7,2,"div",7),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(1),o.vc("src",o.nc(2,5,t.configService.config.BackgroundImageUrl),o.Lc),o.Bb(5),o.vc("src",o.nc(7,7,t.configService.config.LogoImageUrl),o.Lc),o.Bb(4),o.uc("ngIf",t.accountParams&&!t.accountEnabled&&!t.linkExpired),o.Bb(1),o.uc("ngIf",t.accountEnabled),o.Bb(1),o.uc("ngIf",t.linkExpired||t.linkInvalid))},directives:[m.n,d.z,d.o,d.p,T.a,d.g,d.c,d.n,d.f,d.v,d.j,d.i,m.l,f.i],pipes:[C.c],styles:[".container[_ngcontent-%COMP%]{padding-top:40px}#bg[_ngcontent-%COMP%]{position:fixed;top:0;left:0;min-width:100%;min-height:100%}.form-template[_ngcontent-%COMP%]{width:100%;min-width:0;margin:0 auto}input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"]}),e}(),go=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Jb({type:e,selectors:[["ibitoll-help"]],decls:229,vars:3,consts:[[1,"section-header","mb-4"],[1,"ieflow"],[1,"container"],[1,"row"],[1,"col-12"],[1,"col-12","pb-2"],["href","#","routerLink","/WebRequest"],["href","tel://1-906-643-7600"],[1,"col-12","pb-3"],["href","#","routerLink","/Signup"],["href","https://macpass.mackinacbridge.org/"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub(),o.Vb(4,"div",1),o.Vb(5,"div",2),o.Vb(6,"div",3),o.Vb(7,"h4",4),o.Tc(8," I have a MacPass account, how do I get online access to my account? "),o.Ub(),o.Vb(9,"p",5),o.Tc(10," To activate your online account you will need the email address registered on your account and one of the following: account number or MacPass number. To register click "),o.Vb(11,"a",6),o.Tc(12," here."),o.Ub(),o.Qb(13,"br"),o.Vb(14,"strong"),o.Tc(15,"Note:"),o.Ub(),o.Tc(16," After entering your existing account number you will be able to see your updated account number, which was created as part of the system update process. If you do not have an email address on your account or it has changed, please call the MacPass Customer Service Center to update your account "),o.Vb(17,"a",7),o.Tc(18,"(906) 643-7600"),o.Ub(),o.Tc(19,". "),o.Ub(),o.Qb(20,"br"),o.Vb(21,"h4",4),o.Tc(22," After registering with my existing MacPass account number a similar but different account number was shown? "),o.Ub(),o.Vb(23,"p",8),o.Tc(24," As part of the system update process, existing MacPass account numbers were converted to a modern format. Existing account numbers were converted as follows: 1, zeros, existing account number and a check digit. New account numbers have a total of 7 digits. (e.g. existing MacPass account number = 123, new MacPass account number = 1001239). "),o.Ub(),o.Qb(25,"br"),o.Vb(26,"h4",4),o.Tc(27,"How do I sign-up for a new MacPass account?"),o.Ub(),o.Vb(28,"p",8),o.Tc(29," You can register "),o.Vb(30,"a",9),o.Tc(31," here"),o.Ub(),o.Tc(32,". "),o.Qb(33,"br"),o.Tc(34," To register you will need to provide: (1) Personal/Business contact information (including an email address); (2) Address Information; (3) Vehicle Information for Each MacPass tag requested; (4) payment of Initial deposit and setup fees ($47 for Personal accounts and $207 for Business accounts). Payment may be completed using a credit card or bank account. A payment receipt will be emailed to the email address provided from email address noreply@elavon.com. "),o.Ub(),o.Qb(35,"br"),o.Vb(36,"h4",4),o.Tc(37," I have signed up for an account, when will I get my MacPass Tag? "),o.Ub(),o.Vb(38,"p",8),o.Tc(39," After the MacPass is assigned, MacPass Customer Service will mail your MacPass tag(s) within 7-10 business days to the address on file. "),o.Ub(),o.Qb(40,"br"),o.Vb(41,"h4",4),o.Tc(42,"Where can I get a MacPass Tag?"),o.Ub(),o.Vb(43,"p",8),o.Tc(44," You can order MacPass tags by accessing your MacPass account. If you do not have an account you can sign up for a new account "),o.Vb(45,"a",9),o.Tc(46,"here"),o.Ub(),o.Tc(47,". "),o.Qb(48,"br"),o.Tc(49," If you already have a MacPass account, first "),o.Vb(50,"a",6),o.Tc(51,"Activate Web Access"),o.Ub(),o.Tc(52," then you can order MacPass tags. "),o.Ub(),o.Qb(53,"br"),o.Vb(54,"h4",4),o.Tc(55," What do I do if I forget my password to access my MacPass account online? "),o.Ub(),o.Vb(56,"p",8),o.Tc(57," You can reset your password by going "),o.Vb(58,"a",10),o.Tc(59,"here"),o.Ub(),o.Tc(60," and selecting Forgot Password. "),o.Ub(),o.Qb(61,"br"),o.Vb(62,"h4",4),o.Tc(63," What do I have to do if my vehicle information changes? "),o.Ub(),o.Vb(64,"p",4),o.Tc(65," Sticker tags are not meant to be moved from vehicle to vehicle. You can request a new sticker tag for your vehicle by visiting the Customer Service Center or accessing your account online. If your account information is incorrect, you can change it by contacting MacPass Customer Service at "),o.Vb(66,"a",7),o.Tc(67,"(906) 643-7600"),o.Ub(),o.Tc(68,". "),o.Ub(),o.Qb(69,"br"),o.Vb(70,"h4",4),o.Tc(71,"What if I move?"),o.Ub(),o.Vb(72,"p",8),o.Vb(73,"a",10),o.Tc(74,"Log in to your account"),o.Ub(),o.Tc(75," and select Account Details to update your address and telephone information. "),o.Ub(),o.Qb(76,"br"),o.Vb(77,"h4",4),o.Tc(78,"How do I close my account?"),o.Ub(),o.Vb(79,"p",8),o.Tc(80," To close your account, please call MacPass Customer Service Center "),o.Vb(81,"a",7),o.Tc(82,"(906) 643-7600"),o.Ub(),o.Tc(83,". "),o.Ub(),o.Qb(84,"br"),o.Vb(85,"h4",4),o.Tc(86,"How can I get a monthly statement?"),o.Ub(),o.Vb(87,"p",8),o.Tc(88," Monthly statements will be sent to customers with an email address on file monthly. Customers can access any available statements by logging into their account. "),o.Ub(),o.Vb(89,"h4",4),o.Tc(90," What if I want to change my payment method or the number of vehicles on my plan? "),o.Ub(),o.Vb(91,"p",8),o.Vb(92,"a",10),o.Tc(93,"Log in to your account"),o.Ub(),o.Tc(94," to change your account payment details. Vehicle information must be changed by contacting MacPass Customer Service at "),o.Vb(95,"a",7),o.Tc(96,"(906) 643-7600"),o.Ub(),o.Tc(97,". "),o.Ub(),o.Qb(98,"br"),o.Vb(99,"h4",4),o.Tc(100," What if I lose the credit card that funds my MacPass account? "),o.Ub(),o.Vb(101,"p",8),o.Tc(102," First, call your credit card company to report the loss or theft. Then, call MacPass Customer Service Center at "),o.Vb(103,"a",7),o.Tc(104,"(906) 643-7600"),o.Ub(),o.Tc(105," and report the loss or "),o.Vb(106,"a",10),o.Tc(107,"log in to your account"),o.Ub(),o.Tc(108," to update your account credit card information (remove or update). You will have the ability to pay by a different method until your new card is issued. "),o.Ub(),o.Qb(109,"br"),o.Vb(110,"h4",4),o.Tc(111,"What if I am issued a new credit card?"),o.Ub(),o.Vb(112,"p",8),o.Vb(113,"a",10),o.Tc(114,"Log in to your account"),o.Ub(),o.Tc(115," and select Online Payment to update your payment details. "),o.Ub(),o.Vb(116,"h4",4),o.Tc(117,"Can I have more than one tag on my account?"),o.Ub(),o.Vb(118,"p",8),o.Tc(119," You can have multiple tags on your account but will be required to enter individual vehicle information for each MacPass tag. "),o.Ub(),o.Vb(120,"h4",4),o.Tc(121,"What if my tag is lost or stolen?"),o.Ub(),o.Vb(122,"p",8),o.Tc(123," Report it immediately by "),o.Vb(124,"a",10),o.Tc(125,"Log in to your account"),o.Ub(),o.Tc(126," and suspending the MacPass tag, or by calling the MacPass Customer Service at "),o.Vb(127,"a",7),o.Tc(128,"(906) 643-7600"),o.Ub(),o.Tc(129,". If you find your MacPass tag call MacPass Customer Service to have it unsuspended. "),o.Ub(),o.Vb(130,"h4",4),o.Tc(131," How do I dispute a transaction on my MacPass account? "),o.Ub(),o.Vb(132,"p",8),o.Tc(133," To dispute a toll, please call MBA Customer Service Center at "),o.Vb(134,"a",7),o.Tc(135,"(906) 643-7600"),o.Ub(),o.Tc(136,". "),o.Ub(),o.Vb(137,"h4",4),o.Tc(138," I sometimes pull a camper or trailer with my vehicle. Can I still use my tag? "),o.Ub(),o.Vb(139,"p",8),o.Tc(140," Your MacPass tag can be used when pulling a trailer, but doing so voids any discount. As you pull out of the lane axles are counted and charged accordingly. Note: Prior to leaving the lane the Patron Fare Display will show $4.00 but after axle count you will be charged for the actual number of axles counted. "),o.Ub(),o.Vb(141,"h4",4),o.Tc(142,"Can I use my I-Pass, E-ZPass, SunPass, etc.?"),o.Ub(),o.Vb(143,"p",8),o.Tc(144," Currently the Mackinac Bridge only accepts our MacPass. "),o.Ub(),o.Vb(145,"h4",4),o.Tc(146," What types of credit card are accepted at the Mackinac Bridge? "),o.Ub(),o.Vb(147,"p",8),o.Tc(148," The Mackinac Bridge currently accepts MasterCard, Discover, and Visa. We do not accept American Express. "),o.Ub(),o.Vb(149,"h4",4),o.Tc(150," I\u2019m not a regular commuter, but I do use the bridge often. Can I get a MacPass? "),o.Ub(),o.Vb(151,"p",8),o.Tc(152," Anyone can open a MacPass account. You can register "),o.Vb(153,"a",9),o.Tc(154," here"),o.Ub(),o.Tc(155,". "),o.Ub(),o.Vb(156,"h4",4),o.Tc(157,"Does my MacPass account ever expire?"),o.Ub(),o.Vb(158,"p",8),o.Tc(159," MacPass accounts do not currently expire. "),o.Ub(),o.Vb(160,"h4",4),o.Tc(161," Is there a minimum deposit to open a MacPass account? "),o.Ub(),o.Vb(162,"p",8),o.Tc(163," If an account is set up for passenger vehicles the initial deposit will be $47.00 ($40.00 on account and $7.00 setup fee). If an account is set up for commercial vehicles the initial deposit is $207.00 ($200 on account and $7.00 setup fee). "),o.Ub(),o.Vb(164,"h4",4),o.Tc(165," Do I have to make one-time deposits or can I set my account up for deposits to take place automatically? "),o.Ub(),o.Vb(166,"p",8),o.Tc(167," You can set your account up so that deposits automatically take place by logging into your account, selecting Online Payment, Auto Rebill and setting up auto rebill. "),o.Ub(),o.Vb(168,"h4",4),o.Tc(169,"How can I make deposits on my MacPass account?"),o.Ub(),o.Vb(170,"p",8),o.Tc(171," Deposits can be made in the lanes using cash or credit card, online using your credit card or your bank checking account information, or in the Mackinac Bridge Customer Service Center using check, cash or credit card. "),o.Ub(),o.Vb(172,"h4",4),o.Tc(173," How much do I have to put on my account for subsequent deposits? "),o.Ub(),o.Vb(174,"p",8),o.Tc(175," Subsequent deposits for Personal accounts require a minimum of $20.00, while Business accounts require a minimum of $50.00. "),o.Ub(),o.Vb(176,"h4",4),o.Tc(177," If I already have a MacPass account, how do I get a MacPass tag for my vehicle? "),o.Ub(),o.Vb(178,"p",8),o.Vb(179,"a",10),o.Tc(180,"Log in to your account"),o.Ub(),o.Tc(181," Select Order MacPass to enter vehicle information and request your MacPass tag. MacPass cards will no longer be issued. "),o.Ub(),o.Vb(182,"h4",4),o.Tc(183," If I don\u2019t have a MacPass account, how do I get a MacPass tag for my vehicle? "),o.Ub(),o.Vb(184,"p",8),o.Tc(185," You can visit the MacPass website to set up a new MacPass account. You will be able to set up your account for MacPass tags. The Mackinac Bridge staff will send you the requested MacPass tags within 7-10 business days. "),o.Ub(),o.Vb(186,"h4",4),o.Tc(187,"How much are MacPass tags?"),o.Ub(),o.Vb(188,"p",8),o.Tc(189," MacPass tags will cost $1.00 each. "),o.Ub(),o.Vb(190,"h4",4),o.Tc(191,"Do I need a MacPass tag for each vehicle?"),o.Ub(),o.Vb(192,"p",8),o.Tc(193," You must have a MacPass tag for each vehicle. MacPass tags must be placed on the inside of your windshield just below the rear-view mirror to work most efficiently. You can have multiple MacPass tags under one MacPass account. "),o.Ub(),o.Vb(194,"h4",4),o.Tc(195," How do I know what lane to use my MacPass tag in? "),o.Ub(),o.Vb(196,"p",8),o.Tc(197," MacPass tags can be used in lanes when the sign is green and reads open or in purple and reads MacPass only. No transactions can take place in a lane that has a red closed sign. "),o.Ub(),o.Vb(198,"h4",4),o.Tc(199,"Can I switch my MacPass tag between vehicles?"),o.Ub(),o.Vb(200,"p",8),o.Tc(201," No, MacPass tags are to be placed on the inside of your windshield just below your rear-view mirror. Mackinac Bridge Authority requires the tag to be applied to this location to work most effectively. MacPass are not meant to be moved from one vehicle to another. "),o.Ub(),o.Vb(202,"h4",4),o.Tc(203,"Can I get a MacPass tag for my motorcycle?"),o.Ub(),o.Vb(204,"p",8),o.Tc(205," Yes, the Mackinac Bridge has different tags available to go on motorcycle windshields. If your motorcycle does not have a windshield the clear motorcycle tag is meant to go on the headlight. "),o.Ub(),o.Vb(206,"h4",4),o.Tc(207," Do I need to stop at the toll booth if using a MacPass tag? "),o.Ub(),o.Vb(208,"p",8),o.Tc(209," Though you do not have to come to a complete stop at the toll booth, there will still be a gate. In addition, the Mackinac Bridge staff would appreciate it if you slow down and drive though cautiously watching for our staff working in the toll lanes. "),o.Ub(),o.Vb(210,"h4",4),o.Tc(211," Will I still receive a discounted toll using my MacPass tag? "),o.Ub(),o.Vb(212,"p",8),o.Tc(213," A customer that takes both a northbound and a southbound trip within 36 hours in a passenger vehicle, as well as motorcycles, will pay $4.00 on their first trip and $0.00 on their return tip. Commercial vehicles that pay $5.00 per axle and passenger vehicles pulling trailers do not qualify for the discount. "),o.Ub(),o.Vb(214,"h4",4),o.Tc(215," Can I get a receipt when I use my MacPass through the lanes? "),o.Ub(),o.Vb(216,"p",8),o.Tc(217," When using your MacPass a receipt is only provided if making a deposit into your account. No receipts are given when using your MacPass account for toll transactions deducting funds from your MacPass account. All transactions can be seen by accessing your account online, monthly statements, mobile app when it becomes available, or stopping into the Mackinac Bridge Customer Service Center. "),o.Ub(),o.Vb(218,"h4",4),o.Tc(219,"Will there ever be a MacPass mobile app?"),o.Ub(),o.Vb(220,"p",8),o.Tc(221," Customers can access the google app by searching for MBA MacPass in the Google Play Store and downloading. The Apple app is currently in development. "),o.Ub(),o.Vb(222,"h4",4),o.Tc(223," Who can I contact if I still have questions about MacPass? "),o.Ub(),o.Vb(224,"p",8),o.Tc(225," If you have further questions call "),o.Vb(226,"a",7),o.Tc(227,"(906) 643-7600"),o.Ub(),o.Tc(228,". "),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"HELP")))},directives:[f.i],pipes:[C.c],styles:["p[_ngcontent-%COMP%]{padding-left:18px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ieflow[_ngcontent-%COMP%]{overflow-x:scroll}}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{color:#036def!important}"]}),e}();function mo(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"a",18),o.Tc(2,"\xd7"),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(3),o.Vc(" ",o.nc(4,1,"USERNAME_REQUIRED")," "))}function vo(e,t){if(1&e&&(o.Vb(0,"div",17),o.Rc(1,mo,5,3,"div",1),o.Ub()),2&e){o.lc();var n=o.Gc(9);o.Bb(1),o.uc("ngIf",n.errors.required)}}function yo(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"a",18),o.Tc(2,"\xd7"),o.Ub(),o.Tc(3),o.mc(4,"translate"),o.Ub()),2&e&&(o.Bb(3),o.Vc(" ",o.nc(4,1,"PASSWORD_REQUIRED")," "))}function Uo(e,t){if(1&e&&(o.Vb(0,"div",17),o.Rc(1,yo,5,3,"div",1),o.Ub()),2&e){o.lc();var n=o.Gc(13);o.Bb(1),o.uc("ngIf",n.errors.required)}}function Vo(e,t){1&e&&(o.Vb(0,"span",19),o.Tc(1,"Log in"),o.Ub())}function To(e,t){1&e&&o.Qb(0,"i",20)}function Io(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",2),o.Vb(1,"div",3),o.Vb(2,"div",4),o.Vb(3,"h4"),o.Tc(4,"Administrator login"),o.Ub(),o.Ub(),o.Vb(5,"form",5,6),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc().login()})),o.Vb(7,"div",7),o.Vb(8,"input",8,9),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().loginUserName=e})),o.Ub(),o.Rc(10,vo,2,1,"div",10),o.Ub(),o.Vb(11,"div",7),o.Vb(12,"input",11,12),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().loginPassword=e})),o.Ub(),o.Rc(14,Uo,2,1,"div",10),o.Ub(),o.Vb(15,"div",13),o.Vb(16,"button",14),o.Rc(17,Vo,2,0,"span",15),o.Rc(18,To,1,0,"i",16),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(6),i=o.Gc(9),c=o.Gc(13),a=o.lc();o.Bb(8),o.uc("ngModel",a.loginUserName),o.Bb(2),o.uc("ngIf",i.invalid&&(i.dirty||i.touched)),o.Bb(2),o.uc("ngModel",a.loginPassword),o.Bb(2),o.uc("ngIf",c.invalid&&(c.dirty||c.touched)),o.Bb(2),o.uc("disabled",!r.valid),o.Bb(1),o.uc("ngIf",!a.loginClicked),o.Bb(1),o.uc("ngIf",a.loginClicked)}}function Co(e,t){if(1&e&&(o.Vb(0,"tr"),o.Vb(1,"td"),o.Tc(2),o.Ub(),o.Vb(3,"td"),o.Vb(4,"b"),o.Tc(5),o.Ub(),o.Ub(),o.Ub()),2&e){var n=t.$implicit;o.Bb(2),o.Uc(n.name),o.Bb(3),o.Uc(n.result)}}function So(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"table"),o.Vb(2,"tr"),o.Vb(3,"td"),o.Tc(4,"Config path:"),o.Ub(),o.Vb(5,"td"),o.Vb(6,"b"),o.Tc(7),o.Ub(),o.Ub(),o.Ub(),o.Rc(8,Co,6,2,"tr",21),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(7),o.Uc(n.configPath),o.Bb(1),o.uc("ngForOf",n.listItems)}}var Po=function(){function e(e,t){this.configurationService=e,this.alertService=t,this.configPath="Not Set",this.listStr=[],this.listItems=[],this.loggedIn=!1,this.password=""}return e.prototype.ngOnInit=function(){this.getAccountProfileIdPersonal(),this.readIntegrityCheck()},e.prototype.login=function(){console.log("admin login cliecked"),this.loginClicked=!0,"ibiadmin"===this.loginUserName&&this.loginPassword===this.password?this.loggedIn=!0:(this.alertService.error("Login Error! The user name or password is incorrect.",!0),this.loginClicked=!1)},e.prototype.getAccountProfileIdPersonal=function(){var e=this;this.configurationService.getConfigParameter("TollSystemConfigPath").subscribe((function(t){e.configPath=t,console.log("Loaded: TollSystemConfigPath="+e.configPath)}),(function(e){console.log(e)}))},e.prototype.readIntegrityCheck=function(){var e=this;this.configurationService.getIbiSystemIntegrityCheck().subscribe((function(t){e.listStr=t;for(var n=0;n<e.listStr.length;n++){var o=e.listStr[n].split(":"),r=new Ao;"Password"===o[0]?e.password=o[1].trim():(r.name=o[0],o.length>1&&(r.result=o[1]),e.listItems.push(r))}console.log("Loaded: readIntegrityCheck; listLen="+e.listItems.length)}),(function(e){console.log(e)}))},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.l),o.Pb(g.e))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-ibi-integrity-check"]],decls:2,vars:2,consts:[["class","container",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"row"],[1,"card-title","mb-4","text-center"],[1,"form","form-login","px-3",3,"ngSubmit"],["loginForm","ngForm"],[1,"form-group"],["id","userName","name","userName","type","text","placeholder","username","required","",1,"form-control",3,"ngModel","ngModelChange"],["userName","ngModel"],["class","alert alert-danger alert-dismissable fade show","role","alert",4,"ngIf"],["id","password","name","password","type","password","placeholder","password","required","",1,"form-control",3,"ngModel","ngModelChange"],["password","ngModel"],[1,"text-center"],[1,"btn","btn-app-primary","col-12","mb-2",3,"disabled"],["class","align-middle",4,"ngIf"],["class","fa fa-2x fa-spinner fa-pulse align-middle","aria-hidden","true",4,"ngIf"],["role","alert",1,"alert","alert-danger","alert-dismissable","fade","show"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"align-middle"],["aria-hidden","true",1,"fa","fa-2x","fa-spinner","fa-pulse","align-middle"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(o.Rc(0,Io,19,7,"div",0),o.Rc(1,So,9,2,"div",1)),2&e&&(o.uc("ngIf",!t.loggedIn),o.Bb(1),o.uc("ngIf",t.loggedIn))},directives:[m.n,d.z,d.o,d.p,d.c,d.v,d.n,d.q,m.m],pipes:[C.c],styles:[""]}),e}(),Ao=function(){return function(){}}(),Mo=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e,t){switch(t){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error("Invalid safe type specified: "+t)}},e.\u0275fac=function(t){return new(t||e)(o.Pb(b.b))},e.\u0275pipe=o.Ob({name:"safe",type:e,pure:!0}),e}(),wo=["messageBody"];function Ro(e,t){if(1&e&&(o.Vb(0,"div",4),o.Qb(1,"span",5),o.mc(2,"safe"),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("innerHTML",o.oc(2,1,n.msgb.MessageBody,"html"),o.Kc)}}var Bo=function(){function e(e,t){this._renderer=e,this.messageboardService=t}return e.prototype.ngOnInit=function(){var e=this;this.messageboardService.getMessageBoardMsg().subscribe((function(t){e.msgb=t,e._renderer.setStyle(e.messageBody.nativeElement,"border","2px solid "+e.msgb.BoardBorder)}))},e.\u0275fac=function(t){return new(t||e)(o.Pb(o.F),o.Pb(g.w))},e.\u0275cmp=o.Jb({type:e,selectors:[["messageboard"]],viewQuery:function(e,t){var n;1&e&&o.Oc(wo,!0),2&e&&o.Fc(n=o.ic())&&(t.messageBody=n.first)},decls:4,vars:1,consts:[[1,"container"],[1,"row","rounded"],["messageBody",""],["class","col-12 text-center pb-1",4,"ngIf"],[1,"col-12","text-center","pb-1"],[3,"innerHTML"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1,2),o.Rc(3,Ro,3,4,"div",3),o.Ub(),o.Ub()),2&e&&(o.Bb(3),o.uc("ngIf",t.msgb))},directives:[m.n],pipes:[Mo],styles:[".banner-msg[_ngcontent-%COMP%]{border:2px solid red}"]}),e}();function Oo(e,t){1&e&&(o.Vb(0,"span",39),o.Vb(1,"b"),o.Tc(2,"Log In"),o.Ub(),o.Ub())}function Eo(e,t){1&e&&o.Qb(0,"i",40)}function ko(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",10),o.Vb(1,"form",11,12),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc().login()})),o.Vb(3,"a",13),o.Qb(4,"img",14),o.Ub(),o.Vb(5,"div",15),o.Vb(6,"h4"),o.Vb(7,"b"),o.Tc(8),o.Ub(),o.Ub(),o.Vb(9,"section"),o.Vb(10,"div",16),o.Tc(11," Sign in to manage your MacPass account "),o.Ub(),o.Ub(),o.Ub(),o.Vb(12,"div",17),o.Vb(13,"label",18),o.Tc(14,"Username"),o.Ub(),o.Vb(15,"input",19,20),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().loginUserName=e})),o.Ub(),o.Ub(),o.Vb(17,"div",17),o.Vb(18,"label",21),o.Tc(19,"Password"),o.Ub(),o.Vb(20,"input",22,23),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().loginPassword=e})),o.Ub(),o.Ub(),o.Vb(22,"div"),o.Vb(23,"div",24),o.Vb(24,"div",25),o.Vb(25,"a",26),o.Vb(26,"small"),o.Tc(27),o.mc(28,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Vb(29,"div",27),o.Vb(30,"a",28),o.Vb(31,"small"),o.Tc(32),o.mc(33,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(34,"div",29),o.Vb(35,"button",30),o.Rc(36,Oo,3,0,"span",31),o.Rc(37,Eo,1,0,"i",32),o.Ub(),o.Ub(),o.Vb(38,"div",33),o.Vb(39,"div",34),o.Vb(40,"b"),o.Tc(41),o.mc(42,"translate"),o.Ub(),o.Tc(43),o.mc(44,"translate"),o.Ub(),o.Qb(45,"br"),o.Vb(46,"div",35),o.Tc(47," Don't have a MacPass account? "),o.Vb(48,"a",36),o.Vb(49,"b"),o.Tc(50,"Sign Up"),o.Ub(),o.Ub(),o.Ub(),o.Vb(51,"div",35),o.Tc(52," Have an existing MacPass account, but haven't registered for online access? "),o.Vb(53,"a",37),o.Vb(54,"b"),o.Tc(55,"Activate Web Access"),o.Ub(),o.Ub(),o.Ub(),o.Vb(56,"div",38),o.Qb(57,"messageboard"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(8),o.Vc("Welcome to ",r.configService.config.ClientName,""),o.Bb(7),o.wc("placeholder","\uf007   ",r.placeholderUsername.toLowerCase(),""),o.uc("ngModel",r.loginUserName),o.Bb(5),o.wc("placeholder","\uf023   ",r.placeholderPassword.toLowerCase(),""),o.uc("ngModel",r.loginPassword),o.Bb(7),o.Uc(o.nc(28,11,"FORGOT_USERNAME")),o.Bb(5),o.Uc(o.nc(33,13,"FORGOT_PASSWORD")),o.Bb(4),o.uc("ngIf",!r.loginClicked),o.Bb(1),o.uc("ngIf",r.loginClicked),o.Bb(4),o.Vc("",o.nc(42,15,"NOTE"),":"),o.Bb(2),o.Vc(" ",o.nc(44,17,"USERNAME_PASSWORD_CASE_SENSITIVE")," ")}}function xo(e,t){1&e&&o.Qb(0,"i",56)}function No(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",48,49),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc(2).sendEmail()})),o.Vb(2,"div",50),o.Vb(3,"h4"),o.Vb(4,"b"),o.Tc(5,"Forgot Password"),o.Ub(),o.Ub(),o.Vb(6,"span"),o.Vb(7,"small"),o.Tc(8,"Please enter your username and email and click send. We will send you an email with the information on how to change your password."),o.Ub(),o.Ub(),o.Ub(),o.Vb(9,"div",17),o.Vb(10,"input",51,20),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).userLogonId=e})),o.Ub(),o.Ub(),o.Vb(12,"div",17),o.Vb(13,"input",52,53),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).userEmail=e})),o.Ub(),o.Ub(),o.Vb(15,"div",29),o.Vb(16,"button",54),o.Vb(17,"b"),o.Tc(18,"Send "),o.Rc(19,xo,1,0,"i",55),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(1),i=o.lc(2);o.Bb(10),o.uc("ngModel",i.userLogonId),o.Bb(3),o.uc("ngModel",i.userEmail),o.Bb(3),o.uc("disabled",!r.valid),o.Bb(3),o.uc("ngIf",i.isLoading)}}function _o(e,t){1&e&&(o.Vb(0,"div",57),o.Vb(1,"a"),o.Tc(2,"Please check your inbox and spam folder and click on the link to change your password. If you did not receive the email after 5 minutes, please submit your request again."),o.Ub(),o.Ub())}function Do(e,t){if(1&e&&(o.Vb(0,"div",41),o.Rc(1,No,20,4,"form",42),o.Rc(2,_o,3,0,"div",43),o.Vb(3,"div",44),o.Vb(4,"a",45),o.Vb(5,"b"),o.Tc(6,"Log in to your account"),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",46),o.Vb(8,"a",47),o.Vb(9,"b"),o.Tc(10,"Get Web Access"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",!n.emailSent),o.Bb(1),o.uc("ngIf",n.emailSent)}}function Lo(e,t){1&e&&(o.Vb(0,"div"),o.Vb(1,"small"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"EMAIL_REQUIRED")))}function qo(e,t){if(1&e&&(o.Vb(0,"div",63),o.Rc(1,Lo,4,3,"div",9),o.Ub()),2&e){o.lc();var n=o.Gc(11);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required)}}function Fo(e,t){1&e&&o.Qb(0,"i",56)}function jo(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",59,60),o.Vb(2,"div",50),o.Vb(3,"h4"),o.Vb(4,"b"),o.Tc(5,"Forgot Username"),o.Ub(),o.Ub(),o.Vb(6,"span"),o.Vb(7,"small"),o.Tc(8,"Please enter your email and click send. We will send you an email with your username information."),o.Ub(),o.Ub(),o.Ub(),o.Vb(9,"div",17),o.Vb(10,"input",52,53),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).userEmail=e})),o.Ub(),o.Rc(12,qo,2,1,"div",61),o.Ub(),o.Vb(13,"div",29),o.Vb(14,"button",62),o.hc("click",(function(){return o.Jc(n),o.lc(2).restUsername()})),o.Vb(15,"b"),o.Tc(16,"Send "),o.Rc(17,Fo,1,0,"i",55),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(1),i=o.Gc(11),c=o.lc(2);o.Bb(10),o.uc("ngModel",c.userEmail),o.Bb(2),o.uc("ngIf",i.invalid&&(i.dirty||i.touched)),o.Bb(2),o.uc("disabled",!r.valid),o.Bb(3),o.uc("ngIf",c.isLoading)}}function Jo(e,t){1&e&&(o.Vb(0,"div",57),o.Vb(1,"a"),o.Tc(2,"Please check your inbox and spam folder and If you did not receive the email after 5 minutes, please submit your request again."),o.Ub(),o.Ub())}function Go(e,t){if(1&e&&(o.Vb(0,"div",41),o.Rc(1,jo,18,4,"form",58),o.Vb(2,"main"),o.Rc(3,Jo,3,0,"div",43),o.Vb(4,"div",44),o.Vb(5,"a",45),o.Vb(6,"b"),o.Tc(7,"Log in to your account"),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",46),o.Vb(9,"a",47),o.Vb(10,"b"),o.Tc(11,"Get Web Access"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",!n.emailSent),o.Bb(2),o.uc("ngIf",n.emailSent)}}function Wo(e,t){if(1&e&&(o.Vb(0,"option",74),o.Tc(1),o.Ub()),2&e){var n=t.$implicit;o.uc("ngValue",n.Value),o.Bb(1),o.Vc(" ",n.Name,"")}}function Qo(e,t){1&e&&(o.Vb(0,"div",75),o.Vb(1,"div",76),o.Tc(2," Please provide your 14 digit MacPass number as it is printed on your tag (see sample below) "),o.Vb(3,"div",77),o.Qb(4,"img",78),o.Ub(),o.Ub(),o.Ub())}function Yo(e,t){1&e&&(o.Vb(0,"div",75),o.Vb(1,"div",76),o.Tc(2," Please provide your 11 digit MacPass number as it is printed on your card "),o.Vb(3,"div",75),o.Vb(4,"div",79),o.Qb(5,"img",80),o.Ub(),o.Vb(6,"div",79),o.Qb(7,"img",81),o.Ub(),o.Ub(),o.Ub(),o.Ub())}function Ho(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",66,67),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc(2).validateTollAccount()})),o.Vb(2,"div",50),o.Vb(3,"h4"),o.Vb(4,"b"),o.Tc(5,"Get web access to your account"),o.Ub(),o.Ub(),o.Vb(6,"span"),o.Vb(7,"small"),o.Tc(8,"Please enter your identifying information"),o.Ub(),o.Ub(),o.Ub(),o.Vb(9,"div",17),o.Vb(10,"div",68),o.Vb(11,"div",69),o.Vb(12,"select",70),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).selectedRequestOption=e}))("ngModelChange",(function(){return o.Jc(n),o.lc(2).onRequestOptionChange()})),o.Rc(13,Wo,2,2,"option",71),o.Ub(),o.Ub(),o.Vb(14,"div",69),o.Vb(15,"input",72),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).webRequestValue=e})),o.Ub(),o.Ub(),o.Ub(),o.Rc(16,Qo,5,0,"div",73),o.Rc(17,Yo,8,0,"div",73),o.Ub(),o.Vb(18,"button",54),o.Tc(19," Next "),o.Ub(),o.Ub()}if(2&e){var r=o.Gc(1),i=o.lc(2);o.Bb(12),o.uc("ngModel",i.selectedRequestOption),o.Bb(1),o.uc("ngForOf",i.webRequestOptions),o.Bb(2),o.uc("ngModel",i.webRequestValue),o.Bb(1),o.uc("ngIf","transponderNumber"===i.selectedRequestOption),o.Bb(1),o.uc("ngIf","smartCardNumber"===i.selectedRequestOption),o.Bb(1),o.uc("disabled",!r.valid)}}function zo(e,t){1&e&&(o.Vb(0,"div"),o.Tc(1," email address is required. "),o.Ub())}function $o(e,t){1&e&&(o.Vb(0,"div"),o.Tc(1," email address must be at most 80 characters long. "),o.Ub())}function Ko(e,t){if(1&e&&(o.Vb(0,"div",91),o.Rc(1,zo,2,0,"div",9),o.Rc(2,$o,2,0,"div",9),o.Ub()),2&e){o.lc();var n=o.Gc(11);o.Bb(1),o.uc("ngIf",null==n?null:n.errors.required),o.Bb(1),o.uc("ngIf",null==n?null:n.errors.maxlength)}}function Zo(e,t){if(1&e&&(o.Vb(0,"button",54),o.Vb(1,"b"),o.Tc(2,"Submit"),o.Ub(),o.Ub()),2&e){o.lc();var n=o.Gc(1);o.uc("disabled",!n.valid)}}function Xo(e,t){1&e&&(o.Vb(0,"button",92),o.Tc(1," Processing... "),o.Qb(2,"i",56),o.Ub())}function er(e,t){if(1&e){var n=o.Wb();o.Vb(0,"form",66,82),o.hc("ngSubmit",(function(){return o.Jc(n),o.lc(2).sendActivationEmail()})),o.Vb(2,"div",83),o.Vb(3,"a"),o.Tc(4,"We need to confirm your email address. Please enter the email associated with your account."),o.Ub(),o.Ub(),o.Vb(5,"div",17),o.Vb(6,"label",84),o.Tc(7,"Account Number"),o.Ub(),o.Qb(8,"input",85),o.Ub(),o.Vb(9,"div",86),o.Vb(10,"input",87,53),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc(2).userAccountEmail=e})),o.Ub(),o.Rc(12,Ko,3,2,"div",88),o.Ub(),o.Rc(13,Zo,3,1,"button",89),o.Rc(14,Xo,3,0,"button",90),o.Ub()}if(2&e){var r=o.Gc(11),i=o.lc(2);o.Bb(8),o.vc("placeholder",i.accountNumber),o.Bb(2),o.uc("ngModel",i.userAccountEmail),o.Bb(2),o.uc("ngIf",r.invalid&&(r.dirty||r.touched)),o.Bb(1),o.uc("ngIf",!i.processing),o.Bb(1),o.uc("ngIf",i.processing)}}function tr(e,t){1&e&&(o.Vb(0,"div",57),o.Vb(1,"a"),o.Tc(2,"Please check your inbox and spam folder and click on the link to confirm the email address associated with your account. If you did not receive the email after 5 minutes, please submit your request again. "),o.Ub(),o.Ub())}function nr(e,t){if(1&e&&(o.Vb(0,"div"),o.Rc(1,Ho,20,6,"form",64),o.Rc(2,er,15,5,"form",64),o.Rc(3,tr,3,0,"div",43),o.Vb(4,"div",65),o.Vb(5,"a",45),o.Vb(6,"b"),o.Tc(7,"Already have an account?"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.uc("ngIf",!n.accountNumber),o.Bb(1),o.uc("ngIf",n.accountNumber&&!n.emailSent),o.Bb(1),o.uc("ngIf",n.emailSent)}}var or=function(e){return e[e.Login=0]="Login",e[e.ForgotPassword=1]="ForgotPassword",e[e.ForgotUserName=2]="ForgotUserName",e[e.ChangePassword=3]="ChangePassword",e[e.GetWebAccess=4]="GetWebAccess",e}({}),rr=function(){function e(e,t,n,o,r,i,c,a,s,l){this.route=e,this.router=t,this.authService=n,this.alertService=o,this.accountService=r,this.translate=i,this.userService=c,this.webAccessService=a,this.modalService=s,this.configService=l,this.OutsideNavigationModeEnum=or,this.placeholderUsername="username",this.placeholderPassword="password",this.processing=!1,this.currentDate=new Date,this.webRequestOptions=this.configService.config.webRequestOptions,this.selectedRequestOption=this.webRequestOptions[0].Value}return e.prototype.ngOnInit=function(){var e=this;this.errorActive=!1,this.errorTitle="",this.errorMessage="",this.route.url.subscribe((function(t){var n=t[0].path;"login"===n?e.outsideNavigationMode=or.Login:"ForgotPassword"===n?e.outsideNavigationMode=or.ForgotPassword:"ForgotUserName"===n?e.outsideNavigationMode=or.ForgotUserName:"WebRequest"===n&&(e.outsideNavigationMode=or.GetWebAccess)})),this.route.queryParams.subscribe((function(t){e.activatedUrl=t.url})),this.authService.onLoginChanged.subscribe((function(){return e.onLoginChanged()})),this.translate.get("USERNAME").subscribe((function(t){e.placeholderUsername=t})),this.translate.get("PASSWORD").subscribe((function(t){e.placeholderPassword=t})),this.onLoginChanged()},e.prototype.onLoginChanged=function(){this.authService.loggedIn()&&this.router.navigate(null!=this.activatedUrl?[this.activatedUrl]:["/Main"])},e.prototype.goTo=function(e){this.modalService.dismissAll(),this.router.navigate(["/"+e])},e.prototype.getAccount=function(e){var t=this;void 0===e&&(e=!1),this.accountService.getAccount(this.userService.getCurrentUser().AccountId,e).subscribe((function(e){t.accountr=e}),(function(e){console.log("getAccount->error:"+JSON.stringify(e))}))},e.prototype.login=function(){var e=this;this.alertService.clear(),this.loginClicked=!0,this.authService.login(this.loginUserName,this.loginPassword).subscribe((function(t){e.accountService.loadActiveAccount(t.AccountId).subscribe((function(){e.authService.onLoggedIn()}))}),(function(){e.loginClicked=!1}))},e.prototype.restUsername=function(){var e=this;this.isLoading=!0,this.alertService.clear(),this.webAccessService.resetUsernameByEmail(this.userEmail).subscribe((function(){e.emailSent=!0,e.isLoading=!1}),(function(){e.isLoading=!1}))},e.prototype.sendEmail=function(){var e=this;if(this.outsideNavigationMode===this.OutsideNavigationModeEnum.ForgotPassword){this.isLoading=!0,this.alertService.clear();var t=new g.k;t.Email=this.userEmail,t.UserLogonId=this.userLogonId,this.userService.sendChangePasswordEmail(t).subscribe((function(t){e.isLoading=!1,t?(e.alertService.clear(),e.emailSent=!0):e.alertService.error("Email Could not be sent. Please try again",!1)}),(function(){e.isLoading=!1}))}},e.prototype.sendUserNameEmail=function(){var e=this;this.alertService.clear();var t=new g.k;t.Email=this.userEmail,t.UserLogonId=this.userLogonId,this.userService.sendChangePasswordEmail(t).subscribe((function(t){t?(e.alertService.clear(),e.emailSent=!0):e.alertService.error("Email Could not be sent. Please try again",!1)}),(function(e){console.log("error in sendActivationEmail: "+JSON.stringify(e))}))},e.prototype.validateTollAccount=function(){var e=this;this.alertService.clear();var t={QueryValue:this.webRequestValue,QueryType:this.selectedRequestOption,TaxFiscalId:this.taxFiscalId};console.log("validateTollAccount: "+JSON.stringify(t)),this.webAccessService.validateTollAccount(t).subscribe((function(t){console.log("validateTollAccount: "+JSON.stringify(t)),e.accountNumber=t,e.alertService.clear()}),(function(e){console.log("error in validateTollAccount: "+JSON.stringify(e))}))},e.prototype.sendActivationEmail=function(){var e=this;this.processing=!0,this.alertService.clear();var t=new g.K;t.UserLogonId=this.accountNumber,t.AccountId=this.accountNumber,t.UserEmail=this.userAccountEmail,t.AccountEmail=this.userAccountEmail,this.webAccessService.sendActivationEmail(t).subscribe((function(t){t?(e.emailSent=!0,e.alertService.clear(),e.processing=!1):(e.alertService.error("Email Could not be sent. Please try again",!1),e.processing=!1)}),(function(t){e.processing=!1,console.log("error in sendActivationEmail: "+t)}))},e.prototype.onRequestOptionChange=function(){},e.\u0275fac=function(t){return new(t||e)(o.Pb(f.a),o.Pb(f.f),o.Pb(g.i),o.Pb(g.e),o.Pb(g.c),o.Pb(C.d),o.Pb(g.I),o.Pb(g.L),o.Pb(Zt.c),o.Pb(g.l))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-outside-navigation"]],decls:11,vars:4,consts:[[1,"container-fluid","d-flex","flex-grow-1","vh-95"],[1,"row","d-flex","flex-grow-1"],[1,"d-none","d-lg-block","col-lg-6","px-0"],["src","assets/images/background.jpg","alt","background Image",1,"welcome-image"],[1,"col-lg-6","col-md-12","d-flex","flex-grow-1","login-section","px-0"],[1,"container-fluid","d-flex","flex-column"],[1,"mx-md-4","my-auto"],["class","mx-md-4",4,"ngIf"],["class","mx-5","role","main",4,"ngIf"],[4,"ngIf"],[1,"mx-md-4"],[1,"form","form-login",3,"ngSubmit"],["loginForm","ngForm"],["href","#","routerLink","/login",1,"hotlink","d-flex","justify-content-center"],["src","assets/images/logo.png","alt","logo",1,"logo"],[1,"login-header","text-center"],[1,"mb-2","sub-text"],[1,"form-group"],["for","userName",1,"small","mb-0"],["id","userName","name","userName","type","text","aria-label","userName","required","","InvalidInput","",1,"form-control",2,"font-family","Open Sans, FontAwesome",3,"ngModel","placeholder","ngModelChange"],["userName","ngModel"],["for","password",1,"small","mb-0"],["id","password","name","password","type","password","aria-label","password","required","",1,"form-control",2,"font-family","Open Sans, FontAwesome",3,"ngModel","placeholder","ngModelChange"],["password","ngModel"],[1,"row","mb-3"],[1,"col-6","text-left"],["href","#","routerLink","/ForgotUserName"],[1,"col-6","text-right"],["href","#","routerLink","/ForgotPassword"],[1,"text-center"],[1,"btn","btn-app-primary","col-12","mb-2"],["class","align-middle",4,"ngIf"],["class","fa fa-2x fa-spinner fa-pulse align-middle","aria-hidden","true",4,"ngIf"],[1,"login-note","mt-md-3"],[1,"text-justify"],[1,"mb-2"],["href","Signup",1,"hotlink"],["href","#","routerLink","/WebRequest",1,"hotlink"],[1,"py-md-1","py-xl-3","mt-3"],[1,"align-middle"],["aria-hidden","true",1,"fa","fa-2x","fa-spinner","fa-pulse","align-middle"],["role","main",1,"mx-5"],["class","form form-login px-3",3,"ngSubmit",4,"ngIf"],["class","text-center mt-5 px-3 text-left",4,"ngIf"],[1,"text-center","my-2","px-3"],["href","#","routerLink","/login"],[1,"text-center","px-3"],["href","#","routerLink","/WebRequest"],[1,"form","form-login","px-3",3,"ngSubmit"],["forgotUserNameForm","ngForm"],[1,"login-header"],["id","userLogonId","name","userLogonId","aria-label","userLogonId","placeholder","\uf007   Username","required","","InvalidInput","",1,"form-control",2,"font-family","Open Sans, FontAwesome",3,"ngModel","ngModelChange"],["id","email","name","email","type","email","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","aria-label","email","placeholder","\uf0e0   Email","required","",1,"form-control",2,"font-family","Open Sans, FontAwesome",3,"ngModel","ngModelChange"],["email","ngModel"],[1,"btn","btn-app-primary","col-12",3,"disabled"],["class","fa fa-spinner fa-pulse","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"fa","fa-spinner","fa-pulse"],[1,"text-center","mt-5","px-3","text-left"],["class","form form-login px-3",4,"ngIf"],[1,"form","form-login","px-3"],["forgotPasswordForm","ngForm"],["class","text-danger",4,"ngIf"],[1,"btn","btn-app-primary","col-12",3,"disabled","click"],[1,"text-danger"],["class","form form-template px-3",3,"ngSubmit",4,"ngIf"],[1,"text-center","mt-4","px-3"],[1,"form","form-template","px-3",3,"ngSubmit"],["webRequestForm","ngForm"],[1,"row","mb-4"],[1,"col-lg-6","col-md-12","col-sm-12"],["id","select","aria-label","selectedRequestOption","name","selectedRequestOption",1,"form-control","mt-1",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["id","webRequestValue","name","webRequestValue","type","string","aria-label","webRequestValue","required","","InvalidInput","",1,"form-control","mt-1",3,"ngModel","ngModelChange"],["class","row",4,"ngIf"],[3,"ngValue"],[1,"row"],[1,"col-lg-12"],[2,"text-align","center"],["src","../../../assets/images/transponder-sample.png","width","60%","aria-label","transponder-sample"],[1,"col-6",2,"text-align","center"],["src","../../../assets/images/macpass_commercial.png","width","90%","aria-label","macpass_commercia"],["src","../../../assets/images/macpass_commuter.png","width","90%","aria-label","macpass_commuter"],["enableUserAccountForm","ngForm"],[1,"mb-3"],["for","accountNo",1,"col-form-label","col-form-label-sm","mr-2"],["id","accountNo","name","accountNo","aria-label","accountNo","readonly","","InvalidInput","",1,"form-control",3,"placeholder"],[1,"form-group","required"],["id","email","name","email","type","email","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","aria-label","email","placeholder","email","required","","maxlength","80",1,"form-control",3,"ngModel","ngModelChange"],["class","alert alert-danger alert-dismissable fade show","role","alert",4,"ngIf"],["class","btn btn-app-primary col-12 ",3,"disabled",4,"ngIf"],["class","btn btn-app-primary col-12 ","disabled","",4,"ngIf"],["role","alert",1,"alert","alert-danger","alert-dismissable","fade","show"],["disabled","",1,"btn","btn-app-primary","col-12"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Qb(3,"img",3),o.Ub(),o.Vb(4,"div",4),o.Vb(5,"div",5),o.Vb(6,"div",6),o.Rc(7,ko,58,19,"div",7),o.Rc(8,Do,11,2,"div",8),o.Rc(9,Go,12,2,"div",8),o.Rc(10,nr,8,3,"div",9),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(7),o.uc("ngIf",t.outsideNavigationMode===t.OutsideNavigationModeEnum.Login),o.Bb(1),o.uc("ngIf",t.outsideNavigationMode===t.OutsideNavigationModeEnum.ForgotPassword),o.Bb(1),o.uc("ngIf",t.outsideNavigationMode===t.OutsideNavigationModeEnum.ForgotUserName),o.Bb(1),o.uc("ngIf",t.outsideNavigationMode===t.OutsideNavigationModeEnum.GetWebAccess))},directives:[m.n,d.z,d.o,d.p,f.i,d.c,d.v,T.a,d.n,d.q,Bo,d.t,d.w,m.m,d.r,d.y,d.i],pipes:[C.c],styles:[".container[_ngcontent-%COMP%]{max-width:100%!important}.outside-navigation-container[_ngcontent-%COMP%]{margin-left:10%;margin-right:10%}#bg[_ngcontent-%COMP%]{position:fixed;top:0;left:0;min-width:100%;min-height:100%}.form-login[_ngcontent-%COMP%]{width:100%;min-width:0;margin:0 auto}.logo[_ngcontent-%COMP%]{width:128px;margin-top:20px;margin-bottom:30px}.welcome-image[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.login-section[_ngcontent-%COMP%]{border-top:10px solid #498119;border-top:10px solid var(--primary-color);background-color:#fff}.login-header[_ngcontent-%COMP%]{padding-bottom:25px}a[_ngcontent-%COMP%]{color:#005d97;color:var(--nav-button-primary-color)}.hotlink[_ngcontent-%COMP%]{color:#498119;color:var(--primary-color)!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border:1px solid grey!important}.welcome-header[_ngcontent-%COMP%]{background-color:#498119;background-color:var(--footer-background-color);color:#fff;border-top-left-radius:0;border-top-right-radius:0}.welcome-title[_ngcontent-%COMP%]{font-size:large;font-weight:700}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.welcome-image[_ngcontent-%COMP%]{width:72.8vw;position:fixed;height:100vh!important;right:261px}.login-section[_ngcontent-%COMP%]{margin-top:61px;opacity:.9}}"]}),e}(),ir=n("oSnk"),cr=n("hsS1");function ar(e,t){1&e&&(o.Vb(0,"div",9),o.Vb(1,"h4"),o.Tc(2),o.mc(3,"translate"),o.Ub(),o.Ub()),2&e&&(o.Bb(2),o.Uc(o.nc(3,1,"STATEMENTS")))}function sr(e,t){1&e&&o.Qb(0,"i",10)}function lr(e,t){1&e&&(o.Vb(0,"div",11),o.Qb(1,"i",12),o.Ub())}function ur(e,t){1&e&&(o.Vb(0,"div",13),o.Tc(1," No statement available "),o.Ub())}function dr(e,t){1&e&&o.Qb(0,"i",26)}function br(e,t){1&e&&o.Qb(0,"i",27)}function pr(e,t){if(1&e&&(o.Vb(0,"div",21),o.Vb(1,"h5",22),o.Tc(2),o.Ub(),o.Vb(3,"button",23),o.Rc(4,dr,1,0,"i",24),o.Rc(5,br,1,0,"i",25),o.Ub(),o.Ub()),2&e){var n=t.opened,r=o.lc().$implicit;o.Bb(2),o.Uc(r.year),o.Bb(2),o.uc("ngIf",!n),o.Bb(1),o.uc("ngIf",n)}}function fr(e,t){if(1&e&&(o.Vb(0,"label"),o.Tc(1),o.Ub()),2&e){var n=o.lc().$implicit,r=o.lc(4);o.Bb(1),o.Vc(" ",r.checkSept(n.BillingDate)?" - (10 to 30)":""," ")}}function hr(e,t){if(1&e&&(o.Vb(0,"label"),o.Tc(1),o.Ub()),2&e){var n=o.lc().$implicit,r=o.lc(4);o.Bb(1),o.Vc(" ",r.checkSept(n.BillingDate)?" - (1 to 9)":""," ")}}function gr(e,t){if(1&e){var n=o.Wb();o.Vb(0,"li",30),o.hc("click",(function(){o.Jc(n);var e=t.$implicit;return o.lc(4).getStatement(e)})),o.Vb(1,"div",31),o.Vb(2,"div",32),o.Vb(3,"label"),o.Tc(4),o.mc(5,"date"),o.Ub(),o.Rc(6,fr,2,1,"label",33),o.Rc(7,hr,2,1,"label",33),o.Ub(),o.Vb(8,"div",34),o.Qb(9,"i",35),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=t.$implicit;o.Bb(4),o.Vc(" ",o.oc(5,3,null==r?null:r.BillingDate,"MMMM-yyyy")," "),o.Bb(2),o.uc("ngIf",0!==r.AccountId),o.Bb(1),o.uc("ngIf",0===r.AccountId)}}function mr(e,t){if(1&e&&(o.Vb(0,"ul",28),o.Rc(1,gr,10,6,"li",29),o.mc(2,"orderBy"),o.Ub()),2&e){var n=o.lc().$implicit;o.Bb(1),o.uc("ngForOf",o.oc(2,1,n.statement,"BillingDate"))}}function vr(e,t){if(1&e&&(o.Vb(0,"ngb-panel",18),o.Rc(1,pr,6,3,"ng-template",19),o.Rc(2,mr,3,4,"ng-template",20),o.Ub()),2&e){var n=t.$implicit;o.wc("id","config-panel-",n.year,""),o.uc("title",n.year)}}function yr(e,t){if(1&e&&(o.Vb(0,"div",14),o.Vb(1,"ngb-accordion",15,16),o.Rc(3,vr,3,2,"ngb-panel",17),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(3),o.uc("ngForOf",n.statementsByYear)}}var Ur=function(e,t){return{container:e,"mt-3":t}},Vr=function(){function e(e,t,n,o,r,i,c,a,s){this.dateTimeService=e,this.accountService=t,this.datePipe=n,this.userService=o,this.configService=r,this.navigationService=i,this._document=c,this.translateService=a,this.docEnum=g.p,this.processing=!1,this.years=new Array,this.renderData=!0,this.sprocessing=!1,this.statementsByYear=[],this.integrated=!1,this.subs=new y.a,s.closeOthers=!0,s.type="info"}return e.prototype.ngOnInit=function(){var e=this;this.integrated||this.navigationService.setActivePage("STATEMENTS");var t=(new Date).getFullYear();this.selectedYear=t,this.local="en"===this.translateService.defaultLang?"en":"el",this.subs.add(this.translateService.onLangChange.subscribe((function(){e.datePipe.locale="en"===e.translateService.defaultLang?"en":"el",e.renderData=!1,e.renderData=!0}))),this.subs.add(this.accountService.getActiveAccount().subscribe((function(t){e.account=t,e.getAccountBillingDateInfo()})))},e.prototype.onActivateEInvoice=function(){this.navigationService.requestActivateEInvoice()},e.prototype.getAccountBillingDateInfo=function(){var e=this;this.subs.add(this.accountService.getAccountBillingDateInfo(this.account.AccountID).subscribe((function(t){e.statements=t.filter((function(e){return"Since last statement"!==e.BillingDate})),e.statements.length>0?(e.statements.forEach((function(t){var n=new Date(t.BillingDate).getFullYear();Object(v.find)(e.years,(function(e){return e===n}))||e.years.push(n)})),e.years.forEach((function(t){var n=e.statements.filter((function(e){var n=new Date(e.BillingDate).getFullYear();return t===n}));e.statementsByYear.push({year:t.toString(),statement:n,showDetails:!1})})),e.loadOldStatments(),e.noStatements=!0):e.noStatements=!1}),(function(t){console.log("error in getAccountBillingDateInfo: "+t),e.processing=!1})))},e.prototype.changeYear=function(e){this.getAccountBillingDateInfo()},e.prototype.formatDate=function(e){return this.datePipe.transform(e,"MMMM yyyy")},e.prototype.getStatement=function(e){var t=this;e.AccountId?this.getOldStatement(e):this.subs.add(this.accountService.downloadStatement(this.account.AccountID,e.BillingDate).subscribe((function(n){t.downloadFile(n,e.BillingDate.toString()+".pdf")}),(function(e){console.log("error in getStatement: "+e)})))},e.prototype.downloadDocument=function(e,t){var n=this;this.processing=!0,this.subs.add(this.accountService.downloadDocument(e,t).subscribe((function(o){n.processing=!1;var r=new Blob([o],{type:t===g.p.ExcelAnalysis?"application/vnd.ms-excel":"application/pdf"}),i=n._document.createElement("a"),c="odos_"+(t===g.p.eInvoice?"e-Invoice_":"statement_")+n.datePipe.transform(e.Date,"yyyyMM")+(t===g.p.ExcelAnalysis?".xls":".pdf");i.download=c;var a=window.URL.createObjectURL(r);i.href=a,i.setAttribute("target","noopener noreferrer"),i.click()}),(function(e){console.log("error in getAccountStatement: "+e),n.processing=!1})))},e.prototype.getStatementOldDate=function(e){return Object(ir.a)(new Date(e),10)},e.prototype.loadOldStatments=function(){var e=this;this.processing=!0,this.subs.add(this.accountService.getStatementInfoRecords(this.account.AccountID).subscribe((function(t){t?"string"==typeof t?e.noOldStatements=!1:(t.forEach((function(t){var n=new Date(t.StatementPeriod).getFullYear();Object(v.find)(e.years,(function(e){return e===n}))||e.years.push(n)})),e.years.forEach((function(n){var o=t.filter((function(e){var t=new Date(e.StatementPeriod).getFullYear();return n===t})),r=e.statementsByYear.find((function(e){return n===Number(e.year)}));if(r){o.forEach((function(e){e.BillingDateAsDate=e.StatementPeriod,e.BillingDate=Object(m.u)(new Date(e.StatementPeriod),"MM/dd/yyyy h:mm:ss","en-US")}));var i=o.concat(r.statement);e.statementsByYear.forEach((function(e){n===Number(e.year)&&(e.statement=i)}))}else e.statementsByYear.push({year:n.toString(),statement:o,showDetails:!1})})),e.noOldStatements=!0,e.oStatements=t):e.noOldStatements=!1,e.processing=!1}),(function(t){e.noOldStatements=!1,e.processing=!1})))},e.prototype.getOldStatement=function(e){var t=this;this.sprocessing=!0;var n={AccountId:this.userService.getCurrentUser().AccountId,Statement:e};this.subs.add(this.accountService.getStatementInfoRecordsForStatementPeriod(n).subscribe((function(n){t.sprocessing=!1,n&&t.downloadOldFile(n,Object(cr.a)(Object(ir.a)(new Date(e.StatementPeriod),10),"MMMM-uuuu")+".pdf")}),(function(e){t.sprocessing=!1})))},e.prototype.downloadFile=function(e,t){var n=new Blob([e],{type:"text/octet-stream"});Lt.a.saveAs(n,t)},e.prototype.downloadOldFile=function(e,t){var n=new Blob([e],{type:"application/pdf"});Lt.a.saveAs(n,t)},e.prototype.checkSept=function(e){return 8===new Date(e).getMonth()&&2019===new Date(e).getFullYear()},e.prototype.disablePdfAnalysis=function(e){return!e.PdfAnalysisAvailable},e.prototype.showEInvoice=function(e){return e.EInvoiceAvailable},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.o),o.Pb(g.c),o.Pb(m.e),o.Pb(g.I),o.Pb(g.l),o.Pb(g.x),o.Pb(m.d),o.Pb(C.d),o.Pb(Zt.b))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-statements"]],inputs:{integrated:"integrated"},decls:10,vars:9,consts:[["class","section-header mb-4",4,"ngIf"],[3,"ngClass"],[1,"card","mb-3","shadow"],[1,"card-header"],["class","fa fa-1x fa-spinner fa-pulse align-middle","aria-hidden","true",4,"ngIf"],[1,"card-body","p-0"],["class","text-center mt-5 loader",4,"ngIf"],["class","text-danger pt-2 pl-2 bold",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"section-header","mb-4"],["aria-hidden","true",1,"fa","fa-1x","fa-spinner","fa-pulse","align-middle"],[1,"text-center","mt-5","loader"],["aria-hidden","true",1,"fa","fa-4x","fa-spinner","fa-pulse","align-middle"],[1,"text-danger","pt-2","pl-2","bold"],[1,"p-2"],["activeIds","config-panel-0"],["acc","ngbAccordion"],["class","m-1",3,"title","id",4,"ngFor","ngForOf"],[1,"m-1",3,"title","id"],["ngbPanelHeader",""],["ngbPanelContent",""],[1,"d-flex","align-items-center","justify-content-between"],[1,"m-0"],["ngbPanelToggle","","aria-label","download",1,"btn","btn-link","p-0"],["class","fa fa-plus-square",4,"ngIf"],["class","fa fa-minus-square",4,"ngIf"],[1,"fa","fa-plus-square"],[1,"fa","fa-minus-square"],[1,"list-group","p-0"],["class","list-group-item",3,"click",4,"ngFor","ngForOf"],[1,"list-group-item",3,"click"],[1,"row"],[1,"col-11"],[4,"ngIf"],[1,"col-1","text-right"],["aria-hidden","true",1,"icon","fa","fa-cloud-download"]],template:function(e,t){1&e&&(o.Rc(0,ar,4,3,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Tc(4," Statements "),o.Rc(5,sr,1,0,"i",4),o.Ub(),o.Vb(6,"div",5),o.Rc(7,lr,2,0,"div",6),o.Rc(8,ur,2,0,"div",7),o.Ub(),o.Rc(9,yr,4,1,"div",8),o.Ub(),o.Ub()),2&e&&(o.uc("ngIf",!t.integrated),o.Bb(1),o.uc("ngClass",o.Ac(6,Ur,!t.integrated,t.integrated)),o.Bb(4),o.uc("ngIf",t.sprocessing),o.Bb(2),o.uc("ngIf",t.processing),o.Bb(1),o.uc("ngIf",!t.noStatements&&!t.noOldStatements),o.Bb(1),o.uc("ngIf",t.noStatements||t.noOldStatements))},directives:[m.n,m.l,Zt.a,m.m,Zt.f,Zt.h,Zt.g,Zt.i],pipes:[C.c,S.b,m.e],styles:[".loader[_ngcontent-%COMP%]{color:#1479cf;color:var(--secondary-color);position:absolute;left:0;top:50%;height:100%;width:100%}  ngb-accordion .card{padding-bottom:2px}  ngb-accordion .card .card-header{background-color:#ddd!important}  ngb-accordion .card .card-body{padding:0!important}  ngb-accordion .card .card-body .icon{font-size:20px!important}"]}),e}(),Tr=n("dOQ6"),Ir=n("lgJ9"),Cr=function(){function e(e,t,n){this.authService=e,this.alertService=t,this.configService=n}return e.prototype.canActivate=function(e,t){var n=this;return this.configService.CheckDbStatus().pipe(Object(Ir.a)((function(e){e?n.authService.clearCache():n.alertService.error("System Error! Database not available - please try again later.",!1)})),Object(bt.a)((function(){return n.alertService.error("System Error! Database not available - please try again later.",!1),Object(c.a)(!1)})))},e.\u0275fac=function(t){return new(t||e)(o.dc(Tr.a),o.dc(g.e),o.dc(g.l))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Sr=n("VQfj"),Pr=function(e){return e[e.AccountPersonal=0]="AccountPersonal",e[e.AccountAddress=1]="AccountAddress",e[e.Transponder=2]="Transponder",e[e.Web=3]="Web",e[e.Payment=4]="Payment",e}({}),Ar=n("jU3m"),Mr=n("YG2U");function wr(e,t){1&e&&(o.Vb(0,"div",15),o.Vb(1,"h4"),o.Qb(2,"img",16),o.Vb(3,"span",17),o.Tc(4,"Sign Up"),o.Ub(),o.Ub(),o.Ub())}function Rr(e,t){if(1&e&&(o.Vb(0,"div",18),o.Tc(1),o.mc(2,"ibiCurrency"),o.Ub()),2&e){var n=o.lc();o.Bb(1),o.Vc(" Initial Deposit + Fees: ",o.nc(2,1,n.registrationFee+n.transponderFee)," ")}}function Br(e,t){1&e&&(o.Vb(0,"div",19),o.Vb(1,"h4",20),o.Qb(2,"img",21),o.Vb(3,"span",17),o.Tc(4,"Sign Up"),o.Ub(),o.Ub(),o.Ub())}function Or(e,t){1&e&&(o.Vb(0,"div",22),o.Vb(1,"h6",23),o.Vb(2,"b"),o.Tc(3,"Note: Set up an account only if you do not have an existing tolling account with the Mackinac Bridge Authority (St. Ignace, Michigan, USA)"),o.Ub(),o.Ub(),o.Ub())}function Er(e,t){if(1&e&&(o.Vb(0,"div",24),o.Vb(1,"div",25),o.Vb(2,"ul",26),o.Vb(3,"li",27),o.Vb(4,"span",28),o.Tc(5),o.Ub(),o.Ub(),o.Vb(6,"li",27),o.Vb(7,"span",28),o.Tc(8),o.Ub(),o.Ub(),o.Vb(9,"li",27),o.Vb(10,"span",28),o.Tc(11),o.Vb(12,"small"),o.Tc(13),o.Ub(),o.Ub(),o.Ub(),o.Vb(14,"li",27),o.Vb(15,"span",28),o.Tc(16),o.Ub(),o.Ub(),o.Vb(17,"li",27),o.Vb(18,"span",28),o.Tc(19),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(4),o.Hb("active",n.signupStage==n.SignupStage.AccountPersonal),o.Bb(1),o.Uc(n.getSignupStageDescription(n.SignupStage.AccountPersonal)),o.Bb(2),o.Hb("active",n.signupStage==n.SignupStage.AccountAddress),o.Bb(1),o.Uc(n.getSignupStageDescription(n.SignupStage.AccountAddress)),o.Bb(2),o.Hb("active",n.signupStage==n.SignupStage.Transponder),o.Bb(1),o.Vc("",n.getSignupStageDescription(n.SignupStage.Transponder)," "),o.Bb(2),o.Uc(n.isEmployer()?" (Optional)":""),o.Bb(2),o.Hb("active",n.signupStage==n.SignupStage.Web),o.Bb(1),o.Uc(n.getSignupStageDescription(n.SignupStage.Web)),o.Bb(2),o.Hb("active",n.signupStage==n.SignupStage.Payment),o.Bb(1),o.Uc(n.getSignupStageDescription(n.SignupStage.Payment))}}function kr(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",29),o.Vb(1,"div",25),o.Vb(2,"app-account-detail-info",30,31),o.hc("feesChanged",(function(e){return o.Jc(n),o.lc().onFeesChanged(e)})),o.Ub(),o.Vb(4,"app-transponder-info",32,33),o.hc("requestedTransponderQuantityChanged",(function(e){return o.Jc(n),o.lc().onRequestedTransponderQuantityChanged(e)})),o.Ub(),o.Qb(6,"app-change-password",34,35),o.Vb(8,"div",36),o.Vb(9,"app-payment-online",37,38),o.hc("paidStatus",(function(e){return o.Jc(n),o.lc().onPaymentProcessed(e)})),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(2),o.uc("hidden",r.signupStage!=r.SignupStage.AccountPersonal&&r.signupStage!=r.SignupStage.AccountAddress)("accountMode",r.AccountMode.Create)("accountCreateMode",r.accountCreateMode),o.Bb(2),o.uc("hidden",r.signupStage!=r.SignupStage.Transponder)("newAccountMode",!0)("isEmployer",r.isEmployer()),o.Bb(2),o.uc("hidden",r.signupStage!=r.SignupStage.Web)("integrated",!0)("signup",!0),o.Bb(3),o.uc("hidden",r.signupStage!=r.SignupStage.Payment)("account",r.account)("registrationFee",r.registrationFee)("paymentMode",r.PaymentMode.NewCustomer)("numberOfTransponders",r.numberOfTransponders)("fees",r.fees)}}function xr(e,t){if(1&e){var n=o.Wb();o.Vb(0,"div",39),o.Vb(1,"div",40),o.Vb(2,"div",41),o.Vb(3,"input",42),o.hc("ngModelChange",(function(e){return o.Jc(n),o.lc().accountAgreementAccepted=e})),o.Ub(),o.Ub(),o.Vb(4,"div",43),o.Vb(5,"small",44),o.Tc(6," I accept the MacPass "),o.Vb(7,"a",45),o.Vb(8,"b"),o.Tc(9,"Account Agreement"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r=o.lc();o.Bb(2),o.uc("hidden",r.signupStage!=r.SignupStage.Payment),o.Bb(1),o.uc("ngModel",r.accountAgreementAccepted),o.Bb(1),o.uc("hidden",r.signupStage!=r.SignupStage.Payment)}}function Nr(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",50),o.hc("click",(function(){return o.Jc(n),o.lc(2).processBack()})),o.Qb(1,"i",51),o.Tc(2," Back "),o.Ub()}if(2&e){var r=o.lc(2);o.uc("disabled",r.processing)}}function _r(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",52),o.hc("click",(function(){return o.Jc(n),o.lc(2).processNext()})),o.Qb(1,"i",53),o.Tc(2," Next "),o.Ub()}if(2&e){var r=o.lc(2);o.uc("disabled",!r.signupStageValidation())}}function Dr(e,t){if(1&e){var n=o.Wb();o.Vb(0,"button",52),o.hc("click",(function(){return o.Jc(n),o.lc(2).submitRequest()})),o.Qb(1,"i",54),o.Tc(2," Submit "),o.Ub()}if(2&e){var r=o.lc(2);o.uc("disabled",!r.signupStageValidation()||r.cannotCreateAccount||!r.accountAgreementAccepted)}}function Lr(e,t){1&e&&(o.Vb(0,"button",55),o.Tc(1," Processing... "),o.Qb(2,"i",56),o.Ub())}function qr(e,t){if(1&e&&(o.Vb(0,"div",46),o.Vb(1,"div",25),o.Rc(2,Nr,3,1,"button",47),o.Rc(3,_r,3,1,"button",48),o.Rc(4,Dr,3,1,"button",48),o.Rc(5,Lr,3,0,"button",49),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(2),o.uc("ngIf",n.signupStage>n.SignupStage.AccountPersonal),o.Bb(1),o.uc("ngIf",n.signupStage<n.submitStage),o.Bb(1),o.uc("ngIf",n.signupStage==n.submitStage&&!n.processing),o.Bb(1),o.uc("ngIf",n.signupStage==n.submitStage&&n.processing)}}function Fr(e,t){1&e&&(o.Vb(0,"div",57),o.Vb(1,"div",25),o.Qb(2,"div",58),o.Vb(3,"div",59),o.Vb(4,"a",60),o.Tc(5,"Already have an account?"),o.Ub(),o.Ub(),o.Ub(),o.Ub())}function jr(e,t){1&e&&(o.Vb(0,"div",61),o.Vb(1,"div",62),o.Tc(2," Congratulations! Your MacPass account has been created! "),o.Qb(3,"br"),o.Tc(4," Please check your email with your new account information. Transponders will be mailed to the mailing address provided. "),o.Qb(5,"br"),o.Tc(6," Please allow up to 5 business days for receipt of your transponder. If not received after 5 business days, please "),o.Vb(7,"a",63),o.Tc(8,"contact us"),o.Ub(),o.Tc(9,". "),o.Qb(10,"br"),o.Qb(11,"br"),o.Tc(12," ("),o.Vb(13,"b"),o.Tc(14,"Note:"),o.Ub(),o.Tc(15," Transponder fees will be applied to your account once transponder(s) are assigned to your account.) "),o.Qb(16,"br"),o.Vb(17,"a",64),o.Tc(18,"Login"),o.Ub(),o.Ub(),o.Ub())}var Jr=function(){function e(e,t,n,o,r,i,c){this.route=e,this.alertService=t,this.webAccessService=n,this.databaseMapService=o,this.utilsService=r,this.authService=i,this.appState=c,this.signupStageDescriptions=["Personal Information","Address Information","MacPass Information","Web Information","Payment Information"],this.accountSubmitted=!1,this.processing=!1,this.cannotCreateAccount=!1,this.accountAgreementAccepted=!1,this.paymentToken="",this.AccountMode=Ge,this.PaymentMode=Ar.a,this.AccountCreateMode=We,this.SignupStage=Pr,this.accountCreateMode=We.Personal,this.signupStage=Pr.AccountPersonal,this.submitStage=Pr.Web}return e.prototype.signup=function(){},e.prototype.ngOnInit=function(){var e=this;this.route.queryParams.subscribe((function(t){e.activatedUrl=t.url})),this.submitStage=Pr.Payment,this.registrationFee=0,this.transponderFee=0,console.log("sign-up ngOnInit"),this.utilsService.initialiseValues()},e.prototype.isEmployer=function(){return!(!this.accountDetailInfo||!this.accountDetailInfo.account)&&this.accountDetailInfo.account.AccountSubType===this.databaseMapService.eAccountSubTypeMap.Employer},e.prototype.processBack=function(){this.signupStage>Pr.AccountPersonal&&this.signupStage--,this.signupStage===Pr.AccountPersonal?this.accountCreateMode=We.Personal:this.signupStage===Pr.AccountAddress&&(this.accountCreateMode=We.Address),window.scroll({top:0,left:0,behavior:"smooth"})},e.prototype.processNext=function(){this.signupStage++,this.signupStage===Pr.AccountPersonal?this.accountCreateMode=We.Personal:this.signupStage===Pr.AccountAddress?this.accountCreateMode=We.Address:this.signupStage===Pr.Payment&&this.paymentInfo.setTotalAmount(this.registrationFee+this.transponderFee),window.scroll({top:0,left:0,behavior:"smooth"})},e.prototype.onPaymentProcessed=function(e){"APPROVAL"===e.ssl_result_message?(console.log("onPaymentProcessed: 1. Evaolon processed success"),this.createCustomerAccount(e)):e.UserLogonId?(console.log("onPaymentProcessed: 2. IBI posted txn to DB"),this.processing=!1,this.DisplayReceipt(e)):e.autoClose?(console.log("onPaymentProcessed: 3. Customer closed receipt"),this.onReceiptClose()):"POST_PAYMENT_FAILED"===e?this.alertService.error("Payment processed successful. Account creation successful,\n         Post payment failed. Please contact Customer Service for support.",!1):this.processing=!1},e.prototype.onReceiptClose=function(){console.log("signup.onReceiptClose called"),this.accountSubmitted=!0,this.alertService.clear()},e.prototype.DisplayReceipt=function(e){console.log("Sign-Up->DisplayReceipt called"+JSON.stringify(e)),this.paymentInfo.reciept=e,this.paymentInfo.currentDate=new Date,this.paymentInfo.transactionResponse=e,jQuery("#paymentReceiptModal").modal({show:!0})},e.prototype.createCustomerAccount=function(e){var t=this,n=new g.y;if(n.Account=this.accountDetailInfo.account,n.Account.Password=this.passwordInfo.getPassword(),n.Account.UserLogonId=this.passwordInfo.getUserName().trim(),n.CreditCard=new g.m,n.Account.PaymentType=1===this.paymentInfo.pmtReq.paymentType?"B":"C",this.paymentInfo.pmtReq.preauthRequired&&(n.Account.IsPreAuthSet=!0,1===this.paymentInfo.pmtReq.paymentType&&(n.CreditCard.PaymentFirstName=this.paymentInfo.pmtReq.firstName,n.CreditCard.PaymentLastName=this.paymentInfo.pmtReq.lastName,n.CreditCard.PaymentLastName=this.paymentInfo.pmtReq.lastName,n.CreditCard.PaymentBankType=this.paymentInfo.pmtReq.accountType,n.CreditCard.PaymentNum=String(this.paymentInfo.pmtReq.card_num),n.CreditCard.PaymentBankBranchId=Number(this.paymentInfo.pmtReq.transit),n.CreditCard.CardBankTokenId=""),2===this.paymentInfo.pmtReq.paymentType)){var o=this.paymentInfo.pmtReq.card_num;n.CreditCard.PaymentCardType=this.getCardType(o),n.CreditCard.PaymentNum=o.substring(0,4)+"0000000"+o.substring(11),n.CreditCard.PaymentCardExpiryMonth=this.paymentInfo.pmtReq.exp_month,n.CreditCard.PaymentCardExpiryYear=this.paymentInfo.pmtReq.exp_year,n.CreditCard.CardBankTokenId=this.paymentInfo.paymentToken}n.TransponderRequest=this.transponderInfo.transponderRequestList,n.AccountDocuments=this.accountDetailInfo.accountDocuments,n.TxnResponse=e,this.webAccessService.requestNewAccount(n).subscribe((function(e){null!==e.AccountId?(t.processing=!1,t.DisplayReceipt(e.TransactionResponse)):(t.alertService.error("Payment successful. Account creation failed. Please contact Customer Service for support.",!1),t.cannotCreateAccount=!0,t.processing=!1)}),(function(e){t.alertService.error(e,!1),t.processing=!1,t.alertService.error("Payment successful. Account creation failed. Please contact Customer Service for support.",!1),t.cannotCreateAccount=!0}))},e.prototype.submitRequest=function(){this.alertService.clear(),this.processing=!0,console.log("Step 1. Processing Payment"),this.paymentInfo.processPayment(this.accountDetailInfo.account.Email)},e.prototype.getSignupStageDescription=function(e){return this.signupStageDescriptions[e]},e.prototype.getCurrentSignupStageDescription=function(){return this.getSignupStageDescription(this.signupStage)},e.prototype.IsDocumentsUploaded=function(){return!!(this.accountDetailInfo.accountDocuments.DriversLicenseContent&&this.accountDetailInfo.accountDocuments.UtilityBillContent&&this.accountDetailInfo.accountDocuments.NIBContent)},e.prototype.signupStageValidation=function(){var e=!1;if(this.signupStage===Pr.AccountPersonal)return this.accountDetailInfo&&this.accountDetailInfo.accountDetailForm.touched&&this.accountDetailInfo.accountDetailForm.valid;if(this.signupStage===Pr.AccountAddress)return this.accountDetailInfo.accountDetailForm.valid;if(this.signupStage===Pr.Transponder)return this.transponderInfo.addedTranspCount>0;if(this.signupStage===Pr.Web)return this.passwordInfo.form.valid;if(this.signupStage===Pr.Payment){e=!1;try{this.paymentInfo.paymentForm.valid&&this.paymentInfo.isPreauthSettingValid()&&(e=!0)}catch(t){this.paymentInfo.isPreauthSettingValid()&&(e=!0)}return e}return!1},e.prototype.getCardType=function(e){var t=new RegExp("^4");return null!=e.match(t)?1:/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(e)?2:(t=new RegExp("^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}"),null!=e.match(t)?3:(t=new RegExp("^3[47]"),null!=e.match(t)?4:(t=new RegExp("^36"),null!=e.match(t)?5:(t=new RegExp("^30[0-5]"),null!=e.match(t)?5:(t=new RegExp("^(60|6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)"),null!=e.match(t)?5:(t=new RegExp("^35(2[89]|[3-8][0-9])"),null!=e.match(t)?5:0))))))},e.prototype.onFeesChanged=function(e){this.fees=e,this.registrationFee=this.fees.CreateAdminFee+this.fees.StartAdminFee+this.utilsService.getInitialBalanceAmount(this.fees.AccountProfileId),console.log("onFeesChanged: "+JSON.stringify(e)+"->"+this.registrationFee)},e.prototype.onRequestedTransponderQuantityChanged=function(e){this.account=this.accountDetailInfo.account,this.numberOfTransponders=e,this.transponderFee=e*(this.fees.TransponderAssignFee+this.fees.StartTransponderFeeAmount)},e.\u0275fac=function(t){return new(t||e)(o.Pb(f.a),o.Pb(g.e),o.Pb(g.L),o.Pb(g.n),o.Pb(g.J),o.Pb(g.i),o.Pb(g.g))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-sign-up"]],viewQuery:function(e,t){var n;1&e&&(o.Yc(Qe,!0),o.Yc(Cn,!0),o.Yc(Nt,!0),o.Yc(Ar.b,!0),o.Yc(Sr.a,!0)),2&e&&(o.Fc(n=o.ic())&&(t.accountDetailInfo=n.first),o.Fc(n=o.ic())&&(t.transponderInfo=n.first),o.Fc(n=o.ic())&&(t.passwordInfo=n.first),o.Fc(n=o.ic())&&(t.paymentInfo=n.first),o.Fc(n=o.ic())&&(t.receiptInfo=n.first))},decls:15,vars:10,consts:[[1,"container-fluid","mt-4"],[1,"card","shadow","mb-3"],[1,"card-body"],[1,"card-title","mb-4","text-center","row","mx-3"],["class","col-lg-9 col-sm-8 col-6",4,"ngIf"],["class","col-lg-3 col-sm-4 col-6 reg-fee-box",4,"ngIf"],["style","width: 100%;",4,"ngIf"],["class","mb-3 px-3",4,"ngIf"],["class","row mb-3 px-2",4,"ngIf"],["class","row mb-3","style","min-height:500px",4,"ngIf"],[1,"container-fluid","pb-2"],["class","row mb-3 account-agreement",4,"ngIf"],["class","row px-4",4,"ngIf"],["class","row",4,"ngIf"],["class","text-center mt-5 px-3 text-left",4,"ngIf"],[1,"col-lg-9","col-sm-8","col-6"],["src","assets/images/logo.png","routerLink","/login","alt","",1,"d-inline-block","align-middle","logo","mx-auto","float-left"],[1,"align-middle"],[1,"col-lg-3","col-sm-4","col-6","reg-fee-box"],[2,"width","100%"],[2,"position","relative"],["src","assets/images/logo.png","routerLink","/login","alt","",1,"d-inline-block","align-middle","logo","mx-auto","float-left",2,"position","absolute","left","15px"],[1,"mb-3","px-3"],[1,"text-justify"],[1,"row","mb-3","px-2"],[1,"col"],[1,"nav","nav-fill"],[1,"nav-item","align-middle"],[1,"nav-link","align-middle"],[1,"row","mb-3",2,"min-height","500px"],[3,"hidden","accountMode","accountCreateMode","feesChanged"],["accountDetail",""],[3,"hidden","newAccountMode","isEmployer","requestedTransponderQuantityChanged"],["transponderInfo",""],[3,"hidden","integrated","signup"],["webInfo",""],[1,"mx-md-4"],[3,"hidden","account","registrationFee","paymentMode","numberOfTransponders","fees","paidStatus"],["paymentInfo",""],[1,"row","mb-3","account-agreement"],[1,"col-12","p-0","ml-1"],[1,"col-1","account-agreement-checkbox",3,"hidden"],["type","checkbox","name","payment","aria-label","accountAgreementAccepted","id","payment",1,"form-check-input",3,"ngModel","ngModelChange"],["for","payment",1,"col-11","p-0","ml-4",3,"hidden"],[1,"account-agreement-text"],["href","api/Account/AccountAgreement","target","noopener noreferrer"],[1,"row","px-4"],["class","btn btn-app-primary pull-left",3,"disabled","click",4,"ngIf"],["class","btn btn-app-primary pull-right",3,"disabled","click",4,"ngIf"],["class","btn btn-app-primary pull-right","disabled","",4,"ngIf"],[1,"btn","btn-app-primary","pull-left",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"btn","btn-app-primary","pull-right",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-arrow-right"],["aria-hidden","true",1,"fa","fa-check-circle-o"],["disabled","",1,"btn","btn-app-primary","pull-right"],["aria-hidden","true",1,"fa","fa-spinner","fa-pulse"],[1,"row"],[1,"clearfix"],[1,"text-center","mt-4","px-3"],["href","#","routerLink","/login"],[1,"text-center","mt-5","px-3","text-left"],[1,"list-unstyled"],["href","https://www.mackinacbridge.org/about-the-bridge/contact-us/"],["href","#","routerLink","/login",1,""]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Rc(4,wr,5,0,"div",4),o.Rc(5,Rr,3,3,"div",5),o.Rc(6,Br,5,0,"div",6),o.Ub(),o.Rc(7,Or,4,0,"div",7),o.Rc(8,Er,20,16,"div",8),o.Rc(9,kr,11,15,"div",9),o.Vb(10,"div",10),o.Rc(11,xr,10,3,"div",11),o.Ub(),o.Rc(12,qr,6,4,"div",12),o.Rc(13,Fr,6,0,"div",13),o.Rc(14,jr,19,0,"div",14),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.Bb(4),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(2),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",!t.accountSubmitted),o.Bb(1),o.uc("ngIf",t.accountSubmitted))},directives:[m.n,f.g,Qe,Cn,Nt,Ar.b,d.a,d.n,d.q,f.i],pipes:[Mr.a],styles:[".container-fluid[_ngcontent-%COMP%]{max-width:1436px}#bg[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-width:100%;min-height:100%;height:auto}.logo[_ngcontent-%COMP%]{width:64px;padding-right:5px}.stage-complete[_ngcontent-%COMP%]{color:var(--primary-color)}.nav-item[_ngcontent-%COMP%]{color:#fff!important;border-right:1px solid #fff}.active[_ngcontent-%COMP%]{background-color:var(--primary-color)!important;border-color:var(--primary-color)!important;font-weight:700;border-bottom:none}.nav-link.active[_ngcontent-%COMP%]{color:#fff!important}.nav-link[_ngcontent-%COMP%]:not(.active){background-color:var(--secondary-color)!important;border-color:var(--secondary-color)!important}.reg-fee-box[_ngcontent-%COMP%]{line-height:50px;background-color:#1479cf!important;background-color:var(--secondary-color)!important;color:#fff!important;font-weight:700;line-height:40px;border-radius:20px}.hotlink[_ngcontent-%COMP%]{color:#55ab17!important;color:var(--primary-color)!important}@media (max-width:991.98px){.account-agreement[_ngcontent-%COMP%]{padding-left:1%}}@media (min-width:768px){.account-agreement[_ngcontent-%COMP%]{padding-left:2%}}.account-agreement-text[_ngcontent-%COMP%]{padding-left:2%}a[_ngcontent-%COMP%]{color:#036def!important}"]}),e}(),Gr=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"Main",redirectTo:"/MainView",pathMatch:"full"},{path:"Login",redirectTo:"/login",pathMatch:"full"},{path:"login",component:rr},{path:"login/:url",component:rr},{path:"MainView",component:zn,canActivate:[g.h]},{path:"Transponders",component:Wn,canActivate:[g.h]},{path:"AccountActivity",loadChildren:function(){return n.e(63).then(n.bind(null,"s2GO")).then((function(e){return e.AccountActivityModule}))},canActivate:[g.h]},{path:"ChangePassword",component:Nt,canActivate:[g.h]},{path:"ChangePassword/:accessCode",component:Nt},{path:"Signup",component:Jr,canActivate:[Cr]},{path:"WebRequest",component:rr},{path:"AccountSummary",component:ct,canActivate:[g.h]},{path:"AccountDetail",component:Ye,canActivate:[g.h]},{path:"TollFees",component:Kn,canActivate:[g.h]},{path:"ForgotPassword",component:rr},{path:"ForgotUserName",component:rr},{path:"PaymentE",loadChildren:function(){return n.e(64).then(n.bind(null,"n7jH")).then((function(e){return e.AccountPaymentModule}))},canActivate:[g.h,g.t]},{path:"ActivateWebAccount/:accessCode",component:ho},{path:"Employees",component:Kt,canActivate:[g.h]},{path:"Statements",component:Vr,canActivate:[g.h]},{path:"IbiIntegrityCheck",component:Po},{path:"Help",component:go},{path:"HelpInfo",component:go},{path:"message/msg",loadChildren:function(){return n.e(66).then(n.bind(null,"NBsp")).then((function(e){return e.MessageadminModule}))}},{path:"ipcheck",loadChildren:function(){return n.e(65).then(n.bind(null,"jlTb")).then((function(e){return e.IpcheckModule}))},canLoad:[h]},{path:"**",redirectTo:"/login",pathMatch:"full"}],Wr=function(){function e(){}return e.\u0275mod=o.Nb({type:e}),e.\u0275inj=o.Mb({factory:function(t){return new(t||e)},imports:[[f.j.forRoot(Gr,{useHash:!1})],f.j]}),e}(),Qr=n("HfwL"),Yr=n("uZ1c");function Hr(e,t){if(1&e&&(o.Vb(0,"a",5),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=o.lc().$implicit;o.vc("routerLink",n.Url),o.Bb(1),o.Vc("",o.nc(2,2,n.Name)," ")}}function zr(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"label",2),o.Vb(2,"a",7),o.mc(3,"translate"),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc(2).$implicit;o.Bb(2),o.vc("href",o.nc(3,2,n.Url),o.Lc),o.Bb(2),o.Vc("",o.nc(5,4,n.Name)," ")}}function $r(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"label",2),o.Vb(2,"a",7),o.mc(3,"translate"),o.Tc(4),o.mc(5,"translate"),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc(2).$implicit;o.Bb(2),o.vc("href",o.nc(3,2,n.Url),o.Lc),o.Bb(2),o.Vc("",o.nc(5,4,n.Name)," ")}}function Kr(e,t){if(1&e&&(o.Rc(0,zr,6,6,"div",6),o.Rc(1,$r,6,6,"div",6)),2&e){var n=o.lc().$implicit,r=o.lc();o.uc("ngIf","CONTACT_US"===n.Name&&!r.utilsService.isLoggedIn()),o.Bb(1),o.uc("ngIf","CONTACT_US"!==n.Name)}}function Zr(e,t){if(1&e&&(o.Vb(0,"div"),o.Vb(1,"div"),o.Vb(2,"label",2),o.Rc(3,Hr,3,4,"a",3),o.Ub(),o.Rc(4,Kr,2,2,"ng-template",null,4,o.Sc),o.Ub(),o.Ub()),2&e){var n=t.$implicit,r=o.Gc(5),i=o.lc();o.Bb(3),o.uc("ngIf",i.isUrl(n.Url))("ngIfElse",r)}}var Xr=function(){function e(e,t){this.configService=e,this.utilsService=t}return e.prototype.ngOnInit=function(){},e.prototype.isUrl=function(e){return"/"===e.charAt(0)},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.l),o.Pb(g.J))},e.\u0275cmp=o.Jb({type:e,selectors:[["app-footer-links"]],decls:2,vars:1,consts:[[1,"nav","justify-content-center"],[4,"ngFor","ngForOf"],[1,"mb-0"],["class","nav-item nav-link footerStyle","routerLinkActive","active","target","noopener noreferrer",3,"routerLink",4,"ngIf","ngIfElse"],["url_from_resource",""],["routerLinkActive","active","target","noopener noreferrer",1,"nav-item","nav-link","footerStyle",3,"routerLink"],[4,"ngIf"],["routerLinkActive","active","target","noopener noreferrer",1,"nav-item","nav-link","footerStyle",3,"href"]],template:function(e,t){1&e&&(o.Vb(0,"nav",0),o.Rc(1,Zr,6,2,"div",1),o.Ub()),2&e&&(o.Bb(1),o.uc("ngForOf",t.configService.config.FooterLinks))},directives:[m.m,m.n,f.i,f.h],pipes:[C.c],styles:["li.nav-item[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.navbar-dark[_ngcontent-%COMP%]   .navbar-nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.nav-item[_ngcontent-%COMP%]:hover{color:#000;color:var(--footer-text-hover)}.navbar-dark[_ngcontent-%COMP%]   .navbar-nav[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{box-sizing:border-box;padding-bottom:6px;border-bottom:4px solid #fff}.footerStyle[_ngcontent-%COMP%]{color:#fff;color:var(--footer-text-color)}.footerStyle[_ngcontent-%COMP%]:hover{color:#fff;color:var(--footer-hover-text-color);background-color:var(--footer-hover-color);display:block;border-radius:.2rem}"]}),e}(),ei=n("QvcM"),ti=n("8R0B"),ni=["childModal"],oi=function(){return{backdrop:!0,ignoreBackdropClick:!0}},ri=function(){function e(e,t,n){var o=this;this.authService=e,this.router=t,this.userIdle=n,this.count=0,this.router.events.subscribe((function(e){e instanceof f.c&&(o.currentRoute=e.urlAfterRedirects,"/MainView"==e.urlAfterRedirects&&o.watchUserActivity(),"/login"==e.urlAfterRedirects&&o.userIdle.stopWatching())}))}return e.prototype.ngOnInit=function(){},e.prototype.watchUserActivity=function(){var e=this;this.userIdle.startWatching(),this.userIdle.onTimerStart().subscribe((function(t){!e.childModal.isShown&&t&&e.showChildModal(),e.count=60-t})),this.userIdle.onTimeout().subscribe((function(){e.authService.logout().subscribe((function(){e.count=0,e.hideChildModal(),e.router.navigate(["/login"])}))}))},e.prototype.restart=function(){this.hideChildModal(),this.count=0,this.userIdle.resetTimer()},e.prototype.showChildModal=function(){this.childModal.show()},e.prototype.hideChildModal=function(){for(var e=this,t=0;t<2;t++)setTimeout((function(){e.childModal.isShown&&e.childModal.hide()}))},e.prototype.logOut=function(){var e=this;this.hideChildModal(),this.count=0,this.authService.logout().subscribe((function(){e.router.navigate(["/login"])}))},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.i),o.Pb(f.f),o.Pb(ti.b))},e.\u0275cmp=o.Jb({type:e,selectors:[["user-inactivity"]],viewQuery:function(e,t){var n;1&e&&o.Yc(ni,!0),2&e&&o.Fc(n=o.ic())&&(t.childModal=n.first)},decls:19,vars:3,consts:[["bsModal","","tabindex","-1","role","dialog","aria-labelledby","dialog-child-name",1,"modal","fade",3,"config"],["childModal","bs-modal"],[1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],["id","dialog-child-name",1,"modal-title","pull-left","mb-0"],[1,"modal-body"],[1,"far","fa-clock"],[1,"mt-3"],["type","button","aria-label","Close",1,"btn","btn-app-primary","btn-primary","pull-left",3,"click"],["type","button","aria-label","Close",1,"btn","btn-primary","pull-right",3,"click"]],template:function(e,t){1&e&&(o.Vb(0,"div",0,1),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"div",4),o.Vb(5,"h4",5),o.Tc(6,"Session Timeout"),o.Ub(),o.Ub(),o.Vb(7,"div",6),o.Vb(8,"div"),o.Qb(9,"i",7),o.Tc(10," Your online session will expire in "),o.Ub(),o.Tc(11),o.Vb(12,"div"),o.Tc(13,' Please click "Continue" to keep working or click "Log Off" to end you session now '),o.Ub(),o.Vb(14,"div",8),o.Vb(15,"button",9),o.hc("click",(function(){return t.restart()})),o.Tc(16," Continue "),o.Ub(),o.Vb(17,"button",10),o.hc("click",(function(){return t.logOut()})),o.Tc(18," Log Off "),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&e&&(o.uc("config",o.yc(2,oi)),o.Bb(11),o.Vc(" ",t.count," secs "))},directives:[ei.a],styles:[".modal-lg[_ngcontent-%COMP%]{top:25%}.btn-app-primary[_ngcontent-%COMP%]{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.btn-app-primary[_ngcontent-%COMP%]:hover{color:#212529!important;background-color:#e0a800!important;border-color:#d39e00!important}"]}),e}(),ii=["componentView"];function ci(e,t){if(1&e&&(o.Vb(0,"div",11),o.Vb(1,"div",12),o.Vb(2,"a",13),o.Qb(3,"img",14),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(3),o.vc("src",o.nc(4,1,n.configService.config.LogoImageUrl),o.Lc)}}function ai(e,t){1&e&&(o.Vb(0,"button",21),o.Qb(1,"span",22),o.Ub())}function si(e,t){if(1&e&&(o.Vb(0,"a",31),o.Tc(1),o.mc(2,"translate"),o.Ub()),2&e){var n=o.lc(2).$implicit;o.vc("routerLink",n.Url),o.Bb(1),o.Vc("",o.nc(2,2,n.Name)," ")}}function li(e,t){if(1&e&&(o.Vb(0,"a",32),o.mc(1,"translate"),o.Tc(2),o.mc(3,"translate"),o.Ub()),2&e){var n=o.lc(2).$implicit;o.vc("href",o.nc(1,2,n.Url),o.Lc),o.Bb(2),o.Vc("",o.nc(3,4,n.Name)," ")}}function ui(e,t){if(1&e&&(o.Vb(0,"li",28),o.Rc(1,si,3,4,"a",29),o.mc(2,"translate"),o.Rc(3,li,4,6,"ng-template",null,30,o.Sc),o.Ub()),2&e){var n=o.Gc(4),r=o.lc().$implicit,i=o.lc(3);o.Bb(1),o.uc("ngIf",i.isUrl(o.nc(2,2,r.Url)))("ngIfElse",n)}}function di(e,t){if(1&e&&(o.Vb(0,"ul",26),o.Rc(1,ui,5,4,"li",27),o.Ub()),2&e){var n=t.$implicit,r=o.lc(3);o.Bb(1),o.uc("ngIf",r.accountService.checkAccountStatus(n.Hide))}}function bi(e,t){if(1&e){var n=o.Wb();o.Vb(0,"ul",33),o.Vb(1,"li",34),o.Vb(2,"button",35),o.Qb(3,"i",36),o.Tc(4),o.Ub(),o.Vb(5,"div",37),o.Vb(6,"a",38),o.Qb(7,"i",39),o.Tc(8),o.mc(9,"translate"),o.Ub(),o.Qb(10,"div",40),o.Vb(11,"a",41),o.hc("click",(function(){return o.Jc(n),o.lc(3).logOut()})),o.Qb(12,"i",42),o.Tc(13),o.mc(14,"translate"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&e){var r,i=o.lc(3);o.Bb(4),o.Vc(" ",null==(r=i.getCurrentUser())?null:r.UserName," "),o.Bb(4),o.Uc(o.nc(9,3,"CHANGE_PASSWORD")),o.Bb(5),o.Uc(o.nc(14,5,"LOGOUT"))}}function pi(e,t){if(1&e&&(o.Vb(0,"div",23),o.Rc(1,di,2,1,"ul",24),o.Rc(2,bi,15,7,"ul",25),o.Ub()),2&e){var n=o.lc(2);o.Bb(1),o.uc("ngForOf",n.configService.config.NavLinks),o.Bb(1),o.uc("ngIf",n.authService.loggedIn())}}function fi(e,t){if(1&e&&(o.Vb(0,"nav",15),o.Vb(1,"div",16),o.Vb(2,"a",17),o.Qb(3,"img",18),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Rc(5,ai,2,0,"button",19),o.Rc(6,pi,3,2,"div",20),o.Ub()),2&e){var n=o.lc();o.Bb(3),o.vc("src",o.nc(4,3,n.configService.config.LogoImageUrl),o.Lc),o.Bb(2),o.uc("ngIf",n.authService.loggedIn()),o.Bb(1),o.uc("ngIf",n.authService.loggedIn())}}function hi(e,t){if(1&e&&(o.Vb(0,"nav",15),o.Vb(1,"div",16),o.Vb(2,"a",17),o.Qb(3,"img",18),o.mc(4,"translate"),o.Ub(),o.Ub(),o.Vb(5,"button",21),o.Qb(6,"span",22),o.Ub(),o.Ub()),2&e){var n=o.lc();o.Bb(3),o.vc("src",o.nc(4,1,n.configService.config.LogoImageUrl),o.Lc)}}var gi=function(){function e(e,t,n,o,r,i,c,a){var s=this;this.authService=e,this.userService=t,this.router=n,this.appState=o,this.configService=r,this.translate=i,this.accountService=c,this.scriptService=a,this.lastPing=null,this.currenSelectedLanguage="en",this.loggedOutInprocess=!0,this.subs=new y.a,this.currenSelectedLanguage=this.configService.GetClientLanguage(),this.translate.setDefaultLang(this.currenSelectedLanguage),this.translate.use(this.currenSelectedLanguage),this.subs.add(this.accountService.getActiveAccount().subscribe((function(e){s.account=e})))}return e.prototype.ngOnInit=function(){this.year=(new Date).getFullYear()},e.prototype.loadGoogleAnalyticsV4=function(){var e,t=null===(e=this.configService.config)||void 0===e?void 0:e.GoogleAnalyticsKey4;if(t){var n=document.createElement("script");n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(n),n.onload=function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",t)}}},e.prototype.getAccount=function(e){var t=this;void 0===e&&(e=!1),this.subs.add(this.accountService.getAccount(this.userService.getCurrentUser().AccountId,e).subscribe((function(e){t.account=e}),(function(e){console.error("getAccount->error:"+JSON.stringify(e))})))},e.prototype.loggedIn=function(){var e=this;return this.authService.loggedIn()||this.router.url.includes("/login")||this.router.url.includes("/Signup")||this.router.url.includes("/Help")||this.router.url.includes("/ChangePassword")||this.router.url.includes("/ActivateWebAccount")||this.router.url.includes("/ForgotUserName")||this.router.url.includes("/ForgotPassword")||this.router.url.includes("/WebRequest")||this.router.url.includes("/message/msg")||!this.loggedOutInprocess||(this.loggedOutInprocess=!1,this.subs.add(this.authService.refreshToken().subscribe((function(){}),(function(){setTimeout((function(){e.authService.logout(),e.router.navigate(["/login"]),e.loggedOutInprocess=!0}),1500)})))),this.authService.loggedIn()},e.prototype.showNavOnHelp=function(){return!this.authService.loggedIn()&&("/Help"===this.router.url||this.router.url.includes("/ChangePassword/"))},e.prototype.logOut=function(){var e=this;this.subs.add(this.userService.logout().pipe(Object(ut.a)((function(){return e.authService.logout()}))).subscribe((function(){e.router.navigate(["/login"])}),(function(t){e.router.navigate(["/login"])})))},e.prototype.isUrl=function(e){return"/"===e.charAt(0)},e.prototype.getCurrentUser=function(){return this.userService.getCurrentUser()},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.authService.softLogout()},e.\u0275fac=function(t){return new(t||e)(o.Pb(g.i),o.Pb(g.I),o.Pb(f.f),o.Pb(g.g),o.Pb(g.l),o.Pb(C.d),o.Pb(g.c),o.Pb(Qr.b))},e.\u0275cmp=o.Jb({type:e,selectors:[["ibitoll-root"]],viewQuery:function(e,t){var n;1&e&&o.Yc(ii,!0),2&e&&o.Fc(n=o.ic())&&(t.componentVieweElement=n.first)},decls:20,vars:6,consts:[[1,"d-flex","flex-column","main-container","container","px-0"],["style","position: relative",4,"ngIf"],["class","nav-bar navbar navbar-expand-lg nav-background nav-bar-theme",4,"ngIf"],[1,"component-view","d-flex","flex-column"],["componentView",""],[1,"footer","footer-sticky-bottom","align-self-end"],[1,"container"],[1,"row","justify-content-center","mt-1"],[1,"row","justify-content-center","mb-2"],[1,"text-center","copyright"],[1,"version"],[2,"position","relative"],[1,"header-logo","d-flex"],["href","#","routerLink","/MainView","aria-label","Toggle navigation",1,"navbar-brand","pl-4"],["height","60","alt","logo",1,"d-inline-block","align-middle","mx-auto","mr-3",3,"src"],[1,"nav-bar","navbar","navbar-expand-lg","nav-background","nav-bar-theme"],["data-toggle","collapse","data-target",".navbar-collapse.show",1,"nav-item","d-block","d-md-none"],["href","#","routerLink","/MainView","aria-label","Toggle navigation",1,"navbar-brand"],["id","nav-image","height","40","alt","logo",1,"d-inline-block","align-middle","mr-3",3,"src"],["class","navbar-toggler nav-background","type","button","data-toggle","collapse","data-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",4,"ngIf"],["class","collapse navbar-collapse p-1","id","navbarSupportedContent",4,"ngIf"],["type","button","data-toggle","collapse","data-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","nav-background"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse","p-1"],["class","navbar-nav mr-auto",4,"ngFor","ngForOf"],["class","navbar-nav",4,"ngIf"],[1,"navbar-nav","mr-auto"],["class","nav-item mx-2","data-toggle","collapse","data-target",".navbar-collapse.show",4,"ngIf"],["data-toggle","collapse","data-target",".navbar-collapse.show",1,"nav-item","mx-2"],["class","nav-link nav-text nav-hover nav-background","aria-label","Toggle navigation","routerLinkActive","active",3,"routerLink",4,"ngIf","ngIfElse"],["url",""],["aria-label","Toggle navigation","routerLinkActive","active",1,"nav-link","nav-text","nav-hover","nav-background",3,"routerLink"],["routerLinkActive","active","aria-label","Toggle navigation","target","noopener noreferrer",1,"nav-link","nav-text","nav-hover","nav-background",3,"href"],[1,"navbar-nav"],[1,"nav-item","dropdown","mt-1"],["id","navbarDropdown","role","button","data-toggle","dropdown",1,"btn","btn-app-primary"],["aria-hidden","true",1,"fa","fa-user-circle","pr-1"],[1,"dropdown-menu","dropdown-menu-right",2,"margin-left","-30px"],["routerLink","/ChangePassword","aria-label","Toggle navigation",1,"dropdown-item"],["aria-hidden","true",1,"fa","fa-pencil-square-o","pr-1"],[1,"dropdown-divider"],["aria-label","Toggle navigation",1,"dropdown-item",3,"click"],["aria-hidden","true",1,"fa","fa-power-off","pr-1"]],template:function(e,t){1&e&&(o.Vb(0,"div",0),o.Vb(1,"header"),o.Rc(2,ci,5,3,"div",1),o.Rc(3,fi,7,5,"nav",2),o.Rc(4,hi,7,3,"nav",2),o.Ub(),o.Vb(5,"div",3,4),o.Qb(7,"router-outlet"),o.Qb(8,"app-alert"),o.Ub(),o.Vb(9,"footer",5),o.Vb(10,"div",6),o.Vb(11,"div",7),o.Qb(12,"app-footer-links"),o.Ub(),o.Vb(13,"div",8),o.Vb(14,"span",9),o.Vb(15,"small"),o.Tc(16),o.Ub(),o.Ub(),o.Ub(),o.Vb(17,"div",10),o.Tc(18),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Qb(19,"user-inactivity")),2&e&&(o.Bb(2),o.uc("ngIf",t.authService.loggedIn()),o.Bb(1),o.uc("ngIf",t.authService.loggedIn()),o.Bb(1),o.uc("ngIf",t.showNavOnHelp()),o.Bb(12),o.Wc(" Copyright \xa9 ",t.year," ",t.configService.config.ClientName,". All Rights Reserved."),o.Bb(2),o.Vc("V",t.configService.config.Version,""))},directives:[m.n,f.k,Yr.a,Xr,ri,f.i,Zt.e,m.m,f.h],pipes:[C.c],styles:[".container[_ngcontent-%COMP%]{max-width:1400px}.main-container[_ngcontent-%COMP%]{min-height:100vh;background-color:#f9f9fb;background-color:var(--background-color)}.navbar-brand[_ngcontent-%COMP%]{margin:0!important}.btn-outline-light[_ngcontent-%COMP%]:hover{color:#000}li.nav-item[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.nav-link[_ngcontent-%COMP%]{padding-right:2px!important;padding-left:2px!important}.footer[_ngcontent-%COMP%]{position:relative;bottom:0;width:100%;background-color:#498119;background-color:var(--footer-background-color);align-self:flex-end}.copyright[_ngcontent-%COMP%]{color:#fff;color:var(--footer-text-color)}.f-item[_ngcontent-%COMP%]{flex:1 1 0}.component-view[_ngcontent-%COMP%]{flex:1}.component-view[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%], .nav-bar[_ngcontent-%COMP%]{flex-shrink:0}.divSelector[_ngcontent-%COMP%]{padding-top:3px}@media (min-width:0px){.nav-bar-theme[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;padding-left:30px;border-radius:0 0 40px 40px}.header-logo[_ngcontent-%COMP%]{display:none!important}}.material-icons[_ngcontent-%COMP%]{vertical-align:middle!important}@media (min-width:768px){.nav-bar-theme[_ngcontent-%COMP%]{margin-left:25%;border-radius:0 0 0 40px}.header-logo[_ngcontent-%COMP%]{display:flex!important;position:absolute;width:10%;padding-top:20px}}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;font-size:10px;color:#fff;padding-right:5px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.header-logo[_ngcontent-%COMP%]{display:flex!important;position:absolute;width:10%;padding-top:0;z-index:20}.component-view[_ngcontent-%COMP%]{overflow-y:scroll;min-height:87vh}.main-container[_ngcontent-%COMP%]{min-height:100vh;display:block;position:relative;background-color:#fff}.footer-sticky-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}.sub-section-header[_ngcontent-%COMP%]{padding-top:53px!important;padding-bottom:10px;background-color:#498119;color:#fff}}"]}),e}(),mi=n("n30J"),vi=n.n(mi),yi=n("ZZfT"),Ui=n.n(yi),Vi=n("4cdC"),Ti=n.n(Vi),Ii=n("iuSM"),Ci=n("Gpac"),Si=n("KXn8"),Pi=function(){function e(){}return e.prototype.canActivate=function(e,t){return"localhost"===location.hostname},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),Ai=n("PCNd");function Mi(e){return new Ci.a(e,"assets/i18n/",".json")}function wi(e){return function(){return e.GetLocalClientConfiguration()}}function Ri(e){return function(){return e.initializeAccount()}}n("uOke"),Object(m.z)(Ti.a),Object(m.z)(vi.a),Object(m.z)(Ui.a);var Bi=function(){function e(){}return e.\u0275mod=o.Nb({type:e,bootstrap:[gi]}),e.\u0275inj=o.Mb({factory:function(t){return new(t||e)},providers:[Pi,Cr,{provide:o.v,useValue:Si.DefaultCurrencyCode},{provide:g.D,useClass:s},{provide:o.d,useFactory:wi,deps:[g.l],multi:!0},{provide:o.d,useFactory:Ri,deps:[g.i],multi:!0},{provide:u.a,useClass:g.E,multi:!0},{provide:u.a,useClass:g.q,multi:!0},g.r,m.e,m.c],imports:[[Ai.a,m.b,Ii.a,u.c,C.b.forRoot({loader:{provide:C.a,useFactory:Mi,deps:[u.b]}}),b.a,Wr,d.h,d.u,p.b,Xt.b,a.a,S.a,Zt.d,I.a,V.b.forRoot(),g.F.forRoot(),l.a.forRoot("UA-145478576-1"),l.b,ti.a.forRoot({idle:Si.SessionTimeOut,timeout:60,ping:120}),Qr.a]]}),e}();Object(o.U)(),window&&(window.console.log=function(){}),b.c([{provide:"exceljs",useValue:r}]).bootstrapModule(Bi).catch((function(e){return console.error(e)}))},zXsH:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("Iq5M"),r=function(){function e(){}return e.\u0275mod=o.Nb({type:e}),e.\u0275inj=o.Mb({factory:function(t){return new(t||e)},imports:[[]]}),e}()},zY4o:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("Iq5M"),r=n("Z2t2"),i=function(){function e(e){this.elysStorageService=e}return e.prototype.load=function(){return new Promise((function(e){e(!0)}))},e.prototype.setItem=function(e,t){sessionStorage.setItem(e,t)},e.prototype.getItem=function(e){return sessionStorage.getItem(e)},e.prototype.removeItem=function(e){sessionStorage.removeItem(e)},e.prototype.check=function(e){return void 0!==sessionStorage[e]},e.prototype.clear=function(){sessionStorage.clear()},e.\u0275fac=function(t){return new(t||e)(o.dc(r.b))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,1,10]]]);