1(this["webpackJsonponline-banking-app"]=this["webpackJsonponline-banking-app"]||[]).push([[60],{1522:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(22),i=n(36),r=n(2),a=n(3),c=n(5),s=n(6),l=n(0),u=n.n(l),d=n(2392),p=n(25),g=n.n(p),f=n(1345),m=n.n(f),v=n(2318),b=function(e){Object(c.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={hasError:!1},e}return Object(a.a)(n,[{key:"render",value:function(){var e=this.state.hasError,t=this.props.children;if(e){var n=(this.props.messages||{}).widget,o=void 0===n?{}:n,i={};if(o){var r=o.loadErrorTitle,a=o.loadErrorMessage;i.title=r||"Error",i.msg=a||"There was an error loading the widget"}return u.a.createElement(v.a,i)}return t}}],[{key:"getDerivedStateFromError",value:function(e){return console.log("Error rendering widget",e),{hasError:!0}}}]),n}(l.Component);b.propTypes={messages:g.a.object.isRequired};var w=n(1373),h="ADMIN",y="TEXT",j="LIST",O=["isAdmin","messages","sourceUrl","isIFrame","containerCls","windowDimensions","extraWidgetProperties","widgetProperties","name","layoutOption","fiDomainInfo","contextCls"],E=function(e){Object(c.a)(n,e);var t=Object(s.a)(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this,e)).state={};var i=o.props.widgetProperties;return o.wrapperElement=u.a.createRef(),o.state.normalizedProperties=n.getNormalizedProperties(i),o}return Object(a.a)(n,[{key:"render",value:function(){var e=this.props,t=e.isAdmin,n=e.messages,r=e.sourceUrl,a=(e.isIFrame,e.containerCls),c=e.windowDimensions,s=e.extraWidgetProperties,d=e.widgetProperties,p=e.name,g=e.layoutOption,f=e.fiDomainInfo,v=e.contextCls,w=Object(i.a)(e,O),y=this.getWidgetComponent(),j=this.getFallbackComponent(),E=this.state.normalizedProperties,S={};return r?(S.sourceUrl=r,S.layoutOption=g,S.originalWidgetProperties=d,S.fiDomainInfo=f):S=Object(o.a)(Object(o.a)({},w),{},{containerCls:a,wrapperElement:this.wrapperElement}),u.a.createElement(b,{messages:n},u.a.createElement(l.Suspense,{fallback:j},u.a.createElement("div",{className:m()(v,"".concat(a,"__widget-container"),"composite-layout-widget"),ref:this.wrapperElement},u.a.createElement(y,Object.assign({mode:t?h:"",windowDimensions:c,name:p},E,S,s||{})))))}},{key:"getFallbackComponent",value:function(){var e=this.props.fallbackComponent;return e||u.a.createElement(d.a,null)}},{key:"getWidgetComponent",value:function(){if(!this.widgetComponent){var e=this.getWidgetPromise();this.widgetComponent=u.a.lazy((function(){return e}))}return this.widgetComponent}},{key:"getWidgetPromise",value:function(){var e=this.props,t=e.widgetPromise,n=e.isIFrame;if(t)return t;var o=this.props.sourceUrl,i=this.context.fiDomainInfo;return w.a.fetchWidgetComponent(o,i,n)}},{key:"getWidgetElement",value:function(){return this.wrapperElement?this.wrapperElement.current:void 0}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.widgetProperties;return{normalizedProperties:n.getNormalizedProperties(t)}}},{key:"getNormalizedProperties",value:function(e){var t,n,i={locale:(null===(t=window.di)||void 0===t||null===(n=t.env)||void 0===n?void 0:n.locale)||"en_US"};return(e||[]).reduce((function(e,t){var n=Object(o.a)({},e),i=t.propertyName,r=t.propertyType,a=t.propertyValue,c=t.propertyValueLocale,s=t.isLocalized,l=a;return r===y&&s?l=Object(o.a)(Object(o.a)({},null!==c&&void 0!==c?c:{}),a&&{en_US:a}):r===j&&(l=(a||"").split(",")),n[i]=l,n}),i)}}]),n}(l.Component);E.contextTypes={fiDomainInfo:g.a.object},E.propTypes={isAdmin:g.a.bool,widgetPromise:g.a.object,messages:g.a.object.isRequired,onWidgetInit:g.a.func,containerCls:g.a.string,contextCls:g.a.string,extraWidgetProperties:g.a.object,windowDimensions:g.a.object,fallbackComponent:g.a.object,layoutOption:g.a.object,fiDomainInfo:g.a.object,sourceUrl:g.a.string,name:g.a.string,isIFrame:g.a.bool,widgetProperties:g.a.array},E.defaultProps={fiDomainInfo:w.a.getFIDomainInfo()}},1532:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));var o=n(191),i=n(1415),r=function(e,t){var n=[],o=(null!==e&&void 0!==e?e:{}).globalNav,i=(null!==o&&void 0!==o?o:{}).menu;
1return i&&i.forEach((function(e){if(e.locale){var o,i=e.label,r=e.locale;i&&(o=i[t]),n.push({locale:r,displayText:o})}})),n},a=function(e,t){var n=function(n){var o=document.getElementById("loginApp"),i=e.FiIdForMS,r=e.UserGuidForMS;if("remove"===n&&(i=void 0,r=void 0),window.UserGuidForMS=r,window.FiIdForMS=i,o){var a="remove"===n?"remove":"add";o.classList[a]("login-renderer-wrapper"),window.AbortController||o.classList[a]("login-renderer-unsupported"),t&&o.classList[a]("login-renderer-legacy")}};return function(){return n("add"),function(){n("remove")}}},c=function(e,t,n,r){return function(){var a=e,c=(null!==a&&void 0!==a?a:{}).userLockedMessage;if(a.error&&a.userLocked&&t&&c&&-1!==c.indexOf("<a")){n(!0);var s=(null!==t&&void 0!==t?t:{}).links,l=(null!==s&&void 0!==s?s:[]).find((function(e){return"forgottenLoginLinkLabel"===e.propertyName})),u=!!l,d=(null!==l&&void 0!==l?l:{}).link,p=void 0===d?"":d;if(r){var g=window.di,f="".concat((void 0===g?{}:g).env.context,"/app/get-login-config-messages?forgotPasswordLink=").concat(encodeURIComponent(p),"&isForgotPasswordEnabled=").concat(u);fetch(f,{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){var t=e.headers.get("content-type");return 200===e.status&&t&&-1!==t.indexOf("application/json")?e.json():Promise.reject()})).then((function(e){a.userLockedMessage=e.userLockedMessage,n(!1)})).catch((function(e){console.log("error getting messages",e),n(!1)}))}
1else o.a.getLoginConfigMessages({isForgotPasswordEnabled:u,forgotPasswordLink:r?p:Object(i.a)(p,!0)}).then((function(e){a.userLockedMessage=e.userLockedMessage,n(!1)})).catch((function(e){console.log("error getting messages",e),n(!1)}))}}},s=function(){var e,t,n,o,i=(null!==(e=null===(t=window)||void 0===t||null===(n=t.di)||void 0===n?void 0:n.env)&&void 0!==e?e:{}).locale;return"true"===(null===(o=sessionStorage)||void 0===o?void 0:o.getItem("modernCSSenabled"))?i&&"en_US"!==i?"login_help_".concat(i.substring(0,2),"-modern"):"login_help-modern":i&&"en_US"!==i?"login_help_".concat(i.substring(0,2)):"login_help"}},1915:function(e,t,n){},1916:function(e,t,n){},1917:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return loadExperienceAspects}));var processedAspectIds=new Set,isValidAspectId=function(e){return"string"===typeof e||"number"===typeof e},isValidSourceSnippet=function(e){return"string"===typeof e&&e.length>0},runAspectSnippets=function runAspectSnippets(aspects){aspects.forEach((function(aspect,index){if(aspect&&"object"===typeof aspect){var sourceSnippet=aspect.sourceSnippet,id=aspect.id,name=aspect.name;if(isValidAspectId(id))if(isValidSourceSnippet(sourceSnippet)){if(!processedAspectIds.has(id))try{eval(sourceSnippet),processedAspectIds.add(id),console.log("Executed aspect id: ".concat(id,", name: ").concat(name))}catch(e){console.warn("Error executing aspect id: ".concat(id,", name: ").concat(name," error: ").concat(e))}}else console.warn("Invalid source snippet for aspect with id ".concat(id,", skipping."));else console.warn("Invalid or missing aspect id at index ".concat(index,", skipping."))}}))},loadExperienceAspects=function(e){null!=e&&(Array.isArray(e)?0!==e.length&&runAspectSnippets(e):console.warn("Unsupported aspects payload type, skipping."))}},2313:function(e,t,n){"use strict";n.r(t);var o=n(18),i=n(0),r=n.n(i),a=n(1522),c=n(1847),s=n(25),l=n.n(s),u=(n(1915),n(1916),n(2392)),d=n(2318),p=n(524),g=n(46),f=n(43),m=n(61),v=n(191),b=function(e){var t=Object(i.useState)(void 0),n=Object(o.a)(t,2),r=n[0],a=n[1],c=Object(i.useState)(!0),s=Object(o.a)(c,2),l=s[0],u=s[1],d=Object(i.useState)(void 0),p=Object(o.a)(d,2),b=p[0],w=p[1],h=e||{},y=h.methodName,j=h.params,O=void 0===j?[]:j,E=function(){var e=Object(m.a)(Object(g.a)().mark((function e(){var t,n,o;return Object(g.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(t=v.a[y]).bind.apply(t,[v.a].concat(Object(f.a)(O))),e.next=4,n();case 4:o=e.sent,a(o),u(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),w(e.t0),u(!1);case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();return Object(i.useEffect)((function(){E()}),[]),{response:r,isLoading:l,error:b}},w=n(1532),h=n(1917),y=n(1415),j={loadErrorTitle:"Error",loadErrorMessage:"Error loading widget"},O=function(){return r.a.createElement(d.a,{msg:"Please try your request again later. If this issue persists, please contact our support desk.",title:"Something Went Wrong."})},E=function(e){var t,n,s,l=e.footerConfig,d=e.legacyFooterConfig,g=e.config,f=e.onLoginSubmit,m=e.navigationData,v=e.onLocaleSelect,E=e.isSubmittingLogin,S=e.isLegacy,k=e.ibguid,L=Object(i.useState)([]),_=Object(o.a)(L,2),C=_[0],x=_[1],I=Object(i.useState)(!1),P=Object(o.a)(I,2),U=P[0],A=P[1],T=g.locale,F=(void 0===T?"en_US":T)||"en_US",D=b({methodName:"getLoginConfig"}),N=D.response,W=D.isLoading,M=D.error,z=null===N||void 0===N?void 0:N.retail,R=null===N||void 0===N?void 0:N.fdicConfiguration,V=null===z||void 0===z||null===(t=z.pages)||void 0===t?void 0:t[0];Object(i.useEffect)((function(){var e=null===V||void 0===V?void 0:V.aspects;e&&Object(h.a)(e)}),[V]);var q=(null!==(n=null===V||void 0===V?void 0:V.links)&&void 0!==n?n:[]).find((function(e){return"forgottenLoginLinkLabel"===e.propertyName})),B=null===q||void 0===q||null===(s=q.link)||void 0===s?void 0:s.includes("nxg-olb");Object(i.useEffect)((function(){return function(){B&&p.z()}}),[B]),Object(i.useEffect)((function(){if(k){var e=window.location,t=g.timeout,n=g.logout,o=(null!==e&&void 0!==e?e:{}).href,i=t;if(i||(i=null!==n&&void 0!==n?n:""),o&&-1===o.indexOf("ibguid")){var r=-1===o.indexOf("?")?"?":"&",a="".concat(o).concat(r,"reason=").concat(i,"&ibguid=").concat(k);window.history.replaceState(void 0,"",a)}}}),[]),Object(i.useEffect)((function(){x(Object(w.a)(m,F))}),[m,F]),Object(i.useEffect)(Object(w.c)(g,S),[]);if(Object(i.useEffect)(Object(w.b)(g,V,A,S),[g.error,g.userLocked,V]),W||U)return r.a.createElement(u.a,null);
1if(M)return O();if(!V)return O();var G=null===z||void 0===z?void 0:z.theme,J=(null!==V&&void 0!==V?V:{}).sourceUrl;return r.a.createElement(r.a.Fragment,null,E&&r.a.createElement("div",{className:"login-renderer-overlay"},r.a.createElement(u.a,null)),r.a.createElement(a.a,{containerCls:"dbk-login-web",messages:j,extraWidgetProperties:{locale:F,legacyLoginConfig:g,supportedLocales:C,loginConfig:V,fdicConfig:R,theme:G,uiConfig:{experienceServiceUIBaseUrl:g.experienceServiceUIBaseUrl,olbUIBaseUrl:"/dbank/live/"},onLocaleSelect:function(e){v&&v(e)},onLinkSelect:function(e){!function(e,t,n){var o=(null!==e&&void 0!==e?e:{}).item,i=null!==o&&void 0!==o?o:{},r=i.propertyName,a=i.link;if(r&&"troubleTestingLinkTestLabel"===r)window.open("".concat(t.staticResourcesContext,"/static/html/").concat(Object(w.d)(),".html#compatibility_test"));else if(a){var c="",s=t.unAuthenticatedAllowedUser;"registerLinkLabel"===r&&s&&(c="?ui=new");var l=a;n||(l=Object(y.a)(a,!0)),window.location.href="".concat(l).concat(c||"")}}(e,g,S)},onLoginSubmit:function(e){!function(e,t,n,o){var i="".concat(e.context,"/app/initialLogin"),r=document.createElement("form");r.style.display="none";var a=function(e,t){var n=document.createElement("INPUT");n.name=e,n.value=t,n.type="hidden",r.appendChild(n)};r.method="POST",r.action=i,a("userid",t.username),a("password",t.password),document.body.appendChild(r),n?r.submit():o({target:{form:r}})}(g,e,S,f)},onWidgetInit:function(){p.r()&&p.s(p.a.Login)&&p.y({journeyType:p.a.Login,subpageType:p.b.Login,trigger:{"#login-form":"submit"},isPortScanningEnabled:!0},{continueExistingJourney:!0})}},sourceUrl:J}),S&&r.a.createElement(c.a,{footerConfig:l,legacyFooterConfig:d}))};E.propTypes={footerConfig:l.a.instanceOf(Object),legacyFooterConfig:l.a.instanceOf(Object),config:l.a.instanceOf(Object),navigationData:l.a.instanceOf(Object),isLegacy:l.a.bool,isSubmittingLogin:l.a.bool,onLoginSubmit:l.a.func,onLocaleSelect:l.a.func,ibguid:l.a.string};t.default=E}}]); 2//# sourceMappingURL=60.59f8429f.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.