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]="6ec7ba15-3e57-4649-a26f-346d08a870e3",e._sentryDebugIdIdentifier="sentry-dbid-6ec7ba15-3e57-4649-a26f-346d08a870e3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3079,3498],{28717:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(26514),a=i(89642),n=i(11538),o=i(39072),r=i(75834),l=i(56144),d=i(93477),c=i(52053),p=i(28723),u=i(85556),m=i(69718),g=i(48624);let h=()=>{let e={label:g.HV.description,path:g.HV.path},t=(0,p.w)(e),{l10n:i}=(0,a.B2)(),{sendNotification:h}=(0,o.M)(),{setIsLoading:_}=(0,o.nk)(),{application:f,setApplication:b,institution:x,fetchExistingCoreIdAccounts:v}=(0,d.Xn)(),S="USER_ASSOCIATE_OR_NEW"===x.cao_existing_core_user_applicant_handling,[w,y]=(0,r.useState)(()=>{if(!S)return!0;let{core_user_id:e}=f;return"CREATE_NEW_CUID"!==e&&(!!e||null)}),[j,N]=(0,r.useState)(()=>f.core_user_id?f.core_user_id:1===f.core_users.length?f.core_users[0].core_user_id:""),I=async()=>{let e;if(_(!0),void 0===w){_(!1),h({type:"negative",text:i.getString("membership-error-choose-option",null,"Please choose an option")});return}if(w&&!j){_(!1),h({type:"negative",text:i.getString("membership-error-choose-member-id",null,"Please choose a member ID")});return}let s={applicants:f.applicants,core_user_id:w?j:"CREATE_NEW_CUID"};f.id&&(e=await m.lR.update(f.id,s),await v()),b(t=>u.lg.updateFromServer(t,e.application)),_(!1),t.pushNextStep()},C=i.getString("membership-existing-member-id",null,"Use my existing member ID"),D=i.getString("membership-new-member-id",null,"Create a new member ID");return(0,s.jsxs)(c.A,{activeStep:e,children:[(0,s.jsx)("div",{className:"small",children:(0,s.jsxs)("div",{className:"funding-width",children:[(0,s.jsx)("h1",{children:(0,s.jsx)(a.Oj,{id:"membership-heading",children:"Choose a member ID for your new account"})}),(0,s.jsx)("div",{className:"margin--top--xxs",children:S?(0,s.jsx)(a.Oj,{id:"membership-subheading",children:"You can open an account with your existing member ID or create a new one. If you want to open a checking account, you must create a new member ID."}):(0,s.jsx)(a.Oj,{id:"membership-subheading-use-existing",children:"Select from your member IDs listed below"})}),(0,s.jsxs)("div",{className:"margin--top--xl",children:[S&&(0,s.jsxs)("div",{className:"shaded-container margin--top--xl",children:[(0,s.jsx)("div",{className:"margin--bottom--m fontWeight--bold",children:(0,s.jsx)(a.Oj,{id:"membership-prompt",children:"How do you want to open your account?"})}),(0,s.jsx)(n.RadioButtons,{name:"existing",options:{[C]:"existing",[D]:"new"},value:w?"existing":"new",onChange:e=>{y("existing"===e.target.value)}})]}),w?(0,s.jsxs)("div",{className:"shaded-container margin--top--xl",children:[(0,s.jsx)("div",{className:"margin--bottom--m fontWeight--bold",children:(0,s.jsx)(a.Oj,{id:"membership-member-id-prompt",children:"Which member ID do you want to use?"})}),(0,s.jsx)(n.RadioButtons,{name:"memberId",options:Object.fromEntries(f.core_users.map(e=>[e.display_name,e.core_user_id])),value:void 0===j?"":j,onChange:e=>{N(e.target.value)}})]}):null,(0,s.jsx)("div",{className:"progress-buttons-container",children:(0,s.jsx)(o.L8,{enableStickyMobile:!0,backLabel:i.getString("label-back",null,"Back"),nextLabel:i.getString("label-next",null,"Next"),onBack:t.hasPrevStep()?()=>t.pushPrevStep():null,onNext:I})})]})]})}),(0,s.jsx)(l.A,{})]})}},28723:(e,t,i)=>{"use strict";i.d(t,{V:()=>p,w:()=>u});var s=i(67059),a=i(89642),n=i(46225),o=i(93477),r=i(73830),l=i(85556),d=i(48624),c=i(32250);let p=()=>{let e,{l10n:t}=(0,a.B2)(),{application:i,institution:n,eligibilityQuestions:p,shouldAskAdditionalField:u}=(0,o.Xn)(),{shouldSkipAccountActivityQuestions:m}=(0,r.x)(),g=e=l.G8?i.is_existing_on_core?d.Y5:d.fS:i.isAOIOB()?d.TX:d.g8;m&&(g=e.filter(e=>"/due_diligence"!==e.path));let h=g.filter(e=>e.isActive(i,n));return{routes:h,getPageInfo(){if(l.G8){let e=[];return i.is_existing_on_core&&e.push({path:void 0,description:"Business details",fluentMessages:{sidebarLabel:{id:"sidebar-step-business-detail
1s",fallback:"Business details"},reviewPage:{id:"review-heading-business-details",fallback:"Business details"}},data:i.getAbbreviatedBusinessInfo()}),[...e,...h.map(e=>({path:e.path,description:e.description,fluentMessages:e.fluentMessages,data:(0,d.g$)(e.getData(i,n),t,u(t.getString("label-short-date-of-incorporation")))}))]}let e=h[0],a=e.getData(i,n),o=(0,d.g$)(a,t),r=!i.selected_products.every(e=>["ira","hsa"].includes(e.category))&&i.applicants.length>1?i.applicants[1]:null,c=e.path===d.Sx.path&&h.some(e=>e.path===d.fF.path),p=[{path:e.path,description:e.description,fluentMessages:e.fluentMessages,data:c?(0,d.g$)((0,s._)({},a,d.fF.getData(i)),t):o}];return i.isAOIOB()&&!n.cao_aoiob_hide_review_applicant_details&&p.push({path:void 0,description:"Applicant details",fluentMessages:{sidebarLabel:{id:"review-heading-applicant",fallback:"Applicant details"},reviewPage:{id:"review-heading-applicant",fallback:"Applicant details"}},data:(0,d.g$)((0,d.Mt)(i.applicants[0],n),t)}),r&&p.push({path:e.path,description:"Co-applicant details",fluentMessages:{sidebarLabel:{id:"review-heading-co-applicant",fallback:"Co-applicant details"},reviewPage:{id:"review-heading-co-applicant",fallback:"Co-applicant details"}},data:(0,d.g$)((0,d.Mt)(r,n),t)}),p.concat(h.slice(1).filter(e=>!(c&&e.path===d.fF.path)).map(e=>({path:e.path,description:e.description,fluentMessages:e.fluentMessages,data:(0,d.g$)(e.getData(i,n),t)})))},determineInProgressRedirect(){var e;return i.state===c.gI.CREATING_REISSUED?d.kH.path:p&&p.length>0&&!i.core_users.length&&!(0,d.Vf)(i,n)&&0===i.eligibility_answers.length&&i.state!==c.gI.CREATING_PREAPPROVED?l.G8?"business/eligibility":"consumer/eligibility":i.should_redo_product_selection?"/account_selection":i.state===c.gI.FUNDING_FAILED?"/funding":i.state===c.gI.CREATING_UNVERIFIED_ALREADY_EXISTS_ON_CORE?"/business/locate_account":i.state===c.gI.DOCUMENTS_REQUESTED?"/consumer/documents_requested":(null==(e=h.find(e=>!e.isComplete(i)))?void 0:e.path)||"/application/complete"},getRemainingSteps:()=>i.state===c.gI.FUNDING_FAILED?[d.if,d.nb]:h.filter(e=>!e.isComplete(i))}},u=e=>{let{l10n:t}=(0,a.B2)(),i=(0,n.useRouter)(),s=p();return{nextRouter:i,steps:s,getStepsSidebar:()=>s.routes.map(e=>{let i=e.description;if("sidebarLabel"in e.fluentMessages){let{id:s,fallback:a}=e.fluentMessages.sidebarLabel;i=t.getString(s,null,a)}return{label:i,path:e.path}}),pushNextStep(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=this.getStepsSidebar().map(e=>e.path).indexOf(e.path),n=s.routes[a+t];n&&i.push(n.path)},hasPrevStep(){return this.getStepsSidebar().map(e=>e.path).indexOf(e.path)>0},pushPrevStep(){let t=this.getStepsSidebar().map(e=>e.path).indexOf(e.path),a=s.routes[t-1];a&&i.push(a.path)},pushSpecificStep(e){i.push(e)},getNextStep(){let t=this.getStepsSidebar().map(e=>e.path).indexOf(e.path);return s.routes[t+1]}}}},52053:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(26514),a=i(89642),n=i(39072),o=i(93477),r=i(28723);let l=e=>{let{children:t,activeStep:i,fullHeight:l,showFDICBanner:d}=e,{institution:c}=(0,o.Xn)(),{l10n:p}=(0,a.B2)(),u=(0,r.w)(i),{fdic_ncua_logo_url:m,type:g,deposit_insurer:h}=c;return(0,s.jsxs)("div",{className:"sidebar-page-container",children:[(0,s.jsx)(n.z6,{title:c.long_name,activeStep:i,steps:u.getStepsSidebar(),logo_url:c.logo_url,action:e=>{u.nextRouter.push(e.path)}}),(0,s.jsxs)("div",{className:"sidebar-content-container",children:[d&&"FDIC"===h&&m&&(0,s.jsxs)("div",{className:"sidebar-page-banner",children:[(0,s.jsx)("img",{className:"sidebar-page-banner-img",src:m,"data-testid":"fdic-ncua-footer-logo",alt:p.getString("footer-alt-member-bank",{membership:"credit_union"===g?"NCUA":"FDIC"})}),p.getString("fdic-banner-copy",null,"FDIC Insured - Backed by the full faith and credit of the U.S. Government")]}),(0,s.jsx)("div",{className:"sidebar-content",style:{height:"".concat(l?"100%":null)},children:t})]})]})}},55490:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/consumer/membership",function(){return i(28717)}])},56144:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var s=i(26514),a=i(89642),n=i(39072),o=i(44455),r=i(75834),l=i(85556),d=i(68745),c=i(56518),p=i(93477),u=i(95385);let m=e=>{let{needsPadding:t,hideFDICLogo:i}=e,{l10n:m}=(0,a.B2)(),{institution:g}=(0,p.Xn)(),{long_name:h,member_dif:_,dif_logo_url:f,equal_housing_logo_url:b,fdic_ncua_logo_url:x,type:v,help_email:S,help_phone:w,terms_url:y,privacy_url:j,display_bao_footer:N,dao_footer_display_selector:I}=g,{showLangSelect:C,localeCodes:D,localeNames:k,selectedLocale:E,setSelectedLocale:A}=(0,r.useContext)(u.k),{showPrivacyPolicyLink:O,showTermsLink:M}=(0,d.A)(I,{privacyUrl:j,termsUrl:y}),[U,F]=(0,r.useState)(!1),R="credit_union"===v,q="".concat(new Date().getFullYear()," ").concat(h);return l.G8&&!N?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:(0,o.A)(["footer-container",{"bottom-padded":t}]),"data-testid":"footer-container",children:[(0,s.jsxs)("div",{className:"fontSize--xs margin--top--l margin--bottom--xs","data-testid":"footer-long-name",children:["\xa9 ",q]}),(0,s.jsxs)("div",{className:"footer-membership fontSize--xs margin--bottom--xs","data-testid":"footer-membership",children:[" ",(0,s.jsx)(c.A,{dao_footer_display_selector:I,isCreditUnion:R,member_dif:_}),(0,s.jsx)("span",{children:(null==I?void 0:I.show_equal_housing_lender_text)&&m.getString("footer-membership-equal-housing",null,"Equal Housing Lender")}),(0,s.jsxs)("span",{className:"footer-logo-container",children:[(null==I?void 0:I.show_fdic_ncua_logo)&&x&&!i&&(0,s.jsx)("img",{style:{cursor:"pointer"},role:"presentation",alt:m.getString("footer-alt-member-bank",{membership:R?"NCUA":"FDIC"},"Member Bank: ".concat(R?"NCUA":"FDIC")),src:x,className:"footer-logo","data-testid":"fdic-ncua-footer-logo",onClick:()=>F(!0)}),(0,s.jsx)(n.lG,{headerStyle:"plain",isOpen:U,onUserDismiss:()=>F(!1),children:(0,s.jsx)("img",{alt:m.getString("footer-alt-member-bank",{membership:R?"NCUA":"FDIC"},"Member Bank: ".concat(R?"NCUA":"FDIC")),src:x})}),(null==I?void 0:I.show_member_dif_logo)&&_&&f&&(0,s.jsx)("img",{alt:m.getString("footer-alt-dif",null,"Member Bank: Depositors Insurance Fund"),src:f,className:"footer-logo","data-testid":"member-dif-footer-logo"}),(null==I?void 0:I.show_equal_housing_lender_logo)&&(0,s.jsx)("img",{src:b||"/ehl_black.png",alt:m.getString("footer-alt-equal-housing",null,"Equal Housing Lender Logo"),className:"footer-logo","data-testid":"equal-housing-footer-logo"})]})]}),(null==I?void 0:I.show_powered_by_narmi_text)&&(0,s.jsx)("div",{className:"fontSize--xs margin--bottom--xxs","data-testid":"footer-narmi-text",children:m.getString("footer-powered-by-narmi",null,"Powered by Narmi")}
1),(0,s.jsxs)("div",{className:"footer-lastRow",children:[(0,s.jsxs)("div",{className:"footer-contact",children:[(null==I?void 0:I.show_help_phone)?(0,s.jsxs)("div",{className:"fontSize--xs margin--top--l margin--bottom--xs fontWeight--semibold","data-testid":"footer-help-phone",children:[m.getString("footer-support-phone",null,"Call us:")," ",(0,s.jsx)("span",{className:"fontWeight--normal",children:w})]}):(0,s.jsx)("div",{className:"fontSize--xs margin--top--l margin--bottom--xs fontWeight--semibold","data-testid":"footer-help-phone"}),(null==I?void 0:I.show_help_email)&&S&&(0,s.jsxs)("div",{className:"fontSize--xs margin--bottom--xs fontWeight--semibold","data-testid":"footer-help-email",children:[m.getString("footer-support-email",null,"Email us:")," ",(0,s.jsx)("a",{href:"mailto:".concat(S),target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("span",{className:"fontWeight--normal",children:S})})]}),(O||M)&&(0,s.jsxs)("div",{className:"fontSize--xs fontWeight--semibold",children:[O&&(0,s.jsx)("a",{href:j,target:"_blank",rel:"noopener noreferrer","data-testid":"footer-privacy-policy",children:m.getString("footer-privacy-policy",null,"Privacy Policy")}),O&&M&&(0,s.jsx)(s.Fragment,{children:"\xa0 | \xa0"}),M&&(0,s.jsx)("a",{href:y,target:"_blank",rel:"noopener noreferrer","data-testid":"footer-terms",children:m.getString("footer-tos",null,"Terms")})]})]}),C&&(0,s.jsx)("div",{style:{minWidth:"240px"},children:(0,s.jsx)(n.T$,{localeCodes:D,localeNames:k,selectedLocale:E,onChange:e=>{A(e)}})})]})]})}},56518:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(26514),a=i(89642);let n=e=>{let{dao_footer_display_selector:t,isCreditUnion:i,member_dif:n}=e,{l10n:o}=(0,a.B2)();if((null==t?void 0:t.show_member_dif_text)&&n)return(0,s.jsx)("span",{children:"".concat(o.getString("footer-membership-fdic-dif",null,"Member FDIC and DIF.")," ")});if(null==t?void 0:t.show_membership_text){let e=i?o.getString("footer-membership-ncua",null,"Insured by NCUA."):o.getString("footer-membership-fdic",null,"Member FDIC.");return(0,s.jsx)("span",{children:"".concat(e," ")})}return null}},68745:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});let s=(e,t)=>{var i,s,a;let{privacyUrl:n,termsUrl:o}=t,r=null!=(i=null==e?void 0:e.show_privacy_policy_and_terms_links)&&i;return{showPrivacyPolicyLink:(null!=(s=null==e?void 0:e.show_privacy_policy_link)?s:r)&&!!n,showTermsLink:(null!=(a=null==e?void 0:e.show_terms_link)?a:r)&&!!o}}},73830:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var s=i(67059),a=i(89642),n=i(17375),o=i(75834),r=i(93477),l=i(85556);let d=(e,t)=>e.map(e=>(0,s._)({question:e.question||"",rawQuestion:e.rawQuestion||e.question||"",questionType:e.questionType||"",portalVersion:e.portalVersion||"",answerOptions:e.answerOptions?e.answerOptions.map(e=>({displayText:e.displayText||"",value:e.value||e.displayText||"",followUpQuestions:e.followUpQuestions?d(e.followUpQuestions):[]})):[],options:e.options||[],rawOptions:e.rawOptions||e.options||[],label:e.label||""},null!=t?{productId:t}:{}));function c(){let{l10n:e}=(0,a.B2)(),{application:t,institution:i}=(0,r.Xn)(),s=(null==i?void 0:i.skip_cao_account_activity_questions)&&!l.G8&&t.is_existing_on_core?[]:(l.G8?i.cdd_bao_questions:i.cdd_cao_questions)||[],c=t.selected_products.filter(e=>!!e.account_activity_questions).flatMap(e=>d(e.account_activity_questions,e.uuid)),p=l.G8?"bao":"cao",u=(0,o.useMemo)(()=>e?[...(0,n.a9)(s,p,e),...(0,n.a9)(c,p,e).filter((e,t,i)=>t===i.findIndex(t=>t.question===e.question))]:[],[s,c,e]),m=(0,o.useMemo)(()=>d(u),[u]),g=(0,o.useMemo)(()=>t.is_existing_on_core&&(null==i?void 0:i.skip_cao_account_activity_questions)&&0===s.length&&0===c.length,[t.is_existing_on_core,null==i?void 0:i.skip_cao_account_activity_questions,s.length,c.length]);return{institutionQuestions:s,productQuestions:c,localizedQuestions:u,parsedQuestions:m,shouldSkipAccountActivityQuestions:g}}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=55490)),_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.