PageSourceSearch

https://openaccount.bayfirstfinancial.com/_next/static/chunks/5619-aa187a84beeb3e3a.js

js bayfirstfinancial.com collected 2026-09-24 12:38:50 UTC 32,936 bytes, 1 lines download raw bytes

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]="180f138e-0c43-4749-b4e8-ff00e7801f0b",e._sentryDebugIdIdentifier="sentry-dbid-180f138e-0c43-4749-b4e8-ff00e7801f0b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5619],{26043:(e,t,a)=>{"use strict";a.d(t,{A:()=>z});var i=a(67059),n=a(94264),s=a(26514),r=a(89642),l=a(11538),o=a(22458),d=a(36181),c=a(49526),p=a(17375),u=a(95986),g=a(39072),m=a(75834),_=a(28955),h=a(93477),f=a(93763),b=a(28723),x=a(28187),v=a(32103),y=a(59032),S=a(85556);let j=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{institution:a}=(0,h.Xn)(),i=(0,S.kH)(a)&&!t,{getData:n}=(0,v.eX)({extendedResult:!0,tag:{userAction:e}},{immediate:i});return{captureData:(0,m.useCallback)(async()=>{if(!i)return{sealedResult:""};try{var t;return{sealedResult:null!=(t=(await n()).sealedResult)?t:""}}catch(t){return .1>Math.random()&&y.Cp(t,{extra:{action:e}}),{sealedResult:""}}},[i,n,e])}};var w=a(5443),N=a(69718),C=a(88229),A=a(93266),I=a(60153),k=a(21214),E=a(58245),R=a.n(E);let M={getMdocRequestAndroid:()=>d.Ay.fetch("account_opening/mdoc_request/android",{apiUrl:"https://daoapi.bayfirstfinancial.com"}),postMdocRequestAndroid:(e,t)=>d.Ay.fetch("account_opening/mdoc_request/android",{method:"POST",apiUrl:"https://daoapi.bayfirstfinancial.com"},{nonce:e,jweResponse:t})},O={src:"/_next/static/media/google_wallet.3971f22c.svg",height:31,width:133,blurWidth:0,blurHeight:0};var q=a(98235),L=a.n(q);let P=e=>{let{applicantIndex:t}=e,{sendNotification:a}=(0,g.M)(),{l10n:d}=(0,r.B2)(),{setApplication:c,shouldAskAdditionalField:p}=(0,h.Xn)(),u=p("middle name"),[_,f]=(0,m.useState)(!1),[b,x]=(0,m.useState)(!1),v=(0,m.useCallback)(async()=>{if(!_){f(!0);try{var e;let a=await M.getMdocRequestAndroid(),s=await navigator.credentials.get(a);y.wd("MDOC Credential Response",{level:"info",extra:{mdocRequest:JSON.stringify(a),credential:JSON.stringify(s)}});let{nonce:r}=a.digital.requests[0].data,l=null==s||null==(e=s.data)?void 0:e.response,{family_name:d,given_name:p,middle_name:g,birth_date:m,resident_address:_,resident_address_2:h,resident_city:f,resident_state:b,resident_postal_code:v}=await M.postMdocRequestAndroid(r,l);c(e=>{let a=new o.Ay((0,n._)((0,i._)((0,n._)((0,i._)({},e.applicants[t]),{first_name:p,last_name:d}),u&&g?{middle_name:g}:{}),{date_of_birth:m,address:{street_address:_,street_address_2:h||"",city:f,region_code:b,postal_code:v,country_code:"US"}}));return new S.lg((0,n._)((0,i._)({},e),{applicants:e.applicants.map((e,i)=>i===t?a:e)}))}),x(!0)}catch(e){y.Cp(e,{extra:{error:JSON.stringify(e)}}),a({type:"negative",text:d.getString("form-mdoc-autofill-error",null,"Sorry, we couldn't retrieve your information. Please try again.")})}finally{f(!1)}}},[c,a,d,t,u]);return b?(0,s.jsx)("div",{className:"margin--bottom--l",children:(0,s.jsx)("div",{className:"padding--bottom--s",children:(0,s.jsx)(l.ContentCard,{kind:"plain",paddingSize:"none",radiusSize:"m",children:(0,s.jsx)("div",{className:L().autofillSuccess,children:(0,s.jsx)("div",{style:{padding:"16px"},children:(0,s.jsxs)(l.ResponsiveFlex,{gapSize:"xs",direction:"row",children:[(0,s.jsx)("span",{className:"narmi-icon-check fontSize--xs ".concat(L().checkIcon)}),(0,s.jsx)("span",{className:"fontWeight--semibold fontColor--theme--primary fontSize--s",children:d.getString("form-mdoc-autofill-success",null,"Autofill complete! Please review below.")})]})})})})})}):(0,s.jsx)("div",{className:"margin--bottom--l",children:(0,s.jsx)("div",{className:"padding--bottom--s",children:(0,s.jsx)(l.LoadingShim,{size:"s",isLoading:_,children:(0,s.jsx)(l.ContentCard,{kind:"toggle",isSelected:!0,onClick:v,paddingSize:"s",children:(0,s.jsxs)("div",{className:L().autofillContainer,children:[(0,s.jsxs)(l.ResponsiveFlex,{gapSize:"xs",direction:"row",children:[(0,s.jsx)("span",{className:"narmi-icon-sparkle",style:{alignSelf:"center"}}),(0,s.jsxs)("span",{className:"fontWeight--semibold",children:[d.getString("form-mdoc-autofill-id",null,"Autofill from ID")," "]})]}),(0,s.jsx)(R(),{alt:"Google Wallet logo",src:O})]})})})})})},D=e=>{var t;let{applicantIndex:a,errors:d={},setErrors:c,showMailingAddress:p,setShowMailingAddress:u,showAddress:_=!0}=e,{l10n:f}=(0,r.B2)(),{translateError:b}=(0,k.A)(),{application:x,setApplication:v,institution:y,shouldAskAdditionalField:j}=(0,h.Xn)(),w=x.applicants[a],N=0===a,C=j("occupation"),A=j("middle name"),E=(()=>{let[e,t]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{let{userAgentData:e}=navigator;t(/android/i.test((null==e?void 0:e.platform)||navigator.userAgent))},[]),e}
1)()&&(null==(t=y.mdoc_supported_devices)?void 0:t.includes("android")),R=void 0!==w.email&&x.is_existing_on_core&&N;w.address&&""===w.address.country_code&&(w.address.country_code="US");let M=(e,t,a)=>{let s="mailing"===a?{mailing_address:t}:{address:t};v(t=>new S.lg((0,n._)((0,i._)({},t),{applicants:(0,o.ng)(t.applicants,s,e)})))},O=e=>{v(t=>new S.lg((0,n._)((0,i._)({},t),{applicants:(0,o.ng)(t.applicants,e,a)})))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{marginBottom:"28px"},children:[(0,s.jsx)("div",{className:"fontWeight--bold fontSize--l",style:{marginBottom:E?"12px":"32px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:N?f.getString("form-your-details",null,"Your details"):f.getString("form-co-applicant-details",null,"Co-applicant details")}),E&&(0,s.jsx)(P,{applicantIndex:a}),(0,s.jsx)("div",{className:"margin--bottom--l",children:(0,s.jsx)(l.FormSection,{title:f.getString("form-personal-details",null,"personal details")})}),(0,s.jsxs)("div",{className:"contactinfo-field-form".concat(A?" contactinfo-field-form--with-middle-name":"").concat(A&&!C?" contactinfo-field-form--no-occupation":"").concat(!A&&C?" contactinfo-field-form--with-occupation":""),children:[(0,s.jsx)("div",{className:"field-first-name",children:(0,s.jsx)(l.TextInput,{label:f.getString("form-first-name",null,"First name"),testId:"first-name",onChange:e=>O({first_name:e.target.value}),onBlur:e=>O({first_name:e.target.value.trim()}),value:w.first_name||"",error:d.first_name})}),A&&(0,s.jsx)("div",{className:"field-middle-name",children:(0,s.jsx)(l.TextInput,{label:f.getString("form-middle-name",null,"Middle name"),testId:"middle-name",onChange:e=>O({middle_name:e.target.value}),onBlur:e=>O({middle_name:e.target.value.trim()}),value:w.middle_name||"",error:d.middle_name})}),(0,s.jsx)("div",{className:"field-last-name",children:(0,s.jsx)(l.TextInput,{label:f.getString("form-last-name",null,"Last name"),testId:"last-name",onChange:e=>O({last_name:e.target.value}),onBlur:e=>O({last_name:e.target.value.trim()}),value:w.last_name||"",error:d.last_name})}),A&&C&&(0,s.jsx)("div",{className:"field-occupation",children:(0,s.jsx)(I.A,{label:f.getString("form-occupation",null,"Occupation"),value:w.occupation,error:d.occupation,occupationSetting:y.oao_occupation_options,onChange:e=>O({occupation:e})})}),(0,s.jsx)("div",{className:"field-ssn",children:(0,s.jsx)(g.Pn,{isInitiallyMasked:!w.tax_id&&!!w.has_tax_id,tooltipText:f.getString("form-we-need-this-info",null,"We need this information in order to verify your identity."),label:f.getString("form-social-security-number",null,"Social security number/ITIN"),onChange:e=>O({tax_id:e.trim()}),value:w.tax_id||"",error:d.tax_id})}),(0,s.jsx)("div",{className:"field-dob",children:(0,s.jsx)(g.ES,{isInitiallyMasked:!w.date_of_birth&&!!w.has_date_of_birth,label:f.getString("form-dob",null,"Date of birth (mm/dd/yyyy)"),onChange:e=>O({date_of_birth:e.trim()}),value:w.date_of_birth||"",error:d.date_of_birth})}),!A&&C&&(0,s.jsx)("div",{className:"field-occupation",children:(0,s.jsx)(I.A,{label:f.getString("form-occupation",null,"Occupation"),value:w.occupation,error:d.occupation,occupationSetting:y.oao_occupation_options,onChange:e=>O({occupation:e})})}),(0,s.jsxs)("div",{className:"field-email",style:{position:"relative"},children:[(0,s.jsx)(l.TextInput,{name:"email",type:"email",testId:"email","data-test-element":"email-input",label:f.getString("form-email",null,"Email"),onChange:e=>O({email:e.target.value.trim()}),disabled:R,value:w.email,error:d.email}),R&&(0,s.jsx)("div",{style:{position:"absolute",top:"50%",right:"16px",transform:"translateY(-44%)"},children:(0,s.jsx)(l.Tooltip,{text:f.getString("tooltip-email-cant-be-changed"),children:(0,s.jsx)("span",{className:"narmi-icon-info"})})})]}),(0,s.jsx)("div",{className:"field-phone",children:(0,s.jsx)(g.Er,{label:f.getString("form-phone",null,"Phone"),onChange:e=>O({phone:e}),value:w.phone,error:b(d.phone)})}),(0,s.jsx)("div",{className:"field-consent applicant-details-consent-checkbox-container",children:(0,s.jsx)("div",{className:"applicant-details-consent-checkbox-wrapper",children:(0,s.jsx)(l.Checkbox,{name:"isInfoCorrect",markdownLabel:f.getString("form-is-info-correct",null,"Under penalty of perjury, I certify that I am a U.S. citizen or resident alien and the number shown above is my correct taxpayer identification number."),checked:w.is_info_correct,error:d.is_info_correct,onChange:e=>{let{checked:t}=e.target;t&&c(e=>{var t;return(null==(t=e.applicants)?void 0:t[a])?(0,n._)((0,i._)({},e),{applicants:(0,n._)((0,i._)({}
1,e.applicants),{[a]:(0,n._)((0,i._)({},e.applicants[a]),{is_info_correct:""})})}):e}),O({is_info_correct:t})}})})})]})]}),_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.FormSection,{title:f.getString("form-subheader-residential-address",null,"residential address")}),(0,s.jsx)(g.tE,{address_type:"Residential address",onUpdate:e=>M(a,e,"residential"),data:w.address||{},errors:d.address,onChange:e=>O({address:e}),showTitle:!1,streetAddressLabel:f.getString("form-residential-address",null,"Residential address"),apartmentLabel:f.getString("label-apartment"),cityLabel:f.getString("label-city"),stateLabel:f.getString("label-state"),zipCodeLabel:f.getString("label-zip")}),(0===a?y.has_mailing_address:y.has_mailing_address&&y.has_mailing_address_joint_applicants)&&(0,s.jsx)("div",{className:"margin--top--l",children:(0,s.jsx)(l.Checkbox,{name:"showMailingAddress",label:f.getString("form-mailing-address-same",null,"Mailing address is the same as my residential address"),onChange:()=>{p&&O({mailing_address:null}),u(!p)},checked:!p})}),p&&(0,s.jsxs)("div",{className:"margin--top--xl",children:[(0,s.jsx)(l.FormSection,{title:f.getString("form-subheader-mailing-address",null,"mailing address")}),(0,s.jsx)(g.tE,{address_type:"Mailing address",onUpdate:e=>M(a,e,"mailing"),data:w.mailing_address||{},errors:d.mailing_address,onChange:e=>O({mailing_address:e}),showTitle:!1,streetAddressLabel:f.getString("form-mailing-address",null,"Mailing address"),manualStreetAddressLabel:f.getString("form-mailing-address-input-label",null,"Mailing address"),apartmentLabel:f.getString("label-apartment"),cityLabel:f.getString("label-city"),stateLabel:f.getString("label-state"),zipCodeLabel:f.getString("label-zip")})]})]})]})};var B=a(13066);let T=e=>{let{onSuccess:t,onSkip:a}=e,{setIsLoading:d}=(0,g.nk)(),{l10n:c}=(0,r.B2)(),{setApplication:p}=(0,h.Xn)(),{plaidHandler:u,setOnSuccess:_,setOnSkipToManualEntry:b}=(0,f.h)(),[x,v]=(0,m.useState)(""),[y,S]=(0,m.useState)("");(0,m.useEffect)(()=>{_(t),b(a)},[t,a,_,b]);let j=e=>e.trim()?e.replace(/\D/g,"").length<10?c.getString("error-invalid-phone",null,"Please enter a valid phone number."):"":c.getString("error-required",null,"Required"),w=async()=>{d(!0),S("");let e=j(x);if(e){S(e),d(!1);return}try{if(!u)return void S(c.getString("error-plaid-handler-not-initialized",null,"Plaid handler not initialized"));if(!u.ready)return void S(c.getString("error-plaid-handler-not-ready",null,"Plaid handler not ready yet. Please wait a moment and try again."));u.submit({phone_number:x})}catch(e){console.error("Error submitting phone number:",e),S(e instanceof Error?e.message:String(e))}finally{p(e=>{let t=new o.Ay((0,n._)((0,i._)({},e.applicants[0]||{}),{phone:x}));return new B.lg((0,n._)((0,i._)({},e),{applicants:[t,...e.applicants.slice(1)]}))}),d(!1)}};return(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",minHeight:600},children:(0,s.jsx)("div",{className:"margin--top--xl",children:(0,s.jsxs)(l.ContentCard,{kind:"bordered",children:[(0,s.jsx)("div",{className:"fontWeight--bold fontSize--m body-text margin--bottom--xs",children:c.getString("heading-applicant-phone-title",null,"Let's get started")}),(0,s.jsxs)("div",{className:"fontSize--s body-text margin--bottom--l",children:[c.getString("heading-applicant-phone-subtitle",null,"Enter your phone number to load your details, or"),(0,s.jsx)("span",{className:"padding--left--xs",children:(0,s.jsx)(l.Button,{label:c.getString("button-fill-manually",null,"fill manually."),testId:"fill-applicant-phone-manually",kind:"plain",size:"s",onClick:()=>{a()}})})]}),(0,s.jsxs)("div",{className:"margin--bottom--s ".concat(L().formContainer),children:[(0,s.jsx)("div",{className:L().phoneInputContainer,children:(0,s.jsx)(g.Er,{name:"phoneNumber",label:c.getString("form-phone-number",null,"Phone number"),value:x,error:y,onChange:v})}),(0,s.jsx)(l.Button,{kind:"primary",isLoading:!u||!u.ready,onClick:w,testId:"applicant-phone-next",disabled:""!==j(x),endIcon:"arrow-right",children:c.getString("label-next",null,"Next")})]})]})})})},U=(e,t,a)=>{let{shouldValidateMailingAddress:s,shouldAllowPoBox:r,shouldValidateOccupation:l}=t,o="You must check this box to continue";return a&&(o=a.getString("error-required-checkbox")),(0,n._)((0,i._)({},(0,C.BP)(e,a,{shouldValidateMailingAddress:s,shouldAllowPoBox:r})),{occupation:l?(0,C.UH)(e.occupation,a):"",is_info_correct:e.is_info_correct?"":o})},F={applicants:{0:{},1:{}}},z=e=>{var t,a,v;let{activeStep:y,jointForm:I=!1}=e,k=(0,b.w)(y),E=(0,x.A)(),{setIsLoading:R}=(0,g.nk)(),{sendNotification:M}=(0,g.M)(),{application:O,setApplication:q,institution:L,shouldAskAdditionalField:P,isPlaidStepComplete:B,setIsPlaidStepComplete:z,isPlaidStepSkipped:G,setIsPlaidStepSkipped:W}=(0,h.Xn)(),{clearSelectedProducts:Y}=(0,w.A)(),{captureData:X}=j("account_opening",I),[V,H]=(0,m.useState)(F),$=!0===L.dao_require_joint_applicant,[J,Q]=(0,m.useState)(()=>void 0!==O.applicants[1]||!!$||!L.dao_disable_joint&&!!I&&!(O.selected_products.length>0)&&void 0),[K,Z]=(0,m.useState)(!!O.applicants[0].mailing_address),[ee,et]=(0,m.useState)(!1),{l10n:ea}=(0,r.B2)(),ei=P("e-sign checkbox")&&!!L.cao_consent_esign_disclosure&&(!1===I||!1!==J),[en,es]=(0,m.useState)(!1),[er,el]=(0,m.useState)(!1),[eo,ed]=(0,m.useState)(!1),[ec,ep]=(0,m.useState)(""),[eu,eg]=(0,m.useState)(),em=(0,m.useRef)(null),e_=L.captcha_public_key,eh=(L.show_captcha_dao||P("captcha"))&&!I&&e_,ef=P("occupation");(0,m.useEffect)(()=>{$&&(!L.separate_primary_and_joint_contact_info||I)&&(Q(!0),void 0===O.applicants[1]&&q(e=>new S.lg((0,n._)((0,i._)({},e),{applicants:[e.applicants[0]||new o.Ay,new o.Ay]}))))},[O.applicants,L.separate_primary_and_joint_contact_info,I,$,q]);let[eb,ex]=(0,m.useState)(!!(O.applicants.length>1&&JSON.stringify(O.applicants[0].address)===JSON.stringify(O.applicants[1].address))),ev=async()=>{var e,t,a,n,s,r,l,o;if(R(!0),eb&&J&&(O.applicants[1].address=O.applicants[0].address,O.applicants[1].mailing_address=O.applicants[0].mailing_address),eh&&!eu){R(!1),M({type:"negative",text:ea.getString("form-not-a-robot",null,"Please verify you're not a robot.")});return}H(F);let p={jointAccount:void 0===J?ea.getString("form-select-an-option",null,"Please select an option"):"",applicants:{0:I?{}:U(O.applicants[0],{shouldValidateMailingAddress:K,shouldValidateOccupation:ef,shouldAllowPoBox:L.allow_po_box_mailing_address},ea),1:void 0!==O.applicants[1]&&J&&(!L.separate_primary_and_joint_contact_info||I)?U(O.applicants[1],{shouldValidateMailingAddress:ee,shouldValidateOccupation:ef,shouldAllowPoBox:L.allow_po_box_mailing_address},ea):{}}};if(J&&O.applicants[1]){let[e,t]=O.applicants;e.id&&e.id===t.id&&(p.applicants["0"].email=ea.getString("form-error-duplicate-applicant",null,"Primary and secondary applicant cannot be the same person"),p.applicants["1"].email=ea.getString("form-error-duplicate-applicant",null,"Primary and secondary applicant cannot be the same person")),e.email&&e.email===t.email&&(p.applicants["0"].email=ea.getString("form-error-duplicate-email",null,"Email must be unique for each applicant"),p.applicants["1"].email=ea.getString("form-error-duplicate-email",null,"Email must be unique for each applicant")),e.tax_id&&e.tax_id===t.tax_id&&
1(p.applicants["0"].tax_id=ea.getString("form-error-duplicate-tax-id",null,"Tax ID must be unique for each applicant"),p.applicants["1"].tax_id=ea.getString("form-error-duplicate-tax-id",null,"Tax ID must be unique for each applicant"))}if((0,C.JD)(p)){H(p),R(!1),M({type:"negative",text:ea.getString("form-correct-errors",null,"Please correct the errors indicated below to submit.")});return}if(L.dao_require_minor_as_primary_applicant){let a=O.applicants[0].date_of_birth,i=null==(e=O.applicants[1])?void 0:e.date_of_birth;if((null!=O.applicants[0].is_below_sole_applicant_age?!O.applicants[0].is_below_sole_applicant_age:u.Ay.getAge(a)>=18)&&((null==(t=O.applicants[1])?void 0:t.is_below_sole_applicant_age)!=null?O.applicants[1].is_below_sole_applicant_age:i&&u.Ay.getAge(i)<(L.minimum_sole_applicant_age||18))){R(!1),M({type:"negative",text:ea.getString("form-require-primary-minor",null,"In order to proceed, please ensure that any applicant under the age of 18 is set as the primary applicant.")});return}}if(!0===L.dao_require_joint_for_minors&&(!1===L.separate_primary_and_joint_contact_info||!0===L.separate_primary_and_joint_contact_info&&!0===I)){let e=O.applicants[0].date_of_birth,t=null==(a=O.applicants[1])?void 0:a.date_of_birth;if(u.Ay.getAge(e)<(L.minimum_sole_applicant_age||18)&&(!J||18>u.Ay.getAge(t))){R(!1),M({type:"negative",text:ea.getString("form-require-joint-minor",null,"In order to proceed, please add a parent/guardian to this application.")});return}}if(ei)if(eo)ep("");else{ep(ea.getString("contact-info-checkbox-required")),M({type:"negative",text:ea.getString("form-correct-errors",null,"Please correct the errors indicated below to submit.")}),R(!1);return}try{if(!O.id){let e=(0,i._)({},O.metadata,Object.fromEntries(new URLSearchParams(window.location.search))),{code:t}=await E("account_opening/consumer/verify_applicant/",{method:"POST"},{email:null==(n=O.applicants[0].email)?void 0:n.toLowerCase(),metadata:e});q({applicants:[{email:null==(s=O.applicants[0].email)?void 0:s.toLowerCase()}],is_returning:!0,code:t,metadata:e}),k.pushSpecificStep("/consumer/locate_application_code"),R(!1);return}}catch(e){}try{let e,t=new URLSearchParams(window.location.search),a=t.get("eligibility_answers"),n=t.get("citizenship_status"),s=t.get("director_or_executive_officer"),o=t.get("resident_state"),d=(0,i._)({},O.metadata,n&&{citizenship_status:n},s&&{director_or_executive_officer:s},o&&{resident_state:o}),{sealedResult:c}=await X(),p=(0,i._)({applicants:O.applicants,metadata:d,core_user_id:O.core_user_id,eligibility_answers:a?JSON.parse(a):null,captcha:eu,persona_tag:O.persona_tag||void 0},c&&{fingerprint_sealed_result:c});O.id?(null===p.eligibility_answers&&(null==(l=O.eligibility_answers)?void 0:l.length)&&delete p.eligibility_answers,e=await N.lR.update(O.id,p)):e=await N.lR.create(p),q(t=>S.lg.updateFromServer(t,e.application)),Y();let u=A.HO.getItem("application_metadata");if(u){let e=new URLSearchParams(u);e.delete("selected"),A.HO.setItem("application_metadata",e.toString())}if(("USER_ASSOCIATE"===L.cao_existing_core_user_applicant_handling||"USER_ASSOCIATE_OR_NEW"===L.cao_existing_core_user_applicant_handling)&&(null==(r=e.application.core_users)?void 0:r.length)>0)return void k.pushSpecificStep("/consumer/membership");if("/consumer/membership"===k.getNextStep().path)return void k.pushNextStep(2);k.pushNextStep()}catch(e){if(e&&"string"==typeof e)"User already exists on core"===e?k.pushSpecificStep("/consumer/consumer_exists"):"In order to proceed, please add a parent/guardian to this application."===e?M({type:"negative",text:ea.getString("form-require-joint-minor")}):e.includes(c.$.GENERIC_ERROR)?M({type:"negative",text:ea.getString("server-error-generic")}):M({type:"negative",text:ea.getString("error-notification-generic")});else if(e&&"object"==typeof e){let t=d.Ay.parseServerErrors((0,i._)({},e));if("existing_user"===t.id)return void M({type:"negative",text:t.message});if("email_verification"===t.id)M({type:"info",text:t.message});else{let t=d.Ay.parseServerErrors({applicants:e});H(t),M({type:"negative",text:Object.values(Object.values(t.applicants)).map(e=>{var t;return e.non_field_errors||(null==(t=e.address)?void 0:t.non_field_errors)||e.address||e.mailing_address}).find(Boolean)||ea.getString("form-correct-errors",null,"Please correct the errors indicated below to submit.")})}}eh&&(null==(o=em.current)||o.reset())}finally{R(!1)}},ey=e=>{"a"!==e.target.nodeName.toLowerCase()?!1===er&&es(!0):(es(!1),el(!0))},eS=ea.getString("Yes",null,"Yes"),ej=ea.getString("No",null,"No"),ew=(0,m.useCallback)(()=>{W(!0),q(e=>new S.lg((0,n._)((0,i._)({},e),{applicants:[new o.Ay((0,n._)((0,i._)({}
1,e.applicants[0]),{data_source:"MANUAL"})),...e.applicants.slice(1)]})))},[W,q]),eN=(0,m.useCallback)(e=>{var t,a;let s=null==e?void 0:e.identity;if(!s)return;let r=new o.Ay((0,n._)((0,i._)({},O.applicants[0]),{first_name:(null==(t=s.name)?void 0:t.first_name)||O.applicants[0].first_name,last_name:(null==(a=s.name)?void 0:a.last_name)||O.applicants[0].last_name,email:s.email||O.applicants[0].email,phone:s.phone_number||O.applicants[0].phone,date_of_birth:s.date_of_birth||O.applicants[0].date_of_birth,tax_id:s.ssn||O.applicants[0].tax_id,address:s.address?{street_address:s.address.street||"",street_address_2:s.address.street2||"",city:s.address.city||"",region_code:s.address.region||"",postal_code:s.address.postal_code||"",country_code:s.address.country||"US"}:O.applicants[0].address,data_source:"PLAID"}));q(e=>new S.lg((0,n._)((0,i._)({},e),{applicants:[r,...e.applicants.slice(1)]}))),M({type:"success",text:ea.getString("form-plaid-layer-prefill-details-success")||"Great! We’ve filled in your details."}),z(!0)},[O.applicants,q,z,M,ea]),{setOnSuccess:eC}=(0,f.h)();return((0,m.useEffect)(()=>{L.plaid_api_layer_template_id&&!B&&eC(eN)},[L.plaid_api_layer_template_id,B,eC,eN]),!L.plaid_api_layer_template_id||B||G||!1!==I)?(0,s.jsxs)("form",{autoComplete:"on",onSubmit:e=>e.preventDefault(),style:{display:"flex",flexDirection:"column",justifyContent:"space-between",minHeight:600},children:[L.dao_disable_joint||$||!I&&L.separate_primary_and_joint_contact_info?null:(0,s.jsxs)("div",{className:"shaded-container margin--top--xl","data-testid":"question-container",children:[(0,s.jsx)("div",{className:"margin--bottom--m fontWeight--bold","data-testid":"question-text",children:(0,s.jsx)(r.Oj,{id:"form-open-joint",children:"Do you want to open a joint account?"})}),(0,s.jsx)(l.RadioButtons,{name:"joint",options:{[eS]:"Yes",[ej]:"No"},value:void 0===J?"":J?"Yes":"No",error:V.jointAccount,onChange:e=>{Q("Yes"===e.target.value),q(t=>new S.lg((0,n._)((0,i._)({},t),{applicants:"Yes"===e.target.value?[t.applicants[0]||new o.Ay,new o.Ay]:[t.applicants[0]||new o.Ay]})))}})]}),L.dao_disable_joint||void 0!==J?(0,s.jsxs)(s.Fragment,{children:[!I&&(0,s.jsx)("div",{className:"margin--top--xl",children:(0,s.jsx)(D,{applicantIndex:0,showMailingAddress:K,setShowMailingAddress:Z,errors:null==(t=V.applicants)?void 0:t[0],setErrors:H})}),J&&(!L.separate_primary_and_joint_contact_info||I)&&(0,s.jsx)("div",{className:"margin--top--l",children:(0,s.jsx)(l.Checkbox,{label:ea.getString("form-addresses-are-the-same",null,"Addresses are the same for both applicants"),checked:eb,onChange:e=>{let{checked:t}=e.target;t||q(e=>new S.lg((0,n._)((0,i._)({},e),{applicants:(0,o.ng)(e.applicants,{address:null},1)}))),ex(t)}})}),void 0!==O.applicants[1]&&(I||!L.separate_primary_and_joint_contact_info)&&(0,s.jsx)("div",{className:"margin--top--xxl",children:(0,s.jsx)(D,{applicantIndex:1,showMailingAddress:ee,setShowMailingAddress:et,errors:null==(a=V.applicants)?void 0:a[1],setErrors:H,showAddress:!eb})}),en&&(0,s.jsx)("div",{className:"margin--top--xl",children:(0,s.jsx)(l.Alert,{isActive:en,isDismissable:!1,kind:"error",children:(0,s.jsx)("span",{children:ea.getString("contact-info-esign-disclosure-alert",null,"You must open the E-Sign Disclosures before proceeding.")})})}),ei&&(0,s.jsx)("div",{className:"margin--top--xl",children:(0,s.jsx)("div",{className:"applicant-details-consent-checkbox-wrapper","data-testid":"esign-consign-checkbox-wrapper",onClick:ey,onKeyPress:ey,children:(0,s.jsx)(l.Checkbox,{name:"consentESignDisclosure",disabled:!1===er,markdownLabel:(0,p.io)("cao-consent-esign-disclosure",L.cao_consent_esign_disclosure,ea),checked:eo,error:ec,onChange:e=>{let{checked:t}=e.target;ed(t)}})})}),eh&&(0,s.jsx)(_.A,{ref:em,className:"margin--top--xl",sitekey:e_,onChange:e=>{eg(e)},onExpired:()=>eg(null)}),(!0==J||!I)&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"fontSize--s margin--top--xxl",style:{color:"var(--color-mediumGrey)"},"data-testid":"tftp-disclosure",children:(0,s.jsx)(r.Oj,{id:"form-tftp-disclosure",children:"To help the government fight the funding of terrorism and money laundering, federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account. What this means for you: When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you. We may al
1so ask to see your driver's license or other identifying documents."})}),(null==(v=L.features)?void 0:v.cao_show_sms_disclosure)&&(0,s.jsx)("div",{className:"fontSize--s margin--top--l",style:{color:"var(--color-mediumGrey)"},children:(0,s.jsx)(r.Oj,{id:"form-sms-disclosure",vars:{institutionName:L.long_name},children:"By providing your phone number you are giving {$institutionName} permission to send you marketing messages and other updates."})})]})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("div",{className:"progress-buttons-container",children:(0,s.jsx)(g.L8,{enableStickyMobile:!0,backLabel:ea.getString("label-back",null,"Back"),nextLabel:ea.getString("label-next",null,"Next"),onBack:()=>k.pushPrevStep(),hidePrev:!k.hasPrevStep(),onNext:ev,disabled:!I})})]}):(0,s.jsx)("div",{className:"margin--bottom--m","data-testid":"plaid-api-layer-id",children:(0,s.jsx)(T,{onSuccess:eN,onSkip:ew})})}},28723:(e,t,a)=>{"use strict";a.d(t,{V:()=>p,w:()=>u});var i=a(67059),n=a(89642),s=a(46225),r=a(93477),l=a(73830),o=a(85556),d=a(48624),c=a(32250);let p=()=>{let e,{l10n:t}=(0,n.B2)(),{application:a,institution:s,eligibilityQuestions:p,shouldAskAdditionalField:u}=(0,r.Xn)(),{shouldSkipAccountActivityQuestions:g}=(0,l.x)(),m=e=o.G8?a.is_existing_on_core?d.Y5:d.fS:a.isAOIOB()?d.TX:d.g8;g&&(m=e.filter(e=>"/due_diligence"!==e.path));let _=m.filter(e=>e.isActive(a,s));return{routes:_,getPageInfo(){if(o.G8){let e=[];return a.is_existing_on_core&&e.push({path:void 0,description:"Business details",fluentMessages:{sidebarLabel:{id:"sidebar-step-business-details",fallback:"Business details"},reviewPage:{id:"review-heading-business-details",fallback:"Business details"}},data:a.getAbbreviatedBusinessInfo()}),[...e,..._.map(e=>({path:e.path,description:e.description,fluentMessages:e.fluentMessages,data:(0,d.g$)(e.getData(a,s),t,u(t.getString("label-short-date-of-incorporation")))}))]}let e=_[0],n=e.getData(a,s),r=(0,d.g$)(n,t),l=!a.selected_products.every(e=>["ira","hsa"].includes(e.category))&&a.applicants.length>1?a.applicants[1]:null,c=e.path===d.Sx.path&&_.some(e=>e.path===d.fF.path),p=[{path:e.path,description:e.description,fluentMessages:e.fluentMessages,data:c?(0,d.g$)((0,i._)({},n,d.fF.getData(a)),t):r}];return a.isAOIOB()&&!s.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)(a.applicants[0],s),t)}),l&&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)(l,s),t)}),p.concat(_.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(a,s),t)})))},determineInProgressRedirect(){var e;return a.state===c.gI.CREATING_REISSUED?d.kH.path:p&&p.length>0&&!a.core_users.length&&!(0,d.Vf)(a,s)&&0===a.eligibility_answers.length&&a.state!==c.gI.CREATING_PREAPPROVED?o.G8?"business/eligibility":"consumer/eligibility":a.should_redo_product_selection?"/account_selection":a.state===c.gI.FUNDING_FAILED?"/funding":a.state===c.gI.CREATING_UNVERIFIED_ALREADY_EXISTS_ON_CORE?"/business/locate_account":a.state===c.gI.DOCUMENTS_REQUESTED?"/consumer/documents_requested":(null==(e=_.find(e=>!e.isComplete(a)))?void 0:e.path)||"/application/complete"},getRemainingSteps:()=>a.state===c.gI.FUNDING_FAILED?[d.if,d.nb]:_.filter(e=>!e.isComplete(a))}},u=e=>{let{l10n:t}=(0,n.B2)(),a=(0,s.useRouter)(),i=p();return{nextRouter:a,steps:i,getStepsSidebar:()=>i.routes.map(e=>{let a=e.description;if("sidebarLabel"in e.fluentMessages){let{id:i,fallback:n}=e.fluentMessages.sidebarLabel;a=t.getString(i,null,n)}return{label:a,path:e.path}}),pushNextStep(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=this.getStepsSidebar().map(e=>e.path).indexOf(e.path),s=i.routes[n+t];s&&a.push(s.path)}
1,hasPrevStep(){return this.getStepsSidebar().map(e=>e.path).indexOf(e.path)>0},pushPrevStep(){let t=this.getStepsSidebar().map(e=>e.path).indexOf(e.path),n=i.routes[t-1];n&&a.push(n.path)},pushSpecificStep(e){a.push(e)},getNextStep(){let t=this.getStepsSidebar().map(e=>e.path).indexOf(e.path);return i.routes[t+1]}}}},52053:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(26514),n=a(89642),s=a(39072),r=a(93477),l=a(28723);let o=e=>{let{children:t,activeStep:a,fullHeight:o,showFDICBanner:d}=e,{institution:c}=(0,r.Xn)(),{l10n:p}=(0,n.B2)(),u=(0,l.w)(a),{fdic_ncua_logo_url:g,type:m,deposit_insurer:_}=c;return(0,i.jsxs)("div",{className:"sidebar-page-container",children:[(0,i.jsx)(s.z6,{title:c.long_name,activeStep:a,steps:u.getStepsSidebar(),logo_url:c.logo_url,action:e=>{u.nextRouter.push(e.path)}}),(0,i.jsxs)("div",{className:"sidebar-content-container",children:[d&&"FDIC"===_&&g&&(0,i.jsxs)("div",{className:"sidebar-page-banner",children:[(0,i.jsx)("img",{className:"sidebar-page-banner-img",src:g,"data-testid":"fdic-ncua-footer-logo",alt:p.getString("footer-alt-member-bank",{membership:"credit_union"===m?"NCUA":"FDIC"})}),p.getString("fdic-banner-copy",null,"FDIC Insured - Backed by the full faith and credit of the U.S. Government")]}),(0,i.jsx)("div",{className:"sidebar-content",style:{height:"".concat(o?"100%":null)},children:t})]})]})}},73830:(e,t,a)=>{"use strict";a.d(t,{x:()=>c});var i=a(67059),n=a(89642),s=a(17375),r=a(75834),l=a(93477),o=a(85556);let d=(e,t)=>e.map(e=>(0,i._)({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,n.B2)(),{application:t,institution:a}=(0,l.Xn)(),i=(null==a?void 0:a.skip_cao_account_activity_questions)&&!o.G8&&t.is_existing_on_core?[]:(o.G8?a.cdd_bao_questions:a.cdd_cao_questions)||[],c=t.selected_products.filter(e=>!!e.account_activity_questions).flatMap(e=>d(e.account_activity_questions,e.uuid)),p=o.G8?"bao":"cao",u=(0,r.useMemo)(()=>e?[...(0,s.a9)(i,p,e),...(0,s.a9)(c,p,e).filter((e,t,a)=>t===a.findIndex(t=>t.question===e.question))]:[],[i,c,e]),g=(0,r.useMemo)(()=>d(u),[u]),m=(0,r.useMemo)(()=>t.is_existing_on_core&&(null==a?void 0:a.skip_cao_account_activity_questions)&&0===i.length&&0===c.length,[t.is_existing_on_core,null==a?void 0:a.skip_cao_account_activity_questions,i.length,c.length]);return{institutionQuestions:i,productQuestions:c,localizedQuestions:u,parsedQuestions:g,shouldSkipAccountActivityQuestions:m}}},98235:e=>{e.exports={formContainer:"ContactInfoForm_formContainer__WaleL",phoneInputContainer:"ContactInfoForm_phoneInputContainer__fYVLC",autofillContainer:"ContactInfoForm_autofillContainer__tmjzs",autofillSuccess:"ContactInfoForm_autofillSuccess__La3Rb",checkIcon:"ContactInfoForm_checkIcon___cX8H"}}}]);

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.