1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3278],{121:(e,t,n)=>{"use strict";t.DP=t.gj=t.p1=void 0,n(44651);var r=n(62509);Object.defineProperty(t,"p1",{enumerable:!0,get:function(){return r.Dollar}});var i=n(36996);Object.defineProperty(t,"gj",{enumerable:!0,get:function(){return i.formatFundingCurrency}});var o=n(92453);Object.defineProperty(t,"DP",{enumerable:!0,get:function(){return o.normalizeFundingAmount}})},6514:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(8368),i=(0,r.AH)(["",""],function(e){var t=e.$color,n=e.$weight,i=e.theme;return(0,r.AH)(["color:",";font-weight:",";"],null!=t?t:i.token.color.text.primary,null!=n?n:i.token.typography.fontWeight[500])}),o=function(e,t){switch(t){case"primarySection":return e.token.typography.fontSize["07"];case"secondary":return e.token.typography.fontSize["06"];case"tertiary":return e.token.typography.fontSize["05"];case"smallest":return e.token.typography.fontSize["04"];default:return e.token.typography.fontSize["08"]}},a=function(e){return r.Ay[e].withConfig({displayName:"Titlestyled",componentId:"sc-a4gkgp-0"})([""," font-size:",";",""],i,function(e){return o(e.theme,e.$variant)},function(e){return e.$shouldUseDesignSystemFont?(0,r.AH)(["font-family:",";"],function(e){return e.theme.token.typography.fontFamily.base}):""})},s={h1:a("h1"),h2:a("h2"),h3:a("h3"),h4:a("h4"),h5:a("h5"),h6:a("h6")}},8290:(e,t,n)=>{"use strict";n.d(t,{v:()=>f});var r=n(84297),i=n(95952),o=n(22737),a=n(90159),s=n(53239),l=n(8368),c=n(86236),u=n(43348),d=l.Ay.span.withConfig({displayName:"Chipstyled__Chip",componentId:"sc-1v4wok9-0"})(["--background-color:",";--border:1px solid;--border-color:",";display:flex;align-items:center;justify-content:space-between;width:fit-content;padding:0.5rem;gap:0.5rem;line-height:0.938rem;background-color:var(--background-color);border:var(--border);border-color:var(--border-color);border-radius:",";cursor:",";svg{fill:",";}"," ",""],function(e){return e.theme.token.color.surface.neutral},function(e){return e.theme.token.color.partner.lighter},function(e){return e.theme.token.radius["02"]},function(e){var t=e.onClick,n=e.$dropdown;return t||n?"pointer":"default"},function(e){return e.theme.token.color.text.secondary},function(e){if(e.$active)return(0,l.AH)(["--background-color:",";--border-color:",";p{color:",";}svg{fill:",";}"],function(e){return e.theme.token.color.partner.lighter},function(e){return e.theme.token.color.text.negative},function(e){return e.theme.token.color.main.primary},function(e){return e.theme.token.color.main.primary})},function(e){if(e.$variant===c.F.SUCCESS)return(0,l.AH)(["--background-color:",";--font-weight:",";--border:none;p{color:",";font-weight:",";text-transform:none;}"],function(e){return e.theme.token.color.surface.status.positive},function(e){return e.theme.token.typography.fontWeight[400]},function(e){return e.theme.token.color.status.positive},function(e){return e.theme.token.typography.fontWeight[400]})}),m=(0,l.Ay)(u.E).withConfig({displayName:"Chipstyled__ChipText",componentId:"sc-1v4wok9-1"})(["padding:0;margin:0;"]),p=n(80263),f=s.forwardRef(function(e,t){var n=e.id,s=e.label,l=e.className,u=e.variant,f=void 0===u?c.F.DEFAULT:u,h=e.active,y=e.icon,b=e.dropdown,g=void 0!==b&&b,v=e.onClick,x=e.dataDogRumPrivacy;return(0,p.jsxs)(d,{$variant:f,$active:void 0!==h&&h,$dropdown:g,className:l,id:n,onClick:v,ref:t,children:[(0,p.jsx)(o.j,{condition:!!y,children:y}),(0,p.jsx)(m,{$variant:"label",$weight:"bold",children:(0,p.jsx)("span",{"data-dd-privacy":void 0===x?"allow":x,children:s})}),(0,p.jsx)(o.j,{condition:g,children:(0,p.jsx)(r.I,{size:i.y.SMALL,weight:"bold",children:(0,p.jsx)(a.a,{})})})]})});f.displayName="Chip"},24825:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(6514),i=n(80263);function o(e){var t=e.as,n=e.color,o=e.weight,a=e.variant,s=e.children,l=e.shouldUseDesignSystemFont,c=e.id,u=e.dataTestID,d=r.y[t];return(0,i.jsx)(d,{$color:n,$variant:a,$weight:o,$shouldUseDesignSystemFont:l,id:c,"data-testid":u,children:s})}},28036:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(86917),i=n(97722),o=n(65419),a=n(14506),s=n.n(a),l=n(965),c=n(51656),u=n(48637),d=n(53239),m=n(60619);let p=e=>{let{enabled:t=!1}=e,{applicants:n,applicationId:a,isLoading:p,error:f}=(0,m.V)({enabled:t});return(0,d.useEffect)(()=>{f&&o.datadogRum.addError(f,{source:"useApplicationJointApplicants",metadata:{applicationId:a}})},[f,a]),{isLoadingApplicationJointApplicants:p,applicationApplicantsError:f,jointApplicants:(e=>{let t=e.map(e=>{let t=(0,u.d)({firstName:e.firstName,middleName:e.middleName,suffixName:e.suffixName,lastName:e.lastName});return t?(0,i._)((0,r._)({},e),{fullName:t}):null}).filter(e=>!!e&&(e=>((e=>{let t=null===e.applicationLevelRole;
1return e.applicationLevelRole===l.l8.JOINT_APPLICANT||t})(e)||(e=>{var t;return null==(t=e.accounts)?void 0:t.find(e=>e.role===c.X.JOINT_APPLICANT)})(e))&&!0!==e.isMinorApplicant)(e));return s()(t,["fullName"])})(n),allApplicants:n.map(e=>(0,i._)((0,r._)({},e),{fullName:(0,u.d)({firstName:e.firstName,middleName:e.middleName,suffixName:e.suffixName,lastName:e.lastName})}))}}},31456:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(42884);let i=()=>{let{isToggleEnabled:e}=(0,r.Lb)();return{$shouldUsePartnerBrandColor:e}}},34367:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var r=n(53239),i=n(8368).Ay.hr.withConfig({displayName:"Dividerstyled__Divider",componentId:"sc-6glfrm-0"})(["width:100%;border:0.1px solid ",";"],function(e){return e.theme.token.color.gray[300]}),o=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)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var l=r.forwardRef(function(e,t){return(0,o.jsx)(i,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 r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t},e))});l.displayName="Divider"},36996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFundingCurrency=function(e,t){let{strict:n}=t,r=n||!Number.isInteger(e)?2:0;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}},39233:(e,t,n)=>{"use strict";n.d(t,{p:()=>W});var r=n(28855),i=n(57582),o=n(53239),a=n(59857),s=n(63256),l=n(33410);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,void 0);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)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=new Date(Date.UTC(2e3,11,25)),m={day:2,month:2,year:4},p={day:"dd",month:"mm",year:"yyyy"},f={order:["month","day","year"],separators:["/","/"]},h=function(e){var t,n=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(d),r=[],i=[],o=c(n);try{for(o.s();!(t=o.n()).done;){var a,s=t.value;(a=s.type,"day"===a||"month"===a||"year"===a)?r.push(s.type):"literal"===s.type&&r.length>0&&r.length<3&&i.push(s.value)}}catch(e){o.e(e)}finally{o.f()}return 3!==r.length||2!==i.length?f:{order:r,separators:i}},y=function(e){var t=h(e),n=t.order,r=t.separators;return n.reduce(function(e,t,n){return 0===n?p[t]:"".concat(e).concat(r[n-1]).concat(p[t])},"")},b=function(e,t){var n,r={},i=0,o=c(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=m[a];r[a]=e.slice(i,i+s),i+=s}}catch(e){o.e(e)}finally{o.f()}return r},g=function(e,t){if("string"!=typeof e||""===e)return"";var n=l.p.parse(e);if(!l.p.isValid(n))return"";var r=h(t),i=r.order,o=r.separators,a={day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0")};return i.reduce(function(e,t,n){return 0===n?a[t]:"".concat(e).concat(o[n-1]).concat(a[t])},"")},v=function(e,t){var n=e.replace(/\D/g,"");if(n.length<8)return null;var r=b(n,h(t).order),i=r.day,o=r.month,a=r.year,s=Number(o),c=Number(i);if(s<1||s>12||c<1||c>31)return null;var u="".concat(a,"-").concat(o,"-").concat(i),d=l.p.parse(u);return l.p.isValid(d)&&d.getFullYear()===Number(a)&&d.getMonth()+1===s&&d.getDate()===c?u:null};function x(e,t){return 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 r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);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)?j(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e){return"string"==typeof e?e:""},O=function(e,t){var n,r=null==(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))?void 0:n.set;null==r||r.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0}))},I=function(e){var t=e.value,n=e.defaultValue,r=e.onChange,i=x((0,o.useState)("en-US"),2),a=i[0],l=i[1];(0,o.useEffect)(function(){l(new Intl.DateTimeFormat().resolvedOptions().locale)},[]);var c=null!=t,u=x((0,o.useState)(null),2),d=u[0],m=u[1],p=x((0,o.useState)(function(){return c?"":w(n)}),2),f=p[0],y=p[1],b=(0,o.useRef)(null);(0,o.useEffect)(function(){var e,t=null==(e=b.current)?void 0:e.form;if(t){var r=function(){m(null),c||y(w(n))};return t.addEventListener("reset",r),function(){return t.removeEventListener("reset",r)}}},[c,n]);var j=c?w(t):f,I=null!=d?d:g(j,a),N=function(e){var t=b.current;t?O(t,e):(c||y(e),null==r||r({target:{value:e}}))},S=function(e){var t=e.trim();if(""===t){""!==j&&N(""),m(null);return}var n=v(t,a);if(n){n!==j&&N(n),m(null);return}""!==j&&N(""),m(e)};return{locale:a,isoValue:j,displayValue:I,hiddenDateRef:b,openPicker:function(){var e=b.current;if(e)if("function"==typeof e.showPicker)try{e.showPicker()}catch(t){e.focus()}else e.focus()},handleVisibleChange:function(e){m(s.SL.maskDate(e.target.value,h(a)))},handleVisibleBlur:function(e){S(e.target.value)},handleVisibleKeyDown:function(e){"Enter"===e.key&&S(e.currentTarget.value),"Escape"===e.key&&m(null)},handleHiddenChange:function(e){m(null),c||y(e.target.value),null==r||r(e)}}},N=n(43348),S=n(8368),C=S.Ay.fieldset.withConfig({displayName:"Inputstyled__Fieldset",componentId:"sc-1n9smt8-0"})(["position:absolute;inset:-0.3125rem 0 0;min-width:0%;text-align:left;margin:0;padding-inline:0.5rem;pointer-events:none;border-radius:inherit;border-width:1px;border-style:solid;border-color:var(--input-border-color);overflow:hidden;"]),E=S.Ay.legend.withConfig({displayName:"Inputstyled__Legend",componentId:"sc-1n9smt8-1"})(["display:block;float:unset;width:auto;overflow:hidden;padding:0;height:0.6875rem;font-size:0.75rem;visibility:hidden;max-width:0.01px;transition:max-width 50ms cubic-bezier(0,0,0.2,1) 0ms;white-space:nowrap;",""],function(e){return e.$active&&(0,S.AH)(["max-width:100%;visibility:visible;transition:max-width 100ms cubic-bezier(0,0,0.2,1) 50ms;","{opacity:0;}"],_)}),_=S.Ay.span.withConfig({displayName:"Inputstyled__LegendText",componentId:"sc-1n9smt8-2"})(["display:inline-block;visibility:visible;opacity:0;padding-inline:0.3125rem;"]),D=S.Ay.div.withConfig({displayName:"Inputstyled__Wrapper",componentId:"sc-1n9smt8-3"})(["--input-error-color:",";--input-active-color:",";--input-border-color:",";--input-text-color:",";--input-disabled-color:",";position:relative;display:inline-flex;flex-direction:column;width:100%;vertical-align:top;height:5rem;"],function(e){return e.theme.token.color.support.error},function(e){return e.theme.token.color.surface.input.active},function(e){return e.theme.token.color.surface.input.primary},function(e){return e.theme.token.color.text.primary},function(e){return e.theme.token.color.support.disabled}),A=S.Ay.div.withConfig({displayName:"Inputstyled__InputWrapper",componentId:"sc-1n9smt8-4"})(["position:relative;display:inline-flex;gap:0.875rem;align-items:center;line-height:1.4375rem;letter-spacing:0.0094rem;color:var(--input-text-color);box-sizing:border-box;cursor:text;border-radius:0.25rem;&:focus-within{label{z-index:",";transform:translate(0.875rem,-0.4375rem) scale(0.75);pointer-events:auto;user-select:none;max-width:calc(133% - 2rem);color:var(--input-active-color);}","{max-width:100%;
1transition:max-width 100ms cubic-bezier(0,0,0.2,1) 50ms;}","{border-color:var(--input-active-color);border-width:0.125rem;}}&:has([aria-invalid='true']){label{color:var(--input-error-color);}","{border-color:var(--input-error-color);}}&:has(input:disabled),&:has(input:read-only){cursor:not-allowed;color:var(--input-disabled-color);background-color:",";border-color:",";label{color:var(--input-disabled-color);}}input[type='password']::-ms-reveal,input[type='password']::-ms-clear{display:none;}"],function(e){return e.theme.token.zIndex[10]},E,C,C,function(e){return e.theme.token.color.input.disabled},function(e){return e.theme.token.color.surface.status.disabled}),P=(0,S.i7)(["0%{display:block;}"]),k=S.Ay.input.withConfig({displayName:"Inputstyled__Input",componentId:"sc-1n9smt8-5"})(["display:block;font:inherit;letter-spacing:inherit;color:currentcolor;border:0;box-sizing:content-box;background:none;height:1.4375rem;width:100%;min-width:0;margin:0;-webkit-tap-highlight-color:transparent;animation-name:",";animation-duration:10ms;padding:1.0313rem 0.875rem;outline:0;border-radius:0.25rem;"],P),R=(0,S.Ay)(N.E).withConfig({displayName:"Inputstyled__HelperText",componentId:"sc-1n9smt8-6"})(["color:",";padding:0.5rem 0.75rem;"],function(e){return e.theme.token.color.text.secondary}),T=S.Ay.div.withConfig({displayName:"Inputstyled__Attachment",componentId:"sc-1n9smt8-7"})(["min-width:fit-content;display:flex;align-items:center;justify-content:center;"]),F=S.Ay.button.withConfig({displayName:"Inputstyled__DatePickerButton",componentId:"sc-1n9smt8-8"})(["min-width:fit-content;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:transparent;border:none;padding:0;margin-right:0.875rem;cursor:pointer;color:var(--input-text-color);z-index:",";transition:opacity 200ms cubic-bezier(0,0,0.2,1) 0ms;&:hover{opacity:0.8;}&:focus-visible{outline:0.125rem solid var(--input-active-color);outline-offset:0.125rem;border-radius:0.25rem;}&:active{opacity:0.6;}&:disabled{cursor:not-allowed;opacity:0.4;}"],function(e){return e.theme.token.zIndex[10]}),M=S.Ay.input.withConfig({displayName:"Inputstyled__HiddenDateInput",componentId:"sc-1n9smt8-9"})(["position:absolute;inset:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer;clip-path:inset(0 0 0 calc(100% - 3rem));z-index:",";&:disabled{cursor:default;}"],function(e){return e.theme.token.zIndex[20]}),L=n(46160),U=n(80263);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 $=["id","label","type","error","required","disabled","readOnly","defaultValue","value","LabelComponent","ErrorMessageComponent","variant","onChange","helperText","helperTextRole","format","mask","validation","placeholder","attachments","manualDateEntry"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=B(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var W=(0,o.forwardRef)(function(e,t){var n=e.id,s=void 0===n?"input":n,l=e.label,c=e.type,u=void 0===c?"text":c,d=e.error,m=e.required,p=e.disabled,f=e.readOnly,h=e.defaultValue,b=e.value,g=e.LabelComponent,v=void 0===g?L.J:g,x=e.ErrorMessageComponent,j=void 0===x?a.K:x,w=e.variant,O=e.onChange,N=e.helperText,S=e.helperTextRole,P=e.format,B=e.mask,z=e.validation,W=e.placeholder,V=e.attachments,H=e.manualDateEntry,G=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,$),Q=(0,o.useRef)(null);(0,r.O)(Q);var Y="date"===u&&!!H,K=(0,o.useCallback)(function(e){"function"==typeof t?t(e):t&&(t.current=e)},[t]),Z=(0,o.useCallback)(function(e){Q.current=e,K(e)},[K]),J=I({value:"string"==typeof b?b:void 0,defaultValue:"string"==typeof h?h:void 0,onChange:O}),X=J.locale,ee=J.isoValue,et=J.displayValue,en=J.hiddenDateRef,er=J.openPicker,ei=J.handleVisibleChange,eo=J.handleVisibleBlur,ea=J.handleVisibleKeyDown,es=J.handleHiddenChange,el=(0,o.useCallback)(function(e){en.current=e},[en]),ec=!!d&&!p,eu=ec?d:void 0,ed=!!W||!!(b||h)||0===b||"date"===u,em=!!(null==V?void 0:V.end),ep=function(e){if("mask"===w){var t=B(e.target.value);e.target.value=t,null==O||O(e)}},ef=function(e){if("format"===w){var t=e.target.value;if(!z||z(t)){var n=P(t);e.target.value=n,null==O||O(e)}}},eh=!!N&&!ec,ey="".concat(s,"-error-message"),eb="".concat(s,"-helper-text"),eg=eh?eb:ec?ey:void 0;return(0,U.jsxs)(D,{children:[(0,U.jsxs)(A,{children:[(0,U.jsx)(v,{htmlFor:s,required:m,active:ed,children:l}),(0,U.jsx)(k,q(q({id:s,"aria-describedby":eg,"aria-errormessage":ec?ey:void 0,"aria-invalid":ec,required:m,disabled:p,readOnly:f,ref:Z},G),{},{type:Y?"text":u,inputMode:Y?"numeric":G.inputMode,value:Y?et:function(){if("mask"===w){var t;return(0,e.mask)(String(null!=(t=null!=b?b:null==h?void 0:h.toString())?t:""))}return"format"===w?(0,e.format)(String(null!=b?b:"")):b}(),defaultValue:Y?void 0:h,onChange:Y?ei:function(e){switch(w){case"mask":ep(e);return;case"format":ef(e);return;default:return O?O(e):e.target.value}},placeholder:Y?y(X):W,name:Y?void 0:G.name,onInput:Y?void 0:G.onInput,onBlur:Y?function(e){var t;eo(e),null==(t=G.onBlur)||t.call(G,e)}:G.onBlur,onKeyDown:Y?function(e){var t;ea(e),null==(t=G.onKeyDown)||t.call(G,e)}:G.onKeyDown,"aria-haspopup":void 0})),Y&&(0,U.jsx)(M,{ref:el,type:"date","aria-hidden":"true",tabIndex:-1,name:G.name,form:G.form,value:ee,required:m,min:G.min,max:G.max,disabled:p,readOnly:f,onClick:er,onInput:G.onInput,onChange:es}),em&&(0,U.jsx)(T,{children:"string"==typeof(null==V?void 0:V.end)?(0,U.jsx)("span",{children:V.end}):null==V?void 0:V.end}),Y&&(0,U.jsx)(F,{type:"button",tabIndex:-1,"aria-label":"Open date picker",disabled:p||f,onMouseDown:function(e){return e.preventDefault()},onClick:er,children:(0,U.jsx)(i.J,{size:24,weight:"regular","aria-hidden":"true",focusable:!1})}
1),(0,U.jsx)(C,{"aria-hidden":!0,children:(0,U.jsx)(E,{$active:ed,children:(0,U.jsx)(_,{children:(0,U.jsx)("span",{children:l})})})})]}),eh?(0,U.jsxs)(R,{id:eb,$variant:"disclaimer",role:S,children:[N," "]}):null,eu?(0,U.jsx)(j,{id:ey,error:eu}):null]})});W.displayName="Input"},41948:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/business/review",function(){return n(63095)}])},43348:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(8368),i=function(e,t,n){if(!n)return"cta"===t||"disclaimer"===t?e.token.typography.fontWeight["700"]:e.token.typography.fontWeight["400"];switch(n){case"bold":return e.token.typography.fontWeight["700"];case"medium":return e.token.typography.fontWeight["500"];default:return e.token.typography.fontWeight["400"]}},o=function(e,t){switch(t){case"cta":return e.token.typography.fontSize["00"];case"label":case"action":return e.token.typography.fontSize["01"];case"secondary":return e.token.typography.fontSize["02"];default:return e.token.typography.fontSize["03"]}},a=(0,r.AH)(["",""],function(e){var t=e.$color,n=e.theme;return(0,r.AH)(["color:",";"],t||n.token.color.text.primary)}),s=r.Ay.p.withConfig({displayName:"Textstyled__Text",componentId:"sc-hn4bbp-0"})([""," "," font-weight:",";font-size:",";",""],a,function(e){var t=e.$variant;return"action"===t||"cta"===t?"text-transform: uppercase;":""},function(e){return i(e.theme,e.$variant,e.$weight)},function(e){return o(e.theme,e.$variant)},function(e){return e.$shouldUseDesignSystemFont?(0,r.AH)(["font-family:",";"],function(e){return e.theme.token.typography.fontFamily.base}):""})},44651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUND_HALF_EVEN=t.ROUND_HALF_UP=t.ROUND_UP=t.Dec=void 0;let r=function(e){return e&&e.__esModule?e:{default:e}}(n(31493));t.Dec=r.default.clone({precision:20,rounding:r.default.ROUND_HALF_UP}),t.ROUND_UP=r.default.ROUND_UP,t.ROUND_HALF_UP=r.default.ROUND_HALF_UP,t.ROUND_HALF_EVEN=r.default.ROUND_HALF_EVEN},46160:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(8368).Ay.label.attrs(function(e){return{$active:e.$active}}).withConfig({displayName:"Labelstyled__Label",componentId:"sc-rczc8q-0"})(["position:absolute;top:0;left:0;display:block;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 1.5rem);pointer-events:none;transform-origin:left top;transform:translate(0.875rem,1.0625rem) scale(1);z-index:",";transition:color 200ms cubic-bezier(0,0,0.2,1) 0ms,transform 200ms cubic-bezier(0,0,0.2,1) 0ms,max-width 200ms cubic-bezier(0,0,0.2,1) 0ms;",""],function(e){return e.theme.token.color.text.tertiary},function(e){return e.theme.token.zIndex.auto},function(e){return e.$active&&"\n transform: translate(0.875rem, -0.4375rem) scale(0.75);\n pointer-events: auto;\n user-select: none;\n max-width: calc(133% - 2rem);\n "}),i=n(80263);function o(e){return(o="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=["children","required","htmlFor","active","dataDogRumPrivacy"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(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 r,i,a;r=e,i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c=function(e){var t=e.children,n=e.required,o=e.htmlFor,s=e.active,c=e.dataDogRumPrivacy,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return(0,i.jsx)(r,l(l({htmlFor:o},d),{},{$active:!!s,"data-dd-privacy":void 0===c?"allow":c,children:(0,i.jsxs)("span",{children:[t,n?(0,i.jsx)(u,{}):null]})}))}
1,u=function(){return(0,i.jsx)("span",{"aria-hidden":!0,children:"*"})}},48637:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(88547);let i=e=>{let{firstName:t,middleName:n,suffixName:i,lastName:o}=e,a=r._.displayFullName({firstName:t,middleName:n,suffixName:i,lastName:o});return a.success?a.data:""}},49242:(e,t,n)=>{"use strict";n.d(t,{_:()=>v});var r=n(86917),i=n(97722),o=n(25722),a=n(80263),s=n(40175),l=n(49454),c=n(42884),u=n(60605),d=n(8368);let m=(0,d.i7)(["from{opacity:0;}to{opacity:1;}"]),p=(0,d.i7)(["from{opacity:1;}to{opacity:0;}"]),f=(0,d.i7)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),h=(0,d.i7)(["from{transform:translateY(0);}to{transform:translateY(100%);}"]),y=(0,d.Ay)(l.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),b=(0,d.Ay)(l.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,f,e=>e.theme.foundations.zIndex.modal,h,e=>e.$maxWidth?"".concat(e.$maxWidth,"rem"):"23.4375rem"),g=(0,d.Ay)(l.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:d,maxWidth:m,title:p="Drawer",description:f,preventClickOutside:h}=e,v=(0,o._)(e,["open","onClose","children","maxWidth","title","description","preventClickOutside"]);let{isToggleEnabled:x}=(0,c.li)(),j=h?void 0:n;return(0,a.jsx)(l.bL,{open:t,children:(0,a.jsxs)(l.ZL,{children:[(0,a.jsx)(y,{}),(0,a.jsxs)(b,(0,i._)((0,r._)({$maxWidth:m,onPointerDownOutside:j,onEscapeKeyDown:n},v),{children:[(0,a.jsx)(l.hE,{asChild:!0,children:(0,a.jsx)(s.s,{children:p})}),f?(0,a.jsx)(l.VY,{asChild:!0,children:(0,a.jsx)(s.s,{children:f})}):(0,a.jsx)(l.VY,{"aria-hidden":!0,asChild:!0,children:(0,a.jsx)(s.s,{})}),d,(0,a.jsxs)(g,{onClick:n,children:[(0,a.jsx)(u.u,{weight:x?"regular":"bold"}),(0,a.jsx)(s.s,{children:"Close Drawer"})]})]}))]})})}},60619:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(27194),i=n(29974),o=n(56439),a=n(87520);let s={queryKey:e=>[r.oR.APPLICATION_APPLICANTS,e],queryFn:async e=>r.MP.configs.getApplicantsByApplication(e)},l=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{accessToken:t}=(0,i.u)(),n=(0,o.F)(),{data:r,isLoading:l,error:c,refetch:u}=(0,a.U)({queryKey:s.queryKey(n),queryFn:async()=>s.queryFn({token:t,applicationId:n}),queryOptions:{retry:!1,enabled:e&&!!n&&!!t}});return{applicants:r||[],applicationId:n,isLoading:l,error:c,refetch:u}}},62509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dollar=void 0;let r=n(44651);class i{static ofNullableCents(e){return o(e)?i.ofCents(e):void 0}static ofCents(e){return new i(new r.Dec(a(e)))}static parseCents(e){let t=s(l(e));return void 0===t?void 0:new i(t)}static ofNullableDollar(e){return o(e)?i.ofDollar(e):void 0}static ofDollar(e){return new i(new r.Dec(a(e)).mul(100))}static ofDollarWithDefault(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZERO;return null!=(t=i.parseDollar(e))?t:n}static ofCentsWithDefault(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZERO;return null!=(t=i.parseCents(e))?t:n}static parseDollar(e){let t=s(l(e));return void 0===t?void 0:new i(t.mul(100))}
1static parseDollarStrict(e){if(null==e)return;let t=e.toString();if(/[eE]/.test(t))return;let n=t.indexOf(".");if(-1===n||!(t.length-n-1>2))return i.parseDollar(e)}static format(e){return i.toDollarAmount(e).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}static formatAsCurrency(e){let t=i.toDollarAmount(e),n=2*!Number.isInteger(t);return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(t)}static formatAsCurrencyWithCents(e){return"$".concat(i.format(e))}static toDollarAmount(e){return Number(e._cents.div(100).toFixed(2,r.ROUND_UP))}static toDollarAmountString(e){return e._cents.div(100).toFixed(2,r.ROUND_UP)}static toCentsAmount(e){return Number(e._cents.toFixed(0,r.ROUND_UP))}static toCentsAmountString(e){return e._cents.toFixed(0,r.ROUND_UP)}static plus(e,t){return new i(e._cents.plus(t._cents))}static minus(e,t){return new i(e._cents.sub(t._cents))}static times(e,t){return new i(e._cents.mul(t))}static divide(e,t){if(t)return new i(e._cents.div(t))}static isDollar(e){return e instanceof i}static abs(e){return new i(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=i,i.ZERO=new i(new r.Dec(0));let o=e=>"number"==typeof e&&!Number.isNaN(e),a=e=>{if(o(e))return e;throw Error("no amount provided: ".concat(e))},s=e=>{try{return new r.Dec(e)}catch(e){return}},l=e=>(null!=e?e:"".concat(e)).toString(10)},63095:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>tw,default:()=>tO});var r=n(80263),i=n(90946),o=n(86917),a=n(97722),s=n(64168),l=n(38759),c=n(22737),u=n(24825),d=n(25437),m=n(88787),p=n(21438),f=n(63607),h=n(9952),y=n(13036),b=n(90410),g=n(53239),v=n(79266),x=function(e){return e.IN_BRANCH="IN_BRANCH",e.DIGITAL="DIGITAL",e.E_SIGNATURE="E_SIGNATURE",e}({}),j=n(78607),w=n(55090),O=n(51356),I=n(84297),N=n(95952),S=n(34367),C=n(90175),E=n(45540),_=n(61970),D=n(43348),A=n(8290),P=n(8368),k=(0,P.I4)(_.Z).withConfig({displayName:"AccountCardstyled__Card",componentId:"sc-aqc0n7-0"})(["flex-direction:column !important;",""],function(e){var t=e.$hasError,n=e.theme;return t?"border: 2px solid ".concat(n.token.color.status.negative," !important;"):""}),R=(0,P.I4)(D.E).withConfig({displayName:"AccountCardstyled__ErrorMessage",componentId:"sc-aqc0n7-1"})(["margin:0.5rem 0 0;color:",";"],function(e){return e.theme.token.color.status.negative}),T=(0,P.I4)(A.v).withConfig({displayName:"AccountCardstyled__Chip",componentId:"sc-aqc0n7-2"})(["height:fit-content;color:",";background-color:",";"],function(e){return e.theme.token.color.blue[500]},function(e){return e.theme.token.color.blue[0]}),F=P.I4.div.withConfig({displayName:"AccountCardstyled__Flex",componentId:"sc-aqc0n7-3"})(["display:flex;justify-content:space-between;margin-bottom:0.75rem;"]),M=P.I4.div.withConfig({displayName:"AccountCardstyled__RightColumn",componentId:"sc-aqc0n7-4"})(["display:flex;flex-direction:column;align-items:flex-end;gap:0.5rem;"]),L=(0,P.I4)(D.E).withConfig({displayName:"AccountCardstyled__Title",componentId:"sc-aqc0n7-5"})(["margin-top:0;margin-bottom:0.75rem;"]),U=(0,P.I4)(D.E).withConfig({displayName:"AccountCardstyled__Content",componentId:"sc-aqc0n7-6"})(["margin:0;"]),B=(0,P.I4)(d.$).withConfig({displayName:"AccountCardstyled__ViewRatesButton",componentId:"sc-aqc0n7-7"})(["--padding-inline:",";letter-spacing:normal;"],function(e){return e.theme.token.spacing["08"]}),$=P.I4.div.withConfig({displayName:"AssigneesSectionstyled__Wrapper",componentId:"sc-1bmeuf-0"})(["display:flex;flex-direction:column;gap:0.5rem;margin-top:0.75rem;margin-bottom:0.75rem;"]),z=P.I4.div.withConfig({displayName:"AssigneesSectionstyled__AssigneeRow",componentId:"sc-1bmeuf-1"})(["display:flex;align-items:center;justify-content:space-between;gap:0.75rem;"]),q=(0,P.I4)(D.E).withConfig({displayName:"AssigneesSectionstyled__Name",componentId:"sc-1bmeuf-2"})(["margin:0;"]),W=P.I4.div.withConfig({displayName:"AssigneesSectionstyled__RolesGroup",componentId:"sc-1bmeuf-3"})(["display:flex;flex-wrap:wrap;gap:0.25rem;justify-content:flex-end;"]),V=P.I4.span.withConfig({displayName:"AssigneesSectionstyled__RolePill",componentId:"sc-1bmeuf-4"})(["display:inline-block;padding:0.125rem 0.5rem;border-radius:999px;font-size:0.625rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:",";background-color:",";"],function(e){return e.theme.token.color.gray["600"]},function(e){return e.theme.token.color.gray["200"]}),H=(0,P.I4)(D.E).withConfig({displayName:"AssigneesSectionstyled__EmptyState",componentId:"sc-1bmeuf-5"})(["margin:0;color:",";font-style:italic;"],function(e){return e.theme.token.color.text.tertiary});function G(e){var t=e.assignees,n=e.emptyLabel,i=t.length>0;return(0,r.jsxs)($,{"data-testid":"assignees-section",children:[(0,r.jsx)(c.j,{condition:!i,children:(0,r.jsx)(H,{"data-testid":"assignees-empty-state",children:void 0===n?"No one added":n})}),(0,r.jsx)(c.j,{condition:i,children:t.map(function(e){return(0,r.jsxs)(z,{"data-testid":"assignee-row-".concat(e.id),children:[(0,r.jsx)(q,{children:e.fullName}),(0,r.jsx)(W,{children:e.roles.map(function(t){return(0,r.jsx)(V,{"data-testid":"assignee-role-".concat(e.id,"-").concat(t),children:t.replace(/_/g," ")},"".concat(e.id,"-").concat(t))})})]},e.id)})})]})}var Q=n(40175),Y=n(39233),K=n(75341),Z=n(121),J=(0,P.I4)(D.E).withConfig({displayName:"Fun
1dingSectionstyled__Content",componentId:"sc-wmfxbs-0"})(["margin:0.75rem 0;"]),X=P.I4.p.withConfig({displayName:"FundingSectionstyled__FundingDisclaimer",componentId:"sc-wmfxbs-1"})(["font-weight:",";font-size:",";color:",";margin-top:0.5rem;margin-bottom:0;"],function(e){return e.theme.token.typography.fontWeight[400]},function(e){return e.theme.token.typography.fontSize["02"]},function(e){return e.theme.token.color.text.secondary});function ee(e){return(ee="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 et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ee(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ee(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function er(e){var t=e.accountId,n=e.accountName,i=e.required,o=e.wholeValuesOnly,a=void 0!==o&&o,s=e.onFundingBlur,l=(0,v.xW)().control,c="".concat(n," account");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(J,{$weight:"bold",children:"Enter a funding amount"}),(0,r.jsx)(v.xI,{name:t,control:l,render:function(e){var o,l,u=e.field,d=null!=(o=null==(l=e.fieldState.error)?void 0:l.message)?o:"";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.s,{as:"legend",children:c}),(0,r.jsx)(Y.p,en(en({},u),{},{onBlur:function(){u.onBlur(),null==s||s(t,Number(u.value)||0),a||u.onChange((0,Z.DP)(u.value?String(u.value):""))},onChange:function(e){var t=a?ei(e.target.value,!0):K.Q.helpers.getCurrencyDigits(e.target.value);u.onChange(null!=t?t:"")},onPaste:function(e){var t,n,r,i=null!=(t=null==(n=e.clipboardData)||null==(r=n.getData)?void 0:r.call(n,"text"))?t:"",o=a?K.Q.helpers.getWholeValueDigits(i):K.Q.helpers.getCurrencyDigits(i);""!==o&&(e.preventDefault(),u.onChange(o))},variant:"format",id:t,format:a?K.Q.formatters.monetaryWholeValue:K.Q.formatters.monetaryWithDecimals,type:"text",inputMode:"decimal",label:"Initial funding","aria-label":"Initial funding â ".concat(n),error:d,required:i})),a&&(0,r.jsx)(X,{children:"Please enter a whole dollar amount. Cents are not accepted."})]})}})]})}var ei=function(e,t){var n=e.replace(/[^0-9.-]+/g,""),r=n.includes(".")?n.split(".")[0]:n;return t?Number(r||0):Number(n||0)},eo=(0,P.I4)(D.E).withConfig({displayName:"ValuesSectionstyled__Label",componentId:"sc-1tqdk3e-0"})(["color:",";margin-top:0;margin-bottom:0.25rem;margin-right:0.75rem;"],function(e){return e.theme.token.color.text.tertiary}),ea=(0,P.I4)(D.E).withConfig({displayName:"ValuesSectionstyled__Content",componentId:"sc-1tqdk3e-1"})(["margin:0;"]),es=P.I4.div.withConfig({displayName:"ValuesSectionstyled__Wrapper",componentId:"sc-1tqdk3e-2"})(["display:flex;"]);function el(e){var t=e.apy,n=e.minDeposit,i=e.maxDeposit,o=e.strictMonetary,a=void 0!==o&&o,s=e.dividendRate,l=e.interestRate,u=e.displayedRateType,d=void 0===u?"dividend":u,m=e.maturityDate,p=e.showMaturityDate,f=function(e){return a?Z.p1.formatAsCurrencyWithCents(Z.p1.ofCents(e)):K.Q.formatters.monetary(K.Q.formatters.fromCentsToDollar(e))},h="interest"===d?l:s;return(0,r.jsxs)("div",{children:[(0,r.jsx)(c.j,{condition:!!t,children:(0,r.jsxs)(es,{children:[(0,r.jsxs)(eo,{color:"#888888",$variant:"secondary",children:["APY*"," "]}
1),(0,r.jsxs)(ea,{$variant:"secondary",$weight:"bold",children:[t,"%"]})]})}),(0,r.jsx)(c.j,{condition:!!h,children:(0,r.jsxs)(es,{children:[(0,r.jsxs)(eo,{color:"#888888",$variant:"secondary",children:["interest"===d?"Interest Rate*":"Dividend Rate*"," "]}),(0,r.jsxs)(ea,{$variant:"secondary",$weight:"bold",children:[h,"%"]})]})}),(0,r.jsx)(c.j,{condition:void 0!==p&&p&&!!m,children:(0,r.jsxs)(es,{children:[(0,r.jsx)(eo,{$variant:"secondary",children:"Est. Maturity Date* "}),(0,r.jsx)(ea,{$variant:"secondary",$weight:"bold",as:"span",children:K.Q.formatters.date.formatISOToDateString(m)})]})}),(0,r.jsx)(c.j,{condition:!!n,children:(0,r.jsxs)(es,{children:[(0,r.jsx)(eo,{$variant:"secondary",children:"Min. Deposit* "}),(0,r.jsx)(ea,{$variant:"secondary",$weight:"bold",as:"span",children:f(null!=n?n:0)})]})}),(0,r.jsx)(c.j,{condition:!!i,children:(0,r.jsxs)(es,{children:[(0,r.jsx)(eo,{$variant:"secondary",children:"Max. Deposit* "}),(0,r.jsx)(ea,{$variant:"secondary",$weight:"bold",as:"span",children:f(null!=i?i:0)})]})})]})}function ec(e){var t,n,i,o,a,s,l,u,m,p,f=e.account,h=e.wholeValuesOnly,y=e.strictMonetary,b=e.errors,g=e.onEdit,v=e.footer,x=e.onFundingBlur,j=e.showMaturityDate,w=e.onShowVariableRateInfo,_=!!b&&b.length>0,D="account-card-".concat(f.id,"-error"),A=!!w&&!!(null!=(t=f.accountDetails.rates)&&null!=(t=t.variations)&&t.length);return(0,r.jsxs)("div",{"data-testid":"account-card-".concat(f.id),"aria-invalid":_||void 0,"aria-describedby":_?D:void 0,children:[(0,r.jsxs)(k,{type:O.b.EMPTY,$hasError:_,children:[(0,r.jsxs)(F,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(L,{$weight:"bold",children:f.accountDetails.name}),(0,r.jsx)(U,{$variant:"secondary",children:f.accountDetails.accountTypeName})]}),(0,r.jsxs)(M,{children:[(0,r.jsx)(c.j,{condition:f.shareAccount,children:(0,r.jsx)(T,{active:!0,label:"PRODUCT REQUIRED"})}),(0,r.jsx)(c.j,{condition:!!g,children:(0,r.jsxs)(d.$,{type:"button",variant:"outline",onClick:g,"data-testid":"account-card-".concat(f.id,"-edit"),children:["Edit"," ",(0,r.jsx)(I.I,{size:N.y.SMALL,children:(0,r.jsx)(C.g,{})})]})})]})]}),(0,r.jsx)(el,{apy:null==(n=f.accountDetails.rates)?void 0:n.formattedApy,minDeposit:null==(i=f.accountDetails.funding)?void 0:i.minimumDeposit,maxDeposit:null==(o=f.accountDetails.funding)?void 0:o.maximumDeposit,strictMonetary:y,dividendRate:null==(a=f.accountDetails.rates)?void 0:a.formattedDividendRate,interestRate:null==(s=f.accountDetails.rates)?void 0:s.formattedInterestRate,displayedRateType:null==(l=f.accountDetails.rates)?void 0:l.displayedRateType,maturityDate:f.accountDetails.maturityDate,showMaturityDate:j}),(0,r.jsx)(c.j,{condition:A,children:(0,r.jsxs)(B,{type:"button",variant:"text",size:"sm",onClick:function(){return null==w?void 0:w(f)},children:[(0,r.jsx)(I.I,{size:N.y.SMALL,children:(0,r.jsx)(E.R,{"aria-hidden":!0})})," ","View Rates"]})}),(0,r.jsx)(c.j,{condition:void 0!==f.assignees,children:(0,r.jsx)(G,{assignees:null!=(u=f.assignees)?u:[]})}),(0,r.jsx)(S.c,{}),(0,r.jsx)(er,{accountId:f.id,accountName:f.accountDetails.name,required:(null!=(m=null==(p=f.accountDetails)||null==(p=p.funding)?void 0:p.minimumDeposit)?m:0)>0,wholeValuesOnly:h,onFundingBlur:x}),v]}),_&&(0,r.jsx)(R,{id:D,role:"alert",children:null==b?void 0:b[0].reason})]})}var eu=n(59857),ed=(0,P.I4)(_.Z).withConfig({displayName:"EligibilityCardstyled__Card",componentId:"sc-1go527h-0"})(["justify-content:space-between;min-height:unset !important;"]),em=(0,P.I4)(D.E).withConfig({displayName:"EligibilityCardstyled__Content",componentId:"sc-1go527h-1"})(["margin:0;"]);function ep(e){var t=e.value,n=e.onEdit,i=(0,l.dC)().issuesPerSection[s.hu.ELIGIBILITY],o=i.length>0,a=o?i.map(function(e){return e.reason}):void 0;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(ed,{type:O.b.EMPTY,hasError:o,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(em,{$weight:"bold",children:"Membership Eligibility"}),(0,r.jsx)(em,{$variant:"secondary",children:!t||o?"-":t})]}),(0,r.jsxs)(d.$,{type:"button",variant:"outline",onClick:n,"data-testid":"eligibility-edit","aria-label":"Edit eligibility",children:["Edit"," ",(0,r.jsx)(I.I,{size:N.y.SMALL,children:(0,r.jsx)(C.g,{})})]})]}),o&&(null==a?void 0:a.map(function(e){return(0,r.jsx)(eu.K,{error:e},e)}))]})}var ef=n(97568),eh=n(21819),ey=P.I4.form.withConfig({displayName:"ReviewFormstyled__Form",componentId:"sc-1hy6wt3-0"})(["display:grid;grid-template-columns:1fr;row-gap:2rem;padding-bottom:8rem;@media (min-width:","){grid-template-columns:1fr 1fr;column-gap:2rem;}"],eh.L.tablet),eb=P.I4.div.withConfig({displayName:"ReviewFormstyled__HeaderWrapper",componentId:"sc-1hy6wt3-1"})(["margin-bottom:2rem;"]),eg=P.I4.div.withConfig({displayName:"ReviewFormstyled__TitleWrapper",componentId:"sc-1hy6wt3-2"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;"]),ev=P.I4.div.withConfig({displayName:"ReviewFormstyled__GridWrapper",componentId:"sc-1hy6wt3-3"})(["display:grid;row-gap:1rem;margin-bottom:2rem;"]),ex=P.I4.div.withConfig({displayName:"ReviewFormstyled__FooterWrapper",componentId:"sc-1hy6wt3-4"})(["display:flex;justify-content:flex-end;grid-area:right;"]),ej=P.I4.span.withConfig({displayName:"ReviewFormstyled__SubmitDisabledReason",componentId:"sc-1hy6wt3-5"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;"]);function ew(e){return(ew="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 eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eO(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eN(e,t,n){var r;return(r=function(e,t){if("object"!=ew(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ew(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ew(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eS=n(83076);function eC(e){return(eC="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 eE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eE(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=eC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eC(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eC(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eD=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(0,Z.gj)(Z.p1.toDollarAmount(Z.p1.ofCents(e)),{strict:!0}):K.Q.formatters.monetary(K.Q.formatters.fromCentsToDollar(e))},eA=function(e,t){var n=null!=t?t:{},r=n.requireDocumentsConsent,i=n.requireAtLeastOneAccount,o=n.strictMonetary,a=n.requireBranch,s={};null==e||e.forEach(function(e){var t,n;s[e.id]=eP({minDeposit:null==(t=e.accountDetails.funding)?void 0:t.minimumDeposit,maxDeposit:null==(n=e.accountDetails.funding)?void 0:n.maximumDeposit,strictMonetary:o})});var l=i&&0===e.length;return eS.z.object(e_(e_(e_(e_({},s),a&&{branchId:eS.z.string().trim().min(1,{message:"Required"})}),r&&{documentsCollectedConsent:eS.z.literal(!0,{errorMap:function(){return{message:"Please confirm documents collected"}}})}),l&&{_accounts:eS.z.literal(!0,{errorMap:function(){return{message:"At least one account is required"}}})})).passthrough()},eP=function(e){var t=e.maxDeposit,n=e.minDeposit,r=e.strictMonetary,i=void 0!==r&&r,o={required:"Required",minDeposit:"Minimum deposit is ".concat(n?eD(n,i):""),maxDeposit:"Maximum deposit is ".concat(t?eD(t,i):"")};return(null!=n?n:0)===0||0===t?eS.z.preprocess(ek,eS.z.coerce.number().optional()):eS.z.preprocess(ek,eS.z.coerce.number({required_error:o.required,invalid_type_error:o.required}).nonnegative({message:o.required}).refine(function(e){var t,r,o;return t=e,r=n,o=i,!r||eT(t,o)>=r},{message:o.minDeposit}).refine(function(e){var n,r,o;return n=e,r=t,o=i,!r&&0!==r||eT(n,o)<=r},{message:o.maxDeposit}).transform(eR))};function ek(e){return null==e||"string"==typeof e&&""===e.trim()?0:e}function eR(e){return e?Number(e):0}function eT(e,t){if(t){var n=Z.p1.parseDollarStrict(e);return void 0===n?0:Z.p1.toCentsAmount(n)}return Number(K.Q.formatters.fromDollarToCents(e))}function eF(e){return(eF="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 eM(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=Object.create((r&&r.prototype instanceof s?r:s).prototype);return eL(l,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,l=e,m.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=m.p,f=o[2];n>3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,m.v=r,m.n=o[1]):p<f&&(i=n<3||o[0]>r||r>f)&&(o[4]=n,o[5]=r,m.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(m.n=-1),p(s,l)):m.n=l:m.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=m.n<0)?l:n.call(r,m))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=c.prototype=s.prototype=Object.create([][r]?t(t([][r]())):(eL(t={},r,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eL(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,eL(u,"constructor",c),eL(c,"constructor",l),l.displayName="GeneratorFunction",eL(c,i,"GeneratorFunction"),eL(u),eL(u,i,"Generator"),eL(u,r,function(){return this}),eL(u,"toString",function(){return"[object Generator]"}),(eM=function(){return{w:o,m:d}})()}function eL(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(eL=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){eL(e,t,function(e){return this._invoke(t,n,e)})};o("next",0),o("throw",1),o("return",2)}})(e,t,n,r)}function eU(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function eB(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){eU(o,r,i,a,s,"next",e)}function s(e){eU(o,r,i,a,s,"throw",e)}a(void 0)})}}function e$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=eF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eF(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eF(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eW(e){var t,n,i,o,a,s,O=e.accounts,I=e.isNewMember,N=e.isNewReviewScreen,S=e.submitButtonText,C=e.submitButtonTextByConsentMethod,E=e.eligibility,_=e.ApplicantInformationSection,D=e.ApplicationDetailsSection,A=e.isSubmitting,P=e.onAddAccount,k=e.onEditAccount,R=e.handleFunding,T=e.onSendAccountSuggestion,F=e.onEditEligibility,M=e.CollectConsentModal,L=e.extraFees,U=e.isExtraFeesEnabled,B=e.defaultConsentMethod,$=e.defaultBranchId,z=e.requireDocumentsConsent,q=e.requireAtLeastOneAccount,W=e.requireBranch,V=void 0!==W&&W,H=e.noAccountsMessage,G=e.onBranchChange,Q=e.strictMonetary,Y=void 0!==Q&&Q,K=e.ActionBarAdornment,J=e.renderAccountCardFooter,X=e.onAccountFundingBlur,ee=e.partnerFundingMethods,et=e.showMaturityDate,en=e.onShowVariableRateInfo,er=e.hideAddAccountButton,ei=!Y,eo=(0,l.dC)(),ea=eo.issuesPerSection,es=eo.issuesPerAccount,el=eo.hasIssues,eu=ea.ACCOUNTS.length>0,ed=Object.keys(es).length>0,em=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{o=(n=n.call(e)).next,!1;for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eq(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)?eq(e,t):void 0}}
1(t,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.")}(),eh=em[0],ew=em[1],eO=(0,v.mN)({mode:"onBlur",shouldFocusError:!0,resolver:(0,h.u)(eA(O,{requireDocumentsConsent:void 0!==z&&z,requireAtLeastOneAccount:void 0===q||q,strictMonetary:Y,requireBranch:V})),values:ez(ez(ez({},(i=(n={accounts:O,wholeValuesOnly:ei}).accounts,a=void 0!==(o=n.wholeValuesOnly)&&o,i.reduce(function(e,t){if(!t.fundingAmount)return e;var n=Z.p1.ofCents(t.fundingAmount);return eI(eI({},e),{},eN({},t.id,a?Z.p1.toDollarAmount(n):Z.p1.toDollarAmountString(n)))},{}))),B&&{consentMethod:B}),$&&{branchId:$})}),eS=(0,g.useRef)(null!=$?$:""),eC=eO.watch("branchId"),eE=eO.watch("consentMethod");(0,g.useEffect)(function(){eC&&eC!==eS.current&&G&&(G(eC),eS.current=eC)},[eC,G]);var e_=V&&(!eC||""===eC.trim()),eD=A||el||e_,eP=A?void 0:e_?"Assign a branch to continue.":ed?"Please fix the highlighted accounts to continue.":void 0,ek="review-submit-disabled-reason",eR=C?eE===x.DIGITAL?C.digital:C.inBranch:void 0===S?"CONTINUE":S,eT=I&&!(void 0!==N&&N),eF=!!D||eT,eL=eO.watch(O.map(function(e){return e.id})),eU=(0,g.useMemo)(function(){return O.map(function(e,t){return ez(ez({},e),{},{fundingAmount:Number(eL[t])||0})})},[O,eL]),e$=(s=eB(eM().m(function e(t){return eM().w(function(e){for(;;)switch(e.n){case 0:if(t.consentMethod===x.DIGITAL){e.n=1;break}return e.a(2,ew(!0));case 1:return e.n=2,R(t,eB(eM().m(function e(){return eM().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,T();case 1:return e.a(2,e.v)}},e)})));case 2:return e.a(2,e.v)}},e)})),function(e){return s.apply(this,arguments)});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eb,{children:(0,r.jsx)(j.M,{title:"Review the application"})}),(0,r.jsxs)(v.Op,ez(ez({},eO),{},{children:[(0,r.jsxs)(ey,{noValidate:!0,onSubmit:eO.handleSubmit(e$),"data-testid":"review-form",children:[(0,r.jsx)("div",{children:_}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(c.j,{condition:eF,children:[(0,r.jsx)(eg,{children:(0,r.jsx)(u.h,{as:"h2",variant:"tertiary",children:"Application Details"})}),(0,r.jsxs)(ev,{children:[D,(0,r.jsx)(c.j,{condition:eT,children:(0,r.jsx)(ep,{value:void 0===E?"":E,onEdit:F})})]})]}),(0,r.jsxs)(eg,{children:[(0,r.jsx)(u.h,{as:"h2",variant:"tertiary",children:"Accounts Selected"}),(0,r.jsx)(c.j,{condition:!(void 0!==er&&er),children:(0,r.jsx)(d.$,{type:"button",onClick:P,disabled:A,loading:A,variant:"secondary",children:(0,r.jsxs)("span",{children:["ADD ACCOUNT ",(0,r.jsx)(y.F,{"aria-hidden":!0})]})})})]}),(0,r.jsxs)(ev,{children:[eu?(0,r.jsx)(m.P,{icon:(0,r.jsx)(b.N,{}),status:p.l.NEGATIVE,title:"There are no accounts selected",description:ea.ACCOUNTS[0].reason}):0===O.length&&H?(0,r.jsx)(ef.x,{informations:[{label:"",content:H}],autoHeight:!0}):O.filter(function(e){var t;return!(null!=(t=e.accountDetails)&&t.hideFromUI)}).map(function(e){return(0,r.jsx)(ec,{account:e,wholeValuesOnly:ei,strictMonetary:Y,errors:es[e.id],onEdit:k?function(){return k(e.id)}:void 0,footer:null==J?void 0:J(e),onFundingBlur:X,partnerFundingMethods:ee,isExistingMember:!I,showMaturityDate:et,onShowVariableRateInfo:en},e.id)}),(0,r.jsx)(w.C,{accountsWithFunding:eU,extraFees:L,isExtraFeesEnabled:U})]})]}),(0,r.jsxs)(f.E,{children:[K&&(0,r.jsx)(f.E.Body,{children:K}),(0,r.jsxs)(ex,{children:[eP&&(0,r.jsx)(ej,{id:ek,children:eP}),(0,r.jsx)(d.$,{size:"lg",type:"submit",disabled:eD,loading:A,"aria-describedby":eP?ek:void 0,children:eR})]})]})]}),M&&(0,r.jsx)(M,{open:eh,onClose:function(){return ew(!1)}})]}))]})}var eV=n(21907),eH=n(94624),eG=n(67380),eQ=n(59046),eY=n(96552),eK=n(66329),eZ=n(42884),eJ=n(35613),eX=n(71599),e0=n(29974),e1=n(86069),e2=n(74179),e3=n(45048),e4=n(71829),e5=n(30808),e8=n(89199),e6=n(31901),e9=n(54366),e7=n(57253),te=n(27194),tt=n(70431),tn=n(30516),tr=n(87875),ti=n(44007),to=n(86281),ta=n(44148),ts=n(79876);let tl=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__PageWrapper",componentId:"sc-5c1383ce-0"})(["display:flex;flex-direction:column;min-height:100vh;width:100%;background:",";font-family:",";@media (max-width:","){h1{font-size:",";}}"],e=>e.theme.foundations.colors.white,e=>e.theme.foundations.typography.fontFamily.sansSerifSecondary,eh.L.tablet,e=>e.theme.foundations.typography.fontSize.lg),tc=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__TopBar",componentId:"sc-5c1383ce-1"})(["background:",";"],e=>
1e.theme.colors.colorfulBackground),tu=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__TopNavigation",componentId:"sc-5c1383ce-2"})(["background:",";position:sticky;top:0;display:flex;justify-content:center;z-index:99;transition:box-shadow 300ms cubic-bezier(0.4,0,0.2,1) 0ms;"],e=>e.theme.foundations.colors.white),td=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__ContentWrapper",componentId:"sc-5c1383ce-3"})(["flex:1;max-width:1000px;margin:0 auto;padding:2rem 1rem;width:100%;"]),tm=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__LoadingWrapper",componentId:"sc-5c1383ce-4"})(["display:flex;justify-content:center;align-items:center;min-height:50vh;"]),tp=P.Ay.div.withConfig({displayName:"BusinessReviewScreen.styled__ApplicationDetailsCardAlignment",componentId:"sc-5c1383ce-5"})(["margin-top:-1rem;"]);var tf=n(65419),th=n(74543),ty=n(61019);let tb=e=>e?"".concat(e.firstName||""," ").concat(e.lastName||"").trim():"",tg=e=>{var t,n;let{text:i}=e,{useTelemetryTags:u}=(0,to.Jr)();u((0,eG.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("ACCOUNT_OPENING").product("ACCOUNT_APPLICATION").feature("REVIEW_SELECTION").tags);let d=(0,ti.useRouter)(),m=(0,e2.F)();(0,e0.u)(),(0,tr.Q)({eventName:eJ.P.UI_ACCOUNT_OPENING_REVISION,clutchProduct:ta.bD.ACCOUNT_OPENING});let{accountReviewData:p,isLoadingAccountReviewData:f,refetch:h}=(0,e1.F)({applicationId:m,enabled:!!m,shouldRedirectOnSucess:!0}
1),{applicationValidation:y,isLoading:b}=(e=>{let{applicationId:t,enabled:n=!0}=e,{accessToken:r}=(0,e0.u)(),{partnerId:i,isLoading:o}=(0,e7.W)({enabled:n&&!!t}),a=n&&!!t&&!!i&&!!r,{isLoading:s,error:l,data:c}=(0,e6.I)([te.oR.VALIDATE_APPLICATION,t,i],async()=>te.MP.configs.validateApplication({applicationId:t,partnerId:i,token:r}),{enabled:a,refetchOnWindowFocus:!1,onError:e=>{(0,e9.Qw)(e,{source:"useValidateApplication",applicationId:t})}});return{applicationValidation:c,isLoading:!!a&&(o||s),error:l}})({applicationId:m,enabled:!!m}),v=(null!=(t=null==y?void 0:y.issues)?t:[]).filter(e=>e.section!==s.hu.DOCUMENTS),j=(null!=(n=null==y?void 0:y.issues)?n:[]).some(e=>e.section===s.hu.DOCUMENTS),{updateAccountFunding:w}=(0,e8.x)({applicationId:m,refetchAccountReviewData:h}),{createAccountFunding:O}=(0,e3.K)({applicationId:m,refetchAccountReviewData:h}),[I,N]=(0,g.useState)(!1),{business:S,accounts:C,isNewMember:E,eligibility:_,businessInformationData:D,businessRolesData:A,businessDocumentsRequirements:P,businessDocuments:k}=(e=>{var t,n,r,i;let{reviewData:o}=e,a=null==o?void 0:o.business,s=(0,g.useMemo)(()=>(null==o?void 0:o.businessPersons)||[],[null==o?void 0:o.businessPersons]),l=(0,g.useMemo)(()=>(null==o?void 0:o.accounts)||[],[null==o?void 0:o.accounts]),c=null==o?void 0:o.applicationDocuments,u=(0,g.useMemo)(()=>s.filter(e=>e.isAuthorizedSigner).map(e=>tb(e)),[s]),d=(0,g.useMemo)(()=>s.filter(e=>e.isController).map(e=>tb(e)),[s]),m=(0,g.useMemo)(()=>s.filter(e=>e.isBeneficialOwner).map(e=>tb(e)),[s]),p=(0,g.useMemo)(()=>{var e,t,n;let r=(null!=(n=null==c||null==(t=c.documentRequirements)||null==(e=t.business)?void 0:e.type)?n:{})[(null==a?void 0:a.businessType)||""];return null!=r?r:{documentGroups:[]}},[null==c||null==(n=c.documentRequirements)||null==(t=n.business)?void 0:t.type,null==a?void 0:a.businessType]),f=(0,g.useMemo)(()=>(null==c?void 0:c.documents)||[],[null==c?void 0:c.documents]),h=null!=(r=null==a?void 0:a.isNewMember)&&r,y=null!=(i=null==a?void 0:a.eligibility)?i:"",b=(0,g.useMemo)(()=>({companyName:(null==a?void 0:a.companyName)||"",typeOfBusiness:(e=>e?ty.t[e]||e.replace(/_/g," "):"")(null==a?void 0:a.businessType),phone:(null==a?void 0:a.phone)||"",industry:(null==a?void 0:a.businessIndustry)||"",DBACompanyName:(null==a?void 0:a.DBACompanyName)||""}),[null==a?void 0:a.companyName,null==a?void 0:a.businessType,null==a?void 0:a.phone,null==a?void 0:a.businessIndustry,null==a?void 0:a.DBACompanyName]),v=(0,g.useMemo)(()=>({authorizedSigners:u,controllers:d,beneficialOwners:m}),[u,d,m]);return{business:a,businessPersons:s,accounts:l,applicationDocuments:c,authorizedSigners:u,controllers:d,beneficialOwners:m,businessDocumentsRequirements:p,businessDocuments:f,isNewMember:h,eligibility:y,businessInformationData:b,businessRolesData:v}})({reviewData:p}),{data:R}=(0,e4.P)({applicationId:m,enabled:!!m}),T=(0,eZ.Gb)(),{isToggleEnabled:F}=(0,eZ.N$)(),{partnerFundingMethods:M}=(0,e5.m)(F),{handleFunding:L,isSubmitting:U}=(e=>{let{accounts:t,updateAccountFunding:n,createAccountFunding:r,onSuccess:i}=e,[o,a]=(0,g.useState)(!1),s=(0,g.useCallback)(async(e,t)=>{let i=(e=>{let t="number"==typeof e?Z.p1.ofDollar(e):Z.p1.parseDollarStrict(th.Q.helpers.getCurrencyDigits(e));return t?Z.p1.toCentsAmount(t):0})(t),o=e.fundingAmount;if(void 0!==o){if(o===i)return;return n({accountId:e.id,amount:i})}return r({accountId:e.id,amount:i})},[n,r]);return{handleFunding:(0,g.useCallback)(async(e,n)=>{a(!0);try{let r=t.map(async t=>{var n;let r=null!=(n=e[t.id])?n:0;return s(t,r)});await Promise.all(r),await n(),i()}catch(e){tf.datadogRum.addError(e instanceof Error?e:Error(String(e)),{context:"business-review-funding"})}finally{a(!1)}},[t,s,i]),isSubmitting:o}})({accounts:C,updateAccountFunding:w,createAccountFunding:O,onSuccess:()=>N(!0)}),B=(0,g.useCallback)(()=>{let e=new URLSearchParams;return e.set("isEdit","true"),m&&e.set("applicationId",m),(null==S?void 0:S.businessProfileId)&&e.set("businessProfileId",S.businessProfileId),(null==S?void 0:S.id)&&e.set("businessId",S.id),e.toString()},[m,null==S?void 0:S.businessProfileId,null==S?void 0:S.id]),$=(0,g.useCallback)(e=>{let t=B();d.push("".concat(e,"?").concat(t))},[d,B]),z=(0,g.useCallback)(()=>{let e=B();d.push("".concat(eX.w.ACCOUNT_TYPES,"?category=business&").concat(e))},[d,B]),q=async()=>{N(!0)},W=(0,g.useCallback)(()=>{N(!1)},[]),V=(0,g.useCallback)(()=>{d.back()},[d]);return f||b||!p?(0,r.jsx)(tt.c,{children:(0,r.jsxs)(tl,{children:[(0,r.jsx)(tc,{children:(0,r.jsx)(eQ.u,{hideMenu:!0,redirectToMainPage:!1})}),(0,r.jsx)(tu,{children:(0,r.jsx)(eK.g,{small:!0,onBack:V,showCloseButton:!1,children:"Review your application"})}),(0,r.jsx)(td,{children:(0,r.jsx)(tm,{children:(0,r.jsx)(eY.P,{})})})]})}):(0,r.jsx)(tt.c,{children:(0,r.jsxs)(tl,{children:[(0,r.jsx)(tc,{children:(0,r.jsx)(eQ.u,{hideMenu:!0,redirectToMainPage:!1})}),(0,r.jsx)(tu,{children:(0,r.jsx)(eK.g,{small:!0,onBack:V,showCloseButton:!1,children:"Review your application"})}),(0,r.jsxs)(td,{children:[(0,r.jsx)(l.yC,{hasIssues:v.length>0,issues:v,children:(0,r.jsx)(eW,{accounts:C||[],isNewMember:E,eligibility:_,ApplicationDetail
1sSection:E?(0,r.jsx)(tp,{children:(0,r.jsx)(ef.x,{type:s.hu.MEMBERSHIP,informations:[{label:"MEMBERSHIP NUMBER",content:"Your membership number will be created after the application is submitted"}],dataTestId:"membership-card",sectionTestId:"membership-section",autoHeight:!0})}):void 0,extraFees:(null==p?void 0:p.extraFees)||[],isExtraFeesEnabled:!0,isSubmitting:U,onAddAccount:z,onEditEligibility:()=>$(ts.j.ELIGIBILITY),onSendAccountSuggestion:q,handleFunding:L,CollectConsentModal:()=>null,defaultConsentMethod:x.DIGITAL,strictMonetary:T,partnerFundingMethods:F?M:void 0,ApplicantInformationSection:(0,r.jsx)(eV.a,{text:i,children:(0,r.jsx)(eH.i,{businessInformationData:(0,a._)((0,o._)({},D),{onEdit:()=>$(ts.j.BUSINESS_INFORMATION)}),businessLevelCustomQuestionsData:{isRequired:null==S?void 0:S.isBusinessQuestionnaireRequired,onEdit:()=>$(ts.j.BUSINESS_QUESTIONNAIRE)},businessRolesData:(0,a._)((0,o._)({},A),{onEdit:()=>$(ts.j.BUSINESS_ROLES)}),businessDocumentsData:{documentRequirements:P,documents:k,onEdit:()=>$(ts.j.BUSINESS_DOCUMENTS)},businessRolesConfig:R})})})}),(0,r.jsx)(c.j,{condition:I,children:(0,r.jsx)(tn.y,{isDrawerOpen:I,onCloseDrawer:W,terms:(null==p?void 0:p.termsAndConditions)||[],disclaimers:(null==p?void 0:p.disclaimers)||[],applicationId:m,onConsentCallbackSuccess:()=>{j?d.push({pathname:ts.j.THANK_YOU,query:{hasUploadedDocuments:"false"}}):d.push({pathname:ts.j.FUNDING_TYPE(m),query:(0,o._)({},d.query)})}})})]})]})})};var tv=n(50140),tx=n.n(tv),tj=n(98282),tw=!0;function tO(e){let{text:t}=e,{text:n}=(0,e7.W)(),{features:o,isLoading:a}=(0,i.m)(),s=(0,ti.useRouter)(),l=!!(null==o?void 0:o.ENABLE_BUSINESS_ACCOUNT_OPENING_ON_APPLICANT_PORTAL),c=!a;return((0,g.useEffect)(()=>{c&&!l&&s.push(tj.t.NOT_FOUND)},[c,l,s]),c&&l)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tx(),{children:(0,r.jsxs)("title",{children:["Review Application - ",n.PARTNER_LONG_NAME]})}),(0,r.jsx)(tg,{text:t})]}):null}},66329:(e,t,n)=>{"use strict";n.d(t,{g:()=>y});var r=n(80263),i=n(22737),o=n(68822),a=n(72521),s=n(60605);n(53239);var l=n(67280),c=n(63298),u=n(8368),d=n(57253);let m=e=>{let{onClick:t,icon:n,colored:i,ariaLabel:o,testId:a}=e,s=(0,u.DP)(),{theme:m}=(0,d.W)(),p="function"==typeof t,f=i?s.foundations.colors.white:m.colors.primary;if(!p)return(0,r.jsx)("div",{});let h=null!=n?n:c.A;return(0,r.jsx)(l.K,{"data-testid":a,onClick:t,"aria-label":o,children:(0,r.jsx)(h,{weight:"bold",color:f})})};var p=n(59946);let f=u.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=u.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:n,colored:l,children:c,maxWidth:u,closeButtonAriaLabel:d="Close",small:p=!1,icon:y,showBackButton:b=!0,showCloseButton:g=!0,$enableUiGlowUp:v,$expandedNavbarContainer:x,backButtonLabel:j}=e;return(0,r.jsxs)(f,{"aria-label":"Page navigation",$maxWidth:u,$small:p,$colored:l,$enableUiGlowUp:v,$expandedNavbarContainer:x,"data-testid":"section-header",children:[b?(0,r.jsxs)(h,{$colored:!!l,children:[(0,r.jsx)(m,{onClick:t,icon:y,colored:l,ariaLabel:"Back to previous page",testId:"section-header-back-btn"}),(0,r.jsx)(i.j,{condition:!!j,children:(0,r.jsx)(o.o.Body,{size:a.jJ.LG,children:j})})]}):(0,r.jsx)("div",{}),c,g?(0,r.jsx)(m,{onClick:n,icon:s.u,colored:l,ariaLabel:d,testId:"navigation-header-close-btn"}):(0,r.jsx)("div",{})]})}},71829:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(31901),i=n(29974),o=n(57253),a=n(27194);let s=e=>{let{applicationId:t,enabled:n=!0}=e,{partnerId:s}=(0,o.W)(),{accessToken:l}=(0,i.u)(),{data:c,isLoading:u,error:d}=(0,r.I)({queryKey:["roles-config",t,s],queryFn:async()=>a.MP.configs.getRolesConfig({applicationId:t,accessToken:l,partnerId:s}),enabled:n&&!!s});return{data:c,isLoading:u,error:d}}},78607:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var r=n(22737),i=n(24825),o=n(80263);function a(e){var t=e.title,n=e.titleAs,a=e.titleVariant,s=e.description,l=e.subtitle,c=e.customContent;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.j,{condition:!!c,children:c}),(0,o.jsx)(r.j,{condition:!!t,children:(0,o.jsx)(i.h,{as:void 0===n?"h1":n,variant:void 0===a?"primary":a,children:t})}),(0,o.jsx)(r.j,{condition:!!l,children:(0,o.jsx)(i.h,{as:"h2",variant:"secondary",children:l})}),(0,o.jsx)(r.j,{condition:!!s,children:(0,o.jsx)(i.h,{as:"h3",variant:"tertiary",children:s})})]})}},81637:(e,t,n)=>{"use strict";n.d(t,{N:()=>p});var r=n(53239),i=n(8368),o=i.Ay.a.withConfig({displayName:"Linkstyled__Anchor",componentId:"sc-xcof91-0"})(["display:inline-flex;align-items:center;gap:",";padding:",";border:none;background:none;border-radius:",";color:",";font-family:",";font-size:",";font-weight:",";line-height:1.4;text-decoration:",";cursor:pointer;transition:color 0.15s ease,background-color 0.15s ease;&:hover{color:",";background-color:",";text-decoration:underline;}&:active{color:",";background-color:transparent;}&:focus-visible{outline:",";outline-offset:",";}&:disabled{cursor:not-allowed;opacity:0.4;}& [aria-hidden='true'] svg{width:",";height:",";color:",";}"],function(e){return e.theme.token.spacing["02"]},function(e){var t=e.theme;return"".concat(t.token.spacing["04"]," ").concat(t.token.spacing["08"])},function(e){return e.theme.token.radius["02"]},function(e){return e.theme.token.color.text.primary},function(e){return e.theme.token.typography.fontFamily.base},function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.typography.fontWeight["700"]},function(e){return"inline"===e.$variant?"underline":"none"},function(e){return e.theme.token.color.partner.primary},function(e){return e.theme.token.color.surface.active.default},function(e){return e.theme.token.color.partner.primary},function(e){var t=e.theme;return"".concat(t.token.spacing["02"]," solid ").concat(t.token.color.partner.primary)},function(e){return e.theme.token.spacing["02"]},function(e){return e.theme.token.icon.size.sm},function(e){return e.theme.token.icon.size.sm},function(e){return e.theme.token.color.partner.primary}),a=i.Ay.span.withConfig({displayName:"Linkstyled__IconSlot",componentId:"sc-xcof91-1"})(["display:inline-flex;flex-shrink:0;align-items:center;"]),s=n(88859),l=n(80263);function c(e){return(c="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 u=["variant","iconStart","iconEnd","children"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p=r.forwardRef(function(e,t){var n,r=e.variant,i=void 0===r?s.b.INLINE:r,c=e.iconStart,d=e.iconEnd,p=e.children,f=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u),h=(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)(a,{"aria-hidden":"true",children:c}),(0,l.jsx)("span",{children:p}),d&&(0,l.jsx)(a,{"aria-hidden":"true",children:d})]});return"button"===f.as?(0,l.jsx)(o,m(m({},f),{},{as:"button",type:null!=(n=f.type)?n:"button",ref:t,$variant:i,children:h})):(0,l.jsx)(o,m(m({},f),{},{ref:t,$variant:i,children:h}))});p.displayName="Link"},84474:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(80263);let i=e=>{let{condition:t,children:n,fallback:i=null}=e;return(0,r.jsx)(r.Fragment,{children:t?n:i})}},86236:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var r={DEFAULT:"default",SUCCESS:"success",WARNING:"warning",NEGATIVE:"negative",INFO:"info",SELECTABLE:"selectable",PINNED:"pinned"}},88859:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r={INLINE:"inline",STANDALONE:"standalone"}},92453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeFundingAmount=function(e){let t=r.Dollar.parseDollarStrict(e);return void 0===t?e:r.Dollar.toDollarAmountString(t)};let r=n(62509)},94624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,i:()=>h});var r=n(75341),i=n(22737),o=n(97568),a=n(38759),s=n(21907),l=n(30340),c=n(88240),u=n(64168),d=n(13126),m=n(8368).I4.div.withConfig({displayName:"BusinessReviewSectionstyled__Wrapper",componentId:"sc-18nbo1e-0"})(["display:grid;row-gap:2rem;"]),p=n(80263),f="Not required for this application.";function h(e){var t,n=e.businessLevelCustomQuestionsData,h=e.businessInformationData,y=e.businessRolesData,b=e.businessDocumentsData,g=e.membershipData,v=e.businessRolesConfig,x=function(e){var t,n;return null==(t=null==v||null==(n=v[e])?void 0:n.isApplicable)||t},j=(0,s.w)().text,w=(0,a.dC)().issuesPerSection[u.hu.BUSINESS_QUESTIONNAIRE],O=null==(t=n.isRequired)||t,I=O&&w.length>0,N=[{label:"LEGAL BUSINESS NAME / SOLE PROPRIETER NAME",content:h.companyName||"-"},{label:"TYPE OF BUSINESS",content:h.typeOfBusiness||"-"},{label:"INDUSTRY",content:h.industry||"-"},{label:"PHONE",content:h.phone?r.Q.masks.phoneNumber(h.phone):"-"},{label:"DBA NAME",content:h.DBACompanyName||"-"}],S=[x("AUTHORIZED_SIGNER")&&{label:(0,d.hf)("AUTHORIZED SIGNER(S)",(0,c.uC)(j.businessRolesNames.AUTHORIZED_SIGNER,l.gt.AUTHORIZED_SIGNER,null==v?void 0:v.AUTHORIZED_SIGNER)),content:y.authorizedSigners||"-",dataTestId:"authorized-signers"},x("CONTROLLER")&&{label:(0,d.KS)("CONTROLLER(S)",(0,c.uC)(j.businessRolesNames.CONTROLLER,l.gt.CONTROLLER,null==v?void 0:v.CONTROLLER)),content:(null==y?void 0:y.controllers)||"-",dataTestId:"controller"},x("BENEFICIAL_OWNER")&&{label:(0,d.Ll)("BENEFICIAL OWNER(S)",(0,c.uC)(j.businessRolesNames.BENEFICIAL_OWNER,l.gt.BENEFICIAL_OWNER,null==v?void 0:v.BENEFICIAL_OWNER)),content:y.beneficialOwners||"-",dataTestId:"beneficial-owners"}].filter(Boolean),C=[{label:"MEMBERSHIP NUMBER",content:(null==g?void 0:g.selectedMembership)||"New membership"}],E=b.documentRequirements.documentGroups,_=E?null==E?void 0:E.flatMap(function(e){var t;return null==(t=e.documentTypes)?void 0:t.map(function(e){var t=b.documents.filter(function(t){return t.documentType===e.documentType});return{label:e.name.toUpperCase(),content:t.length>0?t.map(function(e,t){var n;return(null==(n=e.meta)?void 0:n.originalFileName)||"Document ".concat(t+1)}):"-"}})}):[];return(0,p.jsxs)(m,{children:[(0,p.jsx)("div",{children:(0,p.jsx)(o.x,{title:"Business Information",type:u.hu.BUSINESS_INFORMATION,onEdit:h.onEdit,informations:N,dataTestId:"business-info-edit"})}),(0,p.jsx)("div",{children:(0,p.jsx)(o.x,{title:"Business Questionnaire",onEdit:O?n.onEdit:void 0,type:O?u.hu.BUSINESS_QUESTIONNAIRE:void 0,informations:[{label:"QUESTIONNAIRE",content:O?I?"Not Completed":"Completed":f}],dataTestId:"business-questionnaire-edit",autoHeight:!0})}),(0,p.jsx)("div",{children:(0,p.jsx)(o.x,{title:"Business Roles",type:u.hu.ROLES,onEdit:y.onEdit,informations:S,dataTestId:"business-roles-edit",sectionTestId:"business-roles-section"})}),(0,p.jsx)(i.j,{condition:null==g?void 0:g.shouldShowMembershipSection,children:(0,p.jsx)("div",{children:(0,p.jsx)(o.x,{title:"Membership",type:u.hu.MEMBERSHIP,onEdit:null==g?void 0:g.onEdit,informations:C,dataTestId:"membership-edit",editButtonAriaLabel:"Edit membership",sectionTestId:"membership-section",autoHeight:!0})})}),(0,p.jsx)("div",{children:(0,p.jsx)(o.x,{title:"Documents",withContentPadding:!0,type:u.hu.DOCUMENTS,onEdit:b.onEdit,informations:_,dataTestId:"business-documents-edit"})})]})}}
1,96552:(e,t,n)=>{"use strict";n.d(t,{P:()=>m});var r=n(86917),i=n(97722),o=n(80263),a=n(8368);let s=(0,a.i7)(["0%{transform-origin:50% 50%;}100%{transform:rotate(360deg);}"]),l=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,s),c=a.Ay.svg.withConfig({displayName:"CircularProgress.styled__CircularProgressIcon",componentId:"sc-512494da-1"})(["display:block;color:currentColor;"]),u=(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;}"]),d=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;"],u),m=e=>{var t;return(0,o.jsx)(l,(0,i._)((0,r._)({"data-testid":"circular-progress"},e),{role:"progressbar","aria-label":null!=(t=e["aria-label"])?t:"Loading",children:(0,o.jsx)(c,{viewBox:"22 22 44 44",children:(0,o.jsx)(d,{cx:"44",cy:"44",r:"20.2",fill:"none",strokeWidth:"3.6"})})}))}}},e=>{e.O(0,[3140,6617,1493,2900,9266,3076,1297,4947,9046,5341,3877,431,9194,9889,1945,636,6593,8792],()=>e(e.s=41948)),_N_E=e.O()}]); 2//# sourceMappingURL=review-d1776f0c8d50ddd6.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.