%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.download |
var CommonConfig=function(){function e(){}return e.setConfig=function(t,n){e.channel=t.channel,e.baseUrl=t.baseUrl,e.isCsrMode=t.isCsrMode,e.logsEnabled=t.logsEnabled,e.stubsEnabled=t.stubsEnabled},e.channel="MOBILE",e.contentUrl={lrd:"ibxcontents/lrd/",key:"ibxcontents/key/",wellnesskey:"ibxcontents/key/",wellnesslrd:"ibxcontents/lrd/"},e.sdlUrl={lrd:"ibxolb/sdl/resources/lrd/p1/",key:"ibxolb/sdl/resources/olb/p1/"},e.cdnUrl="ibxassets",e.isCsrMode=!1,e.logsEnabled=!1,e.stubsEnabled=!1,e.defaultHttpCallTimeout=2e4,e.businessChatConfig={nonProd:{integrationId:"Z28YEA",partnerToken:"F2C8B797F553BE21E276",partnerTeam:"NED-PLK",apiHost:"https://api.goboomtown.com",frameSource:"https://webchat.goboomtown.com"},prod:{integrationId:"4UK3BG",partnerToken:"95C7218D580EEC2CDF46",partnerTeam:"8E5-38B",apiHost:"https://api.goboomtown.com",frameSource:"https://webchat.goboomtown.com"}},e.chatConfig={endpoint:"webAdapterSocket",path:"/cub/api/v1/backend-channel-adaptor-web/socket.io",assetsBasePath:"cub/api/v1/frontend-web-chat/",userAuthPath:"http://backend-user-authentication:12000",channelAdaptorPath:"http://backend-channel-adaptor-web:11006",masterBotID:"4356916a-c582-45de-8d6e-c13ef110c744",validateLogin:"cub/api/v1/frontend-web-chat/validateLogin",handleSession:"cub/api/v1/frontend-web-chat/handleSession",voiceEnabled:!0,chatbotName:"KeyBank Assistant",storageType:"sessionStorage",theme:"keyBankStyle1Chatbot.css",endSession:"cub/api/v1/frontend-web-chat/endSession"},e.chatUrl={scriptPath:"cub/api/v1/frontend-web-chat/dist/js/chatbot.min.js",stylePath:"cub/api/v1/frontend-web-chat/dist/css/keyBankStyle1Chatbot.css"},e.lrdChatUrl={scriptPath:"/ucr/lrauthchat.js"},e.chatEnvUrl={IT:"itonlinea1.keybank.com",QV:"qonlinea1.key.com",PROD:"onlinea1.key.com"},e}(),HttpClient=function(){function e(){this._window=window,this.logger=CommonLogger.getInstance("HttpClient"),this.loader=new Loader,this.loader.init()}return e.prototype.decorateRequestWithHeaders=function(e,t,n){switch(void 0===t&&(t={}),n){case"application":n="application/x-www-form-urlencoded";break;case"html":n="text/html";break;default:n="application/json"}if(e.setRequestHeader("Content-Type",n),e.setRequestHeader("If-Modified-Since","0"),e.setRequestHeader("Cache-Control","no-cache,no-store"),e.setRequestHeader("Pragma","no-cache"),!this._window.KeyAmtTkt)return e.setRequestHeader("CHANNEL",this._window.KeyCommonTkt.getChannelName()),e.setRequestHeader("CHANNEL_SESSIONID",CommonUtilities.getTempChannelSessionId()),e;(CommonConfig.isCsrMode?(e.setRequestHeader("CHANNEL_SESSIONID",CommonUtilities.getCookie("_k_uid")),e.setRequestHeader("BUSINESS_UNIT",this._window.KeyCommonTkt.getBrandIdentifier()===this._window.KeyCommonTkt.BRAND_KEY?"KeyBank_BU":"LRLRoad_BU")):e.setRequestHeader("CHANNEL_SESSIONID",this._window.KeyAmtTkt.getSessionId()),null!=this._window._appVersion?e.setRequestHeader("CHANNEL_APP_VERSION",this._window._appVersion):e.setRequestHeader("CHANNEL_APP_VERSION","WEB"),this._window.KeyPlatformTkt&&this._window.KeyPlatformTkt.cordovaService.amIDefined()&&this._window.KeyPlatformTkt.cordovaService.isIos())&&(this._window._appVersion.split(".")[2]>36&&e.setRequestHeader("User-Agent",navigator.userAgent));var o=this._window.KeyAmtTkt.getAuthToken();if(o&&""!=o&&e.setRequestHeader("AMT_AUTH_TOKEN",o),t&&this._window.KeyPlatformTkt&&(t.appIdDataRequired&&(e.setRequestHeader("deviceId",this._window.KeyPlatformTkt.cordovaService.mobileDeviceId),e.setRequestHeader("appId",this._window.KeyPlatformTkt.cordovaService.mobileAppId),e.setRequestHeader("deviceSerialToken",this._window.KeyPlatformTkt.cordovaService.deviceSerialToken)),t.deviceDataRequired&&e.setRequestHeader("WEB_DEVICE_DATA",this._window.KeyPlatformTkt.deviceService.getDeviceData()),t.appMonDataRequired&&e.setRequestHeader("X-acf-sensor-data",this._window.KeyPlatformTkt.botMonService.getBotmonData()),t.customHeaders))for(var i in this.logger.log("custom header found"),t.customHeaders)this.logger.log("Key:"+i),this.logger.log("Value:"+t.customHeaders[i]),e.setRequestHeader(i,t.customHeaders[i]);return e},e.prototype.httpRequest=function(e){var t=this,n=e.url,o=e.additionalConfig,i=void 0===o?{}:o,a=e.contentType,r=void 0===a?"json":a,s=e.method,d=void 0===s?"GET":s,c=e.payload;return new Promise(function(e,o){t.loader.show(i.hasOwnProperty("isCustomLoader")&&i.isCustomLoader);var a=new XMLHttpRequest;a.withCredentials=!0,a.open(d,n),a.onload=function(){if(200===a.status||0===a.status&&CommonConfig.stubsEnabled){var n={status:200,data:{}},i=CommonUtilities.checkForNonIbxResponseIfAny(a.response);if(!i.isValidResponse)return t.loader.hide(),void o(t.getError(-200,a.statusText,i));CommonUtilities.isValidJSON(a.response)?(n.data=JSON.parse(a.response),n.status=CommonConfig.stubsEnabled&&n.data&&n.data.mockHttpStatus?n.data.mockHttpStatus:200,t.loader.hide(),200!==n.status?o(t.getError(n.status,"ERROR",n.data)):e(n)):(t.logger.log("No valid json found.."),t.loader.hide(),e("html"===r?a.response:n))}else t.loader.hide(),o(t.getError(a.status,a.statusText,a.response))},a.onerror=function(){t.loader.hide(),o(t.getError(a.status,a.statusText,a.response))},i.customHeaders&&i.customHeaders.length>0?i.customHeaders.forEach(function(e,t){Object.keys(e).forEach(function(t){"MOBILE_SSO"==t?"INTERNAL"==e[t]?a.setRequestHeader("CHANNEL",this._window.KeyCommonTkt.getChannelName(!0)):a.setRequestHeader("CHANNEL",this._window.KeyCommonTkt.getChannelName()):a.setRequestHeader(t,e[t])})}):CommonConfig.isCsrMode?a.setRequestHeader("CHANNEL","IBX"):t._window.KeyAmtTkt&&a.setRequestHeader("CHANNEL",t._window.KeyCommonTkt.getChannelName()),a.timeout=i.timeout&&Number(i.timeout)>0?i.timeout:CommonConfig.defaultHttpCallTimeout,a.timeout!==CommonConfig.defaultHttpCallTimeout&&t.logger.log("overriding request timeout = ",a.timeout),a.ontimeout=function(e){t.loader.hide(),t.logger.log("request timing out.."),o(t.getError(-1,"TIMEOUT",{}))},t.prepPreRequestData(i).then(function(e){a=t.decorateRequestWithHeaders(a,i,r),"GET"===d||null==c?a.send():"application"===r?a.send(t.queryParams(c)):a.send(JSON.stringify(c))})})},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n="json"),this.httpRequest({url:e,additionalConfig:t,contentType:n})},e.prototype.put=function(e,t,n,o){return void 0===n&&(n={}),this.httpRequest({url:e,method:CommonConfig.stubsEnabled?"GET":"PUT",payload:t,additionalConfig:n,contentType:o})},e.prototype.post=function(e,t,n,o){return void 0===n&&(n={}),this.httpRequest({url:e,method:CommonConfig.stubsEnabled?"GET":"POST",payload:t,additionalConfig:n,contentType:o})},e.prototype.delete=function(e,t,n,o){return void 0===n&&(n={}),this.httpRequest({url:e,method:CommonConfig.stubsEnabled?"GET":"DELETE",payload:t,additionalConfig:n,contentType:o})},e.prototype.queryParams=function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},e.prototype.prepPreRequestData=function(e){var t=this;return new Promise(function(n,o){e&&e.appMonDataRequired?t._window.KeyPlatformTkt.botMonService.gatherBotMonData().then(function(e){n()}):n()})},e.prototype.getError=function(e,t,n){return CommonUtilities.isValidJSON(n)&&(n=JSON.parse(n)),{status:e,statusText:t,data:n}},e}(),Loader=function(){function e(){this._window=window}return e.prototype.init=function(){this.loaderElement||(this.loaderElement=document.createElement("div"),this.loaderElement.innerHTML=this.getLoaderContent())},e.prototype.getLoaderContent=function(){var e=COMMONCONSTANT.BRAND_KEY;if(window.location.host.indexOf("laurelroad")>-1||this._window._appEnvParams&&(this._window._appEnvParams.url&&this._window._appEnvParams.url.baseJnUrl.indexOf("laurelroad")>-1||this._window._appEnvParams.channel&&this._window._appEnvParams.channel==COMMONCONSTANT.LAUREL_ROAD_APP_CHANNEL))e=COMMONCONSTANT.BRAND_LRD;else{var t=window.location.href,n=new RegExp("[?&]bi(=([^&#]*)|&|#|$)").exec(t);e=n&&n[2]&&decodeURIComponent(n[2].replace(/\+/g," ")).toLocaleUpperCase()==COMMONCONSTANT.BRAND_LRD?COMMONCONSTANT.BRAND_LRD:COMMONCONSTANT.BRAND_KEY}var o="LRD"===e?"#326295":"#c00";return"\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: "+o+";\n stroke-width: 2;\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: 1\n }\n \n 50% {\n stroke-width: 2\n }\n }\n @keyframes stroke-width-lg {\n 0%,100% {\n stroke-width: 0\n }\n \n 45%,55% {\n stroke-width: 1\n }\n \n 50% {\n stroke-width: 2\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: "+o+";\n }\n \n to {\n stroke: "+o+";\n }\n }\n \n @keyframes stroke-color-lg {\n from {\n stroke: "+o+";\n }\n \n to {\n stroke: "+o+';\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.showLoaderInThisContainer=function(e){e&&(e.html=this.getLoaderContent())},e.prototype.hideLoaderInThisContainer=function(e){e&&(e.html="")},e.prototype.show=function(e){!e&&document.getElementsByTagName("body")[0].appendChild(this.loaderElement)},e.prototype.hide=function(){var e=document.getElementsByTagName("body")[0];e.contains(this.loaderElement)&&e.removeChild(this.loaderElement)},e}(),CommonLogger=function(){function e(e){this.name="CommonLogger",this.name=e}return e.getInstance=function(t){return void 0===e.instances[t]&&(e.instances[t]=new e(t)),e.instances[t]},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];CommonConfig&&CommonConfig.logsEnabled&&console.log("%c"+this.name+":","color:green",e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];CommonConfig&&CommonConfig.logsEnabled&&console.error("%c"+this.name+":","color:red",e)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];CommonConfig&&CommonConfig.logsEnabled&&console.debug("%c"+this.name+":","color:orange",e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];CommonConfig&&CommonConfig.logsEnabled&&console.info("%c"+this.name+":","color:blue",e)},e.instances=[],e}(),CommonTktHelpers=function(){function e(){}return e.getAppEnvironment=function(){var e=this._window.location.hostname;if(e&&((t=e.indexOf(".key.com"))<0&&(t=e.indexOf(".keybank.com")),t>0&&(n=e.slice(0,t))))return n;var t,n,o=this._window.location.href;if(o&&((t=o.indexOf(".key.com"))<0&&(t=e.indexOf(".keybank.com")),t>0&&(n=o.slice(0,t).replace("https://",""))))return n;if(this._window._appEnv&&""!=this._window._appEnv){var i=this._window._appEnv;return this._window.appVersion&&""!=this._window.appVersion&&(i=i+"_"+this._window.appVersion),i}return"unknown"},e._window=window,e}(),KeyTracer=function(){function e(e){this.name="Tracing",this._window=window,this.name=e}return e.getInstance=function(t){return void 0===e.instances[t]&&(e.instances[t]=new e(t)),e.instances[t]},e.prototype.recordUserId=function(e){this._window.dtrum&&this._window.dtrum.identifyUser(e)},e.prototype.recordErrorString=function(e,t){this._window.dtrum&&this._window.dtrum.reportCustomError(t,e,null,!0)},e.prototype.recordUserLogOff=function(){this._window.dtrum},e.prototype.recordSessionProperties=function(t){var n,o,i,a;if(n=t.channelSessionId?t.channelSessionId:"",o=!!t.isMigrated,i=!!t.isBusiness,a=t.policy?t.policy:"",e.isSessionStarted=!0,n&&""!=n){var r=CommonTktHelpers.getAppEnvironment();"MOBILE"==this._window.CommonConfig.channel?r+="_KMB":"TABLET_APP"==this._window.CommonConfig.channel?r+="_KMT":r=r+"_"+this._window.CommonConfig.channel;var s={channelsessionid:n,category:o?"migrated":"non-migrated",type:""!=a?a:i?"business":"retail",appname:r+=this._window.CommonConfig.isCsrMode?"_CSR":""};this.dtAddSessionProperty("shortString",s)}},e.prototype.recordAction=function(t){var n=t.name?t.name:"unknown_action",o=t.type?t.type:"unknown_type",i=t.source?t.source:"unknown_source";return this.dtSendAction(n,o,i),e.actionNumber},e.prototype.recordActionEnd=function(t){e.actionNumber=0,this._window.dtrum&&this._window.dtrum.leaveAction(t)},e.prototype.initiateAuthenticateAction=function(t){if(t&&(t.isMigrated?this.dtSendAction("TNT_MIGRATED_LOGIN","LOGIN","amt"):this.dtSendAction("TNT_NON_MIGRATED_LOGIN","LOGIN","amt"),t.method)){var n={method:t.method};this.dtAddActionProperty(e.loginActionId,"shortString",n)}},e.prototype.endAuthenticateAction=function(){e.loginActionId=0,this._window.dtrum&&this._window.dtrum.leaveAction(e.loginActionId)},e.prototype.initiateStepupAction=function(t){if(t&&(t.isMigrated?this.dtSendAction("TNT_MIGRATED_STEPUP","STEP_UP","amt"):this.dtSendAction("TNT_NON_MIGRATED_STEPUP","STEP_UP","amt"),t.policyName)){var n={policyName:t.policyName};this.dtAddActionProperty(e.stepUpActionId,"shortString",n)}},e.prototype.addStepupMethod=function(t){var n={stepupmethod:t};this.dtAddActionProperty(e.stepUpActionId,"shortString",n)},e.prototype.endStepupAction=function(){e.stepUpActionId=0,this._window.dtrum&&this._window.dtrum.leaveAction(e.stepUpActionId)},e.prototype.dtSendAction=function(t,n,o){if(this._window.dtrum)switch(n){case"LOGIN":e.loginActionId=this._window.dtrum.enterAction(t,n,null,o);break;case"STEP_UP":e.stepUpActionId=this._window.dtrum.enterAction(t,n,null,o);break;default:e.actionNumber=this._window.dtrum.enterAction(t,n,null,o)}},e.prototype.dtAddActionProperty=function(e,t,n){if(this._window.dtrum)switch(t){case"shortString":this._window.dtrum.addActionProperties(e,null,null,n)}},e.prototype.dtAddSessionProperty=function(e,t){if(this._window.dtrum)switch(e){case"shortString":this._window.dtrum.sendSessionProperties(null,null,t)}},e.isSessionStarted=!1,e.instances=[],e}(),CommonUtilities=function(){function e(){this._window=window}return e.createCookie=function(e,t,n){void 0===n&&(n=36e5);var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var i=0!=n?"expires="+o.toUTCString():"";document.cookie=e+"="+t+"; "+i+"; path=/"},e.getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},e.getTempChannelSessionId=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),e[8]=e[13]=e[18]=e[23]="-",e.join("")},e.formatToCurrency=function(e){return void 0===e?e:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}).format(e)},e.formatToCurrencyNotation=function(e,t){return t?e:"-"+e},e.formatToGenericDate=function(e){return void 0===e?e:(n=(t=(e=e.substring(0,19)).split("T"))[0],null!=t[1]?(o=t[1].split(":"),(i=new Date(n.replace(/-/g,"/"))).setHours(Number(o[0])),i.setMinutes(Number(o[1])),i.setSeconds(Number(o[2])),i):e);var t,n,o,i},e.formatDate=function(e,t){if(!e)return"";if("short"==t){var n={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",n)}if("fullDate"==t){n={weekday:"long",year:"numeric",month:"long",day:"numeric"};return new Date(e).toLocaleDateString("en-US",n)}if("shortTime"==t){n={hour:"numeric",minute:"numeric",hour12:!0};return new Date(e).toLocaleTimeString("en-US",n)}if("longDate"==t){n={year:"numeric",month:"long",day:"numeric"};return new Date(e).toLocaleDateString("en-US",n)}if("yyyy-MM-dd"==t)return new Date(e).toISOString().slice(0,10);if("MM/dd/yyyy"==t){n={year:"numeric",month:"2-digit",day:"2-digit"};return new Date(e).toLocaleDateString("en-US",n)}return new Date(e)},e.formatLastSignOnDate=function(t){if(!t)return"";var n=e.formatToGenericDate(t);return new Date(n).toLocaleDateString("en-US",{month:"long",day:"2-digit",year:"numeric"})+" at "+new Intl.DateTimeFormat("default",{hour12:!0,hour:"numeric",minute:"numeric"}).format(n)},e.addClassToElement=function(e,t){var n=document.getElementById(e);null!=n&&n.classList.add(t)},e.removeClassFromElement=function(e,t){var n=document.getElementById(e);null!=n&&n.classList.remove(t)},e.isValidJSON=function(e){var t=e.toString();try{return!!t&&JSON.parse(t)}catch(e){return!1}},e.checkForNonIbxResponseIfAny=function(t){var n,o,i,a,r=-200,s="",d="",c="";if(t&&e.isValidJSON(t))return{isValidResponse:!0};if("string"!=typeof t)return{isValidResponse:!0};if(n=-1!=t.toUpperCase().indexOf("<CODE>SERVICE TEMPORARILY UNAVAILABLE</CODE>")){var l=document.createElement("html");l.innerHTML=t,d=l.getElementsByTagName("message")?l.getElementsByTagName("message")[0].innerHTML:"System is temporarily Unavailable. Please try again Later",c=l.getElementsByTagName("messageTitle")?l.getElementsByTagName("messageTitle")[0].innerHTML:"Error.",s="WEB"!==CommonConfig.channel?"For security reasons, access through this device has been blocked. To restore access 1) exit the application 2) quit the application on your device. If you are still unable to sign on, "+d+" - "+c:"For security reasons, access through this browser has been blocked. To restore access 1) clear the browser cache 2) close the browser 3) relaunch the browser. If you continue to receive this message and are unable to sign on, "+d+" - "+c,r=-200}return o=-1!=t.toUpperCase().indexOf("ONLINE BANKING IS CURRENTLY UNAVAILABLE")||-1!=t.toUpperCase().indexOf("SERVICE UNAVAILABLE"),i=-1!=t.toUpperCase().indexOf("THE REQUESTED URL WAS REJECTED")||-1!=t.toUpperCase().indexOf("AN ERROR HAS OCCURRED"),a=-1!=t.toUpperCase().indexOf("IF YOU ARE NOT REDIRECTED AUTOMATICALLY"),{isValidResponse:!(o||i||n||a),isMaintenanceError:o,resourceBlockedError:i,isCustomError:n,customErrorMessageTitle:c,customErrorMessage:d,customErrorMessageCombined:s,customErrorCode:r,isSessionExpiredError:a}},e.prototype.checkForNonIbxResponseIfAny=function(t){return e.checkForNonIbxResponseIfAny(t)},e.prototype.getKDSSvgSpritePath=function(){return"WEB"!==CommonConfig.channel?"share/assets/images/kds.svg":"/ibxolb/olb/share/assets/images/kds.svg"},e.prototype.getKDSPictogramSvgPath=function(){return"WEB"!==CommonConfig.channel?"share/assets/images/kds-pictograms.svg":"/ibxolb/olb/share/assets/images/kds-pictograms.svg"},e.prototype.pad=function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n},e.prototype.maskText=function(e,t,n){var o=String.fromCharCode(9679),i="";return t=t<e.length?t:0,n=n||new RegExp("\\w","g"),i=(i=e.slice(0,e.length-t)).replace(n,o),i+=e.slice(e.length-t)},e.prototype.maskInput=function(e,t,n,o,i){var a=String.fromCharCode(9679),r=e.srcElement.selectionStart,s=e.srcElement.selectionEnd;if(t=t||"",e.key){var d=e.metaKey||e.ctrlKey||"CONTROL"===e.key.toUpperCase()&&"META"===e.key.toUpperCase();d&&"V"===e.key.toUpperCase()||"Unidentified"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key||e.preventDefault()}return new Promise(function(c){return setTimeout(function(){if("paste"!==e.type&&e.key){if(!d)if(t=t||"",8==e.keyCode||46==e.keyCode)t&&(t=r===s?r>0?t.slice(0,r-1)+t.slice(r):t:t.slice(0,r)+t.slice(s));else{var l=e.key;"Unidentified"===e.key&&(l=e.srcElement.value),(l=(l=l.replace(o,"")).length>1?"":l)&&(t=t.slice(0,r)+l+t.slice(s))}}else e.preventDefault(),l=(l=e.srcElement.value).replace(o,""),t=t.slice(0,r)+l+t.slice(s);n=t.replace(i,a),c({view:n,value:t})})})},e.prototype.isDayLight=function(){var e=new Date,t=new Date(e.getFullYear(),0,1),n=new Date(e.getFullYear(),6,1),o=Math.max(t.getTimezoneOffset(),n.getTimezoneOffset());return e.getTimezoneOffset()<o},e.prototype.getDateWithEasternTimeStamp=function(){var e=this.isDayLight()?-4:-5,t=new Date,n=t.getTime()+6e4*t.getTimezoneOffset();return new Date(n+36e5*e)},e.getOpenDateGreaterOrLess=function(e,t){var n=e.split("/"),o=n[0],i=n[1],a=n[2],r=24*t*60*60*1e3,s=new Date(a+"-"+o+"-"+i).getTime();return(new Date).getTime()-s>r},e.isMobileBrowser=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},e}(),COMMONCONSTANT=function(){function e(){}return e.BRAND_LRD="LRD",e.BRAND_KEY="KEY",e.CHANNEL_WEB="WEB",e.CHANNEL_MOBILE="MOBILE",e.CHANNEL_TABLET="TABLET_APP",e.NEW_FEEDBACK_URL="newFeedbackURL",e.LAUREL_ROAD_APP_CHANNEL="LMA",e.IBX_APP_CHANNEL="DMA",e.CO_BROWSE_FM_SET_URL_KEY="cobrowseFmset",e.CO_BROSER_URL_KEY="cobrowseLauncher",e.KEY_SITE_NAME="ibx",e.LRD_SITE_NAME="lrd",e.FB_PARAM_MAPPING={billpay:"bpy",article_id:"aid",article_title:"att",transSearchTriggered:"tst"},e.FB_FORMS={KEY:{RETAIL:{t:"3492",p:"3493"},BUSINESS:{t:"3809",p:"3810"},COMBINED:{t:"3811",p:"3812"},ARTICLE:{t:"4630",p:"4631"},BILLPAY:{t:"4046",p:"4629"},KPB:{t:"6835",p:"6837"}},LRD:{RETAIL:{t:"3494",p:"3495"}}},e.MOB_FB_FORMS={KEY:{ANDROID:{RETAIL:{t:"4172",p:"4171"},BUSINESS:{t:"5182",p:"5184"},COMBINED:{t:"5183",p:"5185"},ARTICLE:{t:"4641",p:"4640"},BILLPAY:{t:"4638",p:"4639"},KPB:{t:"6839",p:"6840"}},IOS:{RETAIL:{t:"4633",p:"4632"},BUSINESS:{t:"5178",p:"5179"},COMBINED:{t:"5180",p:"5181"},ARTICLE:{t:"4637",p:"4636"},BILLPAY:{t:"4634",p:"4635"},KPB:{t:"7259",p:"7258"}}},LRD:{ANDROID:{},IOS:{}}},e.FB_SDK_TOKEN={ANDROID:"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhcGlUb2tlblYyIiwiYXV0aFVybCI6Imh0dHBzOi8va2V5YmFuay5tZC1hcGlzLm1lZGFsbGlhLmNvbS9tb2JpbGVTREsvdjEvYWNjZXNzVG9rZW4iLCJlbnZpcm9ubWVudCI6ImRpZ2l0YWwtY2xvdWQtd2VzdCIsImNyZWF0ZVRpbWUiOjE2MTYwNzY3MTkwMjksImRvbWFpbiI6Imh0dHBzOi8va2V5YmFuay5tZC1hcGlzLm1lZGFsbGlhLmNvbS8iLCJhcGlUb2tlblYyVmVyc2lvbiI6MiwicHJvcGVydHlJZCI6NTIyNzZ9.YHL6rhGiUWVUn0vU7rVtatD_cZ-o8PAKm7YztDjK0aEhsipFctk8Uo7FxN8rdbLwhsPN-te7yq_7aggS_Au5aLe5lfg0u7QNOZdVqSqzh9_CaO_-AeYLqHZFnEhTA9a7e7fA-HKrXjhrG-huGnwaFUH6XH78VFsueSwyXZf7AO4dvgdwQ-U-ho_PyGnAW8N9muJ9Rkd_sIwcWkcd0wu2c1tebEXyrEBnFmW0Mkpf8eEcVINLshzR3nuvU77KWUvfHfYoEgwuxYoGPtDyZNexKi6V4KxEd6RXfddaq13MHHjrquRk8Qw75mYOYIcq5M4jDfuR4ryVudq3rrUXpOw57w",IOS:"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhcGlUb2tlblYyIiwiYXV0aFVybCI6Imh0dHBzOi8va2V5YmFuay5tZC1hcGlzLm1lZGFsbGlhLmNvbS9tb2JpbGVTREsvdjEvYWNjZXNzVG9rZW4iLCJlbnZpcm9ubWVudCI6ImRpZ2l0YWwtY2xvdWQtd2VzdCIsImNyZWF0ZVRpbWUiOjE2MTYwNzY3MTc0NTIsImRvbWFpbiI6Imh0dHBzOi8va2V5YmFuay5tZC1hcGlzLm1lZGFsbGlhLmNvbS8iLCJhcGlUb2tlblYyVmVyc2lvbiI6MiwicHJvcGVydHlJZCI6NTIyNjl9.egkD-juH08kbvIaMzL9LzGxJaYMi6XsswdZz-kDn3QQa0LoWqOpNxMT5fv8YDI7CTzcMp3JYWUo-jdhjV0H7KIfz82ejcqnkSvTNOdByw4DwjwqvGjJz0OLzQcYo5J0BiqdMl2j3YdremnpM2nAYQb3y-SHfGGD4WO1adO7GPvYdU-VMplrsFlEiVxx5ODqAL-IFBcMUYi2qdx5cDH2E2ENbWno2nYkDqkYBbeXtzLr-fV3oWYm5eHBOs7hMc-x1CSx8l4jYcrMU5sOhQEOBzz3c-S2QeQvDWPfFbq0LyuIfIA5wnjFHRfUZmIKjsYmRReUKOyZyT1S5brFoQFJcOw"},e.ENV_DOMAIN_NAMES=["ibx.key.com","laurelroad.key.com","ibxpreview.key.com","laurelroadpreview.key.com"],e}(),FeedbackService=function(){function e(){this._window=window,this.logger=CommonLogger.getInstance("FeedbackService")}return e.prototype.getFeedbackUrlInfo=function(e,t){return""},e.prototype.initFeedback=function(){this._window.KAMPYLE_ONSITE_SDK&&this._window.KAMPYLE_ONSITE_SDK.updatePageView()},e.prototype.updateFeedbackParams=function(e){var t=this;try{if(CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB){var n=this.getBrandPrefix();this._window.medallia=this._window.medallia||{},Object.keys(e).forEach(function(o){COMMONCONSTANT.FB_PARAM_MAPPING[o]&&(t._window.medallia[n+COMMONCONSTANT.FB_PARAM_MAPPING[o]]=e[o])}),this.initFeedback()}else if(CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE){var o={};Object.keys(e).forEach(function(t){o[t]=e[t]}),this.setCustomParamsForMob(o)}}catch(e){this.logger.info("unable to update params ",e)}},e.prototype.setCustomParams=function(e){var t=this.getBrandPrefix(),n=CommonConfig.channel,o={};this._window.medallia=this._window.medallia||{},this._window.medallia[t+"uvt"]=o.user_view_type=e.isAuthenticated?this._window.KeyCoreTkt.getUserType():"NA",this._window.medallia[t+"env"]=o.environment=this.getEnv(),this._window.medallia[t+"ch"]=o.channel=n,e.isAuthenticated&&(this._window.medallia[t+"ui"]=o.customer_ipi=this._window.KeyCoreTkt.getParty().customerNumber,this._window.medallia[t+"fn"]=o.first_name=this._window.KeyCoreTkt.getParty().firstName,this._window.medallia[t+"ln"]=o.last_name=this._window.KeyCoreTkt.getParty().lastName,this._window.medallia[t+"ea"]=o.email_address=this._window.KeyCoreTkt.getParty().emailAddress,this._window.medallia[t+"kpb"]=o.kpb_user=this._window.KeyCoreTkt.getParty().kpbUser()),CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE?this.setCustomParamsForMob(o):o={}},e.prototype.setCustomParamsForMob=function(e){this._window.medalliaDigital&&this._window.medalliaDigital.setCustomParameters(e),this._window.medallia={}},e.prototype.launchFeedbackByFormId=function(e){try{this.logger.info("loaded form ",e),this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB?this._window.KAMPYLE_ONSITE_SDK&&this._window.KAMPYLE_ONSITE_SDK.showForm(e):this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE&&this._window.medalliaDigital&&this._window.medalliaDigital.showForm(e)}catch(e){this.logger.error("Unable to open feedback form : ",e)}},e.prototype.launchFeedback=function(e){try{if(this._window.KeyCoreTkt.getCapabilites().newFeedbackExp){var t=this.getFeedbackFormId(e);t&&this.launchFeedbackByFormId(t)}}catch(e){this.logger.error("Unable to open feedback form : ",e)}},e.prototype.getFeedbackFormId=function(e){var t,n="qv"===this.getEnv()?"t":"p",o=this._window.KeyCoreTkt.getUserType(),i=this._window.KeyCommonTkt.getBrandIdentifier(),a=this._window.CommonConfig.channel,r=["R","M"].indexOf(o)>-1?"RETAIL":["B","S"].indexOf(o)>-1?"BUSINESS":"C"===o?"COMBINED":"",s="";return this._window.KeyCoreTkt.getParty().kpbUser()&&(r="KPB"),e&&e.key&&(r=e.key),a===COMMONCONSTANT.CHANNEL_WEB?s=COMMONCONSTANT.FB_FORMS[i]&&COMMONCONSTANT.FB_FORMS[i][r]?COMMONCONSTANT.FB_FORMS[i][r][n]:"":a===COMMONCONSTANT.CHANNEL_MOBILE&&(t=this._window.KeyPlatformTkt&&this._window.KeyPlatformTkt.cordovaService.amIDefined()&&this._window.KeyPlatformTkt.cordovaService.isIos()?"IOS":"ANDROID",s=COMMONCONSTANT.MOB_FB_FORMS[i]&&COMMONCONSTANT.MOB_FB_FORMS[i][t][r]?COMMONCONSTANT.MOB_FB_FORMS[i][t][r][n]:""),s},e.prototype.getBrandPrefix=function(){return this._window.KeyCommonTkt.getBrandIdentifier()===this._window.KeyCommonTkt.BRAND_KEY?"_kb_fb_":"_lr_fb_"},e.prototype.getEnv=function(){var e="";return"WEB"===this._window.CommonConfig.channel?e=COMMONCONSTANT.ENV_DOMAIN_NAMES.indexOf(document.location.hostname)>-1?"prod":"qv":this._window._appEnv&&(e="preview"===this._window._appEnv||"prod"===this._window._appEnv?"prod":"qv"),e},e.prototype.refreshExtAppData=function(){this._window.medallia=null},e.prototype.initMedalliaSDK=function(e){var t=this,n=this._window.KeyPlatformTkt&&this._window.KeyPlatformTkt.cordovaService.amIDefined()&&this._window.KeyPlatformTkt.cordovaService.isIos();try{this._window.medalliaDigital&&this._window.medalliaDigital.init(COMMONCONSTANT.FB_SDK_TOKEN[n?"IOS":"ANDROID"],function(n){t.setCustomParams(e),t.logger.info("Medallia initiated successfully ",n)},function(e){t.logger.error("Unable to initiate Medallia ",e)})}catch(e){this.logger.error("Unable to initiate Medallia ",e)}},e}(),BusinessChatService=function(){function e(){this._window=window,this.logger=CommonLogger.getInstance("BusinessChatServicez"),this.chatLaunched=!1}return e.prototype.loadSupportScript=function(e){var t=this;return new Promise(function(n,o){void 0===t._window["business-chat-support"]?t._window.$.getScript(e).done(function(e,o){t._window["business-chat-support"]="loaded",n(!0)}).fail(function(e,t,o){n(!1)}):n(!0)})},e.prototype.launchBusinessWebSupport=function(){var e=this;return new Promise(function(t,n){e.loadSupportScript("https://webchat.goboomtown.com/assets/webConnectChatBox.js").then(function(o){!1===o?n(o):(e.launchBusinessWebChat(),e.chatLaunched=!0,t(o))}).catch(function(e){n()})})},e.prototype.launchBusinessWebChat=function(){"WEB"===this._window.CommonConfig.channel&&(this._window.WebConnect&&!this.chatLaunched?(this.configOptions=this.isProd()?this._window.CommonConfig.businessChatConfig.prod:this._window.CommonConfig.businessChatConfig.nonProd,this._window.WebConnect.configOptions(this.configOptions)):this.showChat())},e.prototype.launchBusinessMobileSupport=function(e,t){this._window.KeyPlatformTkt.cordovaService.initiateChatSupport(e,t)},e.prototype.isProd=function(){return"WEB"===this._window.CommonConfig.channel?this._window.location.hostname.indexOf("ibx.key.com")>-1||this._window.location.hostname.indexOf("ibxpreview.key.com")>-1:"preview"===this._window._appEnv||"prod"===this._window._appEnv},e.prototype.hideChat=function(){document.getElementById("web-connect-wrapper")&&document.getElementById("web-connect-wrapper").setAttribute("style","display:none")},e.prototype.showChat=function(){this.chatLaunched&&document.getElementById("web-connect-wrapper")&&document.getElementById("web-connect-wrapper").setAttribute("style","display:block")},e.prototype.dismissChat=function(){this._window.WebConnect&&this._window.WebConnect.clear()},e}(),ChatService=function(){function e(){var e=this;this._window=window,this.logger=CommonLogger.getInstance("ChatService"),this.getChatAuthHeader=function(){try{return{jwt:e._window.KeyAmtTkt?e._window.KeyAmtTkt.getAuthToken():"",userid:e._window.KeyAmtTkt?e._window.KeyAmtTkt.getTempLoginUserId():"",firstName:e._window.KeyCoreTkt.getParty().firstName,lastName:e._window.KeyCoreTkt.getParty().lastName,email:e._window.KeyCoreTkt.getParty().emailAddress,ipi:e._window.KeyCoreTkt.partyService.user.customerNumber}}catch(t){e.logger.error("Chat header params failed ",t)}},this.setLRAuthChatData=function(){try{e._window.chatSettings={channel:"WEB",env:COMMONCONSTANT.ENV_DOMAIN_NAMES.indexOf(document.location.hostname)>-1?"PROD":"QV",keepMainAppAlive:e.keepSessionAlive,authParamCallback:function(){return e.getLRAuthChatFields()}}}catch(t){e.logger.error("Chat header params failed ",t)}},this.getLRAuthChatFields=function(){return{jwt:e._window.KeyAmtTkt?e._window.KeyAmtTkt.getAuthToken():"",userid:e._window.KeyAmtTkt?e._window.KeyAmtTkt.getTempLoginUserId():""}},this.launchChatAction=function(t){try{t&&e._window.keyCoreTkt.helpAndSupportService.launchAction({event:t.keyword,param:t.param})}catch(t){e.logger.error("Chat launch action failed ",t)}},this.keepSessionAlive=function(){e._window.KeyAmtTkt&&e._window.KeyAmtTkt.keepSessionAlive()}}return e.prototype.viewPortCoverEnabled=function(){return!(!this._window.KeyPlatformTkt||!this._window.KeyPlatformTkt.cordovaService)&&this._window.KeyPlatformTkt.cordovaService.viewPortCoverEnabled},e.prototype.getScriptConfig=function(){return{mfeName:"cnvChatbot",absoluteScriptPath:this._window.CommonConfig.chatUrl.scriptPath,absoluteStylesPath:this._window.CommonConfig.chatUrl.stylePath,asyncFlag:!0,appendToBottom:!0,localScriptLoad:!1,localStyleLoad:!1}},e.prototype.getLrdScriptConfig=function(){return{mfeName:"lrchat",absoluteScriptPath:this.setLrtScriptPath(),asyncFlag:!0,appendToBottom:!0,localScriptLoad:!1,localStyleLoad:!1}},e.prototype.setChatConfig=function(){var e=this,t=this._window.CommonConfig.chatConfig,n=this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE,o=this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB,i=n?this._window._appEnvParams.url.baseJnUrl:"/",a="";this._window.chatSettings={},Object.keys(t).forEach(function(n){e._window.chatSettings[n]=t[n]}),this._window.chatSettings.endpoint=i+t.endpoint,this._window.chatSettings.assetsBasePath=i+t.assetsBasePath,this._window.chatSettings.handleSession=i+t.handleSession,this._window.chatSettings.validateLogin=i+t.validateLogin,this._window.chatSettings.authParamCallback=this.getChatAuthHeader,this._window.chatSettings.actionCallback=this.launchChatAction,this._window.chatSettings.channel=this._window.CommonConfig.channel,this._window.chatSettings.endSession=i+t.endSession,this._window.chatSettings.keepMainAppAlive=this.keepSessionAlive,o&&(a=location.hostname.split(".")[0],this._window.chatSettings.env=COMMONCONSTANT.ENV_DOMAIN_NAMES.indexOf(document.location.hostname)>-1?"prod":a.substring(a.length-3)),n&&(this._window.chatSettings.viewPortCoverEnabled=this.viewPortCoverEnabled(),this._window.chatSettings.env=this._window._appEnv)},e.prototype.setLrdChatHostData=function(){return COMMONCONSTANT.ENV_DOMAIN_NAMES.indexOf(document.location.hostname)>-1?this._window.CommonConfig.chatEnvUrl.PROD:document.location.hostname.indexOf("qv")>-1?this._window.CommonConfig.chatEnvUrl.QV:this._window.CommonConfig.chatEnvUrl.IT},e.prototype.setLrtScriptPath=function(){return"https://"+this.setLrdChatHostData()+this._window.CommonConfig.lrdChatUrl.scriptPath},e.prototype.launchChat=function(){try{this.chatScriptsLoaded()?this._window.chatController.openConverse():this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE&&this._window.keyCoreTkt.routerService.transitionTo("help",{component:"error",cfm:"chat",q:""})}catch(e){this.logger.error("Launch chat failed ",e)}},e.prototype.killChat=function(){try{this._window.chatController&&"function"==typeof this._window.chatController.killChat&&this._window.chatController.killChat(),this._window.KeyCommonTkt.loadExternalAppsService.chatLoaded=!1}catch(e){this.logger.error("Kill Chat error ",e)}},e.prototype.chatScriptsLoaded=function(){return this._window.chatController&&"function"==typeof this._window.chatController.openConverse},e}(),LoadExternalAppsService=function(){function e(){this._window=window,this.logger=CommonLogger.getInstance("LoadExternalAppsService"),this.feedbackLoaded=!1,this.chatLoaded=!1,this.isLoadChatPending=!1,this.lrChatLoaded=!1,this.isLrLoadChatPending=!1,this.feedbackService=new FeedbackService,this.chatService=new ChatService}return e.prototype.loadExternalApp=function(e){var t=this;try{if(void 0===e.isAuthenticated)return!1;if(this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB&&this.loadCoBrowse(e),this._window.CommonConfig.channel!==COMMONCONSTANT.CHANNEL_TABLET&&(this.loadFeedback(e),this.loadChatApp(e)),this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB&&this._window.KeyCommonTkt.getBrandIdentifier()===COMMONCONSTANT.BRAND_LRD&&e.isAuthenticated)new Promise(function(e){t.lrdChatTag(),e()}).then(function(){t.loadLRChat(e)})}catch(e){this.logger.error("Unable to load external app : ",e)}},e.prototype.loadFeedback=function(e){var t=this,n=e.isAuthenticated?!!this._window.KeyCoreTkt&&this._window.KeyCoreTkt.getCapabilites().newFeedbackExp:e.capabilities.newFeedbackExp;if(this.feedbackLoaded)return!1;if(n){if(this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_WEB){this.feedbackService.setCustomParams(e);var o=e.isAuthenticated?this._window.KeyCoreTkt.getSupportLinkById(COMMONCONSTANT.NEW_FEEDBACK_URL):e.supportLinks[COMMONCONSTANT.NEW_FEEDBACK_URL];this._window.KeyCommonTkt.loadScriptFileService.loadScript({mfeName:"meda",absoluteScriptPath:o,asyncFlag:!0,appendToBottom:!0}).then(function(){t.feedbackService.initFeedback(),t.feedbackLoaded=!0,t.logger.log("Feedback loaded(2)")},function(e){t.feedbackLoaded=!1,t.logger.log("Unable to load Feedback(2) ",e)})}this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE&&e.isAuthenticated&&this.feedbackService.initMedalliaSDK(e)}},e.prototype.loadCoBrowse=function(e){var t=this;(e.isAuthenticated?!!this._window.KeyCoreTkt&&this._window.KeyCoreTkt.getCapabilites().cobrowseExp:e.capabilities.cobrowseExp)&&this._window.KeyCommonTkt.loadScriptFileService.loadScript({mfeName:"cobrowse",absoluteScriptPath:e.isAuthenticated?this._window.KeyCoreTkt.getSupportLinkById(COMMONCONSTANT.CO_BROSER_URL_KEY):e.supportLinks[COMMONCONSTANT.CO_BROSER_URL_KEY],asyncFlag:!0,appendToBottom:!0}).then(function(e){t.logger.info("Co-browse script loaded successfully.")},function(e){t.logger.info("Co-browse script loaded failed")})},e.prototype.loadChatApp=function(e){var t=this;if(e.isAuthenticated&&!this._window.CommonConfig.isCsrMode&&"R"===this._window.KeyCoreTkt.getUserType()&&this._window.KeyCoreTkt.getCapabilites()[this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE?"mobCnvChatExp":"cnvChatExp"]&&!0!==this.isLoadChatPending)try{if(this.chatLoaded)return!1;this.isLoadChatPending=!0,this._window.CommonConfig.channel===COMMONCONSTANT.CHANNEL_MOBILE&&this.chatService.killChat(),this._window.KeyCommonTkt.loadScriptFileService.loadScript(this.chatService.getScriptConfig()).then(function(){t.chatService.setChatConfig(),t._window.chatController&&(t._window.chatController.initChatWindow(),t.chatLoaded=!0,t.isLoadChatPending=!1)},function(e){t.chatLoaded=!1,t.isLoadChatPending=!1,t.logger.info("Chat style, script not loaded",e)})}catch(e){this.isLoadChatPending=!1,this.logger.info("LoadChatApp Error ",e)}},e.prototype.lrdChatTag=function(){var e=document.createElement("div"),t=this.chatService.setLrdChatHostData();e.id="lrauth_chat",e.setAttribute("data-chat-host",t),document.body.appendChild(e),this.logger.info("lrauth_chat div loaded..")},e.prototype.loadLRChat=function(e){var t=this;if(e.isAuthenticated&&!this._window.CommonConfig.isCsrMode&&this._window.KeyCoreTkt.getCapabilites().lrChat&&!0!==this.isLrLoadChatPending)try{if(this.lrChatLoaded)return!1;this.isLrLoadChatPending=!0,this._window.KeyCommonTkt.loadScriptFileService.loadScript(this.chatService.getLrdScriptConfig()).then(function(){t.chatService.setLRAuthChatData(),t.lrChatLoaded=!0},function(e){t.lrChatLoaded=!1,t.isLrLoadChatPending=!1,t.logger.info("LR Chat style, script not loaded",e)})}catch(e){this.isLoadChatPending=!1,this.logger.info("Lr LoadChatApp Error ",e)}},e}(),loadScriptFileService=function(){function e(){this.logger=CommonLogger.getInstance("loadScriptFileService"),this._window=window}return e.prototype.getAppBasePath=function(){this._window.KeyCommonTkt.getConfig();return this._window._appEnvParams&&this._window._appEnvParams.url?this._window._appEnvParams.url.baseJnUrl:"/"},e.prototype.loadStyleLink=function(e,t){var n=this.getAppBasePath(),o=document.createElement("link");o.rel="stylesheet",o.type="text/css",(e.indexOf("http")>=0||0==e.indexOf("/")||t)&&(n=""),o.href=n+e,o.media="all",document.getElementsByTagName("head")[0].appendChild(o)},e.prototype.loadScript=function(e,t,n){var o=this;return new Promise(function(i,a){if(null==o._window[e.mfeName]){var r=o.getAppBasePath();(e.absoluteScriptPath.indexOf("http")>=0||0==e.absoluteScriptPath.indexOf("/")||t)&&(r="");var s=document.createElement("script");s.type="text/javascript",s.src=r+e.absoluteScriptPath,e.asyncFlag&&(s.async=!0),s.onload=function(){e.absoluteStylesPath&&e.absoluteStylesPath.length>0&&o.loadStyleLink(e.absoluteStylesPath,n),o._window[e.mfeName]="loaded",o.logger.info(e," - loaded"),i({script:e.mfeName,loaded:!0,status:"Ready"})},s.onerror=function(t){o.logger.info(e," - unable to load"),a({script:e.mfeName,loaded:!1,status:"Load failed"})},e.appendToBottom?document.getElementsByTagName("body").length>0&&document.getElementsByTagName("body")[0].appendChild(s):document.getElementsByTagName("head")[0].appendChild(s)}else o.logger.info(e," - already loaded"),i({script:e.mfeName,loaded:!0,status:"Already Loaded"})})},e}(),IBXAnalytics=function(){function e(t){e._window.appEventData=[];var n=CommonTktHelpers.getAppEnvironment();e._window._appEnv&&""!=e._window._appEnv&&(e.appType="app"),n&&"unknown"!=n||(e.isAnalyticsEnabled=!1),e.brandName=this.getSiteNameForBrand(),t&&(e.analyticsType=t)}return e.getInstance=function(t){return void 0===t&&(t="Adobe"),void 0===e.instance&&(e.instance=new e(t)),e.instance},e.prototype.getSiteNameForBrand=function(){if(_window._appEnvParams&&_window._appEnvParams.channel)return _window._appEnvParams.channel==COMMONCONSTANT.LAUREL_ROAD_APP_CHANNEL?COMMONCONSTANT.LRD_SITE_NAME:COMMONCONSTANT.KEY_SITE_NAME;if(window.location.host.indexOf("laurelroad")>-1)return COMMONCONSTANT.LRD_SITE_NAME;var e=window.location.href,t=new RegExp("[?&]bi(=([^&#]*)|&|#|$)").exec(e);return t&&t[2]&&decodeURIComponent(t[2].replace(/\+/g," ")).toLocaleUpperCase()==COMMONCONSTANT.BRAND_LRD?COMMONCONSTANT.LRD_SITE_NAME:COMMONCONSTANT.KEY_SITE_NAME},e.prototype.pageLoadStart=function(t){if(e.isAnalyticsEnabled){var n={event:"page load start",page:{experienceType:e.appType,siteName:e.brandName}};Object.entries(t).forEach(function(e){var t=e[0],o=e[1];n.page[t]=o}),e._window.appEventData.push(n)}},e.prototype.pageLoadComplete=function(){e.isAnalyticsEnabled&&e._window.appEventData.push({event:"page load completed"})},e.prototype.push=function(t){e.isAnalyticsEnabled&&t&&e._window.appEventData.push(t)},e.analyticsType="Adobe",e._window=window,e.brandName="ibx",e.appType="web",e.isAnalyticsEnabled=!0,e}(),_window=window;_window.KeyCommonTkt={httpClient:new HttpClient,logger:CommonLogger,tracer:KeyTracer,analytics:IBXAnalytics.getInstance(),loader:new Loader,utilities:new CommonUtilities,biCode:"",BRAND_KEY:"KEY",BRAND_LRD:"LRD",biAdditionInfo:{},feedbackService:new FeedbackService,businessChatService:new BusinessChatService,cacheConfig:"dummy",loadExternalAppsService:new LoadExternalAppsService,loadScriptFileService:new loadScriptFileService,chatService:new ChatService,initialize:function(e){CommonConfig.setConfig(e,_window.location)},getBrandIdentifier:function(){if(this.biCode)return this.biCode;if(_window._appEnvParams)_window._appEnvParams.url&&_window._appEnvParams.url.baseJnUrl.indexOf("laurelroad")>-1||_window._appEnvParams.channel&&_window._appEnvParams.channel==COMMONCONSTANT.LAUREL_ROAD_APP_CHANNEL?this.biCode=COMMONCONSTANT.BRAND_LRD:this.biCode=COMMONCONSTANT.BRAND_KEY;else{if(window.location.host.indexOf("laurelroad")>-1)return this.biCode=COMMONCONSTANT.BRAND_LRD,this.biCode;var e=window.location.href,t=new RegExp("[?&]bi(=([^&#]*)|&|#|$)").exec(e);this.biCode=t&&t[2]&&decodeURIComponent(t[2].replace(/\+/g," ")).toLocaleUpperCase()==COMMONCONSTANT.BRAND_LRD?COMMONCONSTANT.BRAND_LRD:COMMONCONSTANT.BRAND_KEY}return this.biCode},getBrandSpecificResourcePath:function(e,t,n){var o=this.getBrandIdentifier(),i="";return"sdl"===e?i=o===COMMONCONSTANT.BRAND_LRD?CommonConfig.sdlUrl.lrd:CommonConfig.sdlUrl.key:"content"===e?i=o===COMMONCONSTANT.BRAND_LRD?void 0!==n&&1==n?CommonConfig.contentUrl.wellnesslrd:CommonConfig.contentUrl.lrd:CommonConfig.contentUrl.key:"cdn"===e&&(i=CommonConfig.cdnUrl),void 0!==t&&1==t?"/"+i:i},getCDNAssetPath:function(e){return void 0===e&&(e=!0),this.getBrandSpecificResourcePath("cdn",e)},getCMSFetchContentUrl:function(){return CommonConfig.baseUrl+"mbl/api/unauth/v1/content/entry"},getWebChannelName:function(){return this.getBrandIdentifier()===COMMONCONSTANT.BRAND_KEY?"DWB":"LWB"},getChannelName:function(e){return e||_window._appEnvParams?this.getBrandIdentifier()===COMMONCONSTANT.BRAND_KEY?"DMA":"LMA":this.getBrandIdentifier()===COMMONCONSTANT.BRAND_KEY?"DWB":"LWB"},isBrandKey:function(){return this.getBrandIdentifier()===COMMONCONSTANT.BRAND_KEY},isLrMobile:function(){return"LMA"==this.getChannelName()},isDoctorOrDentist:function(){var e="";if(!this.isBrandKey()){var t=window.location.href,n=new RegExp("[?&]occ(=([^&#]*)|&|#|$)").exec(t);n&&null!=n&&(e=n[2])}return e},isOpenDateGreaterOrLess:function(e,t){return!!CommonUtilities.getOpenDateGreaterOrLess(e,t)},getCopyrightInfo:function(e){var t=(new Date).getFullYear();return void 0!==e&&"fico"===e?"©<span id='copyright-footer-year'>"+t+"</span> Fair Isaac Corporation. All rights reserved.":"©<span id='copyright-footer-year'>"+t+"</span> KeyCorp<sup>®</sup> All Rights Reserved."},getConfig:function(){return{channel:CommonConfig.channel,baseUrl:CommonConfig.baseUrl,isCsrMode:CommonConfig.isCsrMode}}};