PageSourceSearch

https://applynow.avadiancu.com/_next/static/chunks/pages/account-opening/benefits-f860ba06378885d0.js

js avadiancu.com collected 2026-09-28 06:46:36 UTC 53,990 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277,578,3877],{121:(e,t,r)=>{"use strict";t.DP=t.gj=t.p1=void 0,r(44651);var n=r(62509);Object.defineProperty(t,"p1",{enumerable:!0,get:function(){return n.Dollar}});var o=r(36996);Object.defineProperty(t,"gj",{enumerable:!0,get:function(){return o.formatFundingCurrency}});var i=r(92453);Object.defineProperty(t,"DP",{enumerable:!0,get:function(){return i.normalizeFundingAmount}})},9500:(e,t,r)=>{"use strict";r.d(t,{G:()=>I});var n=r(80263),o=r(22737),i=r(88787),a=r(21438),l=r(49136),s=r(90410),d=r(53784),c=r(73060),u=r(68044),m=r(44007),p=r(53239),f=r(19584),h=r(8368);let y=h.Ay.div.withConfig({displayName:"FormBuilderMultiStepContent.styled__Wrapper",componentId:"sc-2e0f40af-0"})(["padding-top:2rem;width:100%;"]),g=h.Ay.h1.withConfig({displayName:"FormBuilderMultiStepContent.styled__PageTitle",componentId:"sc-2e0f40af-1"})(["font-weight:",";color:",";font-size:1.75rem;"],e=>e.theme.foundations.typography.fontWeight.normal,e=>e.theme.foundations.colors.tertiary),b=h.Ay.h2.withConfig({displayName:"FormBuilderMultiStepContent.styled__PageSubtitle",componentId:"sc-2e0f40af-2"})(["font-weight:",";color:",";font-size:",";margin-bottom:1.625rem;"],e=>e.theme.foundations.typography.fontWeight.normal,e=>e.theme.foundations.colors.black70,e=>e.theme.foundations.typography.fontSize.xs),v=h.Ay.div.withConfig({displayName:"FormBuilderMultiStepContent.styled__CalloutWrapper",componentId:"sc-2e0f40af-3"})(["margin-bottom:1.5rem;width:100%;"]);var _=function(e){return e.SSN="ssn",e.TIN="tin",e.NAME="name",e}(_||{});function I(e){let{onSubmit:t,formTitle:r,getBeneficiaryTrustQuestion:h,showIdentifierNotUniqueError:_,pages:I,submissionError:N,isSubmitting:x,callourErrorPersonType:w}=e,A=(0,m.useRouter)(),{currentPageText:E,previousPage:j,currentPage:O,setPage:S,methods:T}=(0,l.on)(),[P,C]=(0,p.useState)();(0,p.useEffect)(()=>{let e=T.getValues();if(_)if(window.scrollTo(0,0),e.ssn){let e=(0,u.i)(I,"ssn");("number"==typeof e||e)&&(S(e),T.setError("ssn",{type:"validate",message:" "}),C("ssn"))}else if(e.tin){let e=(0,u.i)(I,"tin");("number"==typeof e||e)&&(S(e),T.setError("tin",{type:"validate",message:" "}),C("tin"))}else{let e=(0,u.i)(I,"firstName");("number"==typeof e||e)&&(S(e),T.setError("firstName",{type:"validate",message:" "}),T.setError("lastName",{type:"validate",message:" "}),C("name"))}},[_]);let k=_?function(e,t){let r=t?" as a "+t:"";switch(e){case"ssn":return"This SSN has already been added".concat(r,".");case"tin":return"This TIN has already been added".concat(r,".");case"name":return"This person has already been added".concat(r,".");default:return}}(P,w):"";return(0,n.jsx)(c.E,{onBack:()=>0===O?A.back():j(),children:(0,n.jsx)(d.P,{children:(0,n.jsxs)(y,{children:[(0,n.jsx)(o.j,{condition:!!h,children:h}),(0,n.jsx)(g,{children:r||E.title}),(0,n.jsx)(o.j,{condition:!!E.disclaimer,children:(0,n.jsx)(b,{children:E.disclaimer})}),(0,n.jsx)(o.j,{condition:!!E.description,children:(0,n.jsx)(b,{children:E.description})}),(0,n.jsx)(o.j,{condition:_,children:(0,n.jsx)(v,{children:(0,n.jsx)(i.P,{"data-testid":"status-callout",status:a.l.NEGATIVE,title:k,description:"Please add a different one.",icon:(0,n.jsx)(s.N,{})})})}),(0,n.jsxs)(l.ok,{onSubmit:e=>t(e),columns:1,rowGap:"sm",columnGap:"sm",children:[(0,n.jsx)(o.j,{condition:!!N,children:(0,n.jsx)(v,{children:(0,n.jsx)(i.P,{dataTestId:"submission-error",status:a.l.NEGATIVE,description:N,icon:(0,n.jsx)(s.N,{})})})}),(0,n.jsx)(f.s,{isSubmitting:x})]})]})})})}},15488:(e,t,r)=>{"use strict";r.d(t,{V:()=>c});var n=r(80263),o=r(96620),i=r(59946),a=r(8368);let l=a.Ay.div.withConfig({displayName:"HeightFixerView.styled__DesktopBoundary",componentId:"sc-447b28ff-0"})(["display:flex;margin:0 auto;width:100%;height:100%;position:absolute;top:",";@media ","{top:",";}"],e=>e.$sandboxBanner?"140px":"0",(0,i.P)({from:"sm"}),e=>e.$sandboxBanner?"100px":"0"),s=a.Ay.div.withConfig({displayName:"HeightFixerView.styled__ScrollingWrapper",componentId:"sc-447b28ff-1"})(["width:100%;min-height:100%;height:100%;overflow:visible;scroll-behavior:smooth;"]),d=e=>{let{children:t}=e,r=(0,o.j)();
1return(0,n.jsx)(l,{$sandboxBanner:r.showBanner,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(d,{children:(0,n.jsx)(s,{children:t})})}},19584:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var n=r(80263),o=r(22737),i=r(25437),a=r(49136);function l(e){let{isSubmitting:t,nextMessage:r,submitMessage:l}=e,{nextPage:s,isLastPage:d}=(0,a.on)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.j,{condition:!d,children:(0,n.jsx)(i.$,{size:"lg",fullWidth:!0,type:"button",onClick:s,children:r||"Next"})}),(0,n.jsx)(o.j,{condition:!!d,children:(0,n.jsx)(i.$,{size:"lg",fullWidth:!0,type:"submit",disabled:t,loading:t,children:l||"Submit"})})]})}},21438:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});var n={NEUTRAL:"NEUTRAL",SUCCESS:"SUCCESS",WARNING:"WARNING",NEGATIVE:"NEGATIVE",INFO:"INFO",BRAND:"BRAND"}},22666:(e,t,r)=>{"use strict";r.d(t,{LD:()=>w,Y9:()=>x,Dx:()=>P,Vs:()=>S,IS:()=>T});var n=r(80263),o=r(34367),i=r(22737),a=r(63607),l=r(59046),s=r(84796),d=r(4366),c=r(80619),u=r(96400),m=r(59946),p=r(8368);let f=p.Ay.main.withConfig({displayName:"styled__ContentStyled",componentId:"sc-9a386236-0"})(["overflow-x:hidden;grid-area:content;width:100%;max-width:100vw;"]),h=p.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,m.P)({from:"md"})),y=e=>{let{children:t}=e;return(0,n.jsx)(f,{as:"main",id:"main-content","data-testid":"LayoutWithBottomNav-Content",children:(0,n.jsx)(h,{children:t})})};var g=r(25437),b=r(84297),v=r(95952),_=r(43348),I=r(4622);let N=p.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,m.P)({from:"md"})),x=e=>{let{onBack:t,backButtonTitle:r="Back",headerTitle:o}=e,a=(0,p.DP)(),l=(0,d.U)("(min-width: 768px)");return(0,n.jsxs)(N,{children:[t?(0,n.jsxs)(g.$,{onClick:t,variant:"text",size:"sm","aria-label":r,children:[(0,n.jsx)(b.I,{size:v.y.MEDIUM,color:a.colors.primary,children:(0,n.jsx)(I.n,{})}),(0,n.jsx)(i.j,{condition:l,children:(0,n.jsx)(_.E,{$variant:"secondary",$color:a.colors.primary,style:{fontSize:"14px"},$weight:"medium",$shouldUseDesignSystemFont:!0,children:r})})]}):(0,n.jsx)("div",{}),(0,n.jsx)("div",{children:o?(0,n.jsx)(_.E,{$variant:"primary",$weight:l?"medium":"bold",$color:a.colors.primary,style:{fontSize:l?"21px":"16px"},$shouldUseDesignSystemFont:!0,children:o}):null})]})},w=p.Ay.div.withConfig({displayName:"LayoutWithBottomNav.styled__DividerWrapper",componentId:"sc-1bc6f26b-0"})(["height:1px;width:100%;"]),A=p.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}),E=(0,p.Ay)(a.E.Button).withConfig({displayName:"LayoutWithBottomNav.styled__BottomActionBarButton",componentId:"sc-1bc6f26b-2"})(["border-radius:9999px;width:242px;"]),j=(0,p.Ay)(g.$).withConfig({displayName:"LayoutWithBottomNav.styled__Button",componentId:"sc-1bc6f26b-3"})(["border-radius:9999px;"]),O="#FFFFFF",S=e=>{let{children:t}=e;return(0,n.jsx)(u.w,{$backgroundColor:O,"data-testid":"LayoutWithBottomNav-TopBar",children:t})},T=e=>{let{$showBehindModal:t,children:r}=e,o=(0,s.v)({disableHysteresis:!0,threshold:0});return(0,n.jsx)(u.v,{"data-testid":"LayoutWithBottomNav-TopNavigation",$showElevation:!!o,$showBehindModal:t,$colored:!1,children:r})},P=e=>{let{children:t,onBack:r,title:s,showHeaderBehindModal:u=!1,bottomActionBarProps:m,extraButtons:p=null}=e,f=(0,d.U)("(min-width: 768px)");return(0,n.jsxs)(c.sc,{$contentWidth:"100%",$contentHeight:"100%",$backgroundColor:O,children:[(0,n.jsxs)(S,{children:[(0,n.jsx)(l.u,{hideMenu:!0,redirectToMainPage:!1,$backgroundColor:O,useColoredLogo:!0}),(0,n.jsx)(w,{children:(0,n.jsx)(o.c,{})})]}),(0,n.jsx)(T,{$showBehindModal:u,children:(0,n.jsx)(x,{onBack:r,headerTitle:s})}),(0,n.jsx)(y,{children:t}),!!m&&(0,n.jsx)("footer",{children:(0,n.jsx)(i.j,{condition:f,fallback:(0,n.jsxs)(A,{"data-testid":"LayoutWithBottomNav-MobileButtonWrapper",children:[p,(0,n.jsx)(j,{onClick:m.onClick,disabled:m.disabled,loading:m.loading,variant:"primary",size:"lg",fullWidth:!0,children:m.label})]}),children:(0,n.jsxs)(a.E,{innerWidth:"1100px",children:[p,(0,n.jsx)(E,{loading:m.loading,disabled:m.disabled,onClick:m.onClick,children:m.label})]})})})]})}},24196:()=>{},24939:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(62257),o=r(57253);let i=e=>{let t=(0,n.wQ)(),{partnerAlias:r}=(0,o.W)();return e?"".concat(t.assets.url,"/").concat(r,"/").concat(e):""}},25437:(e,t,r)=>{"use strict";r.d(t,{$:()=>g});
1var n=r(63943),o=r(22737),i=r(53239),a=r(8368),l=r(72828);function s(e,t){switch(e){case l.h.SECONDARY:case l.h.TEXT:case l.h.TEXT_NO_HOVER:case l.h.OUTLINE:return t.token.color.partner.primary;case l.h.ICON:return"unset"}return t.token.color.text.negative}var d=a.Ay.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-usb2e3-0"})(["--cursor:pointer;--color:",";--border-color:",";--border-radius:",";--background:",";--bg-color:",";--gradient-base:",";--gradient-dark:",";--outline-offset:0.375rem;--width:fit-content;--height:2.5rem;--padding-block:0.5rem;--padding-inline:1rem;display:flex;flex-direction:row;justify-content:center;align-items:center;height:var(--height);width:var(--width);cursor:var(--cursor);border-width:1px;border-style:solid;outline-offset:var(--outline-offset);border-radius:var(--border-radius);gap:0.625rem;padding-block:var(--padding-block);padding-inline:var(--padding-inline);letter-spacing:0.05rem;background:var(--background);border-color:var(--border-color);color:var(--color);font-size:",";font-weight:",";text-transform:uppercase;text-decoration-line:none;&:hover:not(:disabled){--border-color:transparent;--background:var(--gradient-base),var(--bg-color);}&:disabled{--cursor:not-allowed;--border-color:transparent;--color:",";--background:",";}"," "," "," svg{fill:var(--color);}"],function(e){var t=e.theme;return s(l.h.PRIMARY,t)},function(e){return e.theme.token.color.partner.primary},function(e){return e.theme.token.radius["02"]},function(e){return e.theme.token.color.partner.primary},function(e){return e.theme.token.color.partner.primary},function(e){return e.theme.token.color.surface.gradient.base},function(e){return e.theme.token.color.surface.gradient.dark},function(e){return e.theme.token.typography.fontSize["02"]},function(e){return e.theme.token.typography.fontWeight[700]},function(e){return e.theme.token.color.support.disabled},function(e){return e.theme.token.color.surface.status.disabled},function(e){switch(e.$variant){case l.h.SECONDARY:return(0,a.AH)(["--color:",";--background:",";--border-color:transparent;&:hover:not(:disabled),&:focus-visible,&[aria-pressed='true']{--background:",";opacity:0.8;}&:disabled{--color:",";--background:transparent;}"],s(l.h.SECONDARY,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case l.h.TEXT:return(0,a.AH)(["--background:transparent;--border-color:transparent;--color:",";&:hover:not(:disabled),&:focus-visible,&[aria-pressed='true']{--background:",";}&:disabled{--color:",";--background:transparent;}"],s(l.h.TEXT,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case l.h.TEXT_NO_HOVER:return(0,a.AH)(["--background:transparent;--border-color:transparent;--color:",";&:hover:not(:disabled){--background:transparent;opacity:0.7;}&:focus-visible,&[aria-pressed='true']{--background:",";}&:disabled{--color:",";--background:transparent;}"],s(l.h.TEXT_NO_HOVER,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case l.h.OUTLINE:return(0,a.AH)(["--background:transparent;--border-color:",";--color:",";&:hover:not(:disabled),&:focus-visible,&[aria-pressed='true']{--background:",";--border-color:transparent;}&:disabled{--color:",";--border-color:",";--background:transparent;}"],e.theme.token.color.partner.primary,s(l.h.OUTLINE,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled,e.theme.token.color.gray[500]);case l.h.ICON:return(0,a.AH)(["--background:transparent;--border-color:transparent;--color:",";--height:2.2rem;--width:2.2rem;--padding-inline:0.5rem;&:hover:not(:disabled),&:focus-visible,&[aria-pressed='true']{--background:",";--border-radius:",";svg{cursor:pointer;}}&:disabled{--color:",";--background:transparent;}"],s(l.h.ICON,e.theme),e.theme.token.color.gray[200],function(e){return e.theme.token.radius["04"]},e.theme.token.color.support.disabled)}},function(e){switch(e.$size){case l.l.SMALL:if(e.$variant===l.h.ICON)return(0,a.AH)(["--height:1.9rem;"]);return(0,a.AH)(["gap:0.425rem;text-transform:unset;font-weight:",";--height:1rem;--padding-block:1.0938rem;--padding-inline:0rem;"],function(e){return e.theme.token.typography.fontWeight[400]});case l.l.LARGE:if(e.$variant===l.h.ICON)return(0,a.AH)(["--height:2.2rem;"]);return(0,a.AH)(["--height:3.5rem;--padding-block:1.0938rem;--padding-inline:1.5rem;"])}},function(e){if(e.$fullWidth)return(0,a.AH)(["--width:100%;"])}),c=a.Ay.div.withConfig({displayName:"Buttonstyled__SpinnerContainer",componentId:"sc-usb2e3-1"})(["position:absolute;--spinner-color:var(--color);
1"]),u=r(64115),m=r(80263);function p(e){return(p="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 f=["children","variant","fullWidth","size","loading","dataTestId"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g=i.forwardRef(function(e,t){var r=e.children,i=e.variant,a=void 0===i?l.h.PRIMARY:i,s=e.fullWidth,p=e.size,h=e.loading,g=e.dataTestId,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,f);return(0,m.jsxs)(d,y(y({ref:t,$variant:a,$fullWidth:s,$size:p,"data-testid":g},b),{},{children:[(0,m.jsx)(n.y,{loading:!!h,children:r}),(0,m.jsx)(o.j,{condition:!!h,children:(0,m.jsx)(c,{children:(0,m.jsx)(u.y,{})})})]}))});g.displayName="Button"},28195:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,b:()=>d});var n=r(86917),o=r(97722),i=r(33410),a=r(75341),l=r(71063);let s=(e,t)=>{if((0,l.uy)(t))return"";switch(e){case"yearsAtEmployer":case"monthsAtEmployer":return t.toString();case"phone":return a.Q.formatters.phone.format(t);case"annualIncome":case"monthlyIncome":case"monthlyHousingPayment":case"housingPayment":return String(a.Q.formatters.fromCentsToDollar(t));case"birthDate":return(e=>{let t="string"==typeof e?e.trim():e;if("string"==typeof t&&i.W.test(t)){let e=i.p.parse(t);return i.p.isValid(e)?i.p.format(e,"yyyy-MM-dd"):""}let r="string"==typeof t?t.match(/^(\d{1,2})[/-](\d{1,2})[/-](\d{4})$/):null;if(r){let[,e,t,n]=r,o="".concat(n,"-").concat(e.padStart(2,"0"),"-").concat(t.padStart(2,"0")),a=i.p.parse(o);return i.p.isValid(a)?i.p.format(a,"yyyy-MM-dd"):""}let n=new Date(t);return i.p.isValid(n)?i.p.format(n,"yyyy-MM-dd"):""})(t);default:return t}};function d(e,t,r){return e.reduce((e,i)=>{var a;let s=(({ssNumber:"ssn"})[a=i.fieldKey]||a).split(".").filter(Boolean).reduce((e,t)=>{if(!(0,l.uy)(e))return e instanceof Date?e:"object"==typeof e?e[t]:e},r);return(0,l.uy)(s)||"object"==typeof s?!(0,l.uy)(s)&&"object"==typeof s&&"value"in s?(0,o._)((0,n._)({},e),{[i.fieldKey]:t(i.fieldKey,null==s?void 0:s.value)}):(0,o._)((0,n._)({},e),{[i.fieldKey]:null!=s?s:i.input.config.defaultValue}):(0,o._)((0,n._)({},e),{[i.fieldKey]:t(i.fieldKey,s)})},{})}},31415:(e,t,r)=>{"use strict";r.d(t,{z:()=>u});var n=r(65419);let o=e=>{n.datadogRum.addError(Error("form_builder.field_render_failed: ".concat(e.errorMessage)),{source:"form-builder",metadata:e})};var i=r(94389),a=r(29974),l=r(57253),s=r(62257),d=r(53239),c=r(35083);let u=e=>{let{vendors:t,env:r}=(0,s.wQ)(),{partnerAlias:n,partnerId:u}=(0,l.W)(),{accessToken:m}=(0,a.u)();return(0,d.useMemo)(()=>({partnerAlias:null!=n?n:"",configCatSDKKey:t.configCat.formBuilderSDKKey,env:r,accessToken:null!=m?m:void 0,partnerId:null!=u?u:void 0,formId:null==e?void 0:e.formId,platform:"applicant_portal",onFieldRenderError:o,customerId:m?(0,c.oL)(m).customerId:void 0,anonymousId:i.g.getAnonymousId()}),[n,t.configCat.formBuilderSDKKey,r,m,u,null==e?void 0:e.formId])}},35879:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});
1var n=r(80263),o=r(34367),i=r(59046),a=r(80619),l=r(22666);let s=e=>{let{children:t,title:r,onBack:s,redirectToMainPage:d=!1,enableGlowUp:c,showBehindModal:u,showBackButton:m=!0,fitContentHeight:p=!1,hasFixedBottomBar:f=!1}=e;return(0,n.jsxs)(a.sc,{enableGlowUp:c,$contentHeight:p?"auto":void 0,$hasFixedBottomBar:f,children:[(0,n.jsxs)(l.Vs,{children:[(0,n.jsx)(i.u,{hideMenu:!0,redirectToMainPage:d,$backgroundColor:"#FFFFFF",useColoredLogo:!0}),(0,n.jsx)(l.LD,{children:(0,n.jsx)(o.c,{})})]}),(0,n.jsx)(l.IS,{$showBehindModal:u,children:(0,n.jsx)(l.Y9,{onBack:m?s:void 0,headerTitle:r})}),t]})}},36996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFundingCurrency=function(e,t){let{strict:r}=t,n=r||!Number.isInteger(e)?2:0;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(e)}},44088:(e,t,r)=>{"use strict";r.d(t,{u:()=>n.u});var n=r(29974)},44651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUND_HALF_EVEN=t.ROUND_HALF_UP=t.ROUND_UP=t.Dec=void 0;let n=function(e){return e&&e.__esModule?e:{default:e}}(r(31493));t.Dec=n.default.clone({precision:20,rounding:n.default.ROUND_HALF_UP}),t.ROUND_UP=n.default.ROUND_UP,t.ROUND_HALF_UP=n.default.ROUND_HALF_UP,t.ROUND_HALF_EVEN=n.default.ROUND_HALF_EVEN},44722:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/benefits",function(){return r(93121)}])},44981:(e,t,r)=>{"use strict";r.d(t,{E:()=>n.E});var n=r(54420)},53784:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=r(8368).Ay.div.withConfig({displayName:"CenterContent.styled__CenterContent",componentId:"sc-3236d43b-0"})(["display:flex;flex-direction:column;flex:1;align-items:center;justify-content:center;width:100%;height:100%;margin-top:-2rem;"])},54420:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var n=r(54421),o=r(42884),i=r(79276),a=r(56304);let l=(e,t,r)=>{let{isToggleEnabled:l}=(0,o.Ei)(n.a.enableRetrieveDAOFormBuilder),s=(0,a.O6)({formId:e,enabled:l&&t,token:r}),d=(0,i.o)({formId:e,enabled:!l&&t,token:r});return l?s:d}},54982:(e,t,r)=>{"use strict";r.d(t,{_:()=>o,j:()=>a});var n=r(23096);let o={AUTHORIZED_SIGNER:"AUTHORIZED_SIGNER",AUTHORIZED_SIGNER_WITH_MULTI_STEP:"AUTHORIZED_SIGNER_WITH_MULTI_STEP",MAIN_APPLICANT_WITH_MULTI_STEP:"MAIN_APPLICANT_WITH_MULTI_STEP",EDIT_APPLICANT_WITH_MULTI_STEP:"EDIT_APPLICANT_WITH_MULTI_STEP",JOINT_APPLICANT_WITH_MULTI_STEP:"JOINT_APPLICANT_WITH_MULTI_STEP",EDIT_JOINT_APPLICANT_WITH_MULTI_STEP:"EDIT_JOINT_APPLICANT_WITH_MULTI_STEP",MINOR_APPLICANT_WITH_MULTI_STEP:"MINOR_APPLICANT_WITH_MULTI_STEP",EDIT_MINOR_APPLICANT_WITH_MULTI_STEP:"EDIT_MINOR_APPLICANT_WITH_MULTI_STEP",GUARDIAN_APPLICANT_WITH_MULTI_STEP:"GUARDIAN_APPLICANT_WITH_MULTI_STEP",EDIT_GUARDIAN_APPLICANT_WITH_MULTI_STEP:"EDIT_GUARDIAN_APPLICANT_WITH_MULTI_STEP",BENEFICIARY_PERSON:"BENEFICIARY_PERSON",BENEFICIARY_TRUST:"BENEFICIARY_TRUST",EDIT_BENEFICIARY_PERSON:"EDIT_BENEFICIARY_PERSON",EDIT_BENEFICIARY_TRUST:"EDIT_BENEFICIARY_TRUST",BENEFITS:"BENEFITS",APPLICATION_EXTRA_QUESTIONS:"APPLICATION_EXTRA_QUESTIONS",APPLICANT_QUESTIONNAIRE:"APPLICANT_QUESTIONNAIRE",APPLICANT_QUESTIONNAIRE_STREAMLINED:"APPLICANT_QUESTIONNAIRE_STREAMLINED",GUARDIAN_QUESTIONNAIRE:"GUARDIAN_QUESTIONNAIRE",MINOR_QUESTIONNAIRE:"MINOR_QUESTIONNAIRE",ONLINE_BANKING_ENROLLMENT:"ONLINE_BANKING_ENROLLMENT",AUTHORIZED_USER:"AUTHORIZED_USER",CO_APPLICANT:"CO_APPLICANT",SPOUSE_INFORMATION:"SPOUSE_INFORMATION",BUSINESS_PROFILE_INFORMATION:"BUSINESS_PROFILE_INFORMATION",BUSINESS_INFORMATION:"BUSINESS_INFORMATION",BUSINESS_QUESTIONNAIRE:"BUSINESS_QUESTIONNAIRE",PERSON:"PERSON",PERSON_AUTHENTICATED_FLOW:"PERSON_AUTHENTICATED_FLOW",PERSON_MANUAL_FLOW:"PERSON_MANUAL_FLOW"};function i(e){return e?{headers:{Authorization:"Bearer ".concat(e)}}:null}let a={getFormById:async e=>{let{formId:t,token:r}=e;return(await n.FU.get("refi-pipeline/forms/".concat(t).concat(r?"":"/manual-flow"),i(r))).data},getFormByPlatformAndId:async e=>{let{partnerId:t,formId:r,token:o}=e,a=o?"refi-pipeline/".concat(t,"/form-builder/applicant_portal/forms/").concat(r):"refi-pipeline/".concat(t,"/form-builder/applicant_portal/open/forms/").concat(r);return(await n.FU.get(a,i(o))).data},getPIIFormWithPermissions:async e=>{let{partnerId:t,platform:r,formId:o,token:a}=e,l=r?"refi-pipeline/".concat(t,"/").concat(r,"/pii-forms/").concat(o):"refi-pipeline/".concat(t,"/pii-forms/").concat(o);return(await n.FU.get(l,i(a))).data},getOpenPIIForm:async e=>{let{partnerId:t,platform:r,formId:o}=e,i="refi-pipeline/".concat(t,"/form-builder/").concat(r,"/open/forms/").concat(o);return(await n.FU.get(i)).data}}},56304:(e,t,r)=>{"use strict";r.d(t,{O6:()=>c,r7:()=>d});var n=r(65419),o=r(31901),i=r(57253),a=r(53239),l=r(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,i.W)(),{formId:r,token:l,enabled:d,opts:{onSuccess:c}={}}=e,u=(0,o.I)({queryKey:s.queryKey(r,l),queryFn:async()=>await s.queryFn({formId:r,partnerId:t,token:l}),enabled:d&&!!r,staleTime:1/0}),{data:m,isSuccess:p,isError:f,error:h}=u;return(0,a.useEffect)(()=>
1{if(p){null==c||c(m);return}f&&n.datadogRum.addError(h,{source:"useGetFormByPlatformAndId",metadata:{formId:r}})},[h,c,r,m,p,f]),u}},59857:(e,t,r)=>{"use strict";r.d(t,{K:()=>d});var n=r(8368).Ay.p.withConfig({displayName:"ErrorMessagestyled__Error",componentId:"sc-1mvr0yp-0"})(["font-size:",";color:",";margin:0.25rem 0 0 ",";position:relative;bottom:0;"],function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.color.support.error},function(e){return e.$margin?"0.875rem":"0"}),o=r(80263);function i(e){return(i="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 a=["id","error","margin","dataDogRumPrivacy"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=function(e){var t=e.id,r=e.error,i=e.margin,l=e.dataDogRumPrivacy,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a);return r?(0,o.jsx)(n,s(s({id:t,$margin:void 0===i||i},d),{},{children:(0,o.jsx)("span",{"data-dd-privacy":void 0===l?"allow":l,children:r})})):null}},62509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dollar=void 0;let n=r(44651);class o{static ofNullableCents(e){return i(e)?o.ofCents(e):void 0}static ofCents(e){return new o(new n.Dec(a(e)))}static parseCents(e){let t=l(s(e));return void 0===t?void 0:new o(t)}static ofNullableDollar(e){return i(e)?o.ofDollar(e):void 0}static ofDollar(e){return new o(new n.Dec(a(e)).mul(100))}static ofDollarWithDefault(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ZERO;return null!=(t=o.parseDollar(e))?t:r}static ofCentsWithDefault(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ZERO;return null!=(t=o.parseCents(e))?t:r}static parseDollar(e){let t=l(s(e));return void 0===t?void 0:new o(t.mul(100))}static parseDollarStrict(e){if(null==e)return;let t=e.toString();if(/[eE]/.test(t))return;let r=t.indexOf(".");if(-1===r||!(t.length-r-1>2))return o.parseDollar(e)}static format(e){return o.toDollarAmount(e).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}static formatAsCurrency(e){let t=o.toDollarAmount(e),r=2*!Number.isInteger(t);return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:r,maximumFractionDigits:r}).format(t)}static formatAsCurrencyWithCents(e){return"$".concat(o.format(e))}static toDollarAmount(e){return Number(e._cents.div(100).toFixed(2,n.ROUND_UP))}static toDollarAmountString(e){return e._cents.div(100).toFixed(2,n.ROUND_UP)}static toCentsAmount(e){return Number(e._cents.toFixed(0,n.ROUND_UP))}static toCentsAmountString(e){return e._cents.toFixed(0,n.ROUND_UP)}static plus(e,t){return new o(e._cents.plus(t._cents))}static minus(e,t){return new o(e._cents.sub(t._cents))}static times(e,t){return new o(e._cents.mul(t))}static divide(e,t){if(t)return new o(e._cents.div(t))}static isDollar(e){return e instanceof o}static abs(e){return new o(e._cents.abs())}equals(e){return this._cents.eq(e._cents)}lessThan(e){return this._cents.lt(e._cents)}constructor(e){this._cents=e}}t.Dollar=o,o.ZERO=new o(new n.Dec(0));let i=e=>"number"==typeof e&&!Number.isNaN(e),a=e=>{if(i(e))return e;throw Error("no amount provided: ".concat(e))},l=e=>{try{return new n.Dec(e)}catch(e){return}},s=e=>(null!=e?e:"".concat(e)).toString(10)},63607:(e,t,r)=>{"use strict";r.d(t,{E:()=>N});var n=r(8368),o={tablet:"768px"},i=n.Ay.div.withConfig({displayName:"ActionBarstyled__ActionBar",componentId:"sc-1nrp16z-0"})(["position:fixed;bottom:0;left:var(--sidebar-width,0);z-index:",";display:flex;align-items:center;justify-content:center;width:calc(100% - var(--sidebar-width,0px));padding-inline:var(--sidebar-content-padding,0);transition:left 200ms ease-in-out,width 200ms ease-in-out;background:",";gap:1.875rem;padding-block:1.25rem;box-shadow:",";@media (max-width:","){gap:1rem;padding-block:1rem;}"],function(e){return e.theme.token.zIndex[10]},function(e){return e.theme.token.color.surface.neutral},function(e){return e.theme.token.shadow[100]},o.tablet),a=n.Ay.div.withConfig({displayName:"ActionBarstyled__ActionBarWrapper",componentId:"sc-1nrp16z-1"})(["display:grid;align-items:center;width:",";max-width:var(--breakpoint-desktop);grid-template-columns:repeat(3,1fr);grid-template-areas:'left center right';grid-gap:1.5rem;padding:",";@media (max-width:","){grid-gap:1.5rem;padding:",";}"],function(e){var t=e.$innerWidth;return null!=t?t:"100%"},function(e){return e.$innerWidth?"0":"0 1.25rem"},o.tablet,function(e){return e.$innerWidth?"0":"0 1rem"}),l=n.Ay.div.withConfig({displayName:"ActionBarstyled__Left",componentId:"sc-1nrp16z-2"})(["grid-area:left;justify-self:start;display:flex;align-items:center;gap:",";div{margin-bottom:0;}@media (max-width:","){gap:",";}"],function(e){return e.theme.token.spacing["12"]},o.tablet,function(e){return e.theme.token.spacing["16"]}),s=n.Ay.div.withConfig({displayName:"ActionBarstyled__Body",componentId:"sc-1nrp16z-3"})(["grid-area:center;justify-self:center;"]),d=n.Ay.div.withConfig({displayName:"ActionBarstyled__Right",componentId:"sc-1nrp16z-4"})(["grid-area:right;justify-self:end;@media (max-width:","){grid-area:primary;width:100%;}"],o.tablet),c=n.Ay.button.withConfig({displayName:"ActionBarstyled__AssistantButton",componentId:"sc-1nrp16z-5"})(["--cursor:pointer;--bg-color:",";--gradient-base:",";cursor:var(--cursor);display:inline-flex;padding:12px;align-items:flex-start;background:var(--background);border-radius:8px;border:none;&:hover{background:var(--gradient-base),var(--bg-color);}"],function(e){return e.theme.token.color.surface.primary},function(e){return e.theme.token.color.surface.gradient.dark}),u=r(99079),m=r(80263);function p(e){return(p="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 f=["ref","aria-label"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?h(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g=r(25437);function b(e){return(b="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 v=["children","loading","disabled"];function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=b(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var N=function(e){var t=e.children,r=e.innerWidth;return(0,m.jsx)(i,{children:(0,m.jsx)(a,{$innerWidth:r,children:t})})};N.Button=function(e){var t=e.children,r=e.loading,n=e.disabled,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,v);return(0,m.jsx)(d,{children:(0,m.jsx)(g.$,I(I({},o),{},{disabled:n||r,size:"lg","aria-busy":r,loading:!!r,children:t}))})},N.Body=s,N.AssistantButton=function(e){var t=e.ref,r=e["aria-label"],o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,f),i=(0,n.DP)();return(0,m.jsx)(l,{children:(0,m.jsx)(c,y(y({},o),{},{"aria-label":void 0===r?"Assistant":r,ref:t,children:(0,m.jsx)(u.g,{size:32,color:i.token.color.surface.primary,"data-testid":"lightbulb-icon"})}))})}},66329:(e,t,r)=>{"use strict";r.d(t,{g:()=>y});var n=r(80263),o=r(22737),i=r(68822),a=r(72521),l=r(60605);r(53239);var s=r(67280),d=r(63298),c=r(8368),u=r(57253);let m=e=>{let{onClick:t,icon:r,colored:o,ariaLabel:i,testId:a}=e,l=(0,c.DP)(),{theme:m}=(0,u.W)(),p="function"==typeof t,f=o?l.foundations.colors.white:m.colors.primary;if(!p)return(0,n.jsx)("div",{});let h=null!=r?r:d.A;return(0,n.jsx)(s.K,{"data-testid":a,onClick:t,"aria-label":i,children:(0,n.jsx)(h,{weight:"bold",color:f})})};var p=r(59946);let f=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)"}),h=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),y=e=>{let{onBack:t,onClose:r,colored:s,children:d,maxWidth:c,closeButtonAriaLabel:u="Close",small:p=!1,icon:y,showBackButton:g=!0,showCloseButton:b=!0,$enableUiGlowUp:v,$expandedNavbarContainer:_,backButtonLabel:I}=e;return(0,n.jsxs)(f,{"aria-label":"Page navigation",$maxWidth:c,$small:p,$colored:s,$enableUiGlowUp:v,$expandedNavbarContainer:_,"data-testid":"section-header",children:[g?(0,n.jsxs)(h,{$colored:!!s,children:[(0,n.jsx)(m,{onClick:t,icon:y,colored:s,ariaLabel:"Back to previous page",testId:"section-header-back-btn"}),(0,n.jsx)(o.j,{condition:!!I,children:(0,n.jsx)(i.o.Body,{size:a.jJ.LG,children:I})})]}):(0,n.jsx)("div",{}),d,b?(0,n.jsx)(m,{onClick:r,icon:l.u,colored:s,ariaLabel:u,testId:"navigation-header-close-btn"}):(0,n.jsx)("div",{})]})}},68044:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});let n=(e,t)=>{let r=null;return e.some((e,n)=>{if(e.fields.find(e=>e.fieldKey===t))return r=n,!0}),r}},72828:(e,t,r)=>{"use strict";r.d(t,{h:()=>o,l:()=>n});var n={SMALL:"sm",MEDIUM:"md",LARGE:"lg"},o={PRIMARY:"primary",SECONDARY:"secondary",TEXT:"text",TEXT_NO_HOVER:"text-no-hover",OUTLINE:"outline",ICON:"icon"}},73060:(e,t,r)=>{"use strict";r.d(t,{E:()=>m});var n=r(80263),o=r(35879),i=r(42884),a=r(28293),l=r(57065),s=r(83948),d=r(59046),c=r(80619),u=r(66329);let m=e=>{let{children:t,onBack:r,title:m="Account Opening",showHeaderBehindModal:p=!1,fitContentHeight:f=!1,hasFixedBottomBar:h=!1}=e,{isToggleEnabled:y}=(0,i.li)(),{isToggleEnabled:g}=(0,i.gK)(),b=(0,s.v)();return(0,l.j)()?(0,n.jsx)(a.fA,{children:t}):y&&b?(0,n.jsx)(o.L,{title:m,onBack:r,showBehindModal:p,enableGlowUp:g,fitContentHeight:f,hasFixedBottomBar:h,children:(0,n.jsx)(c.UC,{$enableGlowUp:g,children:t})}):(0,n.jsxs)(c.sc,{$contentHeight:f?"auto":void 0,$hasFixedBottomBar:h,children:[(0,n.jsx)(c.Vs,{children:(0,n.jsx)(d.u,{hideMenu:!0,redirectToMainPage:!1})}),(0,n.jsx)(c.IS,{$showBehindModal:p,children:(0,n.jsx)(u.g,{small:!0,onBack:r,children:m})}),(0,n.jsx)(c.UC,{children:t})]})}},73559:()=>{},79276:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var n=r(65419),o=r(31901),i=r(54982);let a={queryKey:(e,t)=>["/refi-pipeline/forms/".concat(e),t],queryFn:async e=>await i.j.getFormById(e)};function l(e){let{formId:t,token:r,enabled:i,opts:{onSuccess:l}={}}=e,{data:s,isLoading:d,isError:c,error:u}=(0,o.I)(a.queryKey(t,r),async()=>await a.queryFn({formId:t,token:r}),{enabled:i&&!!t,onError:e=>{n.datadogRum.addError(e,{source:"useGetFormById",metadata:{formId:t}})},onSuccess:e=>{null==l||l(e)}});return{data:s,isLoading:d,isError:c,error:u}}},79445:(e,t,r)=>{"use strict";r.d(t,{UC:()=>h,f4:()=>f,zQ:()=>y,Vs:()=>m,IS:()=>p});var n=r(80263),o=r(15488),i=r(84796),a=r(96400),l=r(58677),s=r(8368);let d=s.Ay.section.withConfig({displayName:"LayoutB.styled__HighlightStyle",componentId:"sc-754e9cee-0"})(["background:",";grid-area:highlight;"],e=>
1e.theme.colors.colorfulBackground),c=s.Ay.div.withConfig({displayName:"LayoutB.styled__ScreenLayoutBStyled",componentId:"sc-754e9cee-1"})(["background:",";min-height:100%;width:100%;display:grid;grid-template-rows:auto auto auto 1fr;grid-template-areas:'topBar' 'topNavigation' 'highlight' 'content';"],e=>e.$enableGlowUp?e.theme.foundations.colors.white:e.theme.foundations.colors.grey),u=s.Ay.main.withConfig({displayName:"LayoutB.styled__ContentStyled",componentId:"sc-754e9cee-2"})(["overflow-x:hidden;grid-area:content;",""],e=>e.$fullHeight&&"height: 100%;"),m=e=>{let{children:t}=e;return(0,n.jsx)(a.w,{"data-testid":"LayoutB-TopBar",children:t})},p=e=>{let{$showBehindModal:t,$colored:r,children:o}=e,l=(0,i.v)({disableHysteresis:!0,threshold:0});return(0,n.jsx)(a.v,{"data-testid":"LayoutB-TopNavigation",$showElevation:!!l,$showBehindModal:t,$colored:r,children:o})},f=e=>{let{children:t,"aria-label":r="Featured content"}=e;return(0,n.jsx)(d,{"data-testid":"LayoutB-Highlight","aria-label":r,children:t})},h=e=>{let{wrapContent:t=!0,maxWidth:r,children:o}=e;return(0,n.jsx)(u,{as:"main",id:"main-content","data-testid":"LayoutB-Content",$fullHeight:!t,children:t?(0,n.jsx)(l.t,{$maxWidth:r,children:o}):o})},y=e=>{let{children:t,enableGlowUp:r}=e;return(0,n.jsx)(o.V,{children:(0,n.jsx)(c,{id:"layout-b",$enableGlowUp:r,children:t})})}},80619:(e,t,r)=>{"use strict";r.d(t,{UC:()=>h,sc:()=>y,Vs:()=>p,IS:()=>f});var n=r(80263),o=r(15488),i=r(84796),a=r(53239),l=r(96400),s=r(59946),d=r(8368);let c=d.Ay.div.withConfig({displayName:"styled__LayoutAContentWrapper",componentId:"sc-8d32ded7-0"})(["padding:",";margin:",";max-width:",";height:100%;display:flex;flex-direction:column;@media ","{padding:",";}"],e=>e.$enableGlowUp?e.$wide?"1rem 0":"1rem":e.$addPadding?"32px":"0px",e=>e.$enableGlowUp?"0 auto":"unset",e=>(e.$enableGlowUp,"100%"),(0,s.P)({from:"md"}),e=>e.$enableGlowUp?e.$wide?"2rem 0 0 0":"2rem 1.5rem":e.$addPadding?"32px":"0px"),u=d.Ay.div.withConfig({displayName:"LayoutA.styled__ScreenLayoutAStyled",componentId:"sc-49923e0c-0"})(["display:grid;padding-bottom:",";background:",";min-height:100%;width:100%;grid-template-rows:auto auto 1fr;grid-template-areas:'topBar' 'topNavigation' 'content';--content-width:",";--content-height:",";@media (min-width:768px){grid-template:auto auto minmax(20px,1fr) minmax(var(--content-height),auto) minmax(20px,1fr) / auto var(--content-width) auto;grid-template-areas:'topBar topBar topBar' 'topNavigation topNavigation topNavigation' '. . .' '. content .' '. . .';background:",";}"],e=>e.$hasFixedBottomBar?"7.5rem":"0",e=>{var t;return null!=(t=e.$backgroundColor)?t:"white"},e=>{var t;return null!=(t=e.$contentWidth)?t:"475px"},e=>{var t;return null!=(t=e.$contentHeight)?t:e.$enableGlowUp?"668px":"568px"},e=>{var t;return null!=(t=e.$backgroundColor)?t:e.theme.foundations.colors.grey}),m=d.Ay.main.withConfig({displayName:"LayoutA.styled__ContentStyled",componentId:"sc-49923e0c-1"})(["background:white;grid-area:content;@media (min-width:768px){border-radius:",";border:",";}"],e=>e.$enableGlowUp?"1rem":"0.5rem",e=>e.$enableGlowUp?"1px solid #d9d9d9":"1px solid #e7e7e7"),p=e=>{let{children:t}=e;return(0,n.jsx)(l.w,{"data-testid":"LayoutA-TopBar",children:t})},f=e=>{let{$showBehindModal:t,$colored:r,children:o}=e,a=(0,i.v)({disableHysteresis:!0,threshold:0});return(0,n.jsx)(l.v,{"aria-label":"Site navigation","data-testid":"LayoutA-TopNavigation",$showElevation:!!a,$showBehindModal:t,$colored:r,children:o})},h=(0,a.forwardRef)((e,t)=>{let{wrapContent:r=!0,$wide:o=!1,children:i,$addPadding:a=!0,$enableGlowUp:l}=e;return(0,n.jsx)(m,{as:"main",id:"main-content",tabIndex:-1,ref:t,"data-testid":"LayoutA-Content",$enableGlowUp:l,children:r?(0,n.jsx)(c,{$addPadding:a,$enableGlowUp:l,$wide:o,children:i}):(0,n.jsx)("div",{style:{height:"100%"},children:i})})});h.displayName="Content";let y=e=>{let{children:t,$backgroundColor:r,$contentWidth:i,$contentHeight:a,enableGlowUp:l,$hasFixedBottomBar:s}=e;return(0,n.jsx)(o.V,{children:(0,n.jsx)(u,{$backgroundColor:l?"#FFFFFF":r,$contentWidth:i,$contentHeight:a,"data-testid":"LayoutA",$enableGlowUp:l,$hasFixedBottomBar:s,children:t})})}},83549:()=>{},84198:(e,t,r)=>{"use strict";r.d(t,{o:()=>m});var n=r(80263),o=r(35879),i=r(42884),a=r(28293),l=r(57065),s=r(83948),d=r(59046
1),c=r(79445),u=r(66329);let m=e=>{let{children:t,title:r="Account Opening",onBack:m}=e,{isToggleEnabled:p}=(0,i.gK)(),{isToggleEnabled:f}=(0,i.li)(),h=(0,s.v)();return(0,l.j)()?(0,n.jsx)(a.fA,{children:t}):f&&h?(0,n.jsx)(o.L,{title:r,onBack:m,enableGlowUp:p,children:(0,n.jsx)(c.UC,{wrapContent:!1,children:t})}):(0,n.jsxs)(c.zQ,{enableGlowUp:p,children:[(0,n.jsx)(c.Vs,{children:(0,n.jsx)(d.u,{hideMenu:!0,redirectToMainPage:!1})}),(0,n.jsx)(c.IS,{children:(0,n.jsx)(u.g,{small:!0,onBack:m,children:r})}),(0,n.jsx)(c.UC,{wrapContent:!1,children:t})]})}},84474:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(80263);let o=e=>{let{condition:t,children:r,fallback:o=null}=e;return(0,n.jsx)(n.Fragment,{children:t?r:o})}},84796:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var n=r(86917),o=r(25722),i=r(53239);let a=window,l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{getTrigger:t=s,target:r=a}=e,l=(0,o._)(e,["getTrigger","target"]),d=(0,i.useRef)(),[c,u]=(0,i.useState)(()=>t(d,l));return(0,i.useEffect)(()=>{let e=()=>{u(t(d,(0,n._)({target:r},l)))};return e(),r.addEventListener("scroll",e,{passive:!0}),()=>{r.removeEventListener("scroll",e)}},[r,t,JSON.stringify(l)]),c};function s(e,t){let{disableHysteresis:r=!1,threshold:n=100,target:o}=t,i=e.current;return o&&(e.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),(!!r||void 0===i||!(e.current<i))&&e.current>n}},88787:(e,t,r)=>{"use strict";r.d(t,{P:()=>b});var n=r(84297),o=r(95952),i=r(22737),a=r(53239),l=r(9186),s=r(8368),d=r(21438),c=r(43348);function u(e){return(u="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)}function m(e,t,r){var n;return(n=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=function(e){var t=e.status,r=e.colorKey;return({text:m(m(m(m(m(m({},d.l.SUCCESS,l.A.token.color.status.positive),d.l.INFO,l.A.token.color.status.info),d.l.NEGATIVE,l.A.token.color.status.negative),d.l.NEUTRAL,l.A.token.color.status.disabled),d.l.WARNING,l.A.token.color.status.alert),d.l.BRAND,l.A.token.color.main.primary),surface:m(m(m(m(m(m({},d.l.SUCCESS,l.A.token.color.surface.status.positive),d.l.INFO,l.A.token.color.surface.status.info),d.l.NEGATIVE,l.A.token.color.surface.status.negative),d.l.NEUTRAL,l.A.token.color.surface.status.disabled),d.l.WARNING,l.A.token.color.surface.status.alert),d.l.BRAND,l.A.token.color.partner.lighter)})[r][t]},f=s.Ay.div.withConfig({displayName:"Calloutstyled__Callout",componentId:"sc-i0y6k0-0"})(["--bg-color:",";padding:1rem;max-width:56.25rem;background-color:var(--bg-color);border-radius:",";gap:16px;display:flex;align-items:center;"],function(e){return p({status:e.$status,colorKey:"surface"})},function(e){return e.theme.token.radius["02"]}),h=s.Ay.div.withConfig({displayName:"Calloutstyled__InnerContainer",componentId:"sc-i0y6k0-1"})(["display:flex;flex-direction:column;gap:0.5rem;"]),y=(0,s.Ay)(c.E).withConfig({displayName:"Calloutstyled__TextStyled",componentId:"sc-i0y6k0-2"})(["margin:0;"]),g=r(80263),b=(0,a.forwardRef)(function(e,t){var r=e.status,a=e.title,l=e.description,s=e.customDescription,d=e.icon,c=e.dataTestId,u=p({status:r,colorKey:"text"});return(0,g.jsxs)(f,{"data-testid":c,$status:r,ref:t,children:[(0,g.jsx)(i.j,{condition:!!d,children:(0,g.jsx)(n.I,{colorfulBackgroun
1d:!1,color:u,size:o.y.SMALL,children:d})}),(0,g.jsxs)(h,{children:[(0,g.jsx)(i.j,{condition:!!a,children:(0,g.jsx)(y,{$variant:"secondary",$weight:"bold",$color:u,children:a})}),(0,g.jsx)(i.j,{condition:!!l,children:(0,g.jsx)(y,{$variant:"secondary",$color:u,children:l})}),(0,g.jsx)(i.j,{condition:!!s,children:(0,g.jsx)(y,{$variant:"secondary",$color:u,children:s})})]})]})});b.displayName="Callout"},92453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeFundingAmount=function(e){let t=n.Dollar.parseDollarStrict(e);return void 0===t?e:n.Dollar.toDollarAmountString(t)};let n=r(62509)},93121:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>F,default:()=>M});var n=r(80263),o=r(67380),i=r(32144),a=r(96552),l=r(42884),s=r(53784),d=r(84198),c=r(44088),u=r(90946),m=r(65419),p=r(57253),f=r(27194),h=r(82198),y=r(29974),g=r(87520);let b={queryKey:e=>[f.oR.APPLICATION_BENEFITS,e],queryFn:async e=>f.MP.getApplicationBenefits(e)},v=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{accessToken:t}=(0,y.u)(),r=(0,h.RB)(),n=null==r?void 0:r.id,{partnerId:o,isLoading:i}=(0,p.W)(),a={token:t,applicationId:n,partnerId:o},{data:l,isLoading:s,error:d}=(0,g.U)({queryKey:b.queryKey(n),queryFn:async()=>b.queryFn(a),queryOptions:{refetchOnWindowFocus:!0,retry:!1,enabled:e&&!!n,onError:e=>{m.datadogRum.addError(e,{source:"useApplicationBenefits",metadata:{applicationId:n}})}}});return{isApplicationBenefitsLoading:s||i,applicationBenefitsError:d,benefits:l}};var _=r(86418);let I={mutationKey:e=>[f.oR.UPDATE_SUBMITTED_CUSTOM_DATA,e],mutationFn:async e=>f.MP.updateApplicationCustomData(e)};var N=r(44981),x=r(44007),w=r(86281),A=r(53239),E=r(54982),j=r(98282),O=r(71599),S=r(49136),T=r(9500),P=r(31415),C=r(28195),k=r(86917),B=r(97722);function U(e){let{onSubmit:t,form:r,submissionError:o,isSubmitting:i,applicationBenefits:a}=e,l=(0,P.z)({formId:null==r?void 0:r.formId}),s=null==r?void 0:r.config.pages,d=null==r?void 0:r.config.form.title,c=s.reduce((e,t)=>[...e,...t.fields||[]],[]),u=(0,C.b)(c,C.S,a);return(0,n.jsx)(S.b4,{pages:s,defaultValuesFromClient:u,config:l,children:(0,n.jsx)(T.G,{formTitle:d,onSubmit:e=>((e,t)=>{let r=(0,S.D6)(e),n=(0,B._)((0,k._)({},r),{promoCode:r.promoCode,referralCode:r.referralCode});t((0,S.IO)(n,["utmVariables"]))})(e,t),pages:s,submissionError:o,isSubmitting:i})})}let D=()=>{var e;let{useTelemetryTags:t}=(0,w.Jr)();t((0,o.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("ACCOUNT_OPENING").product("ACCOUNT_APPLICATION").feature("BENEFITS").tags);let r=(0,x.useRouter)(),[m,f]=(0,A.useState)(null),[g,S]=(0,A.useState)(!1),T=null==(e=(0,h.RB)())?void 0:e.id,P=(0,i.jE)(),C=(0,l.Ds)(),{accessToken:k}=(0,c.u)(),{features:{ENABLE_PROMO_CODES:B}={},isLoading:D}=(0,u.m)();(0,A.useEffect)(()=>{D||B||r.push(j.t.NOT_FOUND)},[D,B,r]);let{data:R,isLoading:L}=(0,N.E)(E._.BENEFITS,C.value&&B&&!!k,k),{isApplicationBenefitsLoading:$,benefits:F}=v({enabled:B}),{isUpdatingApplicationCustomData:M,updateApplicationCustomData:W}=(e=>{var t;let{onSuccess:r}=e,{accessToken:n}=(0,y.u)(),o=null==(t=(0,h.RB)())?void 0:t.id,{partnerId:i,isLoading:a}=(0,p.W)(),{isLoading:l,isSuccess:s,mutate:d,error:c}=(0,_.h)({mutationKey:I.mutationKey(o),mutationFn:async e=>{let{customData:t}=e;return I.mutationFn({token:n,applicationId:o,partnerId:i,customData:t})},onSuccess:()=>{r()}});return{isUpdatingApplicationCustomData:l||a,updateApplicationCustomDataSuccessfully:s,updateApplicationCustomData:d,updateApplicationCustomDataError:c}})({onSuccess:async()=>{await P.invalidateQueries(b.queryKey(T)),r.push(O.w.REVIEW)}});if(L||D||$)return(0,n.jsx)(d.o,{onBack:()=>r.back(),children:(0,n.jsx)(s.P,{children:(0,n.jsx)(a.P,{})})});let H=async e=>{if(!g&&(S(!0),!M)){try{await W({customData:{promoCode:e.promoCode,referralCode:e.referralCode}})}catch(e){f("Something went wrong, please try again")}S(!1)}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U,{onSubmit:H,form:R.form,applicationBenefits:F,submissionError:m,isSubmitting:M||g})})};var R=r(50140),L=r.n(R),$=r(70431),F=!0;function M(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L(),{children:(0,n.jsx)("title",{children:"Benefits"})}),(0,n.jsx)(D,{})]})}M.getLayout=function(e){return(0,n.jsx)($.c,{children:e})}},96400:(e,t,r)=>{"use strict";r.d(t,{v:()=>i,w:()=>o});var n=r(8368);let o=n.Ay.header.withConfig({displayName:"styled__TopBarStyled",componentId:"sc-5497ae3-0"})(["background:",";grid-area:topBar;"],e=>{var t;return null!=(t=e.$backgroundColor)?t:e.theme.colors.colorfulBackgroun
1d}),i=n.Ay.nav.withConfig({displayName:"styled__TopNavigationStyled",componentId:"sc-5497ae3-1"})(["background:",";position:sticky;top:0;display:flex;justify-content:center;z-index:",";box-shadow:",";transition:box-shadow 300ms cubic-bezier(0.4,0,0.2,1) 0ms;grid-area:topNavigation;"],e=>e.$colored?e.theme.colors.colorfulBackground:e.theme.foundations.colors.white,e=>e.$showBehindModal?1:99,e=>e.$showElevation?e.theme.foundations.elevation.z4:"none")},96552:(e,t,r)=>{"use strict";r.d(t,{P:()=>m});var n=r(86917),o=r(97722),i=r(80263),a=r(8368);let l=(0,a.i7)(["0%{transform-origin:50% 50%;}100%{transform:rotate(360deg);}"]),s=a.Ay.div.withConfig({displayName:"CircularProgress.styled__CircularProgressWrapper",componentId:"sc-512494da-0"})(["display:inline-block;width:2.5rem;height:2.5rem;color:",";animation:"," 1.4s linear infinite;"],e=>e.theme.colors.primary,l),d=a.Ay.svg.withConfig({displayName:"CircularProgress.styled__CircularProgressIcon",componentId:"sc-512494da-1"})(["display:block;color:currentColor;"]),c=(0,a.i7)(["0%{stroke-dasharray:1px,200px;stroke-dashoffset:0;}50%{stroke-dasharray:100px,200px;stroke-dashoffset:-15px;}100%{stroke-dasharray:100px,200px;stroke-dashoffset:-125px;}"]),u=a.Ay.circle.withConfig({displayName:"CircularProgress.styled__CircularProgressCircle",componentId:"sc-512494da-2"})(["animation:"," 1.4s ease-in-out infinite;stroke-dasharray:80px,200px;stroke-dashoffset:0;stroke:currentColor;"],c),m=e=>{var t;return(0,i.jsx)(s,(0,o._)((0,n._)({"data-testid":"circular-progress"},e),{role:"progressbar","aria-label":null!=(t=e["aria-label"])?t:"Loading",children:(0,i.jsx)(d,{viewBox:"22 22 44 44",children:(0,i.jsx)(u,{cx:"44",cy:"44",r:"20.2",fill:"none",strokeWidth:"3.6"})})}))}},99732:()=>{}},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,6175,9046,5341,4213,6594,3466,9154,9136,431,636,6593,8792],()=>e(e.s=44722)),_N_E=e.O()}]);
2//# sourceMappingURL=benefits-f860ba06378885d0.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.