PageSourceSearch

https://apply.ttcu.com/_next/static/chunks/pages/account-opening/application-roles-7d4858017a18be24.js

js ttcu.com collected 2026-09-24 10:37:43 UTC 36,438 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8941],{1814:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});let i="•••••••••"},8256:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var i=n(80263),r=n(84474),o=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)(),p=(0,c.useRef)(!1),m=null==(t=u.query)?void 0:t.applicationId,y=(()=>{try{var e;return null==(e=(0,s.RB)())?void 0:e.id}catch(e){(0,o.Qw)(e instanceof Error?e:Error("Failed to read applicationId from session storage"),{context:"ApplicationIdPresentGuard.readSessionStorageApplicationId"});return}})();m&&m!==y&&((0,s.Py)(),(0,s.I6)({id:m,source:l.r.CUSTOMER_PORTAL}));let f=m||y,g=(0,c.useCallback)(async()=>u.replace(a.w.HOME),[u]);return(0,c.useEffect)(()=>{p.current||(p.current=!0,(0,o.ZI)("ApplicationIdPresentGuard: resolved application id",{hasQueryParamApplicationId:!!m,hasSessionStorageApplicationId:!!y,pathname:u.pathname,resolved:!!f}))},[f,m,y,u.pathname]),(0,c.useEffect)(()=>{f||g()},[f,g]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.j,{condition:!!f,children:n})})}},8991:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var i=n(86917),r=n(97722),o=n(25722),a=n(1814);let l=e=>{if(!e)return;let{hasNumber:t}=e,n=(0,o._)(e,["hasNumber"]),l=n.number&&n.number!==a.D?n.number:void 0;return(0,r._)((0,i._)({},n),{number:l})}},14268:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/application-roles",function(){return n(33849)}])},17916:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var i=n(86917),r=n(71599);function o(e){let{applicationId:t,applicantId:n,requiresEligibility:o,supportsMultipleMembership:a,requiresApplicationRoles:l,isMembershipFirstRoute:s,category:d,accountType:c}=e,u=(0,i._)({},d?{category:d}:{},c?{accountType:c}:{},n?{applicantId:n}:{});return l?{pathname:r.w.APPLICATION_ROLES,query:(0,i._)({applicationId:t},u)}:o?{pathname:r.w.ELIGIBILITY,query:(0,i._)({applicationId:t},u)}:a&&!s?(0,i._)({pathname:r.w.SELECT_MEMBERSHIP.replace(":applicationId",t)},Object.keys(u).length?{query:u}:{}):{pathname:r.w.ACCOUNT_TYPES,query:(0,i._)({applicationId:t},u)}}},20879:(e,t,n)=>{"use strict";n.d(t,{Te:()=>o,ez:()=>a});var i=n(82198);let r=e=>e.startsWith("".concat("utm","_"));function o(){let e=(0,i.NF)();if(!e)return{};let t=new URLSearchParams(e),n={};return t.forEach((e,t)=>{r(t)&&(n[t]=e)}),n}function a(e){if(!e)return{};let t={};return Object.entries(e).forEach(e=>{let[n,i]=e;r(n)&&"string"==typeof i&&(t[n]=i)}),t}},22666:(e,t,n)=>{"use strict";n.d(t,{LD:()=>x,Y9:()=>b,Dx:()=>j,Vs:()=>O,IS:()=>w});var i=n(80263),r=n(34367),o=n(22737),a=n(63607),l=n(59046),s=n(84796),d=n(4366),c=n(80619),u=n(96400),p=n(59946),m=n(8368);let y=m.Ay.main.withConfig({displayName:"styled__ContentStyled",componentId:"sc-9a386236-0"})(["overflow-x:hidden;grid-area:content;width:100%;max-width:100vw;"]),f=m.Ay.div.withConfig({displayName:"styled__ContentWrapper",componentId:"sc-9a386236-1"})(["padding:1.5rem;overflow:visible;width:100%;margin:auto;box-sizing:border-box;max-width:100%;padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center;@media ","{padding:20px 0;overflow:overlay;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px));}"],(0,p.P)({from:"md"})),g=e=>{let{children:t}=e;return(0,i.jsx)(y,{as:"main",id:"main-content","data-testid":"LayoutWithBottomNav-Content",children:(0,i.jsx)(f,{children:t})})};var h=n(25437),v=n(84297),A=n(95952),I=n(43348),_=n(4622);let C=m.Ay.div.withConfig({displayName:"Header.styled__HeaderStyled",componentId:"sc-daadb14c-0"})(["display:grid;align-items:center;grid-template-columns:4rem 1fr 4rem;width:100%;justify-items:center;@media ","{padding:1rem 13.3rem;}"],(0,p.P)({from:"md"})),b=e=>{let{onBack:t,backButtonTitle:n="Back",headerTitle:r}=e,a=(0,m.DP)(),l=(0,d.U)("(min-width: 768px)");return(0,i.jsxs)(C,{children:[t?(0,i.jsxs)(h.$,{onClick:t,variant:"text",size:"sm","aria-label":n,children:[(0,i.jsx)(v.I,{size:A.y.MEDIUM,color:a.colors.primary,children:(0,i.jsx)(_.n,{})}),(0,i.jsx)(o.j,{condition:l,children:(0,i.jsx)(I.E,{$variant:"secondary",$color:a.colors.primary,style:{fontSize:"14px"},$weight:"medium",$shouldUseDesignSystemFont:!0,children:n})})]}):(0,i.jsx)("div",{}),(0,i.jsx)("div",{children:r?(0,i.jsx)(I.E,{$variant:"primary",$weight:l?"medium":"bold",$color:a.colors.primary,style:{fontSize:l?"21px":"16px"},$shouldUseDesignSystemFont:!0,children:r}):null})]})},x=m.Ay.div.withConfig({displayName:"LayoutWithBottomNav.styled__DividerWrapper",componentId:"sc-1bc6f26b-0"}
1)(["height:1px;width:100%;"]),N=m.Ay.div.withConfig({displayName:"LayoutWithBottomNav.styled__MobileButtonWrapper",componentId:"sc-1bc6f26b-1"})(["position:fixed;bottom:0;left:0;right:0;z-index:",";width:100%;padding:1rem max(1rem,env(safe-area-inset-right,0px)) calc(1.2rem + env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px));background-color:",";box-shadow:",";display:flex;gap:0.75rem;"],e=>{let{theme:t}=e;return t.foundations.zIndex.docked},e=>{let{theme:t}=e;return t.foundations.colors.white},e=>{let{theme:t}=e;return t.foundations.elevation.z3}),P=(0,m.Ay)(a.E.Button).withConfig({displayName:"LayoutWithBottomNav.styled__BottomActionBarButton",componentId:"sc-1bc6f26b-2"})(["border-radius:9999px;width:242px;"]),T=(0,m.Ay)(h.$).withConfig({displayName:"LayoutWithBottomNav.styled__Button",componentId:"sc-1bc6f26b-3"})(["border-radius:9999px;"]),E="#FFFFFF",O=e=>{let{children:t}=e;return(0,i.jsx)(u.w,{$backgroundColor:E,"data-testid":"LayoutWithBottomNav-TopBar",children:t})},w=e=>{let{$showBehindModal:t,children:n}=e,r=(0,s.v)({disableHysteresis:!0,threshold:0});return(0,i.jsx)(u.v,{"data-testid":"LayoutWithBottomNav-TopNavigation",$showElevation:!!r,$showBehindModal:t,$colored:!1,children:n})},j=e=>{let{children:t,onBack:n,title:s,showHeaderBehindModal:u=!1,bottomActionBarProps:p,extraButtons:m=null}=e,y=(0,d.U)("(min-width: 768px)");return(0,i.jsxs)(c.sc,{$contentWidth:"100%",$contentHeight:"100%",$backgroundColor:E,children:[(0,i.jsxs)(O,{children:[(0,i.jsx)(l.u,{hideMenu:!0,redirectToMainPage:!1,$backgroundColor:E,useColoredLogo:!0}),(0,i.jsx)(x,{children:(0,i.jsx)(r.c,{})})]}),(0,i.jsx)(w,{$showBehindModal:u,children:(0,i.jsx)(b,{onBack:n,headerTitle:s})}),(0,i.jsx)(g,{children:t}),!!p&&(0,i.jsx)("footer",{children:(0,i.jsx)(o.j,{condition:y,fallback:(0,i.jsxs)(N,{"data-testid":"LayoutWithBottomNav-MobileButtonWrapper",children:[m,(0,i.jsx)(T,{onClick:p.onClick,disabled:p.disabled,loading:p.loading,variant:"primary",size:"lg",fullWidth:!0,children:p.label})]}),children:(0,i.jsxs)(a.E,{innerWidth:"1100px",children:[m,(0,i.jsx)(P,{loading:p.loading,disabled:p.disabled,onClick:p.onClick,children:p.label})]})})})]})}},23120:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var i=n(86917),r=n(42884),o=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:p,onEventTracked:m}=e,{partnerAlias:y}=(0,d.W)(),{isToggleEnabled:f}=(0,r.qv)(),g=p?JSON.stringify(p):void 0;(0,l.useEffect)(()=>{t&&y&&n&&(u===s.bD.LENDING?a.g.trackEvent(t,(0,i._)({type:"page_view",status:"started",piiFlowVersion:"v3",partnerAlias:y},p)):u===s.bD.ACCOUNT_OPENING&&a.g.trackEvent(t,(0,i._)({type:"page_view",status:"started",partnerAlias:y,productType:s.bD.ACCOUNT_OPENING,accountOpeningPiiFlow:(0,o.k)(f)},p)),m&&m())},[t,y,n,m,g,f,...c])}},33849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>ej,default:()=>eS});var i=n(80263),r=n(8256),o=n(53239);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var l=function(e,t){switch(t.type){case"OPEN_MODAL":return{isOpen:!0,payload:t.payload};case"CLOSE_MODAL":return{isOpen:!1,payload:null};default:return e}};function s(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,o.useReducer)(l,{isOpen:!1,payload:null}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,l=[],s=!0,d=!1;try{o=(n=n.call(e)).next,!1;for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){d=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}(e,2)||function(e,t){if(e){if("string"==typeof e)return a(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],i=t[1];return{openModal:function(e){i({type:"OPEN_MODAL",payload:e})},closeModal:function(){i({type:"CLOSE_MODAL"})},displayModalState:n}}var d=n(4354),c=n(18453),u=n(22737),p=n(84176),m=n(67380),y=n(32144),f=n(96552),g=n(22666),h=n(35613),v=n(87875),A=n(44007),I=n(86281),_=n(44148),C=n(27194),b=n(52121),x=n(8368);let N=x.Ay.div.withConfig({displayName:"ApplicationRoles.styled__ContentWrapper",componentId:"sc-d1c91164-0"})(["display:flex;flex-direction:column;flex:1;width:100%;max-width:910px;margin:0 auto;padding:"," ",";"],e=>{let{theme:t}=e;return t.token.spacing["16"]},e=>{let{theme:t}=e;return t.token.spacing["08"]}),P=x.Ay.div.withConfig({displayName:"ApplicationRoles.styled__LoadingWrapper",componentId:"sc-d1c91164-1"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:200px;"]),T=x.Ay.h1.withConfig({displayName:"ApplicationRoles.styled__PageTitle",componentId:"sc-d1c91164-2"})(["font-size:",";font-weight:",";margin-block-start:0;margin-block-end:",";"],e=>{let{theme:t}=e;return t.foundations.typography.fontSize.lg},e=>{let{theme:t}=e;return t.foundations.typography.fontWeight.normal},e=>{let{theme:t}=e;return t.token.spacing["04"]}),E=x.Ay.p.withConfig({displayName:"ApplicationRoles.styled__PageSubtitle",componentId:"sc-d1c91164-3"})(["font-size:",";font-weight:",";color:",";margin-block-start:0;margin-block-end:",";"],e=>{let{theme:t}=e;return t.foundations.typography.fontSize.xs},e=>{let{theme:t}=e;return t.foundations.typography.fontWeight.normal},e=>{let{theme:t}=e;return t.foundations.colors.black70},e=>{let{theme:t}=e;return t.token.spacing["16"]}),O=x.Ay.div.withConfig({displayName:"ApplicationRoles.styled__RolesWrapper",componentId:"sc-d1c91164-4"})(["display:flex;flex-direction:column;gap:",";"],e=>{let{theme:t}=e;return t.token.spacing["16"]}),w=x.Ay.h2.withConfig({displayName:"ApplicationRoles.styled__DeleteNotAllowedText",componentId:"sc-d1c91164-5"})(["text-align:center;font-size:",";font-weight:",";max-width:410px;margin:0 auto;"],e=>{let{theme:t}=e;return t.foundations.typography.fontSize.md},e=>{let{theme:t}=e;return t.foundations.typography.fontWeight.bold});var j=n(86917),S=n(97722),L=n(25722),R=n(78467),M=n(55499),k=n(75341),q=n(49136),U=n(42884),D=n(99612),F=n(54420),B=n(31415),W=n(28195),G=n(1814),H=n(29974),K=n(84297),$=n(95952),z=n(97749),Q=n(97137);function V(e){var t=e.iconName,n=(0,x.DP)();return(0,i.jsx)(K.I,{size:$.y.MEDIUM,backgroundColor:n.token.color.partner.lighter,color:n.token.color.partner.primary,colorfulBackgroun
1d:!0,children:(0,i.jsx)(z.i,{iconName:t,fallback:(0,i.jsx)(Q.K,{})})})}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var J=function(e){var t=e.rolesConfig,n=e.applicantsByRole,r=e.renderIcon,o=void 0===r?function(e){return(0,i.jsx)(V,{iconName:e})}:r;return Object.entries(t||{}).map(function(e){var t,i,r,a,l,s,d,c,u,p=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,l=[],s=!0,d=!1;try{o=(n=n.call(e)).next,!1;for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){d=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}(e,2)||function(e,t){if(e){if("string"==typeof e)return Y(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=p[0],y=p[1],f={isApplicable:null==(t=y.isApplicable)||t,isRequired:null!=(i=y.isRequired)&&i,maximumCount:null!=(r=y.maximumCount)?r:void 0,minimumCount:null!=(a=y.minimumCount)?a:void 0,isAccountOwner:null!=(l=y.isAccountOwner)&&l,isLegalRepresentative:null!=(s=y.isLegalRepresentative)&&s};return{sectionId:m,title:null!=(d=y.roleName)?d:"",description:null!=(c=y.roleDescription)?c:"",icon:o(y.iconName),items:(null==n||null==(u=n[m])?void 0:u.map(function(e){var t;return{id:e.id,label:"".concat(e.firstName," ").concat(e.lastName),hideDeleteButton:!1,percentage:null!=(t=e.percentage)?t:void 0}}))||[],settings:f,error:{title:"",description:""}}})};let X=e=>e.toLowerCase().replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),Z="GUARDIAN",ee="MINOR";var et=n(82198),en=n(45129),ei=n(56439),er=n(86418);let eo={mutationKey:e=>{let{applicationId:t}=e;return[C.oR.ACCOUNT_APPLICANTS,t]},mutationFn:async e=>C.MP.configs.createApplicant(e)};var ea=n(41941);let el=new Set(["employmentStatus","occupation","jobTitle","employerName","employerAddress","employerAddressComplement","employerCity","employerState","employerZipCode","yearsAtEmployer","monthsAtEmployer","previousOccupation","previousEmployerName","housingPayment","housingType","monthsOccupyingHouse","annualIncome","monthlyIncome","sourceOfIncome","otherSourceOfIncome"]);var es=n(8991),ed=n(92457),ec=n(54366),eu=n(89895),ep=n(20065),em=n(965),ey=n(71599),ef=n(90946),eg=n(60165),eh=n(71829),ev=n(83495),eA=n(17916),eI=n(73470);let e_=x.Ay.div.withConfig({displayName:"ApplicationRolesPersonModal.styled__ModalContent",componentId:"sc-c092b059-0"})(["min-height:200px;padding:",";max-width:810px;width:100%;@media (min-width:768px){min-width:690px;}@media (min-width:900px){min-width:720px;}"],e=>{let{theme:t}=e;return t.token.spacing["16"]}),eC=x.Ay.div.withConfig({displayName:"ApplicationRolesPersonModal.styled__LoadingWrapper",componentId:"sc-c092b059-1"})(["display:flex;justify-content:center;align-items:center;min-height:200px;"]),eb=x.Ay.div.withConfig({displayName:"ApplicationRolesPersonModal.styled__ErrorWrapper",componentId:"sc-c092b059-2"})(["color:",";text-align:center;padding:",";"],e=>{let{theme:t}=e;return t.token.color.red["600"]},e=>{let{theme:t}=e;return t.token.spacing["16"]});function ex(e){let{hasIdCardNumberOnFile:t,rootRef:n}=e;return(0,ea.c)({hasIdCardNumberOnFile:t,rootRef:n}),null}let eN="application-roles-person-form";function eP(e){var t,n;let{isOpen:r,onClose:a,sectionId:l,rolesConfig:s,editingApplicant:d,applicationId:c,onSaveSuccess:u}=e,{accessToken:m}=(0,H.u)(),{isDesktop:g}=(0,M.k)(),h=!!d,{isLoading:v,createApplicant:A,error:I}=(e=>{let{accessToken:t}=(0,H.u)(),n=(0,ei.F)(),i=(0,y.jE)(),{isLoading:r,isSuccess:o,mutateAsync:a,error:l}=(0,er.h)({mutationKey:eo.mutationKey({applicationId:n}),mutationFn:async e=>{let{applicant:i,applicationLevelRoles:r}=e;return eo.mutationFn({token:t,applicationId:n,applicant:i,applicationLevelRoles:r})},onSuccess:async()=>{var t;await (0,b.pF)(i),null==e||null==(t=e.onSuccess)||t.call(e)}});return{isLoading:r,isSuccess:o,createApplicant:a,error:l}})({onSuccess:u}),{isUpdating:_,updateApplicantInfo:C,updateError:x}=(0,eI.f)({applicantId:null!=(n=null==d?void 0:d.id)?n:"",onSuccess:u}),N=I||x?"An error occurred. Please try again.":null,P=(0,o.useMemo)(()=>l?((e,t,n)=>{let i=t[e],r=i&&"applicantType"in i?i.applicantType:e;return n?"EDIT_".concat(r.toUpperCase(),"_APPLICANT_WITH_MULTI_STEP"):"".concat(r.toUpperCase(),"_APPLICANT_WITH_MULTI_STEP")})(l,s,h):"",[l,s,h]),T=(0,B.z)({formId:P}),E=(0,o.useMemo)(()=>l?((e,t,n)=>{let i=t[e],r=i&&"applicantType"in i?i.roleName:X(e);return n?"Edit ".concat(r):"Add ".concat(r)})(l,s,h):"",[l,s,h]),{data:O,isLoading:w}=(0,ed.m)({applicationId:c,applicantId:null==d?void 0:d.id,enabled:r&&h}),{fieldsToOverride:K,isLoading:$}=function(e){let{sectionId:t,rolesConfig:n,enabled:i=!0}=e,r=(0,et.PX)(),a=i&&!!r,{accountHolderTypesConfig:l}=(0,en.i)({categoryId:r,enabled:a}),s=(0,o.useMemo)(()=>null==l?void 0:l.find(e=>e.id===r),[l,r]),d=(0,o.useMemo)(()=>
1{if(0===Object.keys(n).length)return t===Z;let e=n[t];return!!(e&&"applicantType"in e&&e.isLegalRepresentative)},[n,t]);return(0,o.useMemo)(()=>{let e={};d?e.minAge=18:((null==s?void 0:s.minAge)!==void 0&&(e.minAge=s.minAge),(null==s?void 0:s.maxAge)!==void 0&&(e.maxAge=s.maxAge));let t=void 0!==e.minAge||void 0!==e.maxAge;return{minAge:e.minAge,maxAge:e.maxAge,fieldsToOverride:t?[{fieldKey:"birthDate",validations:e}]:[],isLoading:!d&&a&&void 0===l}},[d,s,a,l])}({sectionId:l,rolesConfig:s,enabled:r}),{data:z,isLoading:Q,isError:V}=(0,F.E)(P,r&&!!l,m),Y=(0,o.useMemo)(()=>{var e,t,n;return(null!=(n=null==z||null==(t=z.form)||null==(e=t.config)?void 0:e.pages)?n:[]).map(e=>{var t;return(0,S._)((0,j._)({},e),{fields:(null!=(t=e.fields)?t:[]).filter(e=>!el.has(e.fieldKey))})}).filter(e=>e.fields.length>0)},[z]),J=(0,o.useMemo)(()=>Y.flatMap(e=>e.fields||[]),[Y]),{isToggleEnabled:ee}=(0,U.qv)(),ea=(0,o.useMemo)(()=>[...null!=K?K:[],...(0,D.q)({formId:P,pages:Y,isInvertedPiiEnabled:ee})],[K,P,Y,ee]),ec=!!(h&&(null==O||null==(t=O.idCard)?void 0:t.hasNumber)),eu=(0,o.useMemo)(()=>h&&O?ec&&O.idCard?(0,S._)((0,j._)({},O),{idCard:(0,S._)((0,j._)({},O.idCard),{number:G.D})}):O:null,[h,O,ec]),ep=(0,o.useMemo)(()=>J.length&&h&&eu?(0,W.b)(J,W.S,eu):{},[J,h,eu]),em=(0,o.useRef)(null),ey=async e=>{var t;let n=[{id:l}],{ssn:i,idCard:r,birthDate:o}=e,a=(0,L._)(e,["ssn","idCard","birthDate"]),s=(0,es.P)(r),c=null!=(t=a.customQuestions)?t:h?null==O?void 0:O.customQuestions:void 0,u=(0,j._)({},a,c?{customQuestions:c}:{},o?{birthDate:k.Q.formatters.date.formatDateAsISO(o)}:{},i?{ssNumber:i}:{},s?{idCard:s}:{});h&&d?C({applicant:(0,S._)((0,j._)({},u),{applicationLevelRoles:n})}):await A({applicant:u,applicationLevelRoles:n})};if(!r)return null;let ef=Q||h&&w||$,eg=!ef&&!V&&Y.length>0;return(0,i.jsx)(p.a,{shouldUseDesignSystemFont:!0,title:E,open:r,onClose:a,isFormModal:!0,shouldCloseOnOutsideClick:!1,buttons:eg?[{text:"Save",formId:eN}]:[],loading:v||_,children:(0,i.jsxs)(e_,{children:[ef&&(0,i.jsx)(eC,{children:(0,i.jsx)(f.P,{})}),V&&(0,i.jsx)(eb,{children:"Unable to load form for this role type. Please try again later."}),N&&(0,i.jsx)(eb,{children:N}),eg&&(0,i.jsx)(q.b4,{pages:Y,config:T,defaultValuesFromClient:ep,fieldsToOverride:ea,children:(0,i.jsxs)("div",{ref:em,children:[(0,i.jsx)(ex,{hasIdCardNumberOnFile:ec,rootRef:em}),(0,i.jsx)(R.s,{formId:eN,columns:g?2:1,rowGap:"sm",onSubmit:ey,error:void 0,errorComponent:(0,i.jsx)(i.Fragment,{}),footer:(0,i.jsx)(i.Fragment,{})})]})})]})})}function eT(e){let{text:t,isSsoOriginated:n,streamlinedMemberFlowMode:r}=e,a=(0,A.useRouter)(),{useTelemetryTags:l}=(0,I.Jr)();l((0,m.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("ACCOUNT_OPENING").product("ACCOUNT_APPLICATION").feature("APPLICATION_ROLES").tags),(0,v.Q)({eventName:h.P.UI_ACCOUNT_OPENING_APPLICATION_ROLES_VIEWED,clutchProduct:_.bD.ACCOUNT_OPENING});let{applicationId:x,sections:L,people:R,sectionErrors:M,isLoading:k,rolesConfig:q,accessToken:D,applicantsByRole:F,refetchApplicants:B,isLegalRepresentativeSection:W,bottomActionBarProps:G}=function(e){var t,n;let{isSsoOriginated:r,streamlinedMemberFlowMode:a}=e,l=(0,A.useRouter)(),{accessToken:s}=(0,H.u)(),d=(0,ei.F)(),c=(0,eu.P)(),{data:u,isLoading:p}=(0,eh.P)({applicationId:d,enabled:!!d}),{applicantsByRole:m,isLoading:y,refetch:f}=(0,eg.g)(),{features:g,isLoading:h}=(0,ef.m)(),v=null!=(n=null==g?void 0:g.SUPPORTS_MULTIPLE_MEMBERSHIPS)&&n,{data:I,isLoading:_,error:C}=(0,b.rI)({applicationId:d}),{isToggleEnabled:x}=(0,U.qv)(),{isToggleEnabled:N}=(0,U.JE)(),[P,T]=(0,o.useState)([]),{sections:E,people:O}=(0,o.useMemo)(()=>(function(e){let{rolesConfig:t,applicantsByRole:n}=e;if(!t)return{sections:[],people:{}};let r=Object.fromEntries(Object.entries(n).map(e=>{let[t,n]=e;return[t,n.map(e=>({id:e.id,firstName:e.firstName,lastName:e.lastName}))]}));if(0===Object.keys(t).length)return{sections:(e=>{let t=e[Z]||[],n=e[ee]||[];return[{sectionId:Z,title:"Guardian",description:"The legal guardian responsible for the minor",icon:(0,i.jsx)(V,{iconName:"Gavel"}),items:t.map(e=>({id:e.id,label:"".concat(e.firstName," ").concat(e.lastName),hideDeleteButton:t.length<=1})),settings:{isApplicable:!0,isRequired:!0,minimumCount:1,maximumCount:1},error:{title:"At least 1 Guardian is required",description:"Please add a Guardian to continue"}},{sectionId:ee,title:"Minor",description:"The minor on whose behalf the account is being opened",icon:(0,i.jsx)(V,{iconName:"Briefcase"}),items:n.map(e=>({id:e.id,label:"".concat(e.firstName," ").concat(e.lastName),hideDeleteButton:n.length<=1})),settings:{isApplicable:!0,isRequired:!0,minimumCount:1,maximumCount:1},error:{title:"At least 1 Minor is required",description:"Please add a Minor to continue"}}]})(r),people:r};let o={},a=[];
1Object.entries(t).forEach(e=>{let[t,n]=e;"applicantType"in n?o[t]=n:a.push([t,n])});let l=J({rolesConfig:Object.keys(o).length>0?o:void 0,applicantsByRole:r}).map(e=>{var t;let n=o[e.sectionId],i=null!=(t=null==n?void 0:n.minimumCount)?t:1,r=e.title||X(e.sectionId),a=(0,S._)((0,j._)({},e),{error:{title:"At least ".concat(i," ").concat(r," is required"),description:"Please add a ".concat(r," to continue")}});return(null==n?void 0:n.isLegalRepresentative)?(0,S._)((0,j._)({},a),{items:a.items.map(e=>(0,S._)((0,j._)({},e),{hideDeleteButton:a.items.length<=i}))}):a}),s=a.map(e=>{var t,n,o;let[a,l]=e,s=r[a]||[],d=null!=(t=l.minimumCount)?t:0;return{sectionId:a,title:X(a),description:"",icon:(0,i.jsx)(V,{iconName:"User"}),items:s.map(e=>({id:e.id,label:"".concat(e.firstName," ").concat(e.lastName),hideDeleteButton:d>=1&&s.length<=d})),settings:{isApplicable:null==(n=l.isApplicable)||n,isRequired:null!=(o=l.isRequired)&&o,maximumCount:l.maximumCount,minimumCount:l.minimumCount},error:{title:"At least ".concat(d||1," ").concat(X(a)," is required"),description:"Please add a ".concat(X(a)," to continue")}}});return{sections:Object.keys(t).map(e=>{let t=l.find(t=>t.sectionId===e),n=s.find(t=>t.sectionId===e);return t||n}).filter(e=>void 0!==e),people:r}})({rolesConfig:u,applicantsByRole:m}),[u,m]),w=null==I?void 0:I.requiresEligibility,L=p||y||h||_,R=(null==(t=l.query)?void 0:t.isEdit)==="true",M=N&&a===em.V8.MEMBERSHIP_FIRST&&!!r,k=void 0!==w&&!C,q=!L&&(R||k);(0,o.useEffect)(()=>{if(!C)return;let{statusCode:e,validationMessages:t}=(0,ep.i)(C);(0,ec.Qw)(Error("Application roles: eligibility answer unavailable (status ".concat(null!=e?e:"unknown",")")),{feature:"ACCOUNT_OPENING",endpoint:"GET /account-opening/applications/:applicationId/eligibility",applicationId:d,statusCode:e,validationMessages:t})},[C,d]);let D=(0,o.useCallback)(()=>{let e=[];return E.forEach(t=>{var n;let i=null!=(n=t.settings.minimumCount)?n:+!!t.settings.isRequired;t.settings.isRequired&&t.items.length<i&&e.push(t.sectionId)}),T(e),0===e.length},[E]),F=(0,o.useCallback)(async()=>{var e;if(!D())return;if(R)return void await l.push(ey.w.REVIEW);if(!k||void 0===w)return;let t=null!=(e=(0,et.PX)())?e:void 0,n=(0,eA.O)({applicationId:d,applicantId:c,requiresEligibility:w,supportsMultipleMembership:v,isMembershipFirstRoute:M,category:t});n.pathname===ey.w.ACCOUNT_TYPES&&t&&(0,ev.bY)({router:l,applicationId:d,isInvertedPIIEnabled:x,selectedCategory:t,applicantId:c})||await l.push({pathname:n.pathname,query:n.query})},[d,c,w,v,M,l,D,x,R,k]),B=(0,o.useCallback)(e=>{if(!u)return!1;if(0===Object.keys(u).length)return e===Z;let t=u[e];if(t&&"applicantType"in t){var n;return null!=(n=t.isLegalRepresentative)&&n}return!1},[u]);return{applicationId:d,sections:E,people:O,sectionErrors:P,isLoading:L,rolesConfig:null!=u?u:{},accessToken:s,applicantsByRole:m,refetchApplicants:f,isLegalRepresentativeSection:B,bottomActionBarProps:{label:"Continue",onClick:F,disabled:!q,loading:!1}}}({isSsoOriginated:n,streamlinedMemberFlowMode:r}),K=(0,y.jE)(),{openModal:$,closeModal:z,displayModalState:Q}=s(),{openModal:Y,closeModal:en,displayModalState:er}=s(),{openModal:eo,closeModal:ea,displayModalState:el}=s(),{openModal:es,closeModal:ed,displayModalState:eI}=s(),e_=(0,o.useCallback)(e=>{var t,n;let i=L.find(t=>t.sectionId===e),r=null!=(t=null==i?void 0:i.settings.maximumCount)?t:1;if((null!=(n=null==i?void 0:i.items.length)?n:0)>=r)return void es();$({sectionId:e,applicant:null})},[$,es,L]),eC=(0,o.useCallback)((e,t)=>{var n;let i=null==(n=F[t])?void 0:n.find(t=>t.id===e.id);$({sectionId:t,applicant:null!=i?i:null})},[$,F]),eb=(0,o.useCallback)((e,t)=>{if(W(t)){var n;let e=L.find(e=>e.sectionId===t);eo(null!=(n=null==e?void 0:e.title)?n:t);return}Y({person:e,sectionId:t})},[Y,eo,W,L]),ex=(0,o.useCallback)(async()=>{if(!er.isOpen)return;let e=er.payload.person;try{await C.MP.configs.deleteApplicant({token:D,applicationId:x,applicantId:e.id}),await (0,b.pF)(K)}catch(e){}en(),await B()},[er,D,x,en,B,K]),eN=(0,o.useCallback)(async()=>{z(),await B()},[z,B]);return(0,i.jsxs)(g.Dx,{onBack:()=>a.back(),title:"Account Opening",bottomActionBarProps:G,children:[(0,i.jsxs)(N,{children:[(0,i.jsx)(u.j,{
1condition:k,children:(0,i.jsx)(P,{children:(0,i.jsx)(f.P,{})})}),(0,i.jsxs)(u.j,{condition:!k,children:[(0,i.jsx)(T,{children:"Application Roles"}),(0,i.jsx)(E,{children:"Assign people to required roles for your application"}),(0,i.jsx)(O,{children:(0,i.jsx)(d.E,{sections:L,people:R,sectionErrors:M,onClickAddPerson:e_,onClickEditPerson:eC,onClickRemovePersonFromRole:eb})})]})]}),(0,i.jsx)(eP,{isOpen:Q.isOpen,onClose:z,sectionId:Q.isOpen?Q.payload.sectionId:"",rolesConfig:q,editingApplicant:Q.isOpen?Q.payload.applicant:void 0,applicationId:x,onSaveSuccess:eN}),(0,i.jsx)(c.aM,{isOpen:er.isOpen,onClose:en,onConfirm:ex,shouldCloseOnOutsideClick:!1}),(0,i.jsx)(p.a,{shouldUseDesignSystemFont:!0,open:el.isOpen,onClose:ea,buttons:[{text:"Close",onClick:ea}],children:(0,i.jsx)(w,{children:"The person applying for this account must be assigned the role of ".concat(el.isOpen?el.payload:"")})}),(0,i.jsx)(p.a,{shouldUseDesignSystemFont:!0,open:eI.isOpen,onClose:ed,buttons:[{text:"Close",onClick:ed}],children:(0,i.jsx)(w,{children:"The maximum number of people for this role has been reached."})})]})}var eE=n(57253),eO=n(50140),ew=n.n(eO),ej=!0;function eS(e){let{text:t,isSsoOriginated:n,streamlinedMemberFlowMode:r}=e,{text:o}=(0,eE.W)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ew(),{children:(0,i.jsxs)("title",{children:["Application Roles - ",o.PARTNER_LONG_NAME]})}),(0,i.jsx)(eT,{text:t,isSsoOriginated:n,streamlinedMemberFlowMode:r})]})}eS.getLayout=function(e){return(0,i.jsx)(r.K,{children:e})}},41941:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var i=n(49136),r=n(53239),o=n(1814);function a(e){let{hasIdCardNumberOnFile:t,rootRef:n}=e,{methods:a}=(0,i.on)();(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let i=e=>{let t=e.target;(null==t?void 0:t.name)==="idCard.number"&&a.getValues("idCard.number")===o.D&&a.setValue("idCard.number","",{shouldValidate:!1})},r=e=>{let n=e.target;(null==n?void 0:n.name)==="idCard.number"&&t&&""===a.getValues("idCard.number")&&a.setValue("idCard.number",o.D,{shouldValidate:!1})};return e.addEventListener("focusin",i),e.addEventListener("focusout",r),()=>{e.removeEventListener("focusin",i),e.removeEventListener("focusout",r)}},[t,a,n])}},45129:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var i=n(86917),r=n(31901),o=n(965),a=n(27194);let l={queryKey:e=>[e],queryFn:async e=>a.MP.configs.accountHolderTypes(e)},s=e=>{let t=(null==e?void 0:e.applicationOrigin)===o.rQ.BRANCH?a.oR.ACCOUNT_HOLDER_TYPES_BRANCH_PORTAL:a.oR.ACCOUNT_HOLDER_TYPES;(null==e?void 0:e.categoryId)&&(t+="&id=".concat(encodeURIComponent(e.categoryId))),(null==e?void 0:e.customerId)&&(t+="&customerId=".concat(encodeURIComponent(e.customerId))),(null==e?void 0:e.applicationId)&&(t+="&applicationId=".concat(encodeURIComponent(e.applicationId))),(null==e?void 0:e.filterByMainApplicantMembership)&&(t+="&filterByMainApplicantMembership=true");let n=(0,r.I)(l.queryKey(t),async()=>l.queryFn(t),{refetchOnWindowFocus:!1,initialData:(null==e?void 0:e.accountHolderCategories)?{accountHolderCategories:e.accountHolderCategories}:null,enabled:null==e?void 0:e.enabled}),{isLoading:s,error:d,data:c}=n;return(0,i._)({isLoading:s,error:d,accountHolderTypesConfig:null==c?void 0:c.accountHolderCategories,accountHolderStateSelectionConfig:null==c?void 0:c.accountHolderStateSelection,accountsQuantityConfiguration:null==c?void 0:c.accountsQuantityConfiguration,zipcodesFromGroups:null==c?void 0:c.zipcodesFromGroups},n)}},54420:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var i=n(54421),r=n(42884),o=n(79276),a=n(56304);let l=(e,t,n)=>{let{isToggleEnabled:l}=(0,r.Ei)(i.a.enableRetrieveDAOFormBuilder),s=(0,a.O6)({formId:e,enabled:l&&t,token:n}),d=(0,o.o)({formId:e,enabled:!l&&t,token:n});return l?s:d}},56304:(e,t,n)=>{"use strict";n.d(t,{O6:()=>c,r7:()=>d});var i=n(65419),r=n(31901),o=n(57253),a=n(53239),l=n(54982);let s={queryKey:(e,t)=>["/refi-pipeline/forms/".concat(e),t],queryFn:async e=>await l.j.getFormByPlatformAndId(e)},d=(e,t)=>e.fetchQuery({queryKey:s.queryKey(t.formId,t.token),queryFn:async()=>s.queryFn(t),staleTime:1/0});function c(e){let{partnerId:t}=(0,o.W)(),{formId:n,token:l,enabled:d,opts:{onSuccess:c}={}}=e,u=(0,r.I)({queryKey:s.queryKey(n,l),queryFn:async()=>await s.queryFn({formId:n,partnerId:t,token:l}),enabled:d&&!!n,staleTime:1/0}),{data:p,isSuccess:m,isError:y,error:f}=u;return(0,a.useEffect)(()=>
1{if(m){null==c||c(p);return}y&&i.datadogRum.addError(f,{source:"useGetFormByPlatformAndId",metadata:{formId:n}})},[f,c,n,p,m,y]),u}},56439:(e,t,n)=>{"use strict";n.d(t,{F:()=>i.F});var i=n(74179)},56537:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var i=n(86917),r=n(31901),o=n(44007),a=n(82198),l=n(11626);let s=e=>{let{queryKey:t,queryFn:n,queryOptions:s}=e,d=(0,o.useRouter)(),c=(0,a.RB)(),u=(0,i._)({refetchOnWindowFocus:!1,retry:(e,t)=>e<3&&!(0,l.P)(t)},s),p=(0,r.I)((0,i._)({queryKey:t,queryFn:n},u)),m=null==p?void 0:p.error;return(0,l.P)(m)&&(0,l._)(d,c),p}},60165:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var i=n(965),r=n(60619);let o=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{applicants:t,isLoading:n,error:o,refetch:a}=(0,r.V)({enabled:e});return{applicantsByRole:t.length>0?t.reduce((e,t)=>{var n;return(t.applicationLevelRoles&&t.applicationLevelRoles.length>0?t.applicationLevelRoles.map(e=>e.id):[null!=(n=t.applicationLevelRole)?n:i.l8.MAIN_APPLICANT]).forEach(n=>{e[n]=[...e[n]||[],t]}),e},{}):{},allApplicants:t,isLoading:n,error:o,refetch:a}}},60619:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var i=n(27194),r=n(29974),o=n(56439),a=n(87520);let l={queryKey:e=>[i.oR.APPLICATION_APPLICANTS,e],queryFn:async e=>i.MP.configs.getApplicantsByApplication(e)},s=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{accessToken:t}=(0,r.u)(),n=(0,o.F)(),{data:i,isLoading:s,error:d,refetch:c}=(0,a.U)({queryKey:l.queryKey(n),queryFn:async()=>l.queryFn({token:t,applicationId:n}),queryOptions:{retry:!1,enabled:e&&!!n&&!!t}});return{applicants:i||[],applicationId:n,isLoading:s,error:d,refetch:c}}},73470:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var i=n(32144),r=n(54366),o=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:p}=(0,l.u)(),m=(0,d.F)(),y=(0,i.jE)(),{isLoading:f,mutate:g,error:h}=(0,c.h)({shouldNotRedirectOnUnprocessable:u,mutationKey:[a.oR.APPLICATION_APPLICANTS,m,t,"update-info"],mutationFn:async e=>{let{applicant:n}=e;return a.MP.configs.updateApplicantInfo({token:p,applicationId:m,applicantId:t,applicant:n})},onSuccess:async()=>{await y.invalidateQueries({queryKey:[a.oR.APPLICANT_BY_APPLICATION_AND_APPLICANT_ID,m,t]}),await (0,s.pF)(y),null==n||n()},onError:e=>{let{statusCode:n,validationMessages:i}=(0,o.i)(e);(0,r.Qw)(Error("updateApplicantInfo failed (status ".concat(null!=n?n:"unknown",")")),{feature:"ACCOUNT_OPENING",endpoint:"PUT /account-opening/:applicationId/applicants/:applicantId",applicationId:m,applicantId:t,statusCode:n,validationMessages:i})}});return{isUpdating:f,updateApplicantInfo:g,updateError:h}}},74179:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var i=n(51656),r=n(44007),o=n(82198);function a(){var e,t;let n,a=null==(e=(0,r.useRouter)().query)?void 0:e.applicationId;try{n=null==(t=(0,o.RB)())?void 0:t.id}catch(e){n=""}return a&&n&&n!==a&&((0,o.Py)(),(0,o.I6)({id:a,source:i.r.CUSTOMER_PORTAL}),n=a),!n&&a&&((0,o.I6)({id:a,source:i.r.CUSTOMER_PORTAL}),n=a),n||a||""}},83495:(e,t,n)=>{"use strict";n.d(t,{Ex:()=>p,MS:()=>h,Zq:()=>f,bR:()=>g,bY:()=>I,gS:()=>v,h1:()=>A,rg:()=>y,zI:()=>c});var i=n(86917),r=n(97722),o=n(25722),a=n(54366),l=n(46316),s=n(71599),d=n(20879);function c(e,t){return(0,i._)({},e?{category:e}:{},t?{accountType:t}:{})}let u=(e,t)=>{(0,a.ZI)("account_opening_deep_link_storage_failure",{operation:e,message:t instanceof Error?t.message:String(t)})},p=e=>{try{window.sessionStorage.setItem(l.U.DEEP_LINK_STORAGE_KEY,JSON.stringify(e))}catch(e){u("write",e)}},m=()=>{try{let e=window.sessionStorage.getItem(l.U.DEEP_LINK_STORAGE_KEY),t=e?JSON.parse(e):null;return null!=t?t:{}}catch(e){return u("read",e),{}}};function y(){let e=m();return c(e.category,e.accountType)}function f(e,t){return!!(e||t)}let g=()=>{sessionStorage.removeItem(l.U.DEEP_LINK_STORAGE_KEY)},h=e=>{let t=m();t.category&&t.category!==e&&g()},v=e=>{let t="string"==typeof e.query.category?e.query.category:void 0,n="string"==typeof e.query.accountType?e.query.accountType:void 0,i=m();return c(null!=t?t:i.category,null!=n?n:i.accountType)},A=(e,t,n,a)=>{var l,u;if(!n)return!1;let p=v(e);if(l=p.category,u=p.accountType,!l&&!u)return!1;let{accountType:m,category:y}=p,f=m?s.w.ACCOUNTS:s.w.ACCOUNT_TYPES,h=c(y,m),A=e.query,{applicantId:I}=A,_=(0,o._)(A,["applicantId"]),C=a||("string"==typeof I?I:void 0);return e.push({pathname:f,query:(0,i._)((0,r._)((0,i._)({},_),{applicationId:t}),C?{applicantId:C}:{},h,(0,d.Te)())}),g(),!0},I=e=>{let{router:t,applicationId:n,isInvertedPIIEnabled:i,selectedCategory:r,applicantId:o}=e,a=v(t);return a.category&&a.category!==r?(g(),!1):A(t,n,i,o)}}
1,84474:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(80263);let r=e=>{let{condition:t,children:n,fallback:r=null}=e;return(0,i.jsx)(i.Fragment,{children:t?n:r})}},87520:(e,t,n)=>{"use strict";n.d(t,{U:()=>i.U});var i=n(56537)},87875:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i.Q});var i=n(23120)},89895:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var i=n(44007),r=n(82198),o=n(56439);function a(){var e;let t=(0,i.useRouter)();(0,o.F)();let n=null==(e=t.query)?void 0:e.applicantId,a=(0,r.mG)();return n?((0,r.vj)(n),n):a||""}},92457:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(27194),r=n(29974),o=n(87520);function a(e){let{applicationId:t,applicantId:n,enabled:a}=e,{accessToken:l}=(0,r.u)(),{data:s,isLoading:d,isError:c}=(0,o.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}}},99612:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let i=new Set(["EDIT_APPLICANT_WITH_MULTI_STEP","EDIT_GUARDIAN_APPLICANT_WITH_MULTI_STEP","EDIT_MINOR_APPLICANT_WITH_MULTI_STEP","GUARDIAN_APPLICANT_WITH_MULTI_STEP","MINOR_APPLICANT_WITH_MULTI_STEP"]);function r(e){let{formId:t,pages:n,isInvertedPiiEnabled:r}=e;if(!r||!t||!i.has(t))return[];let o=new Set,a=[];for(let e of null!=n?n:[]){var l;for(let t of null!=(l=null==e?void 0:e.fields)?l:[]){let e=null==t?void 0:t.fieldKey;e&&e.startsWith("customQuestions.")&&!o.has(e)&&(o.add(e),a.push({fieldKey:e,display:!1}))}}return a}}},e=>{e.O(0,[3140,5708,6617,7086,1493,2900,9266,1036,2528,2791,4179,711,2411,5183,3076,1653,3633,8607,8907,584,6977,2271,9046,5341,6594,3466,2496,9154,9136,7398,9267,636,6593,8792],()=>e(e.s=14268)),_N_E=e.O()}]);
2//# sourceMappingURL=application-roles-7d4858017a18be24.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.