1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1781],{11626:(n,e,a)=>{a.d(e,{P:()=>t,_:()=>u});var o=a(92972),c=a(71599),i=a(51656);let t=n=>{var e;let a=null==n||null==(e=n.response)?void 0:e.status;return a===o.t.UNAUTHORIZED||a===o.t.FORBIDDEN},u=async(n,e)=>e?e.source===i.r.CUSTOMER_PORTAL?await n.replace(c.w.HOME):e.source===i.r.BRANCH_PORTAL?await n.replace({pathname:c.w.BRANCH_HANDOFF_PHONE_2FA,query:{applicationId:null==e?void 0:e.id}}):void 0:await n.replace(c.w.HOME)},18666:(n,e,a)=>{a.d(e,{O:()=>t,i:()=>u});var o=a(83794),c=a(27194),i=a(965);let t=async(n,e,a,i)=>{if(a&&i){let n=await c.MP.configs.createOrUpdateAccountOpeningCustomer({customerData:e,partnerId:i});return e&&(e.customerId=n.customerId),n.accessToken}let t=n?c.MP.bff.saveManualCustomer:c.MP.configs.saveManualCustomer,u=await t({customerData:e}),s=(0,o.A)(u.accessToken);return e&&(e.customerId=s.customerId),u.accessToken},u=n=>{var e,a,o;return(null==n||null==(a=n.response)||null==(e=a.data)?void 0:e.code)===i.jy.MANUAL_FLOW_EXISTING_CUSTOMER||(null==n||null==(o=n.response)?void 0:o.data)===i.jy.MANUAL_FLOW_EXISTING_CUSTOMER}},24939:(n,e,a)=>{a.d(e,{w:()=>i});var o=a(62257),c=a(57253);let i=n=>{let e=(0,o.wQ)(),{partnerAlias:a}=(0,c.W)();return n?"".concat(e.assets.url,"/").concat(a,"/").concat(n):""}},25563:(n,e,a)=>{a.d(e,{JJ:()=>c,X6:()=>i,d2:()=>t,pv:()=>u});var o=a(82198);let c="ENROLLMENT_SCREEN",i=n=>{var e;let a=null==(e=n.query)?void 0:e.applicationId,c=(0,o.RB)();return a||(null==c?void 0:c.id)},t=(n,e)=>{let a=u(n,e),o=a.includes("?")?"&":"?";return"".concat(a).concat(o,"redirectedFrom=").concat(c)},u=(n,e)=>"".concat(n).concat(e?"?applicationId=".concat(e):"")},66111:(n,e,a)=>{a.d(e,{s:()=>_});var o=a(65419),c=a(57253),i=a(97249),t=a(64413),u=a(53239),s=a(33316),p=a(86418);let r=async n=>{let e;for(let o=0;o<3;o++)try{return await n()}catch(c){var a;e=c;let n=null==c||null==(a=c.response)?void 0:a.status;if(void 0!==n&&n>=400&&n<500||2===o)break;await new Promise(n=>setTimeout(n,300))}throw e},I={mutationKey:n=>["/refi-pipeline/disclosure-consent-tracking",n],mutationFn:async n=>s.Pl.track(n)},_=()=>{let{accessToken:n}=(0,t.useCustomer)(),{partnerId:e,features:a,text:_}=(0,c.W)(),{shouldRunFlow:E,isResolvingStatus:l,error:A}=(0,i.YI)({enabled:!0}),N=null==a?void 0:a.ENABLE_MEMBERSHIP_CONSENT,d=E&&N,O=!!(l&&N),T=(0,p.h)({mutationKey:I.mutationKey(e),mutationFn:I.mutationFn}),g="string"==typeof(null==_?void 0:_.MEMBERSHIP_CONSENT_NOTICE)?_.MEMBERSHIP_CONSENT_NOTICE:void 0,C=(0,u.useCallback)(n=>[n,d&&g].filter(Boolean).join("<br><br>"),[d,g]);return{trackMembershipConsent:(0,u.useCallback)(async()=>{if(!d||!g)return N&&A&&o.datadogRum.addError(Error("Membership status unresolved when consent was due"),{source:"useMembershipConsentTracker",metadata:{errorReason:"Submitted without determining membership, so no consent was captured"}}),!1;try{let a={metadata:{version:"1.0.0",rawText:g},name:"Membership Consent",mediaType:"text/html",presentation:{location:s.vH["consumer-portal/membership-consent"]},acknowledgment:{acknowledged:!0,method:"button-click",timestamp:new Date}};return await r(()=>T.mutateAsync({body:{disclosures:[a],disclaimers:[{text:g}]},token:n,partnerId:e})),!0}catch(n){return o.datadogRum.addError(n,{source:"useMembershipConsentTracker",metadata:{errorReason:"Unable to create membership consent tracking"}}),!1}},[T,n,e,d,N,A,g]),shouldShowMembershipConsent:d,composeWithMembershipConsent:C,isMembershipStatusResolving:O}}},71599:(n,e,a)=>{a.d(e,{w:()=>o});var o=function(n){return n.HOME="/account-opening",n.ACCOUNT_FEATURES="/account-opening/account-features",n.EDIT_ACCOUNT_FEATURES="/account-opening/edit-account-features",n.PROFILE_TYPES="/account-opening/profile-types",n.ACCOUNT_HOLDER_TYPES="/account-opening/account-holder-types",n.HOLDER_CATEGORIES="/account-opening/holder-categories",n.ACCOUNT_TYPES="/account-opening/account-types",n.ACCOUNTS="/account-opening/accounts",n.ADDITIONAL_APPLICANT_INFO="/account-opening/additional-applicant-info",n.APPLICANT_QUESTIONNAIRE="/account-opening/applicant-questionnaire",n.APPLICANTS_INFO="/account-opening/applicants-info",n.APPLICATION_EXTRA_QUESTIONS="/account-opening/application-extra-questions",n.ADDITIONAL_ROLE_QUESTIONS="/account-opening/additional-role-questions",n.APPLICATION_ROLES="/account-opening/application-roles",n.BENEFIT
1S="/account-opening/benefits",n.ELIGIBILITY="/account-opening/eligibility",n.EDIT_ELIGIBILITY="/account-opening/applications/:applicationId/eligibility",n.CONTACT_STAFF="/account-opening/contact-staff",n.FRAUD_CHECK="/account-opening/fraud-check",n.FUNDING_AUTHORIZATION="/account-opening/funding-authorization",n.FUNDING_ACH="/account-opening/funding/ach",n.FUNDING_CASH="/account-opening/funding/cash",n.FUNDING_CREDIT_CARD="/account-opening/funding/credit-card",n.FUNDING_INTERNAL_ACCOUNT="/account-opening/funding/internal-account",n.NO_FUNDING="/account-opening/funding/no-funding",n.FUNDING_TYPE="/account-opening/funding-type",n.ID_VERIFICATION_DISCLAIMER="/account-opening/id-verification-disclaimer",n.PHONE_2FA="/account-opening/2fa/phone",n.PHONE_VERIFY_2FA="/account-opening/2fa/verify/phone",n.BUSINESS_ID_VERIFICATION_DISCLAIMER="/account-opening/business/id-verification-disclaimer",n.BUSINESS_PHONE_2FA="/account-opening/business/2fa/phone",n.BUSINESS_PHONE_VERIFY_2FA="/account-opening/business/2fa/verify/phone",n.BUSINESS_SSN_2FA="/account-opening/business/2fa/verify/ssn",n.SSN_2FA="/account-opening/2fa/verify/ssn",n.REVIEW="/account-opening/review",n.EDIT_APPLICANT="/account-opening/applicants/:applicantId/edit",n.EDIT_COLLECTED_FIELDS="/account-opening/applicants/:applicantId/edit-collected-fields",n.BRANCH_HANDOFF_SSN_2FA="/account-opening/handoff/2fa/verify/ssn",n.BRANCH_HANDOFF_PHONE_2FA="/account-opening/handoff/2fa/phone",n.BRANCH_HANDOFF_PHONE_VERIFY_2FA="/account-opening/handoff/2fa/verify/phone",n.ALT_BRANCH_HANDOFF_SSN_2FA="/account-opening/handoff/2fa-alt/verify/ssn",n.ALT_BRANCH_HANDOFF_DOB_2FA="/account-opening/handoff/2fa-alt/verify/dob",n.ALT_BRANCH_HANDOFF_PHONE_2FA="/account-opening/handoff/2fa-alt/phone",n.ALT_BRANCH_HANDOFF_PHONE_VERIFY_2FA="/account-opening/handoff/2fa-alt/verify/phone",n.THANK_YOU="/account-opening/thank-you",n.ONLINE_BANKING_ENROLLMENT="/account-opening/online-banking-enrollment",n.JOINT_APPLICANTS="/account-opening/accounts/:accountId/joint-applicants",n.ADD_JOINT_APPLICANT="/account-opening/accounts/:accountId/add-joint-applicant",n.EDIT_JOINT_APPLICANT="/account-opening/accounts/:accountId/joint-applicants/:applicantId/edit",n.ADD_BENEFICIARY="/account-opening/accounts/:accountId/add-beneficiary",n.EDIT_BENEFICIARY="/account-opening/accounts/:accountId/beneficiaries/:beneficiaryId/edit",n.JOINT_APPLICANTS_APPLICATION_LEVEL="/account-opening/applications/:applicationId/joint-applicants",n.ADD_JOINT_APPLICANT_APPLICATION_LEVEL="/account-opening/applications/:applicationId/add-joint-applicant",n.EDIT_JOINT_APPLICANT_APPLICATION_LEVEL="/account-opening/applications/:applicationId/joint-applicants/:applicantId/edit",n.ADD_BENEFICIARY_APPLICATION_LEVEL="/account-opening/applications/:applicationId/add-beneficiary",n.EDIT_BENEFICIARY_APPLICATION_LEVEL="/account-opening/applications/:applicationId/beneficiaries/:beneficiaryId/edit",n.ASSOCIATE_JOINT_APPLICANTS="/account-opening/accounts/:accountId/joint-applicants/associate",n.ASSOCIATE_APPLICATION_JOINT_APPLICANTS="/account-opening/applications/:applicationId/joint-applicants/associate",n.ASSOCIATE_APPLICATION_BENEFICIARIES="/account-opening/applications/:applicationId/beneficiaries/associate",n.ASSOCIATE_BENEFICIARY="/account-opening/accounts/:accountId/beneficiaries/associate",n.SELECT_MEMBERSHIP="/account-opening/select-membership/:applicationId",n.WELCOME_EMAIL_LINK_EXPIRED="/account-opening/welcome-email/link-expired",n.WELCOME_EMAIL_HANDOFF_SSN_2FA="/account-opening/welcome-email/2fa/verify/ssn",n.WELCOME_EMAIL_PHONE_2FA="/account-opening/welcome-email/2fa/phone",n.WELCOME_EMAIL_PHONE_VERIFY_2FA="/account-opening/welcome-email/2fa/verify/phone",n.WELCOME_EMAIL_INFORMATION="/account-opening/welcome-email/information",n.ALT_WELCOME_EMAIL_HANDOFF_SSN_2FA="/account-opening/welcome-email/2fa-alt/verify/ssn",n.ALT_WELCOME_EMAIL_HANDOFF_DOB_2FA="/account-opening/welcome-email/2fa-alt/verify/dob",n.ALT_WELCOME_EMAIL_PHONE_2FA="/account-opening/welcome-email/2fa-alt/phone",n.ALT_WELCOME_EMAIL_PHONE_VERIFY_2FA="/account-opening/welcome-email/2fa-alt/verify/phone",n.BOOK_TO_CORE_PROCESSING="/account-opening/book-to-core/processing",n.BOOK_TO_CORE_COMPLETED="/account-opening/book-to-core/completed",n}({})},79876:(n,e,a)=>{a.d(e,{j:()=>o});let o={AUTHORIZED_SIGNER:"/account-opening/business/authorized-signer",BUSINESS_DOCUMENTS:"/account-opening/business/business-documents",BUSINESS_INFORMATION:"/account-opening/business/business-information",BUSINESS_QUESTIONNAIRE:"/account-opening/business/business-questionnaire",BUSINESS_ROLES:"/account-opening/business/business-roles",
1ELIGIBILITY:"/account-opening/business/eligibility",FUNDING_TYPE:n=>"/account-opening/business/".concat(n,"/funding-type"),REVIEW:"/account-opening/business/review",FUNDING_INTERNAL_ACCOUNT:"/account-opening/business/funding/internal-account",FUNDING_ACH:"/account-opening/business/funding/ach",FUNDING_CASH:"/account-opening/business/funding/cash",FUNDING_CREDIT_CARD:"/account-opening/business/funding/credit-card",NO_FUNDING:"/account-opening/business/funding/no-funding",THANK_YOU:"/account-opening/business/thank-you",FRAUD_CHECK:"/account-opening/business/fraud-check"}},86418:(n,e,a)=>{a.d(e,{a:()=>N,h:()=>d});var o=a(80251),c=a(42884),i=a(44007),t=a(82198),u=a(11626),s=a(18666),p=a(79876),r=a(92972),I=a(965),_=a(71599),E=a(25563);let l=n=>{var e;return(null==n||null==(e=n.response)?void 0:e.status)===r.t.UNPROCESSABLE_ENTITY},A=async function(n,e,a){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return n.replace(_.w.HOME);let c=a?p.j.FRAUD_CHECK:_.w.FRAUD_CHECK;return n.replace(o?(0,E.pv)(c,e.id):c)},N=function(n,e,a,o){let c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,u.P)(n)&&!(0,s.i)(n)?(0,u._)(e,a):l(n)&&(n=>{var e;let a=null==n||null==(e=n.response)?void 0:e.data;return![I.jy.MEMBER_HAS_HARD_STOP_LOCKOUT,I.jy.APPLICANT_HAS_PERSON_FLAG_INELIGIBILITY].includes(null==a?void 0:a.code)})(n)&&A(e,a,o,c)},d=n=>{let{mutationKey:e,mutationFn:a,onSuccess:u,onError:s,shouldNotRedirectOnUnprocessable:p,isBusinessApplication:r}=n,I=(0,i.useRouter)(),_=(0,c.GI)(),E=(0,t.RB)();return(0,o.n)({mutationKey:e,mutationFn:a,retry:!1,onSuccess:u,onError:async(n,e,a)=>{try{await (null==s?void 0:s(n,e,a))}finally{p&&l(n)||N(n,I,E,r,_)}}})}}}]); 2//# sourceMappingURL=1781-2366b8f4b0ccb368.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.