1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c6a60885-a7b1-4120-9459-4b422f00e313",e._sentryDebugIdIdentifier="sentry-dbid-c6a60885-a7b1-4120-9459-4b422f00e313")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6799],{5741:e=>{e.exports={subtitle:"AddToWalletCard_subtitle__BNn4Y",options:"AddToWalletCard_options__8xC9F",option:"AddToWalletCard_option__0Cl47",logo:"AddToWalletCard_logo__myghY",logoIcon:"AddToWalletCard_logoIcon__8DrJU",logoText:"AddToWalletCard_logoText__Fg0jZ",appleLogo:"AddToWalletCard_appleLogo__oHvnY",optionDescription:"AddToWalletCard_optionDescription__Ju5z7",appleButton:"AddToWalletCard_appleButton__7NMcH",appleButtonIcon:"AddToWalletCard_appleButtonIcon__htwht",appleButtonText:"AddToWalletCard_appleButtonText__qZeRt",appleButtonAdd:"AddToWalletCard_appleButtonAdd__ahc3m",appleButtonWallet:"AddToWalletCard_appleButtonWallet__Alw3q"}},13848:e=>{e.exports={"ellipse-spacer":"CrossSellCard_ellipse-spacer__UY24k","cross-sell-card-container":"CrossSellCard_cross-sell-card-container__ZVSyN","card-content":"CrossSellCard_card-content__xUVed","card-title":"CrossSellCard_card-title__qgig0","details-row":"CrossSellCard_details-row__covGb","detail-text":"CrossSellCard_detail-text__tFysk","icon-container-circle":"CrossSellCard_icon-container-circle__PVRwp"}},20162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>el});var i=n(67059),o=n(26514),l=n(89642),a=n(11538),s=n(94956),r=n(17375),c=n(39072),d=n(44455),u=n(46225),p=n.n(u),m=n(75834),g=n(56144),h=n(93477),_=n(75917);let x=e=>{let{text:t,children:n}=e,{l10n:i}=(0,l.B2)(),{copy:s,status:r}=(0,_.A)(t,{successMessage:i.getString("copied-clipboard-text-success")||"Copied!",pendingMessage:i.getString("copied-clipboard-text-pending")||"Click to copy",resetDelay:2e3});return(0,o.jsx)("span",{role:"button",className:"copyable-text",onClick:s,tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s())},children:(0,o.jsx)(a.Tooltip,{text:r,children:(0,o.jsx)("span",{children:n||t})})})},v={google:{src:new n.U(n(25878)).href,alt:"Add to Google Wallet"}},f=e=>{let{walletType:t,onClick:n,disabled:i=!1}=e,l=v[t];return l?(0,o.jsx)("button",{type:"button",onClick:n,disabled:i,className:"nds-button nds-button--plain","aria-label":l.alt,style:{padding:0,border:"none",background:"transparent"},children:(0,o.jsx)("img",{src:l.src,alt:l.alt})}):null};var y=n(5741),b=n.n(y);let j=e=>{let{onAddToGoogleWallet:t}=e,{l10n:n}=(0,l.B2)(),[i,s]=(0,m.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"margin--top--l",children:(0,o.jsx)(a.ContentCard,{paddingSize:"none",radiusSize:"m",children:(0,o.jsxs)("div",{className:"padding--top--m padding--bottom--m padding--left--m padding--right--m fontColor--theme--primary shaded-container cta-container",children:[(0,o.jsxs)("div",{className:"cta-text-content",children:[(0,o.jsx)("div",{className:"fontWeight--bold cta-title",style:{color:"var(--theme-primary)"},children:n.getString("submitted-add-to-wallet-title",null,"Good news!")}),(0,o.jsx)("div",{className:"fontWeight--semibold fontColor--secondary cta-description",children:n.getString("submitted-add-to-wallet-description",null,"You can start using your card today with Google Wallet or Apple Wallet.")})]}),(0,o.jsxs)(a.Button,{onClick:()=>s(!0),size:"s",kind:"primary",children:[n.getString("submitted-add-to-wallet-button",null,"Add to wallet"),(0,o.jsx)("span",{className:"narmi-icon-arrow-right margin--left--m"})]})]})})}),(0,o.jsx)(c.lG,{isOpen:i,onUserDismiss:()=>s(!1),title:n.getString("submitted-add-to-wallet-modal-title",null,"Add to digital wallet"),children:(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:b().subtitle,children:n.getString("submitted-add-to-wallet-modal-subtitle",null,"Start using it in-store and online today")}),(0,o.jsxs)("div",{className:b().options,children:[(0,o.jsx)(a.ContentCard,{paddingSize:"l",radiusSize:"m",kind:"bordered",children:(0,o.jsxs)("div",{className:b().option,children:[(0,o.jsxs)("div",{className:b().logo,children:[(0,o.jsx)("img",{src:"https://www.gstatic.
1com/images/branding/product/1x/googleg_48dp.png",alt:"Google",className:b().logoIcon}),(0,o.jsx)("span",{className:b().logoText,children:"Pay"})]}),(0,o.jsx)("p",{className:b().optionDescription,children:n.getString("submitted-add-to-wallet-modal-google-description",null,"Add your card to Google Pay using your Google account")}),(0,o.jsx)(f,{walletType:"google",onClick:t})]})}),(0,o.jsx)(a.ContentCard,{paddingSize:"l",radiusSize:"m",kind:"bordered",children:(0,o.jsxs)("div",{className:b().option,children:[(0,o.jsxs)("div",{className:b().logo,children:[(0,o.jsx)("span",{className:b().appleLogo,children:""}),(0,o.jsx)("span",{className:b().logoText,children:"Pay"})]}),(0,o.jsx)("p",{className:b().optionDescription,children:n.getString("submitted-add-to-wallet-modal-apple-description",null,"Add your card to Apple Pay using your Apple ID")}),(0,o.jsxs)("button",{type:"button",className:b().appleButton,"aria-label":"Add to Apple Wallet",disabled:!0,children:[(0,o.jsx)("span",{className:b().appleButtonIcon,children:""}),(0,o.jsxs)("span",{className:b().appleButtonText,children:[(0,o.jsx)("span",{className:b().appleButtonAdd,children:"Add to"}),(0,o.jsx)("span",{className:b().appleButtonWallet,children:"Apple Wallet"})]})]})]})})]})]})})]})},w=e=>{if("string"==typeof e&&e)return e;if(e&&"object"==typeof e&&"value"in e){let t=e.value;return"string"==typeof t&&t?t:void 0}};var S=n(85556),N=n(13848),k=n.n(N),C=n(59032),T=n(44803);let A="We couldn't start your application right now. Please try again later.",O=e=>{let{crossSell:t,postSubmissionToken:n}=e,{handleCrossSellClick:i}=function(e){let{sendNegativeNotification:t}=(0,T.M)(),{institution:n}=(0,h.Xn)();return{handleCrossSellClick:async i=>{let{link_url:o,product:l,product_type:a}=i;if(l&&a){let i=(e=>{switch(e){case"personal_loan":return"personal_loan_applications";case"credit_card":return"credit_card_applications";case"vehicle_loan":return"vehicle_loan_applications";default:return null}})(a),o=(e=>{switch(e){case"personal_loan":return"olb-personal-loan";case"credit_card":return"olb-credit-card";case"vehicle_loan":return"olb-auto-loan";default:return null}})(a);if(!i||!o){console.error("Unknown product type: ".concat(a)),C.wd("AO cross-sell has unknown product type",{extra:{productType:a,product:l}}),t(A);return}if(!n.lending_url){console.error("No lending URL configured for institution"),C.wd("AO cross-sell is missing institution lending_url",{extra:{productType:a,endpoint:i,route:o}}),t(A);return}if(!e){console.error("No post submission token"),C.wd("AO cross-sell is missing post submission token",{extra:{productType:a,endpoint:i,route:o,lendingUrl:n.lending_url}}),t(A);return}let s={"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},r=await fetch("".concat("https://api.saversbank.com","/v1/csrf"),{method:"GET",headers:s,credentials:"include"});if(!r.ok){console.error("Failed to fetch CSRF token:",r.statusText),C.wd("AO cross-sell failed to fetch CSRF token",{extra:{productType:a,endpoint:i,route:o,lendingUrl:n.lending_url,status:String(r.status),statusText:r.statusText}}),t(A);return}let c=r.headers.get("x-csrftoken");if(!c){console.error("No CSRF token in response"),C.wd("AO cross-sell CSRF response missing token",{extra:{productType:a,endpoint:i,route:o,lendingUrl:n.lending_url}}),t(A);return}s["X-CSRFToken"]=c;let d=await fetch("".concat("https://api.saversbank.com","/v2/lending/").concat(i,"/from_applicant/"),{method:"POST",headers:s,credentials:"include",body:JSON.stringify({product:l})});if(d.ok){let e=await d.json(),l=e.uuid||e.id;if(!l){console.error("No application UUID in cross-sell response"),C.wd("AO cross-sell lending response missing application UUID",{extra:{productType:a,endpoint:i,route:o,lendingUrl:n.lending_url}}),t(A);return}let s=n.lending_url.replace(/\/+$/,"");window.location.href="".concat(s,"/").concat(o,"/").concat(l,"/confirm-info")}else console.error("Failed to create application from cross-sell:",d.statusText),C.wd("AO cross-sell failed to create lending application",{extra:{productType:a,endpoint:i,route:o,lendingUrl:n.lending_url,status:String(d.status),statusText:d.statusText}}),t(A);return}o&&window.open(o,"_blank","noopener,noreferrer")}}}(n),{m:l}
1=(0,a.useBreakpoints)();return(0,o.jsx)("div",{className:k()["cross-sell-card-container"],children:(0,o.jsx)(a.ContentCard,{paddingSize:"l",kind:"button",onClick:()=>i(t),children:(0,o.jsxs)(a.Row,{gapSize:l?"m":"s",children:[(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)("div",{className:k()["icon-container-circle"],children:(0,o.jsx)("span",{className:"narmi-icon-".concat(t.logo," fontSize--heading3 fontColor--theme--primary")})})}),(0,o.jsxs)(a.Row.Item,{className:k()["card-content"],children:[(0,o.jsx)("div",{className:"fontWeight--bold fontColor--theme--primary ".concat(k()["card-title"]),style:{fontSize:l?"18px":"16px"},children:t.name}),(0,o.jsx)("div",{className:"margin--top--xs",children:(0,o.jsx)(a.Row,{gapSize:"xs",alignItems:"center",className:k()["details-row"],children:t.details.map((e,n)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)("span",{className:"margin--top--xs fontSize--s ".concat(k()["detail-text"]),children:e},e)}),n<t.details.length-1&&(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)("div",{className:k()["ellipse-spacer"]})})]}))})})]}),l&&(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)(a.Button,{size:"xs",kind:"tonal",label:t.call_to_action_copy,testId:"crosssell-call-to-action"})})]})})})},I=e=>{let{postSubmissionToken:t}=e,{crossSells:n}=function(){let[e,t]=(0,m.useState)([]);return(0,m.useEffect)(()=>{(async()=>{let e=await fetch("".concat("https://api.saversbank.com","/v2/lending/cross_sells/"),{method:"GET",headers:{"Content-Type":"application/json"}});e.ok&&t((await e.json()).results)})()},[]),{crossSells:e}}();return 0===n.length?null:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"cross-sell-container",children:[(0,o.jsx)("div",{className:"fontWeight--bold fontColor--heading",style:{fontSize:"18px"},children:(0,o.jsx)(l.Oj,{id:"cross-sell-title",children:"Recommended for you"})}),(0,o.jsx)("div",{className:"margin--top--l",children:n.map(e=>(0,o.jsx)(O,{crossSell:e,postSubmissionToken:t},e.id))})]})})},E=e=>{var t;let{postSubmissionToken:n}=e,{institution:i}=(0,h.Xn)();return!S.G8&&(null==i||null==(t=i.features)?void 0:t.cross_sells)?(0,o.jsx)(I,{postSubmissionToken:n}):null};var W=n(69718),D=n(32250),B=n(27393),P=n.n(B);let R=e=>{let{onClick:t}=e;return(0,o.jsx)("div",{className:P()["direct-deposit-card-container"],children:(0,o.jsx)(a.ContentCard,{paddingSize:"l",kind:"button",onClick:t,children:(0,o.jsxs)(a.Row,{children:[(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)("div",{className:P()["icon-container-circle"],children:(0,o.jsx)("span",{className:"narmi-icon-wires fontSize--heading2 fontColor--theme--primary"})})}),(0,o.jsxs)(a.Row.Item,{children:[(0,o.jsx)("div",{className:"fontWeight--semibold fontColor--heading fontSize--m",children:(0,o.jsx)(l.Oj,{id:"direct-deposit-title",children:"Set up direct deposit"})}),(0,o.jsx)("div",{className:"margin--top--xs",children:(0,o.jsx)("span",{className:"margin--top--xs fontColor--secondary",style:{fontSize:"14px"},children:(0,o.jsx)(l.Oj,{id:"direct-deposit-description",children:"Get your paycheck up to 2 days early"})})})]}),(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsx)("span",{className:"narmi-icon-arrow-right fontColor--primary fontSize--heading3"})})]})})})};var z=function(){return(z=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},G={url:"https://cdn.getpinwheel.com/pinwheel-v3.2.1.js",integrity:"sha512-8nhGWIhOylUp6xOo8uya8DmHTs69mviBEzqFg9v08nPvOERw+0wVGxOWBvWAwrBsCSm76UqIFY7PoggwSBhzsA=="},U="3.5.1".split(/\.|-/).map(Number),F={major:U[0],minor:U[1],patch:U[2]},M=G.url,L=G.integrity,Y=function(e,t,n){var i=document.createElement("script");if(i.async=!0,i.type="application/javascript",t)i.src=t;else{i.crossOrigin="anonymous",i.integrity=L;var o=["sandbox=true"];n&&o.push("useSecureOrigin=true"),i.src="".concat(M,"?").concat(o.join("&"))}return document.body.appendChild(i),i.addEventListener("load",function(){return e()}),i},q=function(e){var t=e.open,n=e._srcUrl,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}(e,["open","_srcUrl"]),o=e._modalSessionIdOverride,l=e._sdkOverride,a=m.useState(!1),s=a[0],r=a[1],c=m.useState(!1),d=c[0],u=c[1],p=m.useState(),g=p[0],h=p[1];return m.useEffect(function(){delete window.Pinwheel,r(!1),document.querySelectorAll(".pinwheel-portal").forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),h(Y(function(){return r(!0)},n,i.useSecureOrigin))},[n,i.useSecureOrigin,r]),m.useEffect(function(){g&&g.parentNode&&g.parentNode.removeChild(g)},[n]),m.useEffect(function(){s&&(t&&!d?(Pinwheel.open(z(z({_versionOverride:F,_sdkOverride:l||"react"},i),{_modalSessionIdOverride:o})),u(!0)):!t&&d&&(Pinwheel.close(),u(!1)))},[t,d,u,s]),m.createElement("div",null)};let V=e=>{let{open:t,linkToken:n,onSuccess:i,onExit:l}=e;return(0,o.jsx)(q,{open:t,linkToken:n,onSuccess:i,onExit:l})},X=e=>{let{onDirectDepositClick:t,pinwheelEventHandlers:n}=e;return(0,o.jsxs)("div",{className:"margin--top--xxl",children:[(0,o.jsx)("div",{className:"fontWeight--bold fontColor--heading margin--bottom--l",style:{fontSize:"18px"},children:(0,o.jsx)(l.Oj,{id:"explore-benefits-title",children:"Explore benefits"})}),(0,o.jsx)(R,{onClick:t}),(0,o.jsx)(V,{open:n.open,linkToken:n.linkToken,onSuccess:n.onSuccess,onExit:n.onExit})]})},H=e=>{var t,n;let{application:i,postSubmissionToken:a}=e,{institution:s}=(0,h.Xn)(),{sendNotification:r}=(0,c.M)(),{ssoToggleModalHandler:d,pinwheelEventHandlers:u}=(e=>{let{applicationId:t,postSubmissionToken:n}
1=e,[i,o]=(0,m.useState)(!1),[a,s]=(0,m.useState)(!1),[r,d]=(0,m.useState)(""),u=(0,m.useRef)(!1),{l10n:p}=(0,l.B2)(),{sendNotification:g}=(0,c.M)(),h=(0,m.useCallback)(async()=>{if(t){o(!0);try{let e=await W.Yn.createSSOToken(t,n);if(!e.token||"string"!=typeof e.token||""===e.token.trim())throw Error("Invalid or empty SSO token received from backend");d(e.token),s(!0)}catch(e){g({type:"error",text:p.getString("direct-deposit-setup-error")||"Failed to set up direct deposit. Please try again."})}finally{o(!1)}}},[t,n]),_=(0,m.useCallback)(()=>{s(!1),d(""),u.current&&(g({type:"success",text:p.getString("direct-deposit-setup-success")||"Direct deposit has been set up successfully!"}),u.current=!1)},[]),x=(0,m.useMemo)(()=>({open:a,linkToken:r,onSuccess:()=>{u.current=!0},onExit:_}),[a,r,_]);return{isLoading:i,ssoToggleModalHandler:(0,m.useCallback)(async()=>{await h()},[h]),pinwheelEventHandlers:x}})({applicationId:i.id,postSubmissionToken:a}),p=null==s||null==(t=s.features)?void 0:t.direct_deposit,g=(null==s?void 0:s.cao_direct_deposit_provider)!=="none";if(S.G8||!p||i.state!==D.gI.OPENED)return null;let _=(null==s?void 0:s.cao_direct_deposit_eligible_product_types)||[];return(null==(n=i.selected_products)?void 0:n.some(e=>_.includes(e.category)))?(0,o.jsx)(X,{application:i,onDirectDepositClick:()=>{if(p&&!g)return void r({type:"negative",text:"Direct deposit service is temporarily unavailable. Please contact support."});d()},pinwheelEventHandlers:u}):null};var J=n(37535),Z=n(74052),K=n(5443),Q=n(52299);let $=e=>{let{name:t,value:n,isSubInfo:i=!1,showCopyButton:l=!1}=e;return(0,o.jsxs)("div",{className:(0,d.A)(["info-row",{"sub-info":i}]),style:{width:"100%",maxWidth:"100%",minWidth:0},children:[(0,o.jsx)("div",{children:t}),(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:l&&n?(0,o.jsx)(x,{text:n,children:n}):(0,o.jsx)("div",{children:n})})]})},ee=e=>{var t,n;let{products:d,institution:u,onClickEnroll:p,application:g,isExisting:h,primaryProduct:_,memberNumbers:x,postSubmissionToken:v}=e,f=d.some(e=>{var t;return null==(t=e.account)?void 0:t.account_number_primary}),y=d.some(e=>{var t,n;return(null==(t=e.account)?void 0:t.micr)||(null==(n=e.account)?void 0:n.check_micr)}),b=d.some(e=>"certificate_of_deposit"===e.category),N=d.find(e=>{var t;return null==(t=e.features)?void 0:t.debit_card}),k=null==N||null==(t=N.account)?void 0:t.card_id,C=u.web_push_provisioning_config,T=(null==(n=u.features)?void 0:n.web_push_provisioning)===!0,A=["production_using_test_card","test_using_test_card"].includes((null==C?void 0:C.google_environment)||""),O=(null==C?void 0:C.google_environment)!=="production_using_test_card"||(null==C?void 0:C.application_uuid)===g.id,I=!S.G8&&T&&!!(null==C?void 0:C.google_integrator_id)&&!!N&&O&&(A||!!k),{handleAddToGoogleWallet:E}=((e,t,n,o)=>{let a=(0,m.useRef)(!1),{sendNotification:s}=(0,c.M)(),{l10n:r}=(0,l.B2)();return{handleAddToGoogleWallet:(0,m.useCallback)(()=>{var l,c;if(!window.googlepay||!(null==t?void 0:t.google_integrator_id)||a.current)return;let d=["production_using_test_card","test_using_test_card"].includes(t.google_environment);if(!n&&!d)return void s({type:"negative",text:r.getString("submitted-add-to-wallet-error-card-not-ready",null,"Your card isn't ready for digital wallet setup yet. Please try again later or contact us for help.")});if(!o)return;a.current=!0;let u=(null==(l=e.applicants)?void 0:l.find(e=>e.is_primary))||(null==(c=e.applicants)?void 0:c[0]),p=u?"".concat(u.first_name||""," ").concat(u.last_name||"").trim():"Cardholder",m=null==u?void 0:u.address,g=!["production","production_using_test_card"].includes(t.google_environment);try{window.googlepay.openAppWindow({integratorId:t.google_integrator_id,tokenSetting:1,cardSetting:1,isTestEnvironment:g,clientSessionId:"".concat(e.id,"_").concat(Date.now()),hl:"en-US",onSessionCreated:e=>{let t=e.tokenSetting,l=w(e.publicWalletId),c=w(e.publicDeviceId);if(1!==t||!l||!c)return void(()=>{var e,t;s({type:"negative",text:r.getString("submitted-add-to-wallet-error-provisioning-failed",null,"We couldn't add your card to Google Wallet. Please try again or c
1ontact us for help.")}),null==(t=window.googlepay)||null==(e=t.closeAppWindow)||e.call(t),a.current=!1})();let d="https://api.saversbank.com",u={Authorization:"Bearer ".concat(o)};fetch("".concat(d,"/v1/csrf"),{credentials:"include",headers:u}).then(e=>{if(!e.ok)throw Error("CSRF preflight failed: ".concat(e.status));let t=e.headers.get("x-csrftoken");if(!t)throw Error("CSRF token header missing from response");return fetch("".concat(d,"/v1/account_opening/google_web_push_provisioning"),{method:"POST",credentials:"include",headers:(0,i._)({"Content-Type":"application/json","x-csrftoken":t},u),body:JSON.stringify({card_id:n,client_customer_id:l,device_id:c})})}).then(e=>e.ok?e.json():e.text().then(t=>{throw Error("Provisioning request failed: ".concat(e.status," - ").concat(t))})).then(e=>{var n,i;let o={cardholderName:p,displayName:"Visa â¢â¢â¢â¢ ".concat(e.last4||""),lastDigits:e.last4||"",userAddress:{name:p,addressLines:[null==m?void 0:m.street_address,null==m?void 0:m.street_address_2].filter(Boolean),localityName:(null==m?void 0:m.city)||"",administrativeAreaName:(null==m?void 0:m.region_code)||"",postalCodeNumber:(null==m?void 0:m.postal_code)||"",countryCode:(null==m?void 0:m.country_code)||"US"}};1===t&&(o.tokenCredentials={cardNetwork:"CARD_NETWORK_VISA",tokenServiceProvider:"TOKEN_PROVIDER_VISA",opaquePaymentCard:e.opaquePaymentCard}),null==(i=window)||null==(n=i.googlepay)||n.pushPaymentCredentials(o)}).catch(()=>{s({type:"negative",text:r.getString("submitted-add-to-wallet-error-provisioning-failed",null,"We couldn't add your card to Google Wallet. Please try again or contact us for help.")}),a.current=!1})},onSuccess:()=>{a.current=!1},onFailure:()=>{s({type:"negative",text:r.getString("submitted-add-to-wallet-error-provisioning-failed",null,"We couldn't add your card to Google Wallet. Please try again or contact us for help.")}),a.current=!1},onCancel:()=>{a.current=!1},onFinish:()=>{a.current=!1}})}catch(e){s({type:"negative",text:r.getString("submitted-add-to-wallet-error-provisioning-failed",null,"We couldn't add your card to Google Wallet. Please try again or contact us for help.")}),a.current=!1}},[e,t,n,o,s,r])}})(g,C,k,v),{l10n:W}=(0,l.B2)(),D=h||g.isAOIOB()?(0,r.io)("oao-success-screen-existing-customer-cta",u.dao_success_screen_cta_returning_member,W):(0,r.io)("oao-success-screen-new-member-cta",u.dao_success_screen_cta_new_member,W);return(0,o.jsx)("div",{className:"accounts-content-container",children:(0,o.jsxs)(a.ContentCard,{paddingSize:"l",kind:"bordered",children:[(0,o.jsxs)(a.Row,{children:[(0,o.jsx)(a.Row.Item,{children:(0,o.jsx)("div",{className:"fontWeight--bold fontColor--heading fontSize--m",children:d.length>1?"Accounts":"Account"})}),(0,o.jsx)(a.Row.Item,{shrink:!0,children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"var(--color-grey)"},children:[(0,o.jsx)("div",{className:"account-opened-status"}),(0,o.jsx)("span",{className:"fontSize--s fontWeight--semibold",children:"Active"})]})})]}),"credit_union"===u.type&&_&&["",null].every(e=>e!==x())&&(0,o.jsx)("div",{className:"margin--top--l",children:(0,o.jsx)(a.ContentCard,{paddingSize:"m",kind:"bordered",children:(0,o.jsx)($,{name:W.getString("submitted-info-member-number",null,"Member number"),value:x()})})}),(0,o.jsx)("div",{className:"margin--top--l",children:d.map((e,t)=>{var n,i,l,r,c,p,m,g,h,_,x,v,j,w,S,N,k,C,T,A,O;return(0,o.jsx)("div",{className:t<d.length-1?"margin--bottom--m":"",children:(0,o.jsx)("div",{children:(0,o.jsxs)(a.ContentCard,{paddingSize:"m",kind:"bordered",children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,o.jsx)("div",{style:{flex:1,minWidth:0},children:(0,o.jsx)($,{name:e.name||"",value:"".concat(s.A.currency(e.amount,{hasDecimal:!0}))})}),(0,o.jsxs)("div",{className:"margin--top--s",style:{flex:1,minWidth:0},children:[f&&(null==(n=u.approved_screen_enable_account_info)?void 0:n.account_number)&&(0,o.jsx)($,{name:W.getString("submitted-info-account-number",null,"Account number"),value:(null==(i=e.account)?void 0:i.account_number_primary)||(null==(l=e.account)?void 0:l.micr)||(null==(r=e.account)?void 0:r.check_micr)||"N/A",isSubInfo:!0,showCopyButton:!0}),y&&(null==(c=u.approved_screen_enable_account_info)?void 0:c.direct_deposit_number)&&!(null==(p=e.metadata)?void 0:p.hide_direct_deposit_number)&&(0,o.jsx)($,{name:W.getString("submitted-info-micr",null,"Direct deposit number"),value:"".concat((null==(m=e.account)?void 0:m.micr)||(null==(g=e.account)?void 0:g.check_micr)||"N/A").concat((null==(h=e.metadata)?void 0:h.direct_deposit_suffix)?"".concat(null==(_=e.metadata)?void 0:_.direct_deposit_suffix):""),isSubInfo:!0,showCopyButton:!0}),(f||y)&&(null==(x=u.approved_screen_enable_account_info)?void 0:x.routing_number)&&(0,o.jsx)($,{name:W.getString("submitted-info-routing-number",null,"Routing number"),value:u.routing_number||"",isSubInfo:!0,showCopyButton:!0})]})]}),u.submitted_screen_show_account_info_for_cds&&b&&(0,o.jsxs)(o.Fragment,{children:[(null==(v=e.account)?void 0:v.issue_date)&&(0,o.jsx)($,{name:W.getString("submitted-info-cd-issue-date",null,"Issue date"),value:null==(j=e.account)?void 0:j.issue_date,isSubInfo:!0}),(null==(w=e.account)?void 0:w.rate)&&(0,o.jsx)($,{name:W.getString("submitted-info-cd-rate",null,"Rate"),value:null==(S=e.account)?void 0:S.rate,isSubInfo:!0}),(null==(N=e.account)?void 0:N.term)&&(0,o.jsx)($,{name:W.getString("submitted-info-cd-term",null,"Term"),value:null==(k=e.account)?void 0:k.term,isSubInfo:!0}),(null==(C=e.account)?void 0:C.maturity_date)&&(0,o.jsx)($,{name:W.getString("submitted-info-cd-maturity-date",null,"Maturity date"),value:null==(T=e.account)?void 0:T.maturity_date,isSubInfo:!0}),(null==(A=e.account)?void 0:A.cd_apy)&&(0,o.jsx)($,{name:W.getString("submitted-info-cd-apy",null,"APY"),value:null==(O=e.account)?void 0:O.cd_apy,isSubInfo:!0})]})]})})},e.name)})}),(0,o.jsx)("div",{className:"margin--top--l",children:(!g.isAOIOB()||!u.aoiob_hide_login_button||!S.G8&&D)&&(0,o.jsx)(a.ContentCard,{paddingSize:"none",children:(0,o.jsxs)("div",{className:"padding--top--m padding--bottom--m padding--left--m fontColor--theme--primary shaded-container cta-container",children:[(0,o.jsxs)("div",{className:"cta-text-content",children:[(0,o.jsx)("div",{className:"fontWeight--bold cta-title",children:(0,o.jsx)(l.Oj,{id:"ready-for-next-step",children:"Enroll in digital banking"})}),!S.G8&&D&&(0,o.jsx)("div",{className:"fontWeight--semibold fontColor--secondary cta-description",children:(0,o.jsx)(c.oz,{text:D})})]}),(!g.isAOIOB()||!u.aoiob_hide_login_button)&&(0,o.jsxs)(a.Button,{onClick:p,testId:"access-online-banking",size:"s",kind:"primary",children:[(()=>{var e;return g.isAOIOB()?W.getString("access-online-banking-aoiob",null,"Go to digital banking"):h?W.getString("access-online-banking-existing",null,"Log in to online banking"):(null==(e=u.features)?void 0:e.third_party_enrollment_api)?W.getString("access-online-banking-create-login"):W.getString("access-online-banking",null,"Get started")})(),(0,o.jsx)("span",{className:"narmi-icon-arrow-right margin--left--m"})]})]})})}),I&&(0,o.jsx)(j,{onAddToGoogleWallet:E})]})})};function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",n=window.open("",t);n?(n.document.open(),n.document.write(e),n.document.close()):alert("Popup blocked! Please allow popups for this site.")}let en=[{emailType:"documents-requested",shouldShow:e=>e.state===D.gI.DOCUMENTS_REQUESTED},{emailType:"account-denied",shouldShow:e=>e.state===D.gI.REJECTED},{emailType:"cd-account-opened",shouldShow:(e,t)=>{var n;
1return e.state===D.gI.OPENED&&null!=(n=t.submitted_screen_show_account_info_for_cds)&&n&&e.selected_products.some(e=>"certificate_of_deposit"===e.category)}},{emailType:"ira-account-opened",shouldShow:e=>e.state===D.gI.OPENED&&e.selected_products.some(e=>"ira"===e.category)},{emailType:"account-approved",shouldShow:e=>e.state===D.gI.OPENED},{emailType:"documents-in-review",shouldShow:e=>e.state===D.gI.DOCUMENTS_IN_REVIEW}],ei=e=>{let{emailType:t,application:n,isJoint:i=!1}=e,[l,s]=(0,m.useState)(null),{sendNotification:r}=(0,c.M)();return((0,m.useEffect)(()=>{(async()=>{try{let{email_html:e,subject:i,to_email:o}=await W.lR.getDevEmail(n.id,t);s({email_html:e,subject:i,to_email:o})}catch(e){r({type:"negative",text:"Something went wrong. ".concat(e)})}})()},[t,n.id]),l)?(0,o.jsx)(a.Alert,{isActive:!0,kind:"success",isDismissable:!1,icon:"-",children:(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:(0,o.jsxs)("span",{onClick:()=>et(l.email_html),onKeyDown:()=>et(l.email_html),style:{cursor:"pointer"},role:"presentation",children:["Click here to preview the ",i?"joint applicant ":"","email ",(0,o.jsx)("br",{}),"Email: ",l.to_email," ",(0,o.jsx)("br",{}),"Subject: ",l.subject]})})}):null},eo=e=>{let{application:t,institution:n}=e;if(!n.dao_send_email_testing_notifications)return null;let i=en.filter(e=>e.shouldShow(t,n));return 0===i.length?null:(0,o.jsx)("div",{children:i.map((e,n)=>(0,o.jsxs)("div",{className:n>0?"margin--top--l":"",children:[(0,o.jsx)(ei,{emailType:e.emailType,application:t}),t.applicants.length>1&&(0,o.jsx)(ei,{emailType:"".concat(e.emailType,"-joint"),application:t,isJoint:!0})]},e.emailType))})},el=()=>{var e,t,n,a,s,r,d,u,_,x,v,f,y,b,j,w;(0,Z.A)();let{l10n:N}=(0,l.B2)(),{application:k,institution:C,isExisting:T}=(0,h.Xn)(),[A,O]=(0,m.useState)(""),I=k.selected_products[0],{clearSelectedProducts:B}=(0,K.A)(),{sendNotification:P}=(0,c.M)(),{setIsLoading:R}=(0,c.nk)(),z=C.third_party_auto_enrollment_form_configuration||{};(0,m.useEffect)(()=>{var e;let t=async()=>{let e=await fetch("".concat("https://api.saversbank.com","/v1/account_opening/post_submission_token"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}});e.ok&&O((await e.json()).token)};(async()=>{k.state===D.gI.OPENED&&await t().catch(()=>{}),k.state!==D.gI.DOCUMENTS_REQUESTED&&(B(),W.jp.delete())})().catch(()=>{}),(null==(e=C.features)?void 0:e.ao_gtm_datalayer_funding_event)&&C.google_tag_manager_id&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"application_submitted",funding_amount:k.totalFundingAmount(),funding_products:k.selected_products.map(e=>({id:e.id,name:e.name,amount:e.amount||0,category:e.category}))}))},[B,k.state]);let G=async()=>{var e,t,n;if(null==(t=window.ReactNativeWebView)||null==(e=t.postMessage)||e.call(t,JSON.stringify({task:"MOBILE_NAVIGATE",route:"BottomTabNavigator"})),(null==(n=C.features)?void 0:n.third_party_enrollment_api)&&!T){R(!0);try{await W.lR.fetchThirdPartyEnrollment(k.id,(0,i._)({},k),A),p().push("/enrollment"),R(!1)}catch(e){e&&"string"==typeof e&&P({type:"negative",text:e})}return}if(C.third_party_auto_enrollment&&!T){let e=document.getElementById("form-auto-enrollment");e&&e.submit()}else window.open(U())},U=()=>T||k.isAOIOB()?S.G8?C.bao_success_screen_existing_customer_enroll_url:C.dao_success_screen_existing_customer_enroll_url:k.autopopulated_enrollment_link?k.autopopulated_enrollment_link:S.G8?C.bao_success_screen_new_customer_enroll_url:C.dao_success_screen_new_customer_enroll_url,F={DOB:e=>e.replaceAll("-","/")},M="".concat(k.applicants[0].first_name," ").concat(k.applicants[0].last_name),L=(null==I||null==(t=I.account)||null==(e=t.metadata)?void 0:e.member_numbers)&&(null==I||null==(a=I.account)||null==(n=a.metadata)?void 0:n.member_numbers[M])?null==I||null==(r=I.account)||null==(s=r.metadata)?void 0:s.member_numbers[M]:null==(_=k.selected_products)||null==(u=_[0])||null==(d=u.account)?void 0:d.account_number_primary;return k.state===D.gI.DOCUMENTS_REQUESTED?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Q.default,{})}):k.state===D.gI.SUBMITTED_PENDING_APPLICANTS_INFO?(0,o.jsxs)("div",{className:"nds-container narmi-grid padding--bottom--xxl",children:[(0,o.jsx)(eo,{application:k,institution:C}),(0,o.jsx)(c.iX,{institution:{name:C.long_name,logo:C.logo_url},className:"nds-navbar-logo"}),(0,o.jsx)("div",{style:{height:"60vh",paddingTop:"120px"},className:"alignChild--center--top grid-adjust",children:(0,o.jsxs)("div",{className:"submitted-container",children:[(0,o.jsxs)("div",{className:"icon-container",children:[(0,o.jsx)("div",{className:"blob",children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 150 150",fill:"none",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.6645 0.0195305C106.349 -0.78658 138.977 23.4409 148.334 57.8864C156.608 88.3471 132.703 114.826 106.721 132.75C83.1586 149.004 52.9328 156.214 29.3807 139.945C4.19928 122.55 -5.56762 90.5215 3.09307 61.1673C12.5968 28.9559 37.0889 0.777998 70.6645 0.0195305Z",fill:"#1A4338",fillOpacity:"0.2"})})}),(0,o.jsx)("div",{className:"checkicon",children:(0,o.jsx)("div",{className:"narmi-icon-check"})})]}),(0,o.jsx)("div",{className:"margin--top--xl"}),(0,o.jsx)(J.A,{title:N.getString("submitted-thank-you",null,"Thank you for applying!"),subTitle:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Oj,{id:"submitted-review-body-3",children:"We'll process your application once we receive information from all owners. You should hear back from us in 1-3 business days."}),(0,o.jsx)("div",{className:"margin--top--l"}),(0,o.jsx)(l.Oj,{id:"submitted-review-body-4",vars:{institutionHelpEmail:null!=(j=C.help_email)?j:""},elems:{emailLink:(0,o.jsx)("a",{href:"mailto:".concat(C.help_email)})},children:(0,o.jsx)("span",{children:"If you have any questions,\n please reach out to <emailLink>{$institutionHelpEmail}</emailLink>"})})]})})]})}),(0,o.jsx)(g.A,{})]}
1):k.state!==D.gI.OPENED?(0,o.jsxs)("div",{className:"nds-container narmi-grid padding--bottom--xxl",children:[(0,o.jsx)(eo,{application:k,institution:C}),(0,o.jsx)(c.iX,{institution:{name:C.long_name,logo:C.logo_url},className:"nds-navbar-logo"}),(0,o.jsx)("div",{style:{height:"60vh",paddingTop:"120px"},className:"alignChild--center--top grid-adjust",children:(0,o.jsxs)("div",{className:"submitted-container",children:[(0,o.jsxs)("div",{className:"icon-container",children:[(0,o.jsx)("div",{className:"blob",children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 150 150",fill:"none",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.6645 0.0195305C106.349 -0.78658 138.977 23.4409 148.334 57.8864C156.608 88.3471 132.703 114.826 106.721 132.75C83.1586 149.004 52.9328 156.214 29.3807 139.945C4.19928 122.55 -5.56762 90.5215 3.09307 61.1673C12.5968 28.9559 37.0889 0.777998 70.6645 0.0195305Z",fill:"#1A4338",fillOpacity:"0.2"})})}),(0,o.jsx)("div",{className:"checkicon",children:(0,o.jsx)("div",{className:"narmi-icon-check"})})]}),(0,o.jsx)("div",{className:"margin--top--xxl"}),(0,o.jsx)(J.A,{title:N.getString("submitted-thank-you",null,"Thank you for applying!"),subTitle:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Oj,{id:"submitted-review-body-1",children:"We'll review your application shortly and be in touch with a decision in 1-3 business days."}),(0,o.jsx)("div",{className:"margin--top--l"}),(0,o.jsx)(l.Oj,{id:"submitted-review-body-2",vars:{institutionHelpEmail:null!=(w=C.help_email)?w:""},elems:{emailLink:(0,o.jsx)("a",{href:"mailto:".concat(C.help_email)})},children:(0,o.jsx)("span",{children:"If you have any questions about your application status,\n don't hesitate to reach out to <emailLink>{$institutionHelpEmail}</emailLink>"})})]})})]})}),(0,o.jsx)(g.A,{})]}):(0,o.jsxs)("div",{className:"nds-container narmi-grid main-submitted-page",children:[(0,o.jsx)(eo,{application:k,institution:C}),(0,o.jsx)(c.iX,{institution:{name:C.long_name,logo:C.logo_url},className:"nds-navbar-logo"}),(0,o.jsx)("div",{className:"alignChild--center--center custom-y-padding",children:(0,o.jsxs)("div",{className:"submitted-container",children:[T||k.isAOIOB()?(0,o.jsx)(J.A,{align:"left",title:N.getString("submitted-existing-approved",{firstName:(null==(x=k.applicants[0])?void 0:x.first_name)||""},"You're approved, ".concat((null==(v=k.applicants[0])?void 0:v.first_name)||"","!")),subTitle:N.getString("submitted-existing-approved-subtitle",null,"Your account is open and ready. Let's finish your banking setup.")}):(0,o.jsx)(J.A,{align:"left",title:N.getString("submitted-approved",{firstName:(null==(f=k.applicants[0])?void 0:f.first_name)||""},"You're approved, ".concat((null==(y=k.applicants[0])?void 0:y.first_name)||"","!")),subTitle:(0,o.jsx)(c.oz,{text:N.getString("submitted-approved-subtitle",null,"Your account is open and ready. Let's finish your banking setup.")})}),(0,o.jsx)("div",{className:"account-info-section margin--bottom--xxl alignChild--center--center custom-y-padding",children:(0,o.jsx)("div",{className:"margin--top--xl",children:(0,o.jsx)(ee,{products:k.selected_products,institution:C,onClickEnroll:G,application:k,isExisting:T,primaryProduct:I,memberNumbers:()=>{var e,t,n;let i=null==I||null==(t=I.account)||null==(e=t.metadata)?void 0:e.member_numbers;if(i){let e=Object.values(i);if(e.length>0)return e[0]}return(null==I||null==(n=I.account)?void 0:n.account_number_primary)||""},postSubmissionToken:A})})}),C.third_party_auto_enrollment&&!T&&(0,o.jsx)("form",{target:"_blank",name:"auto-enrollment-hidden-form",id:"form-auto-enrollment",method:"POST",action:U(),children:Object.entries(z).map(e=>{var t;let[n,i]=e,l=(t={application:k,memberNumberForEnrollment:L},i.split(/[.[\]]+/).filter(Boolean).reduce((e,t)=>e&&e[t],t));return null==l?null:(0,o.jsx)("input",{name:n,type:"hidden",value:((e,t)=>{let n=F[e];return n?n(t):t})(n,l)},n)})}),!S.G8&&(null==C||null==(b=C.features)?void 0:b.direct_deposit)&&(0,o.jsxs)("div",{className:"margin--bottom--xl",children:[(0,o.jsx)("hr",{className:"submitted-divider"}),(0,o.jsx)(H,{application:k,postSubmissionToken:A})]}),(0,o.jsx)(E,{postSubmissionToken:A})]})}),(0,o.jsx)(g.A,{needsPadding:!0})]})}},25878:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/enUS_add_to_google_wallet_wallet-button.6f06d297.svg"},27393:e=>{e.exports={"direct-deposit-card-container":"DirectDepositCard_direct-deposit-card-container__1_V1g","icon-container-circle":"DirectDepositCard_icon-container-circle___k6Wn"}}
1,36502:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/submitted",function(){return n(20162)}])}},e=>{e.O(0,[2299,636,6593,8792],()=>e(e.s=36502)),_N_E=e.O()}]);
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.