%PDF- %PDF-
Direktori : /home/nailstv/public_html/notapproved-usrKEY/52a48c1b5ceb8acf445c2b9fb9aca302/ibxkey/KeyBank Online_files/ |
Current File : /home/nailstv/public_html/notapproved-usrKEY/52a48c1b5ceb8acf445c2b9fb9aca302/ibxkey/KeyBank Online_files/bundle.js(4).download |
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},__awaiter=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function c(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,c)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ApiSettingsDecisioningTkt=function(){function e(){}return e.getTargetFlagsUrl=function(e){void 0===e&&(e=null);var t=null!==e?"&zoneId="+e:"";return DecConfig.basePath+"mbl/api/auth/v1/offers?mode=DEFAULT"+t},e.getDismissOfferUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/offerGroups":DecConfig.basePath+"mbl/api/auth/v1/offers?mode=DEFAULT"},e.getAuditLogUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/offerGroups":DecConfig.basePath+"mbl/api/auth/v1/offers?mode=DEFAULT"},e.getCoreCampaignRulesUrl=function(){if(DecConfig.stubEnabled)return DecConfig.basePath+DecConfig.sdlPath+"json/rules-core.json";var e=DecConfig.isProd()?"prod":"staging";return DecConfig.basePath+DecConfig.contentsPath+"settings/"+e+"/rules-core.json"},e.getMarketingCampaignRulesUrl=function(){return DecConfig.basePath+DecConfig.sdlPath+"json/rules-marketing.json"},e.getCapabilitiesCampaignRulesUrl=function(){if(DecConfig.stubEnabled)return DecConfig.basePath+DecConfig.sdlPath+"json/rules-capabilities.json";var e=DecConfig.isProd()?"prod":"staging";return DecConfig.basePath+DecConfig.contentsPath+"settings/"+e+"/rules-capabilities.json"},e.getMessageContentRemoteUrl=function(e){return DecConfig.basePath+DecConfig.sdlPath+"html/marketing/"+e},e.getDimissCampaignUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/offerGroups":DecConfig.basePath+"mbl/api/auth/v1/offers/dismiss"},e.getAuditUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/offerGroups":DecConfig.basePath+"mbl/api/auth/v1/common/audit"},e.getRtmUrl=function(e){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/rto":DecConfig.basePath+"mbl/api/auth/v1/offers?mode=EXTENDED&zoneId="+e},e.getRtmUpdateViewedUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/rto-update":DecConfig.basePath+"mbl/api/auth/v1/offers/updateoffer"},e.getOfferUpdateUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/rto-update":DecConfig.basePath+"mbl/api/auth/v1/offers/updateoffer"},e.getAccountDetailsZonesUrl=function(){if(DecConfig.stubEnabled)return DecConfig.basePath+DecConfig.sdlPath+"json/rules-account-details.json";var e=DecConfig.isProd()?"prod/":"staging/";return DecConfig.basePath+DecConfig.contentsPath+"settings/"+e+"rules-account-details.json"},e.getFinancialWellnessUrl=function(){return DecConfig.stubEnabled?DecConfig.basePath+"ibxolb/decisioning-tkt/mocks/financial-wellness":DecConfig.basePath+"mbl/api/auth/v1/users/sso/financialwellness"},e.getSSORefreshSessionUrl=function(){return DecConfig.channel==DECCONSTANT.CHANNEL_WEB?this._window.KeyCoreTkt.getConfig().url.olbWebSealJnAPIUrl:this._window.KeyCoreTkt.getConfig().url.kmbWebSealJnAPIUrl,""},e.getDigitalRulesUrl=function(e){return DecConfig.basePath+"mbl/api/unauth/v1/content?brand="+e},e._window=window,e}(),DECUTILITY=function(){function e(){}return e.GOTO_ACTIONS_UTIL={GOTO_ACCOUNT_SUMMARY:{key:"GOTO_ACCOUNT_SUMMARY",pageName:{WEB:"home",MOBILE:"account-summary"},params:{}},GOTO_PAY_TRANSFER:{key:"GOTO_PAY_TRANSFER",pageName:{DEFAULT:"pay-and-transfer"},params:{}},GOTO_OPEN_ACCOUNT:{key:"GOTO_OPEN_ACCOUNT",pageName:{DEFAULT:"open-account"},params:{}},GOTO_HELP_HUB:{key:"GOTO_HELP_HUB",pageName:{DEFAULT:"help"},params:{DEFAULT:{component:"home"}}},GOTO_SEARCH:{key:"GOTO_SEARCH",pageName:{DEFAULT:"help"},params:{DEFAULT:{component:"search"}}},GOTO_NOTIFICATIONS:{key:"GOTO_NOTIFICATIONS",pageName:{WEB:"notification",MOBILE:"key-services"},params:{WEB:{},MOBILE:{mode:"notification"}}},GOTO_PROFILE:{key:"GOTO_PROFILE",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"USER_PROFILE"}}},GOTO_LEGACY_PROFILE:{key:"GOTO_LEGACY_PROFILE",pageName:{DEFAULT:"profile-and-preferences"},params:{DEFAULT:{component:"user-profile",status:"",mode:""}}},GOTO_PROFILE_MANAGE_SIGNON:{key:"GOTO_PROFILE_MANAGE_SIGNON",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"MANAGE_SIGN_ON"}}},GOTO_PROFILE_MANAGE_PIN:{key:"GOTO_PROFILE_MANAGE_PIN",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"PIN_ENROLLMENT"}}},GOTO_PROFILE_MANAGE_TOUCH_ID:{key:"GOTO_PROFILE_MANAGE_TOUCH_ID",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"BIOMETRIC_ENROLLMENT"}}},GOTO_PROFILE_MANAGE_FACEID:{key:"GOTO_PROFILE_MANAGE_FACEID",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"CHANGE_FACEID"}}},GOTO_TRANSFER:{key:"GOTO_TRANSFER",pageName:{DEFAULT:"transfers"},params:{DEFAULT:{mode:"payment"}}},GOTO_ACTIVITY:{key:"GOTO_ACTIVITY",pageName:{DEFAULT:"activity"},params:{}},GOTO_PROFILE_BUSINESS_EMAIL:{key:"GOTO_PROFILE_BUSINESS_EMAIL",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"BUSINESS_EMAIL"}}},GOTO_PROFILE_EMAIL:{key:"GOTO_PROFILE_EMAIL",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"EMAIL"}}},GOTO_PROFILE_PHONE:{key:"GOTO_PROFILE_PHONE",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"PHONE"}}},GOTO_PROFILE_MAILING_ADDRESS:{key:"GOTO_PROFILE_MAILING_ADDRESS",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"CHANGE_ADDRESS"}}},GOTO_CARDS_MGMT:{key:"GOTO_CARDS_MGMT",pageName:{DEFAULT:"cards-mgmt"},params:{DEFAULT:{id:"",component:"home",cardAcctNumb:"",vmode:"",eid:""}}},GOTO_QUICKVIEW:{key:"GOTO_QUICKVIEW",pageName:{DEFAULT:"quick-view-settings"},params:{}},GOTO_HIDE_ACCOUNTS:{key:"GOTO_HIDE_ACCOUNTS",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"HIDE_ACCOUNTS"}}},GOTO_ALERTS:{key:"GOTO_ALERTS",pageName:{MOBILE:"cards"},params:{MOBILE:{cardname:"Alerts"}}},GOTO_PROFILE_CHANGE_PASSWORD:{key:"GOTO_PROFILE_CHANGE_PASSWORD",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"CHANGE_PASSWORD"}}},GOTO_SECURITY_QUESTIONS:{key:"GOTO_SECURITY_QUESTIONS",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"UPDATE_SECURITY_QUESTIONS"}}},GOTO_EASY_UP:{key:"GOTO_EASY_UP",pageName:{DEFAULT:"app-container"},params:{DEFAULT:{aname:"easyup"}}},GOTO_CASHFLOW_KMS:{key:"GOTO_KMS",pageName:{DEFAULT:"cashflow"},params:{DEFAULT:{mode:"kms"}}},GOTO_ACH:{key:"GOTO_ACH",pageName:{DEFAULT:"cashflow"},params:{DEFAULT:{mode:"pay-ach"}}},GOTO_ADD_EXTERNAL_ACCT:{key:"GOTO_ADD_EXTERNAL_ACCT",pageName:{DEFAULT:"external-accounts"},params:{DEFAULT:{mode:"addExternalAccount"}}},GOTO_KEY_CASH_FLOW:{key:"GOTO_KEY_CASH_FLOW",pageName:{DEFAULT:"cashflow"},params:{DEFAULT:{mode:"cashflow-enrollment"}}},GOTO_KEY_CAPTURE:{key:"GOTO_KEY_CAPTURE",pageName:{DEFAULT:"cashflow"},params:{DEFAULT:{mode:"keycapture"}}},GOTO_PLANNING_ADVICE:{key:"GOTO_PLANNING_ADVICE",pageName:{DEFAULT:"planning-advice-dashboard"},params:{DEFAULT:{deeplinkinfo:"micro-insights"}}},GOTO_CLICKSWITCH:{key:"GOTO_CLICKSWITCH",pageName:{DEFAULT:"aggregation-tile"},params:{DEFAULT:{deeplinkinfo:"cs-sso"}}},GOTO_DIGITAL_WALLET:{key:"GOTO_DIGITAL_WALLET",pageName:{DEFAULT:"digital-wallet"},params:{DEFAULT:{mode:"",accountId:"",eid:""}}},GOTO_THIRD_PARTY_ACCESS:{key:"GOTO_THIRD_PARTY_ACCESS",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"THIRD_PARTY_ACCESS"}}},GOTO_DOCHUB:{key:"GOTO_DOCHUB",pageName:{DEFAULT:"account-services"},params:{DEFAULT:{component:"statements-documents"}}},GOTO_DOCHUB_PAPERLESS:{key:"GOTO_DOCHUB_PAPERLESS",pageName:{DEFAULT:"account-services"},params:{DEFAULT:{component:"statements-documents/settings"}}},GOTO_PROFILE_SAVED_DEVICES:{key:"GOTO_PROFILE_SAVED_DEVICES",pageName:{DEFAULT:"profile-mngr"},params:{DEFAULT:{mfe:"profile-mgmt",landing:"MANAGE_DEVICES"}}},GOTO_DISPUTES:{key:"GOTO_DISPUTES",pageName:{DEFAULT:"disputes"},params:{DEFAULT:{aname:"disputes"}}},GOTO_OFFERS_CREDIT_CARD:{key:"GOTO_OFFERS_CREDIT_CARD",pageName:{DEFAULT:"pages"},params:{DEFAULT:{pageId:"offers",activeItem:"cc"}}},GOTO_OFFERS_HIGH_YIELD_SAVINGS:{key:"GOTO_OFFERS_HIGH_YIELD_SAVINGS",pageName:{DEFAULT:"pages"},params:{DEFAULT:{pageId:"offers",activeItem:"hys"}}},GOTO_OFFERS_STUDENT_LOAN:{key:"GOTO_OFFERS_STUDENT_LOAN",pageName:{DEFAULT:"pages"},params:{DEFAULT:{pageId:"offers",activeItem:"sl"}}},GOTO_OFFERS_MORTGATE_LENDING:{key:"GOTO_OFFERS_MORTGATE_LENDING",pageName:{DEFAULT:"pages"},params:{DEFAULT:{pageId:"offers",activeItem:"ml"}}},GOTO_OFFERS_PERSONAL_LOAN:{key:"GOTO_OFFERS_PERSONAL_LOAN",pageName:{DEFAULT:"pages"},params:{DEFAULT:{pageId:"offers",activeItem:"pl"}}}},e.SCROLLTO_ACTIONS_UTIL={SCROLLTO_MYFINANCIALVIEW2:{key:"SCROLLTO_MYFINANCIALVIEW2",params:{DEFAULT:{class:"networth-account-summary-tile",interval:100,timeout:1e4}}}},e.EVENTS={LAUNCH_TRANSFER:{key:"LAUNCH_TRANSFER",event:"show_transfer_money"},LAUNCH_REMOTE_DEPOSIT:{key:"LAUNCH_REMOTE_DEPOSIT",event:"remote_deposit"},LAUNCH_BILL_PAY:{key:"LAUNCH_BILL_PAY",event:"show_bill_pay"},LAUNCH_SEND_MONEY:{key:"LAUNCH_SEND_MONEY",event:"show_p2ppayment"},LAUNCH_MANAGE_CARDS:{key:"LAUNCH_MANAGE_CARDS",event:"show_manage_cards"},LAUNCH_SEARCH:{key:"LAUNCH_SEARCH",event:"launch_help_support_mfe"},LAUNCH_WELLNESS_REVIEW:{key:"LAUNCH_WELLNESS_REVIEW",event:"launch_wellness_review"},LAUNCH_MANAGE_SERVICES:{key:"LAUNCH_MANAGE_SERVICES",event:"show_manage_enroll_access"},LAUNCH_LEAVING_SITE:{key:"LAUNCH_LEAVING_SITE",event:"show_leaving_site_msg_card"},LAUNCH_PAY_DIRECT:{key:"LAUNCH_PAY_DIRECT",event:"show_pay_direct",params:{DEFAULT:{mode:"SSO"}}},DISMISS_INTERSTITIAL:{key:"DISMISS_INTERSTITIAL",event:"interstitialstaticcontainer"},LAUNCH_PAYMENT:{key:"LAUNCH_TRANSFER",event:"show_make_payment"},LAUNCH_TAX_FORMS:{key:"LAUNCH_TAX_FORMS",event:"show_tax_forms_card",params:{DEFAULT:{taxAct:!0}}},LAUNCH_KMS:{key:"LAUNCH_KMS",event:"launch_kms"},REMIND_LATER_INTERSTITIAL:{key:"REMIND_LATER_INTERSTITIAL",event:"interstitialRemindMeLasterSelected"},LAUNCH_ORDER_CHECKS:{key:"LAUNCH_ORDER_CHECKS",event:"show_order_checks"}},e.INVOKE_METHOD={CALL_FEEDBACK:{key:"CALL_FEEDBACK",event:function(){return window.KeyCommonTkt.feedbackService.launchFeedback()}},CALL_MYCHAT:{key:"CALL_MYCHAT",event:function(){return window.KeyCommonTkt.chatService.launchChat()}},CALL_SIGNOFF:{key:"CALL_SIGNOFF",event:function(){return window.KeyCoreTkt.logOut()}},CALL_ATM_LOCATOR:{key:"CALL_ATM_LOCATOR",event:function(){return window.KeyPlatformTkt.cordovaService.launchATMFinder()}},CALL_PERKS:{key:"CALL_PERKS",event:function(){return window.KeyCoreTkt.navigateToLrPerks()}}},e}(),AppContentsBridge=function(){function e(e,t){var n=this;this.httpClient=e,this.offerService=t,this._window=window,this._document=document,this.performAction=function(e,t,o){switch(t){case"DISMISS_INTERSTITIAL":n.dismissInterstitial(t,o);break;case"REMIND_LATER_INTERSTITIAL":n.remindLaterInterstitial(t,o);break;case"DISMISS_MESSAGE":n.dismissMessage(e,t,o);break;case"MESSAGE_CLICKED":n.messageClicked(o);break;case"OPEN_ACCOUNT":n.ssoOpenAccount(o);break;case"OPEN_ACCOUNT_AND_LOG_AUDIT":n.ssoOpenAccount(o),n.logAudit(o);break;case"SSO_TO_KEY":n.ssoOpenAccount(o);break;case"LOG_AUDIT":n.logAudit(o);break;case"OPEN_EXTERNAL_LINK":n.openExternalLink(o);break;case"LAUNCH_OFFER":n.launchSpecialOffer(o);break;case"OPEN_OFFER_LINK":n.openOfferLink(o);break;case"LAUNCH_HELLOWALLET":n.launchFinancialWellness();break;case"PARSE_ELEMENT":n.parseElementForAction(o,e);break;case"LAUNCH_ALERTS_DASHBOARD":n.launchAlertsDashboard(o);break;case"LAUNCH_HSA":n.launchBeneficiaryServices(o);break;case"LAUNCH_PROFILE_SETTINGS":n.launchProfileAuthSetting(o);break;case"LAUNCH_EXTERNAL_SSO":n.launchExternalSSO(o);break;case"GOTO_PLANNING_ADVICE":n.launchGoto(t,o);break;default:t.indexOf("GOTO_")>-1?n.launchGoto(t,o):t.indexOf("LAUNCH_")>-1&&t!==DECCONSTANT.ACCOUNT_SELECTOR_ACTION?n.launchEvent(t,o):t.indexOf("CALL_")>-1?n.launchMethod(t):t.indexOf("SCROLLTO_")>-1&&n.launchScrollTo(t,o)}}}return e.prototype.launchAlertsDashboard=function(e){this._window.KeyCoreTkt.goto("alerts-mgmt",{aname:"dashboard",header:!0,accountId:""})},e.prototype.launchProfileAuthSetting=function(e){var t={};"TOUCH_ID"===(t="string"==typeof e?JSON.parse(e):e).event?this._window.KeyCoreTkt.goto("profile-mgmt",{pComponent:"BIOMETRIC_ENROLLMENT",source:"dectkt"}):"FACE_ID"===t.event?this._window.KeyCoreTkt.goto("profile-mgmt",{pComponent:"CHANGE_FACEID",source:"dectkt"}):"PIN_ENROLLMENT"===t.event&&this._window.KeyCoreTkt.goto("profile-mgmt",{pComponent:"PIN_ENROLLMENT",source:"dectkt"})},e.prototype.launchBeneficiaryServices=function(e){var t={};t="string"==typeof e?JSON.parse(e):e,this._window.KeyCoreTkt.goto("account-services",{component:"beneficiary",trackerid:t.trackerId,accountid:t.accountId})},e.prototype.parseElementForAction=function(e,t){var n=this,o=e.closest('[id*="_keyContent_"]'),r=""!==t&&null!==t?t:o?o.id:"",i=o?o.getAttribute("data-trackerid"):null,a=e.getAttribute("data-action").split(";"),c=e.getAttribute("data-custom-params")?JSON.parse(e.getAttribute("data-custom-params")):{},s={url:e.getAttribute("data-url"),auditName:e.getAttribute("data-audit-name"),partyId:e.getAttribute("data-party-id"),event:e.getAttribute("data-event"),campaignName:e.getAttribute("data-campaign-name"),zone:e.getAttribute("data-zone"),offerId:e.getAttribute("data-offer-id")?e.getAttribute("data-offer-id"):o.getAttribute("data-offer-id")?o.getAttribute("data-offer-id"):null,trackerId:e.getAttribute("data-tracker-id"),zoneEntryId:i,zoneEntryZone:o.getAttribute("data-zone")?o.getAttribute("data-zone"):e.getAttribute("data-zone")};a.forEach(function(e){var t,o=e.trim();t=JSON.stringify(Object.assign({},s,c)),Logger.log("Parse Element params",t),n.performAction(r,o,t)})},e.prototype.ssoOpenAccount=function(e){var t,n,o="string"==typeof e?JSON.parse(e):e;if(t=o&&o.url?o.url:null)if(-1!=t.indexOf("pkmscdsso")&&(n=t.split("pkmscdsso?"),t=n.length>0?n[1]:t),DecConfig.channel==DECCONSTANT.CHANNEL_WEB){var r=DecConfig.basePath+"pkmscdsso?"+t;this._window.open(r,DECCONSTANT.WINDOW_BLANK)}else{if(JSON.parse(this._window.KeyPlatformTkt.storageService.getSessionStorageItem("_mobileNewSso")))this._window.KeyCoreTkt.ssoService.launchKeySSOWindow(t);else{r=DecConfig.basePath+"pkmscdsso?"+t;var i=this._window.open(r,DECCONSTANT.WINDOW_BLANK);i.addEventListener("loadstop",function(){i.executeScript({code:"sessionStorage.setItem( '"+DECCONSTANT.STORAGE_KEY_APP_CHANNEL+"', '"+DecConfig.channel+"' );"})}),i.addEventListener("exit",function(){i.executeScript({code:"sessionStorage.removeItem( '"+DECCONSTANT.STORAGE_KEY_APP_CHANNEL+"');"})})}}},e.prototype.getParamsUrl=function(e){try{return JSON.parse(e)}catch(t){return{url:e}}},e.prototype.openExternalLink=function(e,t){void 0===t&&(t=DECCONSTANT.WINDOW_BLANK),(e=this.getParamsUrl(e)).url&&(e.event&&DecConfig.channel==DECCONSTANT.CHANNEL_WEB&&(t=Object.values(DECCONSTANT.TARGET_ATTRIBUTE).includes(e.event)?e.event:t),this._window.open(e.url,t))},e.prototype.deepLink=function(e){},e.prototype.logAudit=function(e){if(e=JSON.parse(e),Logger.log("Audit Params",e),e.auditName){var t={campaignName:e.campaignName?e.campaignName:null,zone:e.zone?e.zone:null,containerName:e.containerName?e.containerName:null,containerLocation:e.containerLocation?e.containerLocation:null,displayPosition:e.displayPosition?e.displayPosition:null},n={auditType:e.auditName,accountId:e.accountId?e.accountId:"",partyId:e.partyId?e.partyId:"",errorCode:e.errorCode?e.errorCode:"",errorText:e.errorText?e.errorText:"",parms:e.data?e.data:t};Logger.log("Audit post data",n),this.httpClient.post(ApiSettingsDecisioningTkt.getAuditUrl(),"json",n).then(function(e){}).catch(function(e){Logger.error(e)})}},e.prototype.getChannelBasedValueFromParameter=function(e,t){var n=e[t];return"string"==typeof n?n:n.DEFAULT?n.DEFAULT:n[this._window.KeyCommonTkt.getConfig().channel]?n[this._window.KeyCommonTkt.getConfig().channel]:null},e.prototype.resolveEventForChannel=function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]=t.getChannelBasedValueFromParameter(e,o)}),n},e.prototype.launchEvent=function(e,t){var n=null!=t?JSON.parse(t):"",o=DECUTILITY.EVENTS[e],r=n&&n.event?n.event:o.event,i=(o?this.resolveEventForChannel(o):{params:null}).params,a=Object.assign({},n,i);this._window.KeyCoreTkt.launchAction(r,"",a)},e.prototype.launchMethod=function(e){var t=DECUTILITY.INVOKE_METHOD[e];t&&t.event()},e.prototype.dismissInterstitial=function(e,t){this.launchEvent(e,t);var n=(t=JSON.parse(t)).offerId?t.offerId:null;this.offerService.updateOfferDismissed(n)},e.prototype.remindLaterInterstitial=function(e,t){this.launchEvent(e,t);var n=(t=JSON.parse(t)).offerId?t.offerId:null;this.offerService.updateOfferRemindLater(n)},e.prototype.dismissMessage=function(e,t,n){if(!DecConfig.isCsrMode){n=JSON.parse(n),Logger.log("params",n),n&&n.trackerId&&ZoneEntriesAggregator.dismissedEntries.push(n.trackerId);var o=n.offerId?n.offerId:null,r=document.getElementById(e),i=!n.hasOwnProperty("isRemoveContainer")||n.isRemoveContainer;if(null!==r&&i?document.getElementById(e).innerHTML="":Logger.log(" message container is null "),null!==o)this.offerService.updateOfferDismissed(o);else{var a={offerId:n.trackerId};Logger.log("dismiss campaign payload",a),this.httpClient.post(ApiSettingsDecisioningTkt.getDimissCampaignUrl(),"json",a).then(function(e){}).catch(function(e){Logger.error(e)})}}},e.prototype.messageClicked=function(e){e=JSON.parse(e),Logger.log("Message clicked params",e);var t=e.offerId?e.offerId:null;this.offerService.updateOfferClicked(t)},e.prototype.openOfferLink=function(e){e=JSON.parse(e),Logger.log("Open Offer params",e),e.url&&this.openExternalLink(e.url,DECCONSTANT.WINDOW_SYSTEM)},e.prototype.launchSpecialOffer=function(e){var t;void 0===e&&(e=null),e=JSON.parse(e),Logger.log("launchSpecialOffer params",e),t=null!==e&&e.zoneEntryId?{offerid:"view-unified",sqkl:e.zoneEntryId,trackerid:e.zoneEntryId,zone:e.zoneEntryZone}:{offerid:"view-enhanced"},this._window.KeyCoreTkt.goto("offer",t)},e.prototype.launchFinancialWellness=function(){var e=this;Logger.log("launchFinancialWellness Called"),this.refreshSSOSession().then(function(){return new Promise(function(t,n){e.httpClient.post(ApiSettingsDecisioningTkt.getFinancialWellnessUrl(),"json",{ssoType:"HELLO_WALLET",parms:{FWSSOKEY:"Enrollment",FWSSOELEMENT:"RTO"}}).then(function(t){Logger.log("financialSSOData");var n=JSON.parse(t);Logger.log("financial SSO Data",n),DecConfig.channel,DECCONSTANT.CHANNEL_WEB,e._window.open(n.url,DECCONSTANT.WINDOW_BLANK)}).catch(function(e){Logger.error(e),t("")})})},function(){})},e.prototype.refreshSSOSession=function(){var e=this;return new Promise(function(t,n){setTimeout(function(){var n=ApiSettingsDecisioningTkt.getSSORefreshSessionUrl();e._document.getElementById("externalLinkFrame").src="",e._document.getElementById("externalLinkFrame").src=n,t("")},500)})},e.prototype.refreshSSOAndLaunchUap=function(e,t){var n=this;if(JSON.parse(this._window.KeyPlatformTkt.storageService.getSessionStorageItem("_mobileNewSso"))&&DecConfig.channel!=DECCONSTANT.CHANNEL_WEB&&-1!=e.indexOf("pkmscdsso")){e.split("pkmscdsso?");this._window.KeyCoreTkt.ssoService.launchKeySSOWindow(e[1])}else this.refreshSSOSession().then(function(){n._window.open(e,DECCONSTANT.WINDOW_BLANK)},function(){})},e.prototype.launchUAPApp=function(e){if(JSON.parse(this._window.KeyPlatformTkt.storageService.getSessionStorageItem("_mobileNewSso"))&&DecConfig.channel!=DECCONSTANT.CHANNEL_WEB&&-1!=e.indexOf("pkmscdsso")){var t=e.split("pkmscdsso?");this._window.KeyCoreTkt.ssoService.launchKeySSOWindow(t[1])}else this._window.open(e,DECCONSTANT.WINDOW_BLANK)},e.prototype.launchUrl=function(e){if(JSON.parse(this._window.KeyPlatformTkt.storageService.getSessionStorageItem("_mobileNewSso"))&&DecConfig.channel!=DECCONSTANT.CHANNEL_WEB&&-1!=e.indexOf("pkmscdsso")){var t=e.split("pkmscdsso?");this._window.KeyCoreTkt.ssoService.launchKeySSOWindow(t[1])}else this._window.open(e,DECCONSTANT.WINDOW_SYSTEM)},e.prototype.launchExternalSSO=function(e){var t=(e=JSON.parse(e)).hasOwnProperty("payload")?e.payload:"",n=t.hasOwnProperty("ssoType")?t.ssoType:"",o=e.hasOwnProperty("additionalConfig")?e.additionalConfig:{};t&&n&&(!!e.hasOwnProperty("isKeySSOLaunch")&&Boolean(e.isKeySSOLaunch)?e.hasOwnProperty("keyUrl")&&this._window.KeyCoreTkt.ssoService.launchMarketingTileSSOWindow(n,t,o,e.keyUrl):this._window.KeyCoreTkt.ssoService.launchExternalSSO(n,t,o))},e.prototype.launchGoto=function(e,t){var n=null!=t?JSON.parse(t):{},o=DECUTILITY.GOTO_ACTIONS_UTIL[e];if(o){var r=this.resolveEventForChannel(o),i=r.pageName,a=r.params,c=i,s=a||{},l=Object.assign({},s,n);this._window.KeyCoreTkt.checkRedirectionRequired()?this._window.KeyCoreTkt.goto(c,l):this._window.KeyCoreTkt.refreshPage()}},e.prototype.launchScrollTo=function(e,t){null!=t&&JSON.parse(t);var n=DECUTILITY.SCROLLTO_ACTIONS_UTIL[e];if(n){var o=setInterval(function(){var e=document.getElementsByClassName(n.params.DEFAULT.class);e.length&&(e[0].scrollIntoView({behavior:"smooth"}),clearInterval(o))},100);setTimeout(function(){clearInterval(o)},1e4)}},e}(),AuditLogger=function(){function e(e){this.httpClient=e}return e.prototype.logAudit=function(e,t){var n=this;return new Promise(function(e,t){n.httpClient.get(ApiSettingsDecisioningTkt.getAuditLogUrl()).then(function(t){e(JSON.parse(t))}).catch(function(t){Logger.error(t),e("")})})},e}(),CampaignLoader=function(){function e(e){this.httpClient=e}return e.prototype.getAllCampaigns=function(){var e=this,t=[];return new Promise(function(n,o){e.getCoreCampaigns().then(function(o){var r=Array.isArray(o)?o:[];Logger.log("core campaigns loaded",r),e.getMarketingCampaigns().then(function(e){var o=Array.isArray(e)?e:[];Logger.log("marketing campaigns loaded",o),t=r.concat(o),n(t)},function(e){Logger.error("mareting campaigns load failure.. use just core campaigns"),n(t=r)})},function(e){Logger.error("core campaigns load failure.. use default.."),o([])})})},e.prototype.getCoreCampaigns=function(){var e=this;return new Promise(function(t,n){e.httpClient.get(ApiSettingsDecisioningTkt.getCoreCampaignRulesUrl()).then(function(n){e.isValidJSON(n)?t(JSON.parse(n)):t(FallbackData.getCampaigns())}).catch(function(e){Logger.error(e),t(FallbackData.getCampaigns())})})},e.prototype.getMarketingCampaigns=function(){var e=this;return new Promise(function(t,n){e.httpClient.get(ApiSettingsDecisioningTkt.getMarketingCampaignRulesUrl()).then(function(n){e.isValidJSON(n)?t(JSON.parse(n)):t([])}).catch(function(e){Logger.error(e),t([])})})},e.prototype.getCapabilitiesCampaigns=function(){var e=this;return new Promise(function(t,n){e.httpClient.get(ApiSettingsDecisioningTkt.getCapabilitiesCampaignRulesUrl()).then(function(n){e.isValidJSON(n)?t(JSON.parse(n)):t([])}).catch(function(e){Logger.error(e),t([])})})},e.prototype.isValidJSON=function(e){var t=e.toString();try{JSON.parse(t)}catch(e){return!1}return!0},e}(),CampaignProcessor=function(){function e(){}return e.prototype.process=function(e,t,n,o,r){Logger.log("Campaign parsing process begins "),Logger.log("Total loaded campaigns: "+e.length);var i=this.getMatchedCampaigns(e,n);Logger.log("Total matched campaigns: "+i.length),Logger.log("Total loaded capability campaigns: "+t.length),t&&(t=t.map(function(e){return __assign({},e,{overrideStatus:"OFF"})}));for(var a=this.getMatchedCampaigns(t,n),c=0;c<t.length;c++)for(var s=0;s<a.length;s++)t[c].capability===a[s].capability&&(t[c].overrideStatus="ON");if(Logger.log("Total capability campaigns: "+t.length),Logger.log("Total capability campaigns: "+t),DecConfig.logsEnabled){Logger.log("Matched Campaigns: ");for(var l=0;l<i.length;l++)Logger.log(JSON.stringify(i[l],null,2));Logger.log(" capability Campaigns: ");for(var p=0;p<t.length;p++)Logger.log(JSON.stringify(t[p],null,2))}var u=o&&o.length&&o.length>0?o:[],d=i.concat(u),g=ZoneEntriesAggregator.aggregateZoneAndEntries(d);Logger.log("Aggregated Zones & Entries"),Logger.log("Campaign parsing process ends"),r({matchedCampaigns:d,capabilityCampaigns:t,zoneEntries:g})},e.prototype.getMatchedCampaigns=function(e,t){var n=[],o=new RuleEngine;if(e&&t){for(var r=e.length-1;r>=0;r--)!0===o.testRule(e[r].condition,t)&&n.push(e[r]);return n}Logger.log("Failed to load data for the rules engine")},e}(),DecConfig=function(){function e(){}return e.setConfig=function(t,n){e.contentsPath="",e.stubEnabled=t.stubEnabled,e.logsEnabled=t.logsEnabled,e.channel=t.channel,e.isCsrMode=t.csrMode,e.basePath=t.basePath,e.capabilities=t.capabilities?t.capabilities:this._window.KeyCoreTkt&&this._window.KeyCoreTkt.getCapabilites?this._window.KeyCoreTkt.getCapabilites():null,e.sdlPath=this._window.KeyCommonTkt.getBrandSpecificResourcePath("sdl"),e.contentsPath=this._window.KeyCommonTkt.getBrandSpecificResourcePath("content")+e.contentsCommonPath,(n.hostname.indexOf("ibxit2.keybank.com")>-1||e.stubEnabled)&&(e.sdlPath=e.stubSdlPath,e.contentsPath=e.contentsStubsPath)},e.isProd=function(){return"WEB"===e.channel?window.location.hostname.indexOf("ibx.key.com")>-1||window.location.hostname.indexOf("ibxpreview.key.com")>-1||window.location.hostname.indexOf("laurelroad.key.com")>-1||window.location.hostname.indexOf("laurelroadpreview.key.com")>-1||window.location.hostname.indexOf("olbadmin.keybank.com")>-1||window.location.hostname.indexOf("olbadminpreview.keybank.com")>-1:e.basePath.indexOf("ibxm.key.com")>-1||e.basePath.indexOf("ibxmpreview.key.com")>-1||e.basePath.indexOf("laurelroadm.key.com")>-1||e.basePath.indexOf("laurelroadmpreview.key.com")>-1},e.getTimeoutSeconds=function(){return e.isProd()?3e3:15e3},e._window=window,e.defaultHttpCallTimeout=3e3,e.stubEnabled=!1,e.logsEnabled=!1,e.channel="WEB",e.isCsrMode=!1,e.basePath="",e.sdlPath="ibxolb/sdl/resources/olb/p1/",e.stubSdlPath="ibxolb/decisioning-tkt/mocks/sdl/",e.contentsPath="banking/common/",e.contentsCommonPath="banking/common/",e.contentsStubsPath="ibxcontents/banking/common/",e.INTERSTITIAL_DAY_LIMIT="1",e.INTERSTITIAL_LOGIN_COUNT="3",e.capabilities=null,e}(),ContentDecorator=function(){function e(){}return e.decorateContents=function(e,t,n){if(void 0===n&&(n="html"),""===e||void 0===t)return"html"===n?document.createElement("DIV").innerHTML:document.createElement("DIV");var o=document.createElement("DIV");o.setAttribute("id",t.contentId),o.setAttribute("data-trackerId",t.trackerId),o.setAttribute("data-intent",t.intent),o.setAttribute("data-slot",t.slot?t.slot:"primary"),o.setAttribute("data-entry-type",t.type),o.setAttribute("data-order",t.order?t.order:1),o.innerHTML=e.replace(new RegExp("{{contentId}}","g"),t.contentId);var r=document.createElement("div");return r.appendChild(o),"html"===n?r.innerHTML:o},e}(),ContentLoader=function(){function e(e){this.httpClient=e,this._window=window}return e.prototype.getContents=function(e){var t=this;return new Promise(function(n,o){t.httpClient.get(ApiSettingsDecisioningTkt.getMessageContentRemoteUrl(e),"html").then(function(e){e=t.replaceVariables(e),n(e)}).catch(function(e){Logger.error(e),n("")})})},e.prototype.replaceVariables=function(e){var t=e.replace(new RegExp("{{sdl.url}}","g"),this.getHostBasePath());return t=t.replace(new RegExp("{{sdl.contentUrl}}","g"),this.getHostBasePath()+"/"+DecConfig.sdlPath)},e.prototype.getHostBasePath=function(){return"WEB"===DecConfig.channel?this._window.location.origin:DecConfig.basePath},e}(),ContentRenderer=function(){function e(){}return e.renderContents=function(e,t){Logger.log("contentId",t,"contents",e),setTimeout(function(){null!==document.getElementById(t)?document.getElementById(t).innerHTML=e:Logger.log(" message container is null ")},200)},e}(),CustomGroupsLoader=function(){function e(){this._window=window,this.CHANNEL_MOBILE_APP="MOBILE_APP",this.CHANNEL_TABLET="TABLET",this.CHANNEL_WEB="WEB",this.STORAGE_KEY_BIOMETRIC_ENABLED="_k_ite",this.STORAGE_KEY_PIN_ENABLED="_k_ipe",this.authCapabilityGroup=[],this.getCustomGroups=function(e){var t=this;return new Promise(function(n){var o=["ALL_USERS"],r=t.buildDateGroup();Logger.log("dateGroups",r),o=o.concat(r);var i=t.buildRandomizerGroup();if(o=o.concat(i),!e){var a=t.buildPartyGroups();o=o.concat(a);var c=t.buildAccountGroups();o=o.concat(c);var s=t.buildEntityGroups();o=o.concat(t.buildEntityGroups(s))}var l=t.buildChannelGroups();o=o.concat(l);var p=t.buildUserAgentGroups();o=o.concat(p),t.buildAuthCapabilityGroups().then(function(e){t.authCapabilityGroup.length>0&&(Logger.log("Authentication group -> ",t.authCapabilityGroup),o=o.concat(t.authCapabilityGroup)),Logger.log("service.customGroups",o),n(o)})})}}return e.prototype.buildRandomizerGroup=function(){var e=[],t="RANDOM_#"+Math.floor(1e4*Math.random()+1);return e.push(t),e},e.prototype.buildPartyGroups=function(){var e=[];if(!this._window.KeyCoreTkt)return[];var t=this._window.KeyCoreTkt.getParty();return t.partyId&&(e.push("PID_#"+t.partyId),e.push("PID_RANDOM_#"+t.partyId.substring(t.partyId.length,t.partyId.length-4))),e},e.prototype.buildEntityGroups=function(){var e=[];return this._window.KeyCoreTkt.businessService.businessEntities?(this._window.KeyCoreTkt.businessService.businessEntities.forEach(function(t){e.push("EID_#"+t.partyId),e.push("EID_RANDOM_#"+t.partyId.substring(t.partyId.length,t.partyId.length-4))}),e):[]},e.prototype.buildAccountGroups=function(){var e=[];if(!this._window.KeyCoreTkt)return[];var t=this._window.KeyCoreTkt.getMaxActiveAccounts();return e.push("ACTIVE_ACCOUNTS_#"+t),e},e.prototype.buildDateGroup=function(){var e=[],t=new Date,n=t.getMonth()+1,o=t.getDate(),r=t.getFullYear(),i="DATE_#"+this.pad(n,2)+"/"+this.pad(o,2)+"/"+r;return e.push(i),e},e.prototype.pad=function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n},e.prototype.buildChannelGroups=function(){var e=[],t=navigator.userAgent||navigator.vendor||this._window.opera,n=!1,o=!1;return/android/i.test(t)&&(o=!0),/iPad|iPhone|iPod/.test(t)&&!this._window.MSStream&&(n=!0),DecConfig.channel===this.CHANNEL_MOBILE_APP?(e.push("CHANNEL_MOBILE_APP"),o&&e.push("CHANNEL_MOBILE_APP_ANDROID"),n&&e.push("CHANNEL_MOBILE_APP_IOS"),e.push(this.buildMobileAppVersionAsGrp())):DecConfig.channel===this.CHANNEL_TABLET?(e.push("CHANNEL_TABLET"),o&&e.push("CHANNEL_TABLET_ANDROID"),n&&e.push("CHANNEL_TABLET_IOS"),e.push(this.buildMobileAppVersionAsGrp())):(e.push("CHANNEL_WEB"),o&&e.push("CHANNEL_WEB_ANDROID"),n&&e.push("CHANNEL_WEB_IOS")),e},e.prototype.buildMobileAppVersionAsGrp=function(){return this._window._appVersion?"APP_VERSION_#"+this._window._appVersion.split(".").reduce(function(e,t){return e+t}):"APP_VERSION_UNKNOWN"},e.prototype.buildUserAgentGroups=function(){var e=[];if(navigator){var t=navigator.appVersion,n=navigator.userAgent,o=navigator.appName,r=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10),a=void 0,c=void 0,s=void 0;Logger.log("userAgent",n),Logger.log("appVersion",t);var l="-",p=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"ANDROID",r:/Android/},{s:"OPENBSD",r:/OpenBSD/},{s:"SUNOS",r:/SunOS/},{s:"LINUX",r:/(Linux|X11)/},{s:"IOS",r:/(iPhone|iPad|iPod)/},{s:"MAC",r:/Mac OS X/},{s:"MAC",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BEOS",r:/BeOS/},{s:"OS2",r:/OS\/2/},{s:"SEARCHBOT",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],u="-";for(var d in p){var g=p[d];if(g.r.test(n)){l=g.s;break}}switch(/Windows/.test(l)&&(u=/Windows (.*)/.exec(l)[1],l="WINDOWS"),e.push("OS_"+l),l){case"MAC":u=/Mac OS X (\d[\.\_\d]+)/.exec(n)[1];break;case"ANDROID":u=/Android ([\.\_\d]+)/.exec(n)[1];break;case"IOS":try{u=null!=t?(u=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))[1]+"."+u[2]+"."+(0|u[3]):/OS (\d+)_(\d+)_?(\d+)?/.exec(n)[1]}catch(e){Logger.log("regex error, ignore becuase this is sporadic and not in reall IOS devices.")}}e.push("OS_VERSION_#"+u),e.push("OS_MAJOR_VERSION_#"+u.substr(0,u.indexOf("_"))),-1!=(c=n.indexOf("Opera"))?(o="BROWSER_OPERA",r=n.substring(c+6),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+8))):-1!=(c=n.indexOf("OPR"))?(o="BROWSER_OPERA",r=n.substring(c+4)):-1!=(c=n.indexOf("Edge"))?(o="BROWSER_MICROSOFT_EDGE",r=n.substring(c+5)):-1!=(c=n.indexOf("EdgA"))?(o="BROWSER_MICROSOFT_EDGE",r=n.substring(c+5)):-1!=(c=n.indexOf("MSIE"))?(o="BROWSER_IE",r=n.substring(c+5)):-1!=(c=n.indexOf("Chrome"))?(o="BROWSER_CHROME",r=n.substring(c+7)):-1!=(c=n.indexOf("Firefox"))?(o="BROWSER_FIREFOX",r=n.substring(c+8)):-1!=n.indexOf("Trident/")?(o="BROWSER_IE",r=n.substring(n.indexOf("rv:")+3)):-1!=(c=n.indexOf("Safari"))?-1!=n.indexOf("CriOS")?(c=n.indexOf("CriOS"),o="BROWSER_CHROME",r=n.substring(c+6),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+7))):-1!=n.indexOf("FxiOS")?(c=n.indexOf("FxiOS"),o="BROWSER_MICROSOFT_EDGE",r=n.substring(c+6),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+7))):-1!=n.indexOf("EdgiOS")?(c=n.indexOf("EdgiOS"),o="BROWSER_MICROSOFT_EDGE",r=n.substring(c+7),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+8))):-1!=n.indexOf("OPiOS")?(c=n.indexOf("OPiOS"),o="BROWSER_MICROSOFT_EDGE",r=n.substring(c+6),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+7))):(o="BROWSER_SAFARI",r=n.substring(c+7),-1!=(c=n.indexOf("Version"))&&(r=n.substring(c+8))):(a=n.lastIndexOf(" ")+1)<(c=n.lastIndexOf("/"))&&(o=n.substring(a,c),r=n.substring(c+1),o.toLowerCase()==o.toUpperCase()&&(o=navigator.appName)),-1!=(s=r.indexOf(";"))&&(r=r.substring(0,s)),-1!=(s=r.indexOf(" "))&&(r=r.substring(0,s)),-1!=(s=r.indexOf(")"))&&(r=r.substring(0,s)),i=parseInt(""+r,10),isNaN(i)&&(r=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10)),e.push(o),e.push("BROWSER_VERSON_#"+r),e.push("BROWSER_MAJOR_VERSON_#"+i);var T="";navigator.userAgent.indexOf("WebKit")>-1?T="WEBKIT":navigator.userAgent.indexOf("Gecko")>-1?T="GECKO":navigator.userAgent.indexOf("Trident")>-1&&(T="TRIDENT"),e.push("WEB_ENGINE_"+T);var y="COMPUTER";return navigator.userAgent.indexOf("Mobile")>-1&&(y="MOBILE"),e.push("WEB_DEVICE_"+y),e}},e.prototype.buildAuthCapabilityGroups=function(){var e=this;return new Promise(function(t){return __awaiter(e,void 0,void 0,function(){var e,n,o;return __generator(this,function(r){switch(r.label){case 0:return this._window.KeyCoreTkt||t(!1),e=navigator.userAgent||navigator.vendor||this._window.opera,n=!1,o=!1,/android/i.test(e)&&(o=!0),/iPad|iPhone|iPod/.test(e)&&!this._window.MSStream&&(n=!0),DecConfig.channel!==this.CHANNEL_MOBILE_APP&&DecConfig.channel!==this.CHANNEL_TABLET?[3,5]:o?[4,this.buildAndroidAuthCapability()]:[3,2];case 1:return r.sent(),[3,4];case 2:return n?[4,this.buildiOSAuthCapability()]:[3,4];case 3:r.sent(),r.label=4;case 4:return[3,7];case 5:return[4,this.buildWebAuthCapability()];case 6:r.sent(),r.label=7;case 7:return t(!0),[2]}})})})},e.prototype.buildAndroidAuthCapability=function(){var e=this;return new Promise(function(t){return __awaiter(e,void 0,void 0,function(){var e,n;return __generator(this,function(o){switch(o.label){case 0:return[4,this.readDeviceBioStatus()];case 1:return e=o.sent(),n=!1,"unknown"===e?[3,3]:[4,this.readBioRegistrationStatus()];case 2:n=o.sent(),o.label=3;case 3:return n?(this.authCapabilityGroup.push("ANDROID_FINGERPRINT_USER"),[3,6]):[3,4];case 4:return[4,this.readPinRegistrationStatus()];case 5:o.sent()?this.authCapabilityGroup.push("ANDROID_PIN_USER"):"TOUCH_ID"===e?this.authCapabilityGroup.push("ANDROID_FINGERPRINT_AVAILABLE"):this.authCapabilityGroup.push("ANDROID_PIN_AVAILABLE"),o.label=6;case 6:return t(!0),[2]}})})})},e.prototype.buildiOSAuthCapability=function(){var e=this;return new Promise(function(t){return __awaiter(e,void 0,void 0,function(){var e,n;return __generator(this,function(o){switch(o.label){case 0:return[4,this.readDeviceBioStatus()];case 1:return e=o.sent(),n=!1,"unknown"===e?[3,3]:[4,this.readBioRegistrationStatus()];case 2:n=o.sent(),o.label=3;case 3:return n?("TOUCH_ID"===e?this.authCapabilityGroup.push("IOS_TOUCH_ID_USER"):"FACE_ID"===e&&this.authCapabilityGroup.push("IOS_FACE_ID_USER"),[3,6]):[3,4];case 4:return[4,this.readPinRegistrationStatus()];case 5:o.sent()?this.authCapabilityGroup.push("IOS_PIN_USER"):"TOUCH_ID"===e?this.authCapabilityGroup.push("IOS_TOUCH_ID_AVAILABLE"):"FACE_ID"===e?this.authCapabilityGroup.push("IOS_FACE_ID_AVAILABLE"):this.authCapabilityGroup.push("IOS_PIN_AVAILABLE"),o.label=6;case 6:return t(!0),[2]}})})})},e.prototype.buildWebAuthCapability=function(){var e=this;return new Promise(function(t){return __awaiter(e,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.readWebBioStatus()];case 1:return e.sent()&&this.authCapabilityGroup.push("WEB_FIDO_AVAILABLE"),t(!0),[2]}})})})},e.prototype.readPinRegistrationStatus=function(){var e=this;return new Promise(function(t){e._window.KeyPlatformTkt.storageService.get(e.STORAGE_KEY_PIN_ENABLED).then(function(e){var n=!1;null!=e&&""!=e&&(n=e),t(n)},function(e){t(!1)})})},e.prototype.readBioRegistrationStatus=function(){var e=this;return new Promise(function(t){e._window.KeyPlatformTkt.storageService.get(e.STORAGE_KEY_BIOMETRIC_ENABLED).then(function(e){var n=!1;null!=e&&""!=e&&(n=e),t(n)},function(e){t(!1)})})},e.prototype.readWebBioStatus=function(){var e=this;return new Promise(function(t){return __awaiter(e,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return this._window.PublicKeyCredential?[4,this._window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(e){e&&t(!0),t(!1)}).catch(function(e){t(!1)})]:[3,2];case 1:return e.sent(),[3,3];case 2:t(!1),e.label=3;case 3:return[2]}})})})},e.prototype.readDeviceBioStatus=function(){var e=this;return new Promise(function(t){var n="unknown";e._window.KeyPlatformTkt.cordovaService.checkBiometricIDSupport().then(function(){n="_TOUCHID"===e._window.KeyPlatformTkt.cordovaService.biometryType?"TOUCH_ID":"FACE_ID",t(n)},function(e){t("unknown")})})},e}(),FallbackData=function(){function e(){}return e.getGroups=function(){return["ALL_USERS"]},e.getAccountDetailsZones=function(e){return window.KeyCommonTkt.isBrandKey()?this.getBrandKeyDetailsZones():this.getBrandLrdDetailsZones()},e.getBrandKeyDetailsZones=function(){return{CHK:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],SAV:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:400,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:600,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:700,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:800,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:1e3,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],MMA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],MMS:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],HSA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],CCA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:200,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:400,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:800,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],LOC:[{trackerId:"DETAILS_ACTIVATE_ACCOUNT_TILE",contentType:"component",contentValue:"activate-account",priority:100,type:"core",slot:"primary",intent:"accountactions_activate"},{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:200,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:300,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:400,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:500,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],ILA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:200,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:400,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:800,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],GPL:[{trackerId:"DETAILS_ACCOUNT_ALERT_TILE",contentType:"component",contentValue:"account-alert",priority:1,type:"core",slot:"primary",intent:"accountactions_alert"},{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:2,type:"core",slot:"primary",intent:"viewaccount"}],MLS:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:2,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:3,type:"core",slot:"secondary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:4,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:5,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:6,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:8,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],REA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:1,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:4,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:5,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:7,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],CLI:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:1,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:2,type:"core",slot:"secondary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:3,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:4,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:5,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:6,type:"core",slot:"secondary",intent:"accountactions_tertiary"}],CDA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:1,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:2,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:3,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:4,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:5,type:"core",slot:"secondary",intent:"accountactions_tertiary"}]}},e.getBrandLrdDetailsZones=function(){return{CHK:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:800,type:"core",slot:"secondary",intent:"coowner"}],SAV:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:400,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:600,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:700,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:800,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:1e3,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:900,type:"core",slot:"secondary",intent:"coowner"}],MMA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:800,type:"core",slot:"secondary",intent:"coowner"}],MMS:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:800,type:"core",slot:"secondary",intent:"coowner"}],HSA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:200,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:400,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_ORDER_CHECKS",contentType:"component",contentValue:"order-checks-tile",priority:500,type:"core",slot:"secondary",intent:"orderchecks"},{trackerId:"DETAILS_OVERDRAFT_PROTECTION",contentType:"component",contentValue:"overdraft-protection-tile",priority:600,type:"core",slot:"secondary",intent:"overdraftservices"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"managecards"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:800,type:"core",slot:"secondary",intent:"coowner"}],CCA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:200,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:400,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:800,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:700,type:"core",slot:"secondary",intent:"coowner"}],LOC:[{trackerId:"DETAILS_ACTIVATE_ACCOUNT_TILE",contentType:"component",contentValue:"activate-account",priority:100,type:"core",slot:"primary",intent:"accountactions_activate"},{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:200,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:300,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:400,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:500,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:700,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:900,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:800,type:"core",slot:"secondary",intent:"coowner"}],ILA:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:200,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:400,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"DETAILS_MANAGE_CARDS",contentType:"component",contentValue:"manage-cards-tile",priority:600,type:"core",slot:"secondary",intent:"viewaccountinfo"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:800,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:700,type:"core",slot:"secondary",intent:"coowner"}],LSL:[{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:100,type:"core",slot:"primary",intent:"viewaccount"},{trackerId:"DETAILS_PAYMENT_INFO",contentType:"component",contentValue:"payment-tile",priority:200,type:"core",slot:"primary"},{trackerId:"DETAILS_TRANS",contentType:"component",contentValue:"transactions-tile",priority:300,type:"core",slot:"primary",intent:"viewaccounttransactions"},{trackerId:"DETAILS_STATEMENTS",contentType:"component",contentValue:"statement-tile",priority:400,type:"core",slot:"secondary",intent:"viewstatement"},{trackerId:"DETAILS_ACCOUNT_INFO_TILE",contentType:"component",contentValue:"account-info-tile",priority:500,type:"core",slot:"secondary",intent:"viewaccount_info"},{trackerId:"TERTIARY_ACTIONS",contentType:"component",contentValue:"tertiary-action-tile",priority:700,type:"core",slot:"secondary",intent:"accountactions_tertiary"},{trackerId:"CO_OWNER_TILE",contentType:"component",contentValue:"co-owner-tile",priority:600,type:"core",slot:"secondary",intent:"coowner"}],GPL:[{trackerId:"DETAILS_ACCOUNT_ALERT_TILE",contentType:"component",contentValue:"account-alert",priority:1,type:"core",slot:"primary",intent:"accountactions_alert"},{trackerId:"DETAILS_ACCOUNT_TILE",contentType:"component",contentValue:"account-tile",priority:2,type:"core",slot:"primary",intent:"viewaccount"}]}},e.getCampaigns=function(){return[{ruleId:"core-components-single-entity",condition:"ALL_USERS",zones:["dashboard_business_entity","dashboard_personal"],entries:[{trackerId:"CORE_ACCOUNTS_OPEN",contentType:"component",contentValue:"accounts-group",priority:20,type:"core",slot:"primary",intent:"viewaccounts_active",params:{status:"open"}},{trackerId:"CORE_ACCOUNTS_CLOSEDTOGGLE",contentType:"component",contentValue:"closed-accounts-toggle",priority:29,type:"core",slot:"primary",intent:"viewaccounts_closedtoggle"},{trackerId:"CORE_ACCOUNTS_CLOSED",contentType:"component",contentValue:"closed-accounts-group",priority:30,type:"core",slot:"primary",intent:"viewaccounts_closed",params:{status:"closed"}},{trackerId:"CORE_ACCOUNTS_HIDDEN",contentType:"component",contentValue:"hidden-account-preference",priority:40,type:"core",slot:"primary",intent:"viewaccounts_hidden"},{trackerId:"CORE_REWARDS",contentType:"component",contentValue:"rewards-tile",priority:50,type:"core",slot:"primary",intent:"viewrewards_cashback"}]},{ruleId:"portfolio-value-rule",condition:"ALL_USERS",zones:["dashboard_business_entity"],entries:[{trackerId:"CORE_ENTITY_SINGLE",contentType:"component",contentValue:"portfolio-tile",priority:15,type:"core",slot:"primary",intent:"viewentity-single"}]},{ruleId:"core-components-all-entities",condition:"ALL_USERS",zones:["dashboard_all_entities"],entries:[{contentType:"component",trackerId:"CORE_ENTITY_ALL",contentValue:"entities-group",priority:20,type:"core",slot:"primary",intent:"viewentity_all"}]}]},e}(),HttpClient=function(){function e(){this._window=window}return e.prototype.decorateRequestWithHeaders=function(e,t){void 0===t&&(t="json"),e.setRequestHeader("Content-Type","json"===t?"application/json":"text/html"),DecConfig.isCsrMode?(e.setRequestHeader("CHANNEL","IBX"),e.setRequestHeader("CHANNEL_SESSIONID",this.getCookie("_k_uid")),e.setRequestHeader("BUSINESS_UNIT",this._window.KeyCommonTkt.isBrandKey()?"KeyBank_BU":"LRLRoad_BU")):(e.setRequestHeader("CHANNEL",this._window.KeyCommonTkt.getChannelName()),e.setRequestHeader("CHANNEL_SESSIONID",this._window.KeyAmtTkt.getSessionId()));var n=this._window.KeyAmtTkt.getAuthToken();return n&&""!=n&&e.setRequestHeader("AMT_AUTH_TOKEN",n),e},e.prototype.get=function(e,t){var n=this;return void 0===t&&(t="json"),new Promise(function(t,o){var r=new XMLHttpRequest;r.withCredentials=!0,r.open("GET",e),r.onload=function(){200===this.status?t(this.response):o(new Error(this.statusText))},r.onerror=function(){o(new Error("XMLHttpRequest Error: "+this.statusText))},r.timeout=DecConfig.getTimeoutSeconds(),r.ontimeout=function(e){Logger.log("request timing out.."),o(new Error("XMLHttpRequest Error: -1"))},(r=n.decorateRequestWithHeaders(r)).send()})},e.prototype.post=function(e,t,n){var o=this;return void 0===t&&(t="json"),new Promise(function(t,r){var i=new XMLHttpRequest;i.withCredentials=!0,i.open("POST",e),i.onload=function(){200===this.status?t(this.response):r(new Error(this.statusText))},i.onerror=function(){r(new Error("XMLHttpRequest Error: "+this.statusText))},i.timeout=DecConfig.getTimeoutSeconds(),i.ontimeout=function(e){Logger.log("request timing out.."),r(new Error("XMLHttpRequest Error: -1"))},(i=o.decorateRequestWithHeaders(i)).send(JSON.stringify(n))})},e.prototype.getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""},e}(),Logger=function(){function e(){}return e.subscribe=function(t){e.subscribeFn=t},e.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];DecConfig.logsEnabled&&(console.log("DecisioningToolKit > ",t),e.subscribeFn&&e.subscribeFn(t))},e.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];DecConfig.logsEnabled&&(console.error("DecisioningToolKit > ",t),e.subscribeFn&&e.subscribeFn(t))},e}(),InterstitialFtuxChecker=function(){function e(){var e=this;this._window=window,this.setInterstitialCompleted=function(){e.interstitialCompleted=!0}}return e.prototype.isRequired=function(){if(Logger.log("Interstitial Check is being Calculated"),Logger.log("Interstitial Done flag",this.interstitialCheckDoneForThisSession),1==this.interstitialCheckDoneForThisSession)return!1;if(this.interstitialCheckDoneForThisSession=!0,Logger.log("CSR Mode",DecConfig.isCsrMode),DecConfig.isCsrMode)return!1;if(Logger.log("Interstitial Completed",this.interstitialCompleted),this.interstitialCompleted)return!1;var e=this._window.KeyDecTkt.getAllEntriesByZone("ftux");if(e&&e.length>0)return!0;if(Logger.log("Dont find any FTUX"),this._window.KeyCoreTkt.isForcePagePresented())return!1;if(Logger.log("No Force page shown, proceeding"),!this.checkInterstitialFrequency())return!1;Logger.log("Frequency Check passed");var t=this._window.KeyDecTkt.getAllEntriesByZone("interstitial");return!!(t&&t.length>0)},e.prototype.interstitialType=function(){var e=this._window.KeyDecTkt.getAllEntriesByZone("interstitial"),t=this._window.KeyDecTkt.useDigitalContent()?"interstitial_modal":"interstitial-modal",n=this._window.KeyDecTkt.getAllEntriesByZone(t),o=e.concat(n);return o.sort(function(e,t){return e.priority-t.priority}),o&&o.length>0&&o[0].zoneName?o[0].zoneName:""},e.prototype.interstitialFrequencyChecker=function(){return this.checkInterstitialFrequency()},e.prototype.checkInterstitialFrequency=function(){var e=this._window.KeyCoreTkt.getPreferenceByName("INTERSTITIAL_DISPLAY_TIME");Logger.log("lastInterstitialDate",e);var t=this._window.KeyCoreTkt.getPreferenceByName("INTERSTITIAL_VISIT_COUNT");if(Logger.log("loginCount At LastInterstitial",t),!e)return!0;e=new Date(e);var n=this._window.KeyCommonTkt.utilities.getDateWithEasternTimeStamp();t||(t=0);var o=parseInt(DecConfig.INTERSTITIAL_DAY_LIMIT),r=parseInt(DecConfig.INTERSTITIAL_LOGIN_COUNT),i=this.getUserVisitCount();Logger.log("Current Login Count from group",i);var a=i-parseInt(t)>r,c=(n-e)/864e5>=o;return Logger.log("interstitial DayLimit Matched",c),-1==i?c:(Logger.log("interstitial CountLimit Matched",a),c&&a)},e.prototype.getUserVisitCount=function(){Logger.log("Getting Count");var e=-1;return this._window.KeyDecTkt.groups.forEach(function(t){t.indexOf("VISIT_COUNT_#")>-1&&(e=t.split("#")&&t.split("#").length>1?parseInt(t.split("#")[1]):-1)}),e},e}(),Loader=function(){function e(){this._window=window}return e.prototype.init=function(){this.loaderElement||(this.loaderElement=document.createElement("div"),this.loaderElement.innerHTML='\n <style>\n .cool-loader-container {\n position: fixed;\n left: 0;\n right: 0;\n margin: auto;\n top: 40%;\n z-index: 9999;\n display: block\n }\n .cool-loader-container .spinner-large {\n margin: 0 auto;\n display: block;\n -webkit-animation: 8s linear infinite svg-rotate-lg;\n animation: 8s linear infinite svg-rotate-lg\n }\n .cool-loader-container .spinner-large-circle {\n fill: transparent;\n stroke: #c00;\n stroke-width: 4;\n stroke-linecap: round;\n stroke-dasharray: 0,144.51326207;\n -webkit-animation: 2s linear infinite stroke-dash-lg,2s linear infinite stroke-width-lg,8s steps(4) infinite stroke-color-lg;\n animation: 2s linear infinite stroke-dash-lg,2s linear infinite stroke-width-lg,8s steps(4) infinite stroke-color-lg\n }\n @-webkit-keyframes svg-rotate-lg {\n to {\n transform: rotate(360deg)\n }\n }\n @keyframes svg-rotate-lg {\n to {\n transform: rotate(360deg)\n }\n }\n @-webkit-keyframes stroke-width-lg {\n 0%,100% {\n stroke-width: 0\n }\n \n 45%,55% {\n stroke-width: 2\n }\n \n 50% {\n stroke-width: 4\n }\n }\n @keyframes stroke-width-lg {\n 0%,100% {\n stroke-width: 0\n }\n \n 45%,55% {\n stroke-width: 2\n }\n \n 50% {\n stroke-width: 4\n }\n }\n \n @-webkit-keyframes stroke-dash-lg {\n 0% {\n stroke-dasharray: 0,144.51326207;\n stroke-dashoffset: 0\n }\n 50% {\n stroke-dasharray: 144.51326207,0;\n stroke-dashoffset: 0\n }\n 100% {\n stroke-dasharray: 144.51326207,144.51326207;\n stroke-dashoffset: -144.51326207\n }\n }\n \n @keyframes stroke-dash-lg {\n 0% {\n stroke-dasharray: 0,144.51326207;\n stroke-dashoffset: 0\n }\n \n 50% {\n stroke-dasharray: 144.51326207,0;\n stroke-dashoffset: 0\n }\n \n 100% {\n stroke-dasharray: 144.51326207,144.51326207;\n stroke-dashoffset: -144.51326207\n }\n }\n \n @-webkit-keyframes stroke-color-lg {\n from {\n stroke: rgba(204,0,0,.6)\n }\n \n to {\n stroke: #c00\n }\n }\n \n @keyframes stroke-color-lg {\n from {\n stroke: rgba(204,0,0,.6)\n }\n \n to {\n stroke: #c00\n }\n }\n \n .loading-overlay {\n background-color: rgba(0,0,0,0);\n z-index: 9999;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%\n display: block\n }\n </style>\n <div class="loading-overlay"></div>\t\t \t\n <div class="cool-loader-container">\n <svg class="spinner-large" width=56 height=56>\n <circle class="spinner-large-circle" cx=28 cy=28 r=25 />\n </svg>\n </div>\n ')},e.prototype.show=function(){document.getElementsByTagName("body")[0].appendChild(this.loaderElement)},e.prototype.hide=function(){document.getElementsByTagName("body")[0].removeChild(this.loaderElement)},e}(),RuleEngine=function(){function e(){}return e.prototype.testRule=function(e,t){var n=!1;return Logger.log(e),""==e?n=!1:"DEFAULT"==e?n=!0:-1!==e.indexOf(" ")||-1!==e.indexOf(" AND ")||-1!==e.indexOf(" OR ")||-1!==e.indexOf("RANGE")||-1!==e.indexOf("WINDOW")?(Logger.log("complex group"),n=this.evalAllConditionalBlocks(this.resolveAllRangeExpressions(e,t),t)):(Logger.log("kinda single group"),n=this.getMatchGroups(t,e,void 0,void 0).length>0),Logger.log(e+" - rule check result -",n),n},e.prototype.resolveAllRangeExpressions=function(e,t){var n,o;return e.indexOf("[")>=0?(n=e.substring(e.indexOf("["),e.indexOf("]")+1),Logger.log(n),o=n.indexOf("WINDOW")>=0?this.windowCheck(n,t):this.rangeCheck(n,t),e=e.replace(n,String(o)),this.resolveAllRangeExpressions(e,t)):e},e.prototype.windowCheck=function(e,t){var n,o,r;if(n=e.substring(1,e.indexOf("WINDOW")),Logger.log(n),0==(o=this.getMatchGroups(t,n,!1,"RANGE")).length)return!1;r=e.substring(e.indexOf("{")+1,e.indexOf("}")).split(":");var i=o[0].substring(o[0].indexOf("#")+1,o[0].length),a=this.daysbetween(new Date(i),new Date);return!(!r||!r[0]&&!r[1])&&this.windowsDateCheck(String(a),r[0],r[1])},e.prototype.rangeCheck=function(e,t){var n,o,r;if(n=e.substring(1,e.indexOf("RANGE")),Logger.log(n),0==(o=this.getMatchGroups(t,n,!1,"RANGE")).length)return!1;if((r=e.substring(e.indexOf("{")+1,e.indexOf("}")).split(":"))[0].indexOf("/")>-1){var i,a,c;return c=o[0].substring(o[0].indexOf("#")+1,o[0].length),i=r[0],a=r[1],r.length=0,o.length=0,Logger.log(c,i,a),this.dateCheck(c,i,a)}var s,l,p;return p=+o[0].substring(o[0].indexOf("#")+1,o[0].length),s=+r[0],l=+r[1],r.length=0,o.length=0,Logger.log(p,s,l),p>=s&&p<=l},e.prototype.dateCheck=function(e,t,n){var o=new Date(e),r=new Date(t),i=new Date(n);return o>=r&&o<=i},e.prototype.windowsDateCheck=function(e,t,n){var o=parseInt(e),r=parseInt(t),i=parseInt(n);return r&&i?o>=r&&o<=i:r?o>=r:i?o<=i:void 0},e.prototype.daysbetween=function(e,t){var n=e.getTime(),o=t.getTime()-n;return Math.round(o/864e5)},e.prototype.evalAllConditionalBlocks=function(e,t){var n,o;return e.lastIndexOf("(")>=0?(n=e.substring(e.lastIndexOf("(")+1,e.indexOf(")",e.lastIndexOf("(")+1)),Logger.log(n),o=-1!=n.indexOf(" AND ")?this.operatorANDCheck(n,t):this.operatorORCheck(n,t),e=e.replace("("+n+")",String(o)),this.evalAllConditionalBlocks(e,t)):(Logger.log("for eval",e),-1!=e.indexOf(" AND ")?this.operatorANDCheck(e,t):this.operatorORCheck(e,t))},e.prototype.operatorANDCheck=function(e,t){Logger.log("and check",e);for(var n,o=this.operatorNOTCheck(e).split(" AND "),r=0;r<o.length;r++)if(0==("true"===(n=o[r].trim())||"false"!==n&&this.getMatchGroups(t,n,void 0,void 0).length>0))return!1;return!0},e.prototype.operatorORCheck=function(e,t){Logger.log("or check",e);for(var n,o=this.operatorNOTCheck(e).split(" OR "),r=0;r<o.length;r++)if(1==("true"===(n=o[r].trim())||"false"!==n&&this.getMatchGroups(t,n,void 0,void 0).length>0))return!0;return!1},e.prototype.operatorNOTCheck=function(e){return e=(e=(e=(e=e.replace(" NOT true"," false")).replace(" NOT false"," true")).replace(" NOTtrue"," false")).replace(" NOTfalse"," true")},e.prototype.getMatchGroups=function(e,t,n,o){return Logger.log("group check",t),e.filter(function(e){var r=e;return o&&"RANGE"==o&&(r=e.substring(0,e.indexOf("#"))),n?new RegExp(t,"gi").test(e):r===t})},e}(),TargetGroupsLoader=function(){function e(e){this.httpClient=e,this.fallbackGroups=FallbackData.getGroups()}return e.prototype.getAllGroups=function(){var e=this;return new Promise(function(t,n){e.getGroupsFromClient().then(function(n){e.getGroupsFromServer(n).then(function(e){t(e)})})})},e.prototype.getGroupsFromServer=function(e){var t=this;return new Promise(function(n,o){var r=[],i=[],a=DecConfig.channel===DECCONSTANT.CHANNEL_WEB?"OnlineBankingTile":"MobileBankingTile";t.httpClient.get(ApiSettingsDecisioningTkt.getTargetFlagsUrl(a)).then(function(o){if(Logger.log("server side target groups response",o),t.isValidJSON(o)){var a=JSON.parse(o);r=t.parseGroups(a).concat(e),i=t.parseZoneEntries(a).slice()}else Logger.log("No valid json found.. use just client groups"),r=t.fallbackGroups.concat(e);n({groups:r,entries:i})}).catch(function(o){Logger.error(o),r=t.fallbackGroups.concat(e),n({groups:r,entries:i})})})},e.prototype.getGroupsFromClient=function(e){return void 0===e&&(e=!1),new Promise(function(t,n){var o=[];(new CustomGroupsLoader).getCustomGroups(e).then(function(e){o=o.concat(e),Logger.log("Client Groups",o),t(o)})})},e.prototype.isValidJSON=function(e){var t=e.toString();try{JSON.parse(t)}catch(e){return!1}return!0},e.prototype.massageEntryContent=function(e){return __assign({},e,{offerValue:e.offerValue?DECFUNCTIONS.updateUAPSSOLinksBridgeMethodsIfAny(e.offerValue):e.offerValue?e.offerValue:"",contentValue:"content"===e.contentType?DECFUNCTIONS.updateUAPSSOLinksBridgeMethodsIfAny(e.contentValue):e.contentValue?e.contentValue:""})},e.prototype.parseGroups=function(e){var t=e.groups?e.groups:[];return Logger.log("server side target groups",t),void 0!==typeof t&&0!==t.length||(t=this.fallbackGroups,Logger.log("server side target groups is empty or invalid.. so using fallback groups")),t},e.prototype.parseZoneEntries=function(e){var t=this,n=e.zoneEntries?e.zoneEntries:[];return void 0===typeof n||0===n.length?(n=[],Logger.log("server side offer zoneEntries is empty or invalid.")):n=n.map(function(e){return __assign({},e,{entries:e.entries.map(t.massageEntryContent)})}),n},e}(),ZoneEntriesAccountDetails=function(){function e(){this.detailEntries=null,this._window=window}return e.prototype.getZonesEntries=function(e){var t=this;return new Promise(function(n,o){t.detailEntries?(Logger.log("Served From Cache"),n(t.detailEntries)):(Logger.log("No Cached Data Found, go for http call"+e),t.getAcctDetailsZone(e).then(function(e){Logger.log("Put in local variable for cache",e),t.detailEntries=e,n(t.detailEntries)}))})},e.prototype.getAcctDetailsZone=function(e){var t=this;return new Promise(function(n,o){t._window.KeyCommonTkt.httpClient.get(ApiSettingsDecisioningTkt.getAccountDetailsZonesUrl()).then(function(t){Object.keys(t.data).length>1?n(t.data):(Logger.log("Not a valid json fetch from fallbackdata"),n(FallbackData.getAccountDetailsZones(e)))}).catch(function(t){Logger.error(t),Logger.log("call failed , load from fallbackdata"),n(FallbackData.getAccountDetailsZones(e))})})},e}(),ZoneEntriesAggregator=function(){function e(){}return e.aggregateZoneAndEntries=function(t){if(e.resZoneEntries={},t){Logger.log("Parsing "+t.length+" matched campaigns");for(var n=0;n<t.length;n++)for(var o=0;o<t[n].zones.length;o++)for(var r=0;r<t[n].entries.length;r++)e.checkAndAddEntry(t[n].zones[o],t[n].entries[r])}return e.resZoneEntries},e.checkAndAddEntry=function(t,n){var o=e.resZoneEntries[t];if(n.contentId=e.getRandomContentId(),n.zoneName=t,!o)return Logger.log("Zone "+t+" not found... creating one",n),e.resZoneEntries[t]=[],void e.resZoneEntries[t].push(n);for(var r=!1,i=0;i<o.length;i++)if(Logger.log("entry",t,o[i],n),o[i].trackerId===n.trackerId||o[i].intent===n.intent||"content"!==o[i].contentType&&o[i].contentValue===n.contentValue){o[i].priority>=n.priority&&(e.resZoneEntries[t][i]=n),r=!0;break}r||e.resZoneEntries[t].push(n)},e.getRandomContentId=function(){for(var e=[],t=0;t<36;t++)e[t]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]="0123456789abcdef".substr(3&e[19]|8,1),"_keyContent_"+e.join("")},e.resZoneEntries={},e.dismissedEntries=[],e}(),DECCONSTANT=function(){function e(){}return e.CHANNEL_WEB="WEB",e.CHANNEL_MOBILE_APP="MOBILE_APP",e.CHANNEL_TABLET="TABLET",e.WINDOW_SYSTEM="_system",e.WINDOW_BLANK="_blank",e.WINDOW_SELF="_self",e.STANDARD_OFFER="Standard",e.ENHANCED_OFFER="Enhanced",e.DEPOSIT_ACCOUNTS_LIST=["CHK","SAV","MMA","MMS","HSA"],e.ACCOUNTTYPE_CCA="CCA",e.LAUNCH_EVENTS={LAUNCH_TRANSFER:"show_transfer_money",LAUNCH_PAYMENT:"show_make_payment",DISMISS_INTERSTITIAL:"interstitialstaticcontainer",LAUNCH_FEEDBACK:"show_help_feedback",REMIND_LATER_INTERSTITIAL:"interstitialRemindMeLasterSelected"},e.STORAGE_KEY_APP_CHANNEL="_k_chn",e.ACCOUNT_SELECTOR_ACTION="LAUNCH_ACCOUNT_SELECTOR",e.GOTO_ACTIONS={GOTO_PLANNING_ADVICE:{pageName:"planning-advice-dashboard",params:{deeplinkinfo:"micro-insights"}},GOTO_CLICKSWITCH:{pageName:"aggregation-tile",params:{deeplinkinfo:"cs-sso"}},GOTO_CASHFLOW_KMS:{pageName:"cashflow",params:{mode:"kms"}}},e.TARGET_ATTRIBUTE={BLANK:"_blank",PARENT:"_parent",SELF:"_self",SYSTEM:"_system",TOP:"_top"},e}(),DECFUNCTIONS=function(){function e(){}return e.updateUAPSSOLinksBridgeMethodsIfAny=function(e){var t,n=window,o=n.KeyCoreTkt.getConfig().url.olbWebSealJnAPIUrl+"ssologout";return"WEB"===DecConfig.channel?(t=document.location.protocol+"//"+document.location.host+"/pkmscdsso?",e=e.replace(/href=\"(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})\/uap\/SvltUap[-A-Z0-9+&@#/%=~_|$?!:,.;"]*/gi,function(e){return" onclick='refreshSSOAndLaunchUAP(\""+t+e.substring(6)+', "'+o+"\")'"})):(t=n.KeyCoreTkt.getConfig().url.kmbWebSealJnAPIUrl+"pkmscdsso?",e=e.replace(/href=\"(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})\/uap\/SvltUap[-A-Z0-9+&@#/%=~_|$?!:,.;"]*/gi,function(e){return" onclick='launchUAPApp(\""+t+e.substring(6)+")'"})),e=(e=(e=(e=(e=e.replace(/launchSpecialOffer/g,"KeyDecTkt.launchSpecialOffer")).replace(/launchHelloWallet/g,"KeyDecTkt.launchHelloWallet")).replace(/launchUrl/g,"KeyDecTkt.launchUrl")).replace(/refreshSSOAndLaunchUAP/g,"KeyDecTkt.refreshSSOAndLaunchUAP")).replace(/launchUAPApp/g,"KeyDecTkt.launchUAPApp")},e}(),Offer=function(){function e(e){this.offerCategory=e.offerCategory?e.offerCategory:"",this.offerId=e.offerId,this.bannerContent=e.bannerContent?this.updateUAPSSOLinksBridgeMethodsIfAny(e.bannerContent):"",this.tileContent=e.tileContent?this.updateUAPSSOLinksBridgeMethodsIfAny(e.tileContent):"",this.offerAttributePairs=e.offerAttributePairs,this.offerType=e.offerType,this.hasSpecialOfferLink=!1,this.hasTileContent=""!=this.tileContent}return e.prototype.validOfferExists=function(){return(this.isStandardOffer()||this.isEnhancedOffer())&&this.hasValidLinksAndContents()},e.prototype.isStandardOffer=function(){return DECCONSTANT.STANDARD_OFFER==this.offerCategory},e.prototype.isEnhancedOffer=function(){return DECCONSTANT.ENHANCED_OFFER==this.offerCategory},e.prototype.updateUAPSSOLinksBridgeMethodsIfAny=function(e){var t,n=window,o=n.KeyCoreTkt.getConfig().url.olbWebSealJnAPIUrl+"ssologout";return"WEB"==DecConfig.channel?(t=document.location.protocol+"//"+document.location.host+"/pkmscdsso?",e=e.replace(/href=\"(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})\/uap\/SvltUap[-A-Z0-9+&@#/%=~_|$?!:,.;"]*/gi,function(e){return" onclick='refreshSSOAndLaunchUAP(\""+t+e.substring(6)+', "'+o+"\")'"})):(t=n.KeyCoreTkt.getConfig().url.kmbWebSealJnAPIUrl+"pkmscdsso?",e=e.replace(/href=\"(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})\/uap\/SvltUap[-A-Z0-9+&@#/%=~_|$?!:,.;"]*/gi,function(e){return" onclick='launchUAPApp(\""+t+e.substring(6)+")'"})),e=(e=(e=(e=(e=e.replace(/launchSpecialOffer/g,"KeyDecTkt.launchSpecialOffer")).replace(/launchHelloWallet/g,"KeyDecTkt.launchHelloWallet")).replace(/launchUrl/g,"KeyDecTkt.launchUrl")).replace(/refreshSSOAndLaunchUAP/g,"KeyDecTkt.refreshSSOAndLaunchUAP")).replace(/launchUAPApp/g,"KeyDecTkt.launchUAPApp")},e.prototype.hasValidLinksAndContents=function(){return-1!=this.bannerContent.indexOf("/ib2/Controller?requester=helloWalletSSO&clickedField=MarketingRTO")||-1!=this.bannerContent.indexOf("launchHelloWallet(")?(this.offerType="hellowWallet",!0):-1!=this.bannerContent.indexOf("/ib2/Controller?requester=specialOffer")||-1!=this.bannerContent.indexOf("launchUrl(")||-1!=this.bannerContent.indexOf("launchSpecialOffer(")?(this.hasSpecialOfferLink=!0,""!=this.tileContent):-1==this.bannerContent.indexOf("ib2/Controller")},e}(),RtmLoader=function(){function e(e){this.httpClient=e,this._window=window,this.rtmContent=null}return e.prototype.getContent=function(e){var t=this;return new Promise(function(n,o){t.rtmContent?(Logger.log("Served From Cache"),n(t.rtmContent)):(Logger.log("Get Offer From Interact"),t.httpClient.get(ApiSettingsDecisioningTkt.getRtmUrl(e)).then(function(e){var r=JSON.parse(e);if(Logger.log("Offers",r.offers),r&&r.offers){var i=void 0;i=Array.isArray(r.offers)?r.offers[0]:r;var a=new Offer(i);t.rtmContent=a,Logger.log("Massaged Offer Data after update links",a),n(a)}else o("")}).catch(function(e){Logger.error(e),n("")}))})},e.prototype.updateRTOViewed=function(e){var t=this;void 0===e&&(e=null);var n={offerId:null!==e?e:this.rtmContent&&this.rtmContent.offerId?this.rtmContent.offerId:null};if(null!==n.offerId)return new Promise(function(e,o){t.httpClient.post(ApiSettingsDecisioningTkt.getRtmUpdateViewedUrl(),"json",n).then(function(t){e("")}).catch(function(t){Logger.error(t),e("")})})},e.prototype.bindOnclickOfferContent=function(){var e=this;Logger.log("bind Onclick Offer Content");var t=document.getElementById("offerLink");Logger.log("RTO Content",this.rtmContent);var n=this.rtmContent;null!=t&&"hellowWallet"==n.offerType&&(Logger.log("hello wallet offer exist"),t.onclick=function(){return Logger.log("hello wallet on click"),e._window.KeyDecTkt.launchHelloWallet(),!1});var o=document.getElementById("rtotile");Logger.log("OfferId",n.offerId),Logger.log("hasSpecialOfferLink",n.hasSpecialOfferLink),Logger.log("hasTileContent",n.hasTileContent),null==o||!n.offerId||1!=n.hasSpecialOfferLink&&1!=n.hasTileContent||(Logger.log("RTO Tile ID offer exist"),o.onclick=function(){return Logger.log("rto tile on click"),e._window.KeyDecTkt.launchSpecialOffer(),!1})},e}(),DecOfferService=function(){function e(e){this.httpClient=e,this._window=window,this.cache={}}return e.prototype.updateOffersPresented=function(e){var t=this,n=e.map(function(e){return e.offerId?e.offerId:null}).filter(function(e){return null!==e&&!t._presentmentInCache(e)});if(0!==n.length){var o={offerIdList:n.length>0?n:[]};return new Promise(function(e,r){t.httpClient.post(ApiSettingsDecisioningTkt.getOfferUpdateUrl(),"json",o).then(function(r){n.forEach(function(e){t.cache[e]={id:e,presented:!0}}),e(""),Logger.log("Update Offers Presented State",o.offerIdList)}).catch(function(t){Logger.error(t),e("")})})}},e.prototype.updateOfferClicked=function(e){var t=this;void 0===e&&(e=null);var n={offerId:null!==e?e:null};if(null!==n.offerId)return new Promise(function(e,o){t.httpClient.post(ApiSettingsDecisioningTkt.getOfferUpdateUrl(),"json",n).then(function(t){e(""),Logger.log("Update Offer Click State",n.offerId)}).catch(function(t){Logger.error(t),e("")})})},e.prototype.updateOfferDismissed=function(e){var t=this;void 0===e&&(e=null);var n={offerId:null!==e?e:null,type:"dismiss"};if(null!==n.offerId)return new Promise(function(e,o){t.httpClient.post(ApiSettingsDecisioningTkt.getOfferUpdateUrl(),"json",n).then(function(t){e(""),Logger.log("Update Offer Dismiss State",n.offerId)}).catch(function(t){Logger.error(t),e("")})})},e.prototype.updateOfferRemindLater=function(e){var t=this;void 0===e&&(e=null);var n={offerId:null!=e?e:null,type:"remindLater"};if(null!==n.offerId)return new Promise(function(e,o){t.httpClient.post(ApiSettingsDecisioningTkt.getOfferUpdateUrl(),"json",n).then(function(t){e(""),Logger.log("Update Offer Remind Later State",n.offerId)}).catch(function(t){Logger.error(t),e("")})})},e.prototype._presentmentInCache=function(e){return void 0!==this.cache[e]&&!0===this.cache[e].presented},e}(),DecTktRulesService=function(){function e(e){this.httpClient=e}return e.prototype.createFallbackData=function(){var e=FallbackData.getCampaigns();return{mergedMatchedCampaigns:e,capabilityCampaigns:[],zoneEntries:ZoneEntriesAggregator.aggregateZoneAndEntries(e)}},e.prototype.getRules=function(e,t){var n=this,o=ApiSettingsDecisioningTkt.getDigitalRulesUrl(t);return new Promise(function(t,r){n.httpClient.post(o,"json",{groups:e}).then(function(e){var o;try{(o=JSON.parse(e)).mergedMatchedCampaigns||(o=n.createFallbackData())}catch(e){o=n.createFallbackData(),Logger.log("Could not parse rules JSON",e)}t(o)}).catch(function(e){t(n.createFallbackData())})})},e}(),KeyDecTkt=function(){function e(){this._window=window}return e.prototype.useDigitalContent=function(){var e=DecConfig.capabilities&&DecConfig.capabilities.aem&&!0===DecConfig.capabilities.aem,t="true"===localStorage.getItem("_ibx_digital_content_rules"),n=e||t;return Logger.log("AEM Capability Enabled:",n),Logger.log("AEM Capability Local Override:",t),Logger.log("Will fetch from AEM:",n),n},e.prototype.prep=function(){var e=this;this.httpClient=new HttpClient,this.loader=new Loader,this.targetGroupsLoader=new TargetGroupsLoader(this.httpClient),this.campaignLoader=new CampaignLoader(this.httpClient),this.campaignProcesser=new CampaignProcessor,this.interstitialFtuxChecker=new InterstitialFtuxChecker,this.contentLoader=new ContentLoader(this.httpClient),this.rtmLoader=new RtmLoader(this.httpClient),this.offerService=new DecOfferService(this.httpClient),this.appContentsBridge=new AppContentsBridge(this.httpClient,this.offerService),this.accountDetailsZones=new ZoneEntriesAccountDetails,this.rulesService=new DecTktRulesService(this.httpClient);var t={results:{},zoneEntries:void 0,oosZoneEntries:void 0,initialize:function(t){DecConfig.setConfig(t,e._window.location)},execute:function(n){t.zoneEntries?n():e.targetGroupsLoader.getAllGroups().then(function(o){var r=o.groups,i=o.entries;DecConfig.logsEnabled&&(t.results.totalGroups=r.length,t.results.groups=r,t.results.totalEntries=i.length,t.results.entries=i),t.groups=r,Logger.log("groups loaded",r),Logger.log("entries loaded",i),e.useDigitalContent()?(e.rulesService.getRules(t.groups,e._window.KeyCommonTkt.getBrandIdentifier().toLowerCase()).then(function(o){var r=o.mergedMatchedCampaigns,a=o.capabilityCampaigns,c=(o.zoneEntries,i&&i.length&&i.length>0?i:[]),s=r.concat(c),l=ZoneEntriesAggregator.aggregateZoneAndEntries(s);t.zoneEntries=l,Logger.log("zone Entries result",t.zoneEntries),t.capabilityCampaigns=a,Logger.log("capability campaign result",t.capabilityCampaigns),e._window.KeyCoreTkt&&t.capabilityCampaigns&&t.capabilityCampaigns.length>0&&e._window.KeyCoreTkt.overrideCapabilites(t.capabilityCampaigns),DecConfig.logsEnabled&&(t.results.totalMatchedCampaigns=s.length,t.results.matchedCampaigns=s,t.results.totalZoneEntries=Object.keys(l).length,t.results.zoneEntries=l),n()}),e._window.KeyCoreTkt&&e._window.KeyCoreTkt.acctService&&e._window.KeyCoreTkt.acctService.accounts.forEach(function(e){e.linkedDebitCardsForManage&&e.linkedDebitCardsForManage.length>0&&e.linkedDebitCardsForManage.forEach(function(e){e.refreshCardArt()})})):e.campaignLoader.getAllCampaigns().then(function(o){DecConfig.logsEnabled&&(t.results.totalCampaigns=o.length),Logger.log("campaigns loaded",o),e.campaignLoader.getCapabilitiesCampaigns().then(function(a){DecConfig.logsEnabled&&(t.results.totalCapabilityCampaigns=a.length),Logger.log("capability campaigns loaded",a),e.campaignProcesser.process(o,a,r,i,function(o){t.zoneEntries=o.zoneEntries,Logger.log("zone Entries result",t.zoneEntries),t.capabilityCampaigns=o.capabilityCampaigns,Logger.log("capability campaign result",t.capabilityCampaigns),e._window.KeyCoreTkt&&e._window.KeyCoreTkt.overrideCapabilites(t.capabilityCampaigns),DecConfig.logsEnabled&&(t.results.totalMatchedCampaigns=o.matchedCampaigns.length,t.results.matchedCampaigns=o.matchedCampaigns,t.results.totalZoneEntries=Object.keys(o.zoneEntries).length,t.results.zoneEntries=o.zoneEntries),n()})})})})},getAllEntriesByZone:function(e){var n=t.zoneEntries[e],o=[];return Array.isArray(n)&&(o=n.filter(function(e){return-1==ZoneEntriesAggregator.dismissedEntries.indexOf(e.trackerId)})),o},checkInterstitialRequired:function(){return e.interstitialFtuxChecker.isRequired()},setIntersitialComplete:function(){e.interstitialFtuxChecker.setInterstitialCompleted()},getInterstitialType:function(){return e.interstitialFtuxChecker.interstitialType()},isInterstitialComplete:function(){return e.interstitialFtuxChecker.interstitialCompleted},interstitialFrequencyCheck:function(){return e.interstitialFtuxChecker.interstitialFrequencyChecker()},executeForOos:function(n){t.oosZoneEntries?n():(e.loader.init(),e.loader.show(),e.targetGroupsLoader.getGroupsFromClient(!0).then(function(o){Logger.log("groups loaded",o),t.oosGroups=o,e.campaignLoader.getMarketingCampaigns().then(function(r){Logger.log("campaigns loaded",r),e.campaignProcesser.process(r,[],o,[],function(o){t.oosZoneEntries=o.zoneEntries,Logger.log("zone Entries result",t.oosZoneEntries),DecConfig.logsEnabled&&(t.oosZoneEntries.totalMatchedCampaigns=o.matchedCampaigns.length,t.oosZoneEntries.matchedCampaigns=o.matchedCampaigns,t.oosZoneEntries.totalZoneEntries=Object.keys(o.zoneEntries).length,t.oosZoneEntries.zoneEntries=o.zoneEntries),e.loader.hide(),n()})})}))},getAllOosEntriesByZone:function(e){return t.oosZoneEntries[e]},getEntryByContentId:function(e,n){var o=t.getAllEntriesByZone(n),r="";if(0===o.length)return"";for(var i=0;i<o.length;i++)if(o[i].contentId===e){r=o[i];break}return r},createInteraction:function(e){var t="entry"in e?e.entry:e,n=e.params&&e.params.interactionType?e.params.interactionType:"tile",o=DecConfig,r={csrMode:o.isCsrMode,stubEnabled:o.stubEnabled,logsEnabled:o.logsEnabled,basePath:o.basePath,channel:o.channel},i=document.createElement("banking-interactions");return i.config=r,i.data={entry:t},i.type=n,i},createTile:function(e){return t.createInteraction(e)},renderZoneEntries:function(e,n,o){var r=t.zoneEntries[e],i="string"==typeof n?document.getElementById(n):n,a=document.createDocumentFragment();r.forEach(function(e){var n="component"===e.contentType?o(e):t.createTile(e);a.appendChild(n)}),i.appendChild(a)},getContentsForGivenEntry:function(n,o,r){return void 0===o&&(o="html"),__awaiter(e,void 0,void 0,function(){var e;return __generator(this,function(o){return e="",""===n||""===n.contentValue||""===n.contentType?(r(e),[2]):("content_ref"!==n.contentType&&"content"!==n.contentType||(e=t.createInteraction(n)),r(e),[2])})})},updateOffersPresented:function(t){e.offerService.updateOffersPresented(t)},performAction:function(t,n,o){e.appContentsBridge.performAction(t,n,o)},launchSpecialOffer:function(t){void 0===t&&(t=null),e.rtmLoader.updateRTOViewed(t),e.appContentsBridge.launchSpecialOffer()},refreshSSOAndLaunchUAP:function(t,n){e.rtmLoader.updateRTOViewed(),e.appContentsBridge.refreshSSOAndLaunchUap(t,n)},launchHelloWallet:function(){e.rtmLoader.updateRTOViewed(),e.appContentsBridge.launchFinancialWellness()},launchUAPApp:function(t){e.rtmLoader.updateRTOViewed(),e.appContentsBridge.launchUAPApp(t)},launchUrl:function(t){e.rtmLoader.updateRTOViewed(),e.appContentsBridge.launchUrl(t)},getZoneMessagesCapLimit:function(e){return 5},getRTMContent:function(t){return new Promise(function(n,o){e.rtmLoader.getContent(t).then(function(){n(e.rtmLoader.rtmContent)},function(){o("")})})},getAccountDetailsZones:function(n){return Logger.log("Get Account Details Zones "+n),new Promise(function(o,r){e.accountDetailsZones.getZonesEntries(n).then(function(e){Logger.log("Zones fetched Successfully",e[n]),t.zoneEntries.dashboard_account_details=e[n],o()},function(){r("")})})},bindRTMContentEvents:function(){e.rtmLoader.bindOnclickOfferContent()},reset:function(){e._window.KeyCoreTkt.reset("",!0),t.zoneEntries=null,e.rtmLoader.rtmContent=null,t.groups=null,ZoneEntriesAggregator&&(ZoneEntriesAggregator.resZoneEntries={},ZoneEntriesAggregator.dismissedEntries=[])},useDigitalContent:function(){return e.useDigitalContent()}};this._window.KeyDecTkt=t},e}(),keyDecTkt=new KeyDecTkt;keyDecTkt.prep();