PageSourceSearch

https://apply.nymcu.org/_next/static/chunks/pages/account-opening/…ditional-role-questions-e7e80d04745fbd09.js

js nymcu.org collected 2026-10-02 05:13:14 UTC 31,752 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3455],{5412:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(15708),o=n.n(i),r=["a","br","div","i","img","li","ol","p","h1","h2","h3","h4","h5","h6","footer","header","aside","section","strong","ul","b","span","em"],a=["id","style","class"],l=function(e){return Array.isArray(e)||"string"==typeof String(e)?Array.isArray(e)?e.flatMap(function(e){return l(e)}):o()(e,{allowedTags:r,allowedAttributes:{h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,footer:a,header:a,aside:a,section:a,a:["href","target","rel"].concat(a),br:[],div:a,i:a,img:["width","height","src","srcset","alt"].concat(a),li:a,ol:a,p:a,span:a,strong:a,ul:a,em:a,b:a},allowedSchemesByTag:{img:["data","https"]}}):""},s={sanitize:l}},6763:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(29587),o=n(28195);function r(e,t){return t?e.reduce((e,n)=>{let r=(0,i.T)(n).split(".").reduce((e,t)=>null!=e?e[t]:void 0,t);return void 0!==r&&(e[n]=(0,o.S)(n,r)),e},{}):{}}},7395:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});let i=n(76081).FeatureChainingStepOptions.CONSUMER_PORTAL.CREATE_ACCOUNT_OPENING_APPLICATION},8256:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var i=n(80263),o=n(84474),r=n(54366),a=n(71599),l=n(51656),s=n(82198),d=n(44007),c=n(53239);let u=e=>{var t;let{children:n}=e,u=(0,d.useRouter)(),m=(0,c.useRef)(!1),p=null==(t=u.query)?void 0:t.applicationId,h=(()=>{try{var e;return null==(e=(0,s.RB)())?void 0:e.id}catch(e){(0,r.Qw)(e instanceof Error?e:Error("Failed to read applicationId from session storage"),{context:"ApplicationIdPresentGuard.readSessionStorageApplicationId"});return}})();p&&p!==h&&((0,s.Py)(),(0,s.I6)({id:p,source:l.r.CUSTOMER_PORTAL}));let f=p||h,g=(0,c.useCallback)(async()=>u.replace(a.w.HOME),[u]);return(0,c.useEffect)(()=>{m.current||(m.current=!0,(0,r.ZI)("ApplicationIdPresentGuard: resolved application id",{hasQueryParamApplicationId:!!p,hasSessionStorageApplicationId:!!h,pathname:u.pathname,resolved:!!f}))},[f,p,h,u.pathname]),(0,c.useEffect)(()=>{f||g()},[f,g]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.j,{condition:!!f,children:n})})}},19890:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l,i:()=>a});var i=n(28099),o=n(8368);let r="4.5625rem",a=(0,o.Ay)(i.D).withConfig({displayName:"MultipleAccounts.styled__FooterCartButton",componentId:"sc-cc5d748d-0"})(["align-self:flex-start;margin-bottom:1rem;border-radius:",";padding:1rem;min-width:",";"],e=>{let{theme:t}=e;return t.foundations.radius.full},r),l=(0,o.Ay)(i.D).withConfig({displayName:"MultipleAccounts.styled__ActionBarCartButton",componentId:"sc-cc5d748d-1"})(["justify-self:start;border-radius:",";padding:1rem;min-width:",";"],e=>{let{theme:t}=e;return t.foundations.radius.full},r)},23120:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var i=n(86917),o=n(42884),r=n(80975),a=n(94389),l=n(53239),s=n(44148),d=n(57253);let c=e=>{let{eventName:t,enabled:n=!0,dependencies:c=[],clutchProduct:u=s.bD.LENDING,propertiesParams:m,onEventTracked:p}=e,{partnerAlias:h}=(0,d.W)(),{isToggleEnabled:f}=(0,o.qv)(),g=m?JSON.stringify(m):void 0;(0,l.useEffect)(()=>{t&&h&&n&&(u===s.bD.LENDING?a.g.trackEvent(t,(0,i._)({type:"page_view",status:"started",piiFlowVersion:"v3",partnerAlias:h},m)):u===s.bD.ACCOUNT_OPENING&&a.g.trackEvent(t,(0,i._)({type:"page_view",status:"started",partnerAlias:h,productType:s.bD.ACCOUNT_OPENING,accountOpeningPiiFlow:(0,r.k)(f)},m)),p&&p())},[t,h,n,p,g,f,...c])}},23701:(e,t,n)=>{"use strict";n.d(t,{Kw:()=>s,P$:()=>o,Ry:()=>r,mO:()=>a,sT:()=>l});var i=n(8368);let o=i.Ay.div.withConfig({displayName:"AdditionalRoleQuestions.styled__CenterContent",componentId:"sc-ee89c696-0"})(["display:flex;justify-content:center;align-items:center;height:100%;"]),r=(0,i.Ay)(o).withConfig({displayName:"AdditionalRoleQuestions.styled__TopContent",componentId:"sc-ee89c696-1"})(["align-items:flex-start;"]),a=i.Ay.div.withConfig({displayName:"AdditionalRoleQuestions.styled__Wrapper",componentId:"sc-ee89c696-2"})(["width:100%;"]),l=i.Ay.h1.withConfig({displayName:"AdditionalRoleQuestions.styled__PageTitle",componentId:"sc-ee89c696-3"})(["margin:0 0 ",";font-weight:",";color:",";font-size:1.75rem;"],e=>e.theme.token.spacing["16"],e=>e.theme.foundations.typography.fontWeight.normal,e=>e.theme.foundations.colors.tertiary),s=i.Ay.h2.withConfig({displayName:"AdditionalRoleQuestions.styled__PageDescription",componentId:"sc-ee89c696-4"})(["margin:-"," 0 ",";font-weight:",";color:",";font-size:",";"],e=>e.theme.token.spacing["08"],e=>e.theme.token.spacing["16"],e=>e.theme.foundations.typography.fontWeight.normal,e=>e.theme.foundations.colors.black70,e=>e.theme.foundations.typography.fontSize.xs)},24465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>W,default:()=>K});var i=n(80263),o=n(8256),r=n(70431),a=n(49136),l=n(67380),s=n(30482),d=n(96552),c=n(84474),u=n(42884),m=n(35613),p=n(7395),h=n(29485),f=n(54470),g=n(25816),y=n(19890),b=n(82198),v=n(31415),x=n(87875),I=n(44007),C=n(86281),w=n(53239),A=n(44148),N=n(73060),_=n(71599),P=n(29974),E=n(86917),O=n(97722),j=n(73470),T=n(23701),S=n(60759);let k={collectOnly:"We need a few more details from you",collectAndConfirm:"We need some more information, plus a quick confirmation on the rest",confirmOnly:"Let's confirm your details are correct"};var L=n(27194),R=n(87520),B=n(35830),D=n(92457),F=n(6763);let U=new Set(Object.values(_.w)),M=()=>{var e,t;let{useTelemetryTags:n}=(0,C.Jr)();
1n((0,l.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("ACCOUNT_OPENING").product("ACCOUNT_APPLICATION").feature("ADDITIONAL_ROLE_QUESTIONS").tags);let o=(0,I.useRouter)(),{isToggleEnabled:r}=(0,u.JD)(),{isToggleEnabled:M}=(0,u.lj)(),{applicationId:G="",applicantId:$="",returnTo:z}=o.query,{accessToken:W}=(0,P.u)(),K=(0,w.useMemo)(()=>(function(e,t){return e&&U.has(e)?e:t})(z,_.w.APPLICANT_QUESTIONNAIRE),[z]),{formPages:Q,hasMissingFields:q,applicantData:Y,defaultValues:H,formId:V,isStreamlinedFlow:J,isPageTitleOverrideEnabled:Z,renderedFieldKeys:X,alwaysShowFieldKeys:ee,isLoading:et,isError:en}=function(e){var t,n,i;let{applicationId:o,applicantId:r,accessToken:a}=e,{data:l,isLoading:s,isError:d}=(0,R.U)({queryKey:[L.oR.MISSING_REQUIRED_FIELDS,o,r],queryFn:async()=>L.MP.configs.getMissingRequiredFields({applicationId:o,applicantId:null!=r?r:"",token:a}),queryOptions:{enabled:!!o&&!!r&&!!a}}),{isToggleEnabled:c,loading:m}=(0,u.JE)(),{isToggleEnabled:p}=(0,u.$W)(),h=null!=(t=null==l?void 0:l.hasMissingFields)&&t,f=(0,w.useMemo)(()=>{var e;return new Set(null!=(e=null==l?void 0:l.missingFieldKeys)?e:[])},[l]),g=null!=(n=null==l?void 0:l.editFormTemplateId)?n:null,y=null==l?void 0:l.alwaysShowFieldKeys,b=c&&null!=(i=null==l?void 0:l.missingFieldKeysAreAuthoritative)&&i,v=(0,w.useMemo)(()=>Array.from(f),[f]),{formPages:x,formId:I,isLoading:C,isError:A}=(0,B.b)({fieldKeys:v,formId:g,authoritative:b,accessToken:a,enabled:h&&!!g,preferSourcePageTitle:p}),{data:N,isLoading:_,isError:P}=(0,D.m)({applicationId:o,applicantId:r,enabled:h&&!!o&&!!r}),E=h&&x.length>0,O=(0,w.useMemo)(()=>x.flatMap(e=>{var t;return null!=(t=e.fields)?t:[]}).filter(e=>"section"!==e.type).map(e=>e.fieldKey),[x]),j=(0,w.useMemo)(()=>(0,F.d)(v,N),[N,v]);return{formPages:x,hasMissingFields:E,applicantData:N,defaultValues:j,formId:I,isStreamlinedFlow:b,isPageTitleOverrideEnabled:p,renderedFieldKeys:O,alwaysShowFieldKeys:y,isLoading:m||s||h&&(C||_),isError:d||A||P}}({applicationId:G,applicantId:$,accessToken:W});(0,x.Q)({eventName:m.P.UI_ACCOUNT_OPENING_ADDITIONAL_PII_VIEWED,clutchProduct:A.bD.ACCOUNT_OPENING,enabled:!!V}
1);let ei=(e=>{let{isStreamlinedFlow:t,renderedFieldKeys:n,alwaysShowFieldKeys:i,applicantValues:o}=e;if(!t)return;let r=(null!=i?i:[]).filter(e=>(e=>null!=e&&""!==e)(o[e])),a=n.filter(e=>!r.includes(e));return a.length>0&&r.length>0?k.collectAndConfirm:a.length>0?k.collectOnly:r.length>0?k.confirmOnly:void 0})({isStreamlinedFlow:J,renderedFieldKeys:X,alwaysShowFieldKeys:ee,applicantValues:H}),eo=ei||(null==(e=Q[0])?void 0:e.pageTitle)||"Additional PII",er=!ei&&Z?null==(t=Q[0])?void 0:t.pageDescription:void 0,ea=(0,v.z)({formId:V}),{isFeatureChainingEnabled:el,goToNextStep:es}=(0,h.U)(),{isUpdating:ed,updateApplicantInfo:ec}=(0,j.f)({applicantId:$,onSuccess:()=>{if((0,b.ib)(G),el)return void es({applicationId:G,applicantId:$,fromStepKey:p.Q.ADDITIONAL_ROLES_QUESTIONS});o.push(K)}});if((0,w.useEffect)(()=>{et||en||q||o.replace(K)},[et,en,q,K,o]),et||!q)return(0,i.jsx)(N.E,{onBack:()=>o.back(),children:(0,i.jsx)(T.P$,{children:(0,i.jsx)(d.P,{})})});if(en)return(0,i.jsx)(N.E,{onBack:()=>o.back(),children:(0,i.jsx)(T.P$,{children:(0,i.jsx)("p",{children:"Something went wrong loading the form. Please go back and try again."})})});let eu=(0,i.jsx)(s.$n,{size:"lg",fullWidth:!0,rounded:r,type:"submit",disabled:ed,loading:ed,children:"Continue"});return(0,i.jsx)(N.E,{onBack:()=>o.back(),fitContentHeight:!0,hasFixedBottomBar:r&&M,children:(0,i.jsx)(T.Ry,{children:(0,i.jsxs)(T.mO,{children:[(0,i.jsx)(T.sT,{children:eo}),er&&(0,i.jsx)(T.Kw,{children:er}),(0,i.jsx)(a.b4,{pages:Q,config:ea,defaultValuesFromClient:H,children:(0,i.jsx)(a.ok,{columns:1,rowGap:"sm",columnGap:"sm",onSubmit:e=>{var t;ec({applicant:(t=(0,S.S)({formValues:e,existingApplicant:null!=Y?Y:{}}),(0,O._)((0,E._)({},t),{collectRequiredFields:!0}))})},children:(0,i.jsx)(c.j,{condition:r,fallback:eu,children:(0,i.jsx)(f.l,{children:(0,i.jsxs)(f.l.Fixed,{hideMultipleAccounts:!0,matchBottomNavMetrics:!0,children:[(0,i.jsx)(y.Q,{}),(0,i.jsx)(g.E0,{children:eu})]})})})})})]})})})};var G=n(57253),$=n(50140),z=n.n($),W=!0;function K(){let{text:e}=(0,G.W)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z(),{children:(0,i.jsxs)("title",{children:["Additional Info - ",e.PARTNER_LONG_NAME]})}),(0,i.jsx)(r.c,{children:(0,i.jsx)(M,{})})]})}K.getLayout=function(e){return(0,i.jsx)(o.K,{children:e})}},25816:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>r,E0:()=>d,QG:()=>s,mc:()=>o});var i=n(8368);let o=i.Ay.div.withConfig({displayName:"BottomActionBar.styled__Container",componentId:"sc-258a46b4-0"})(["display:flex;flex:1;flex-direction:column-reverse;width:100%;padding-bottom:",";@media (min-width:48rem){padding:0;}"],e=>{let{$padding:t}=e;return t?"6rem":"0"}),r=i.Ay.div.withConfig({displayName:"BottomActionBar.styled__Fixed",componentId:"sc-258a46b4-1"})(["position:fixed;left:0;bottom:0;display:flex;width:100%;background-color:",";box-shadow:",";z-index:",";@media (min-width:48rem){justify-content:center;","}"],e=>{let{theme:t}=e;return t.foundations.colors.white},e=>{let{theme:t}=e;return t.foundations.elevation.z3},e=>{let{theme:t}=e;return t.foundations.zIndex.docked},e=>{let{$disableFixedOnDesktop:t}=e;return t&&"\n      position: relative;\n      box-shadow: none;\n    "}),a={gap:"0.75rem",inlinePadding:"1rem",desktopInlinePadding:"0",desktopContentMaxWidth:"68.75rem"},l={gap:"0.5rem",inlinePadding:"1.25rem",desktopInlinePadding:"1.25rem",desktopContentMaxWidth:"56.375rem"},s=i.Ay.div.withConfig({displayName:"BottomActionBar.styled__FixedContent",componentId:"sc-258a46b4-2"})(["display:flex;flex:1;gap:",";padding:1rem "," 1.5rem;@media (min-width:48rem){max-width:",";padding-right:",";padding-left:",";}"],e=>{let{$matchBottomNavMetrics:t}=e;return(t?a:l).gap},e=>{let{$matchBottomNavMetrics:t}=e;return(t?a:l).inlinePadding},e=>{let{$matchBottomNavMetrics:t}=e;return(t?a:l).desktopContentMaxWidth},e=>{let{$matchBottomNavMetrics:t}=e;return(t?a:l).desktopInlinePadding},e=>{let{$matchBottomNavMetrics:t}=e;return(t?a:l).desktopInlinePadding}),d=i.Ay.div.withConfig({displayName:"BottomActionBar.styled__CallToAction",componentId:"sc-258a46b4-3"})(["flex:1;margin-left:auto;@media (min-width:48rem){flex:0 0 auto;width:",";}"],"15.125rem")},29485:(e,t,n)=>{"use strict";n.d(t,{U:()=>k}
1);var i=n(42884),o=n(76081),r=n(45486),a=n(57253),l=n(64413),s=n(53239),d=n(86917),c=n(7395),u=n(71599),m=n(20879),p=n(98282);let{PII_CAPTURE:h,HOLDER_CATEGORIES:f,ROLES:g,ELIGIBILITY:y,MEMBERSHIP:b,ACCOUNT_SELECTION:v,REVIEW:x,CUSTOM_APPLICANT_QUESTIONS:I,THANK_YOU:C,ERROR:w}=c.Q,A=(e,t)=>{let n=new URLSearchParams;Object.entries(t).forEach(e=>{let[t,i]=e;i&&n.set(t,i)});let i=n.toString();return i?"".concat(e,"?").concat(i):e},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{applicationId:t,accountHolderCategoryId:n,accountType:i}=e;return i?A(u.w.ACCOUNTS,(0,d._)({applicationId:t,accountType:i,category:n},(0,m.Te)())):A(u.w.ACCOUNT_TYPES,{applicationId:t,category:n})},_=function(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{applicationId:o,accountHolderCategoryId:r}=i,a={[h]:()=>p.t.GET_STARTED_ACCOUNT_OPENING,[f]:()=>A(u.w.HOLDER_CATEGORIES,{category:r}),[g]:()=>A(u.w.APPLICATION_ROLES,{applicationId:o,category:r}),[y]:()=>A(u.w.ELIGIBILITY,{applicationId:o,category:r}),[b]:()=>o?A(u.w.SELECT_MEMBERSHIP.replace(":applicationId",o),{category:r}):p.t.ERROR,[v]:()=>N(i),[I]:()=>p.t.ACCOUNT_OPENING_APPLICANT_QUESTIONNAIRE,[x]:()=>p.t.ACCOUNT_OPENING_REVIEW,[C]:()=>p.t.ACCOUNT_OPENING_THANK_YOU,[w]:()=>p.t.ERROR};return null!=(n=null==(t=a[e])?void 0:t.call(a))?n:p.t.ERROR};var P=n(82643),E=n(25722),O=n(80251),j=n(54366),T=n(23096);let S={runCreateApplicationWorkflow:async(e,t,n)=>(await T.FU.post("/refi-pipeline/".concat(e,"/consumer-portal/account-opening/feature-chaining/create-application"),n,{headers:{Authorization:"Bearer ".concat(t)}})).data};function k(){let{isToggleEnabled:e}=(0,i.dv)(),{goToNextStepFeatureChaining:t,isGoingToNextStep:n,isFeatureChainingError:d}=function(){let{goToNextStep:e,isGoingToNextStep:t,isFeatureChainingError:n}=function(){let e=(0,P.Y)(),{partnerId:t}=(0,a.W)(),n=(0,s.useCallback)(e=>{let{stepKey:t,stepState:n}=e;return _(t,n)},[]);return(0,o.useFeatureChaining)({useFetchFeatureChainingWorkflow:()=>(function(e){let{partnerId:t}=e,{accessToken:n}=(0,l.useCustomer)(),{mutateAsync:i,isLoading:o,isError:r,error:a}=(0,O.n)({mutationKey:["consumer-portal/account-opening/feature-chaining/create-application",{noGlobalError:!0}],mutationFn:async e=>{let{fromStepKey:i,stepState:o}=e;return S.runCreateApplicationWorkflow(t,n,{fromStepKey:i,stepState:o})},cacheTime:0,retry:!1,onError:(e,t)=>{var n;let i=null!=(n=t.stepState)?n:{},{rawFormValues:o}=i,r=(0,E._)(i,["rawFormValues"]);(0,j.Qw)(e instanceof Error?e:Error("AO create-application workflow failed"),{source:"useFetchAccountOpeningCreateApplication",fromStepKey:t.fromStepKey,stepState:r})}});return{onSubmit:async e=>i(e),isLoading:o,isError:r,error:a}})({partnerId:t}),getPathnameFromFeatureChainingStep:n,handleNavigation:{goBack:()=>e.back(),goTo:t=>{let{url:n}=t;e.push(n)},emitRouteChangeEvent:void 0,getCurrentPathname:()=>e.pathnameWithParams,isRedirectingToNextStep:!1}})}(),{setFeatureChainingFlowContext:i}=(0,r.gx)(),{customer:d}=(0,l.useCustomer)(),{partnerId:c,partnerAlias:u}=(0,a.W)();return{goToNextStepFeatureChaining:(0,s.useCallback)(async function(){let{applicationId:t,applicantId:n,accountHolderCategoryId:r,accountType:a,fromStepKey:l=o.FeatureChainingStepOptions.CONSUMER_PORTAL.CREATE_ACCOUNT_OPENING_APPLICATION.PII_CAPTURE}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s={applicationId:t,applicantId:n,accountHolderCategoryId:r,accountType:a,customerId:null==d?void 0:d.id,partnerId:c,partnerAlias:u};t&&i(t,{customerId:null==d?void 0:d.id,partnerId:c}),await e({fromStepKey:l,stepState:s})},[e,i,null==d?void 0:d.id,c,u]),isGoingToNextStep:t,isFeatureChainingError:n}}();return{isFeatureChainingEnabled:e,goToNextStep:e?t:()=>Promise.resolve(),isGoingToNextStep:e&&n,isFeatureChainingError:e&&d}}},29587:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});let i={ssn:"ssNumber"},o=e=>{var t;return null!=(t=i[e])?t:e}},35830:(e,t,n)=>{"use strict";n.d(t,{b:()=>p});var i=n(86917),o=n(97722);let r=new Set(["ssn","idCard.type","idCard.number","idCard.state","idCard.dateIssued","idCard.expireDate","idSection","firstName","middleName","lastName","suffix","email","cellphone","homePhone","workPhone","birthDate","address","address2","city","state","zipCode","country","mailingAddress","mailingAddress2","mailingCity","mailingState","mailingZipCode","mailingCountry"]),a=new Set(["employmentStatus","occupation","jobTitle","employerName","employerAddress","employerAddressComplement","employerCity","employerState","employerZipCode","yearsAtEmployer","monthsAtEmployer","previousOccupation","previousEmployerName"]),l=new Set(["housingPayment","housingType","monthsOccupyingHouse"]),s=new Set(["annualIncome","monthlyIncome","sourceOfIncome","otherSourceOfIncome"]),d=new Set(["idCard.type","idCard.number","idCard.state","idCard.country","idCard.dateIssued","idCard.expireDate"]),c=new Set(["firstName","middleName","lastName","suffix","suffixName","birthDate","phone","cellphone","homePhone","workPhone","email","citizenship","countryOfCitizenship","mothersMaidenName","ssn","address","address2","addressComplement","city","state","zipCode","country","mailingAddress","mailingAddress2","mailingAddressComplement","mailingCity","mailingState","mailingZipCode","mailingCountry","mailingAddressSameAsResidential"]);var u=n(54420),m=n(53239);function p(e){var t,n;let{fieldKeys:p,formId:h,authoritative:f,accessToken:g,enabled:y=!0,excludedKeys:b=r,preferSourcePageTitle:v=!1}=e,x=(0,m.useMemo)(()=>new Set(p),[p]),{data:I,isLoading:C,isError:w}=(0,u.E)(null!=h?h:"",y&&!!h,g),A=(0,m.useMemo)(()=>{var e,t,n;return null!=(n=null==I||null==(t=I.form)||null==(e=t.config)?void 0:e.pages)?n:[]},[I]);return{formPages:(0,m.useMemo)(()=>{var e;if(!A.length||!x.size)return[];let t=e=>x.has(e)&&(f||!b.has(e)),n=A.flatMap(e=>e.fields||[]).filter(e=>t(e.fieldKey));if(!n.length)return[];let r=v&&null!=(e=A.find(e=>(e.fields||[]).some(e=>t(e.fieldKey))))?e:A[0];return[(0,o._)((0,i._)({},r),{fields:function(e){let t=[],n=[],r=[],u=[],m=[],p=[];for(let i of e)c.has(i.fieldKey)?t.push(i):a.has(i.fieldKey)?n.push(i):l.has(i.fieldKey)?r.push(i):s.has(i.fieldKey)?u.push(i):d.has(i.fieldKey)?m.push(i):p.push(i);let h=[],f=(e,t,n)=>
1{0!==n.length&&(h.push({fieldKey:e,validator:"string",type:"section",input:{config:{label:t}}}),h.push(...(e=>{var t,n;if(1!==e.length)return e;let r=e[0],a=null!=(t=r.input)?t:{},l=null!=(n=a.config)?n:{};return[(0,o._)((0,i._)({},r),{input:(0,o._)((0,i._)({},a),{config:(0,o._)((0,i._)({},l),{columnSpan:"full"})})})]})(n)))};return f("personalInformationSection","Personal Information",t),f("employmentSection","Employment",n),f("housingSection","Housing",r),f("incomeSection","Income",u),f("idSection","ID",m),f("additionalInformationSection","Additional Information",p),h}(n)})]},[A,x,f,b,v]),formId:null!=(n=null==I||null==(t=I.form)?void 0:t.formId)?n:null,isLoading:C,isError:w}}},35879:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(80263),o=n(34367),r=n(59046),a=n(80619),l=n(22666);let s=e=>{let{children:t,title:n,onBack:s,redirectToMainPage:d=!1,enableGlowUp:c,showBehindModal:u,showBackButton:m=!0,fitContentHeight:p=!1,hasFixedBottomBar:h=!1}=e;return(0,i.jsxs)(a.sc,{enableGlowUp:c,$contentHeight:p?"auto":void 0,$hasFixedBottomBar:h,children:[(0,i.jsxs)(l.Vs,{children:[(0,i.jsx)(r.u,{hideMenu:!0,redirectToMainPage:d,$backgroundColor:"#FFFFFF",useColoredLogo:!0}),(0,i.jsx)(l.LD,{children:(0,i.jsx)(o.c,{})})]}),(0,i.jsx)(l.IS,{$showBehindModal:u,children:(0,i.jsx)(l.Y9,{onBack:m?s:void 0,headerTitle:n})}),t]})}},44376:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/additional-role-questions",function(){return n(24465)}])},49242:(e,t,n)=>{"use strict";n.d(t,{_:()=>v});var i=n(86917),o=n(97722),r=n(25722),a=n(80263),l=n(40175),s=n(49454),d=n(42884),c=n(60605),u=n(8368);let m=(0,u.i7)(["from{opacity:0;}to{opacity:1;}"]),p=(0,u.i7)(["from{opacity:1;}to{opacity:0;}"]),h=(0,u.i7)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),f=(0,u.i7)(["from{transform:translateY(0);}to{transform:translateY(100%);}"]),g=(0,u.Ay)(s.hJ).withConfig({displayName:"Drawer.styled__DrawerOverlay",componentId:"sc-334682af-0"})(["background-color:rgba(0,0,0,0.5);position:fixed;inset:0;animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;z-index:",";&[data-state='closed']{animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;}"],m,e=>e.theme.foundations.zIndex.modal,p),y=(0,u.Ay)(s.UC).withConfig({displayName:"Drawer.styled__DrawerContent",componentId:"sc-334682af-1"})(["position:fixed;left:0;bottom:0;width:100%;max-height:85vh;background-color:",";border-top-left-radius:1rem;border-top-right-radius:1rem;box-shadow:0 8px 10px -5px rgba(0,0,0,0.2),0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12);animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;z-index:",";&[data-state='closed']{animation:"," 190ms cubic-bezier(0,0,0.2,1) 0ms;}@media (min-width:48rem){max-width:",";max-height:fit-content;margin:auto;inset:0;border-radius:1rem;&[data-state='closed']{animation:none;}}"],e=>e.theme.foundations.colors.white,h,e=>e.theme.foundations.zIndex.modal,f,e=>e.$maxWidth?"".concat(e.$maxWidth,"rem"):"23.4375rem"),b=(0,u.Ay)(s.bm).withConfig({displayName:"Drawer.styled__DrawerCloseButton",componentId:"sc-334682af-2"})(["display:flex;align-items:center;justify-content:center;position:absolute;top:1rem;right:1rem;border:none;background-color:transparent;min-width:2.75rem;min-height:2.75rem;cursor:pointer;padding:0;transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:",";&:hover{background-color:",";}"],e=>e.theme.foundations.radius.circle,e=>e.theme.foundations.colors.black10),v=e=>{var{open:t,onClose:n,children:u,maxWidth:m,title:p="Drawer",description:h,preventClickOutside:f}=e,v=(0,r._)(e,["open","onClose","children","maxWidth","title","description","preventClickOutside"]);let{isToggleEnabled:x}=(0,d.li)(),I=f?void 0:n;return(0,a.jsx)(s.bL,{open:t,children:(0,a.jsxs)(s.ZL,{children:[(0,a.jsx)(g,{}),(0,a.jsxs)(y,(0,o._)((0,i._)({$maxWidth:m,onPointerDownOutside:I,onEscapeKeyDown:n},v),{children:[(0,a.jsx)(s.hE,{asChild:!0,children:(0,a.jsx)(l.s,{children:p})}),h?(0,a.jsx)(s.VY,{asChild:!0,children:(0,a.jsx)(l.s,{children:h})}):(0,a.jsx)(s.VY,{"aria-hidden":!0,asChild:!0,children:(0,a.jsx)(l.s,{})}),u,(0,a.jsxs)(b,{onClick:n,children:[(0,a.jsx)(c.u,{weight:x?"regular":"bold"}),(0,a.jsx)(l.s,{children:"Close Drawer"})]})]}))]})})}},52121:(e,t,n)=>{"use strict";n.d(t,{WU:()=>c,pF:()=>u,rI:()=>m});var i=n(86917),o=n(31901),r=n(57253),a=n(27194),l=n(965),s=n(29974),d=n(90946);let c={queryKey:e=>{let{token:t,applicationId:n,partnerId:i}=e;return[a.oR.APPLICATION_ELIGIBILITY,t,n,i]},queryFn:async e=>{let{token:t,applicationId:n,partnerId:i}=e;return a.MP.configs.applicationEligibility({token:t,applicationId:n,partnerId:i})}};
1async function u(e){await e.invalidateQueries({queryKey:[a.oR.APPLICATION_ELIGIBILITY]})}let m=e=>{let{applicationId:t,onSuccess:n,enabled:a=!0}=e,u=!!(t&&a),{accessToken:m}=(0,s.u)(),{partnerId:p,isLoading:h}=(0,r.W)({enabled:u}),{features:f,isLoading:g}=(0,d.m)({enabled:u}),y=null==f?void 0:f.SUPPORTS_MULTIPLE_MEMBERSHIPS,b=(0,o.I)(c.queryKey({token:m,applicationId:t,partnerId:p}),async()=>c.queryFn({token:m,applicationId:t,partnerId:p}),{enabled:u,refetchOnWindowFocus:!1,onSuccess:n}),{isLoading:v,error:x,data:I}=b,C=!!u&&(g||v||h),w=(null==I?void 0:I.applicationType)===l.Xr.PERSONAL,A=!!(null==I?void 0:I.eligibility),N=null==I?void 0:I.isNewMember,_=!!(null==I?void 0:I.memberNumber),P=!!(w&&N&&!A)&&!C,E=!!(y&&w&&!_&&!A)&&!C;return(0,i._)({isLoading:C,error:x,applicationEligibilityResponse:I,isPersonalNewMemberWithoutEligibility:P,isPersonalMemberWithNewMembershipWithoutEligibility:E,isNewMember:null==I?void 0:I.isNewMember,isPersonalApplication:w},b)}},54470:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var i=n(80263),o=n(53239),r=n(4366),a=n(84474),l=n(70431),s=n(28099),d=n(25816);function c(e){let{children:t}=e,{isToggleEnabled:n}=(0,l.Q)();return(0,i.jsx)(d.mc,{$padding:n,children:t})}c.Fixed=function(e){let{children:t,disableFixedOnDesktop:n,hideMultipleAccounts:c=!1,matchBottomNavMetrics:u=!1}=e,{isToggleEnabled:m}=(0,l.Q)(),p=(0,r.U)("(min-width: 768px)");return(0,o.useLayoutEffect)(()=>{let e=document.getElementById("layout-b");if(e)return m&&p?e.style.paddingBottom="6rem":e.style.paddingBottom=null,()=>{e.style.paddingBottom=null}},[p,m]),(0,i.jsx)(a.j,{condition:m,fallback:t,children:(0,i.jsx)(d.Dv,{"data-testid":"bottom-action-bar-fixed",$disableFixedOnDesktop:n,children:(0,i.jsxs)(d.QG,{$matchBottomNavMetrics:u,children:[(0,i.jsx)(a.j,{condition:!c,children:(0,i.jsx)(s.D,{})}),t]})})})}},59697:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var i=n(22737),o=n(5412),r=n(80263);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["children","component"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var d=function(e){var t=e.children,n=e.component,d=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return(0,r.jsx)(i.j,{condition:"string"==typeof t,children:(0,r.jsx)(void 0===n?"div":n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var i,o,r;i=e,o=t,r=n[t],(o=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(o))in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({dangerouslySetInnerHTML:{__html:o.D.sanitize(t)}},d))})}},66329:(e,t,n)=>{"use strict";n.d(t,{g:()=>g});var i=n(80263),o=n(22737),r=n(68822),a=n(72521),l=n(60605);n(53239);var s=n(67280),d=n(63298),c=n(8368),u=n(57253);let m=e=>{let{onClick:t,icon:n,colored:o,ariaLabel:r,testId:a}=e,l=(0,c.DP)(),{theme:m}=(0,u.W)(),p="function"==typeof t,h=o?l.foundations.colors.white:m.colors.primary;if(!p)return(0,i.jsx)("div",{});let f=null!=n?n:d.A;return(0,i.jsx)(s.K,{"data-testid":a,onClick:t,"aria-label":r,children:(0,i.jsx)(f,{weight:"bold",color:h})})};var p=n(59946);let h=c.Ay.nav.withConfig({displayName:"NavigationHeader.styled__Navbar",componentId:"sc-aada6fa7-0"})(["--default-max-width:31.5rem;--max-width:auto;--font-size:",";--font-weight:",";--bg-color:",";--text-color:",";display:grid;align-items:center;grid-template-columns:3rem 1fr 3rem;background-color:var(--bg-color);font-size:var(--font-size);font-weight:var(--font-weight);width:100%;max-width:",";color:var(--text-color);margin-inline:auto;min-height:4rem;text-align:center;& > *{font-size:inherit;font-weight:inherit;}@media ","{--max-width:",";}"],e=>e.$enableUiGlowUp?e.$small?e.theme.foundations.typography.fontSize.base:e.theme.foundations.typography.fontSize.lg:e.$small?e.theme.foundations.typography.fontSize.md:e.theme.foundations.typography.fontSize.lg,e=>e.$enableUiGlowUp?e.theme.foundations.typography.fontWeight.bold:e.$small?e.theme.foundations.typography.fontWeight.normal:e.theme.foundations.typography.fontWeight.bold,e=>
1e.$colored?e.theme.colors.colorfulBackground:e.theme.foundations.colors.white,e=>e.$colored?e.theme.foundations.colors.white:e.theme.colors.colorfulBackground,e=>e.$expandedNavbarContainer?"calc(47rem + 1.6rem)":"var(--max-width)",(0,p.P)({from:"md"}),e=>{var t;return null!=(t=e.$maxWidth)?t:"var(--default-max-width)"}),f=c.Ay.div.withConfig({displayName:"NavigationHeader.styled__BackButtonWrapper",componentId:"sc-aada6fa7-1"})(["display:flex;align-items:center;p{color:",";}"],e=>e.$colored?e.theme.foundations.colors.white:e.theme.colors.colorfulBackground),g=e=>{let{onBack:t,onClose:n,colored:s,children:d,maxWidth:c,closeButtonAriaLabel:u="Close",small:p=!1,icon:g,showBackButton:y=!0,showCloseButton:b=!0,$enableUiGlowUp:v,$expandedNavbarContainer:x,backButtonLabel:I}=e;return(0,i.jsxs)(h,{"aria-label":"Page navigation",$maxWidth:c,$small:p,$colored:s,$enableUiGlowUp:v,$expandedNavbarContainer:x,"data-testid":"section-header",children:[y?(0,i.jsxs)(f,{$colored:!!s,children:[(0,i.jsx)(m,{onClick:t,icon:g,colored:s,ariaLabel:"Back to previous page",testId:"section-header-back-btn"}),(0,i.jsx)(o.j,{condition:!!I,children:(0,i.jsx)(r.o.Body,{size:a.jJ.LG,children:I})})]}):(0,i.jsx)("div",{}),d,b?(0,i.jsx)(m,{onClick:n,icon:l.u,colored:s,ariaLabel:u,testId:"navigation-header-close-btn"}):(0,i.jsx)("div",{})]})}},73060:(e,t,n)=>{"use strict";n.d(t,{E:()=>m});var i=n(80263),o=n(35879),r=n(42884),a=n(28293),l=n(57065),s=n(83948),d=n(59046),c=n(80619),u=n(66329);let m=e=>{let{children:t,onBack:n,title:m="Account Opening",showHeaderBehindModal:p=!1,fitContentHeight:h=!1,hasFixedBottomBar:f=!1}=e,{isToggleEnabled:g}=(0,r.li)(),{isToggleEnabled:y}=(0,r.gK)(),b=(0,s.v)();return(0,l.j)()?(0,i.jsx)(a.fA,{children:t}):g&&b?(0,i.jsx)(o.L,{title:m,onBack:n,showBehindModal:p,enableGlowUp:y,fitContentHeight:h,hasFixedBottomBar:f,children:(0,i.jsx)(c.UC,{$enableGlowUp:y,children:t})}):(0,i.jsxs)(c.sc,{$contentHeight:h?"auto":void 0,$hasFixedBottomBar:f,children:[(0,i.jsx)(c.Vs,{children:(0,i.jsx)(d.u,{hideMenu:!0,redirectToMainPage:!1})}),(0,i.jsx)(c.IS,{$showBehindModal:p,children:(0,i.jsx)(u.g,{small:!0,onBack:n,children:m})}),(0,i.jsx)(c.UC,{children:t})]})}},73470:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var i=n(32144),o=n(54366),r=n(20065),a=n(27194),l=n(29974),s=n(52121),d=n(56439),c=n(86418);let u=e=>{let{applicantId:t,onSuccess:n,shouldNotRedirectOnUnprocessable:u}=e,{accessToken:m}=(0,l.u)(),p=(0,d.F)(),h=(0,i.jE)(),{isLoading:f,mutate:g,error:y}=(0,c.h)({shouldNotRedirectOnUnprocessable:u,mutationKey:[a.oR.APPLICATION_APPLICANTS,p,t,"update-info"],mutationFn:async e=>{let{applicant:n}=e;return a.MP.configs.updateApplicantInfo({token:m,applicationId:p,applicantId:t,applicant:n})},onSuccess:async()=>{await h.invalidateQueries({queryKey:[a.oR.APPLICANT_BY_APPLICATION_AND_APPLICANT_ID,p,t]}),await (0,s.pF)(h),null==n||n()},onError:e=>{let{statusCode:n,validationMessages:i}=(0,r.i)(e);(0,o.Qw)(Error("updateApplicantInfo failed (status ".concat(null!=n?n:"unknown",")")),{feature:"ACCOUNT_OPENING",endpoint:"PUT /account-opening/:applicationId/applicants/:applicantId",applicationId:p,applicantId:t,statusCode:n,validationMessages:i})}});return{isUpdating:f,updateApplicantInfo:g,updateError:y}}},87875:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i.Q});var i=n(23120)},92457:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(27194),o=n(29974),r=n(87520);function a(e){let{applicationId:t,applicantId:n,enabled:a}=e,{accessToken:l}=(0,o.u)(),{data:s,isLoading:d,isError:c}=(0,r.U)({queryKey:[i.oR.APPLICANT_BY_APPLICATION_AND_APPLICANT_ID,t,n],queryFn:async()=>i.MP.configs.getApplicantByApplicationAndApplicantId({applicationId:t,applicantId:null!=n?n:"",token:l}),queryOptions:{enabled:a&&!!n&&!!t}});return{data:s,isLoading:d,isError:c}}}},e=>{e.O(0,[3140,5708,6617,7086,1493,2900,9266,1036,2528,2791,4179,711,2411,8056,3076,9474,3633,8607,8907,584,6977,83,9046,5341,4213,6594,2496,6156,9154,9136,431,8662,8218,636,6593,8792],()=>e(e.s=44376)),_N_E=e.O()}]);
2//# sourceMappingURL=additional-role-questions-e7e80d04745fbd09.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.