1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3877,5332],{11626:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,_:()=>s});var n=r(92972),o=r(71599),i=r(51656);let a=e=>{var t;let r=null==e||null==(t=e.response)?void 0:t.status;return r===n.t.UNAUTHORIZED||r===n.t.FORBIDDEN},s=async(e,t)=>t?t.source===i.r.CUSTOMER_PORTAL?await e.replace(o.w.HOME):t.source===i.r.BRANCH_PORTAL?await e.replace({pathname:o.w.BRANCH_HANDOFF_PHONE_2FA,query:{applicationId:null==t?void 0:t.id}}):void 0:await e.replace(o.w.HOME)},18360:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/business/business-questionnaire",function(){return r(21126)}])},19584:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var n=r(80263),o=r(22737),i=r(25437),a=r(49136);function s(e){let{isSubmitting:t,nextMessage:r,submitMessage:s}=e,{nextPage:l,isLastPage:c}=(0,a.on)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.j,{condition:!c,children:(0,n.jsx)(i.$,{size:"lg",fullWidth:!0,type:"button",onClick:l,children:r||"Next"})}),(0,n.jsx)(o.j,{condition:!!c,children:(0,n.jsx)(i.$,{size:"lg",fullWidth:!0,type:"submit",disabled:t,loading:t,children:s||"Submit"})})]})}},21126:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>Q,default:()=>q});var n=r(80263),o=r(90946),i=r(78252),a=r(63607),s=r(49136),l=r(78607),c=r(78467),d=r(78573),u=r(8368),p=u.Ay.div.withConfig({displayName:"BusinessLevelCustomQuestionsstyled__FormWrapper",componentId:"sc-1smst13-0"})(["margin-top:2.5rem;"]),m=u.Ay.div.withConfig({displayName:"BusinessLevelCustomQuestionsstyled__FooterWrapper",componentId:"sc-1smst13-1"})(["grid-area:right;"]),f="business-questionnaire-form";function h(e){var t=e.onSubmit,r=e.error,o=e.errorComponent,u=e.isSubmitting,h=e.footer,g=e.titleSize,y=void 0===g?"default":g,b=e.isEditMode,v=e.onClickCancelButton,E=e.shouldHaveTitle,I=(0,s.on)().currentPageText;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.M,{title:void 0===E||E?(null==I?void 0:I.title)||"Business Questionnaire":"",subtitle:null==I?void 0:I.disclaimer,description:null==I?void 0:I.description,titleAs:"default"===y?"h1":"h2",titleVariant:"default"===y?"primary":"smallest"}),(0,n.jsx)(p,{children:(0,n.jsx)(c.s,{columns:1,onSubmit:function(e){return t(e)},error:r,errorComponent:o,formId:f,footer:h||(0,n.jsx)(a.E,{children:(0,n.jsx)(m,{children:(0,n.jsx)(d.I,{isSubmitting:u,submitButtonLabel:b?"Save":"Continue",displayCancelButton:b,onCancel:v})})}),children:(0,n.jsx)(i.Q,{})})})]})}var g=r(24825),y=r(30587),b=r(44007),v=r(79876),E=r(86917),I=r(97722),A=r(54366),O=r(29974),S=r(86418),N=r(33722),w=r(57253);let _={mutationKey:e=>{let{applicationId:t,businessId:r,accessToken:n}=e;return[N.M.SAVE_BUSINESS_QUESTIONNAIRE,t,r,n]},mutationFn:async e=>N.u.saveBusinessLevelCustomQuestions(e)},C=u.Ay.div.withConfig({displayName:"BusinessLevelCustomQuestions.styled__TitleWrapper",componentId:"sc-f3451c42-0"})(["h1{margin-bottom:0;}"]);var x=r(55499),j=r(22737),P=r(96552),T=r(35613),k=r(53784),U=r(19584),B=r(67119),D=r(31415),R=r(79276),M=r(87875),L=r(44148),F=r(54982),$=r(35083),Z=r(28195);let z=e=>{var t,r;let{fraudConfig:o,isSubmitting:i,submit:a}=e,{isDesktop:l}=(0,x.k)(),c=(0,D.z)({formId:F._.BUSINESS_QUESTIONNAIRE});(0,M.Q)({eventName:T.P.UI_ACCOUNT_OPENING_BUSINESS_QUESTIONNAIRE,clutchProduct:L.bD.ACCOUNT_OPENING});let{accessToken:d}=(0,O.u)();(0,B.t)({fraudConfig:o,autoInitialize:!0,authenticationMethod:null==(t=(0,$.oL)(d))?void 0:t.authentication});let{data:u,isLoading:p}=(0,R.o)({formId:F._.BUSINESS_QUESTIONNAIRE,enabled:!0}),m=(null==u?void 0:u.form.config.pages)||[],f=(null==(r=m[0])?void 0:r.fields)||[],g=(0,Z.b)(f,(e,t)=>t);return p?(0,n.jsx)(k.P,{children:(0,n.jsx)(P.P,{})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.b4,{pages:m,useFormProps:{values:g},config:c,children:(0,n.jsx)(h,{shouldHaveTitle:!1,onSubmit:e=>{a({customQuestions:e})},isSubmitting:i,titleSize:"small",footer:(0,n.jsx)(j.j,{condition:!l,children:(0,n.jsx)(U.s,{isSubmitting:i,nextMessage:"Continue",submitMessage:"Continue"})})})})})};function H(e){var t,r;let{fraudConfig:o}=e,i=(0,b.useRouter)(),{mutate:a,isLoading:s}=function(e){let{applicationId:t,businessId:r,onSuccess:n}=e,{partnerId:o}=(0,w.W)(),{accessToken:i}=(0,O.u)(),a=(0,S.h)({mutationKey:_.mutationKey({applicationId:t,businessId:r,accessToken:i}),mutationFn:_.mutationFn}),s=async e=>{try{await a.mutateAsync({applicationId:t,businessId:r,body:e,accessToken:i,partnerId:o}),n&&n()}catch(e){(0,A.Qw)(Error("Error saving business questionnaire"),{applicationId:t})}};return(0,I._)((0,E._)({},a),{error:a.error,mutate:s})}({applicationId:(null==(t=i.query)?void 0:t.applicationId)||"",businessId:(null==(r=i.query)?void 0:r.businessId)||"",onSuccess:async()=>i.push({pathname:v.j.BUSINESS_ROLES,query:i.query})});return(0,n.jsxs)(y.z,{withHeader:!0,message:"Create business profile",buttonProps:{type:"submit",loading:s,form:f},children:[(0,n.jsx)(C,{children:(0,n.jsx)(g.h,{as:"h1",variant:"secondary",weight:500,children:"Tell us more about your business."})}),(0,n.jsx)(z,{fraudConfig:o,isSubmitting:s,submit:a})]})}var K=r(50140),W=r.n(K),G=r(53239),V=r(98282),Q=!0;function q(e){let{fraudConfig:t}=e,{text:r}=(0,w.W)(),{features:i,isLoading:a}=(0,o.m)(),s=(0,b.useRouter)(),l=!!(null==i?void 0:i.ENABLE_BUSINESS_ACCOUNT_OPENING_ON_APPLICANT_PORTAL),c=!a;return((0,G.useEffect)(()=>{c&&!l&&s.push(V.t.NOT_FOUND)},[c,l,s]),c&&l)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W(),{children:(0,n.jsxs)("title",{children:["Business Questionnaire - ",null==r?void 0:r.PARTNER_LONG_NAME]})}),(0,n.jsx)(H,{fraudConfig:t})]}):null}},23120:(e,t,r)=>{"use strict";r.d(t,{Q:()=>d});var n=r(86917),o=r(42884),i=r(80975),a=r(94389),s=r(53239),l=r(44148),c=r(57253);let d=e=>{let{eventName:t,enabled:r=!0,dependencies:d=[],clutchProduct:u=l.bD.LENDING,propertiesParams:p,onEventTracked:m}=e,{partnerAlias:f}=(0,c.W)(),{isToggleEnabled:h}=(0,o.qv)(),g=p?JSON.stringify(p):void 0;(0,s.useEffect)(()=>{t&&f&&r&&(u===l.bD.LENDING?a.g.trackEvent(t,(0,n._)({type:"page_view",status:"started",piiFlowVersion:"v3",partnerAlias:f},p)):u===l.bD.ACCOUNT_OPENING&&a.g.trackEvent(t,(0,n._)({type:"page_view",status:"started",partnerAlias:f,productType:l.bD.ACCOUNT_OPENING,accountOpeningPiiFlow:(0,i.k)(h)},p)),m&&m())},[t,f,r,m,g,h,...d])}},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,{$:()=>y});
1var n=r(63943),o=r(22737),i=r(53239),a=r(8368),s=r(72828);function l(e,t){switch(e){case s.h.SECONDARY:case s.h.TEXT:case s.h.TEXT_NO_HOVER:case s.h.OUTLINE:return t.token.color.partner.primary;case s.h.ICON:return"unset"}return t.token.color.text.negative}var c=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 l(s.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 s.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;}"],l(s.h.SECONDARY,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case s.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;}"],l(s.h.TEXT,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case s.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;}"],l(s.h.TEXT_NO_HOVER,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled);case s.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,l(s.h.OUTLINE,e.theme),e.theme.token.color.partner.lighter,e.theme.token.color.support.disabled,e.theme.token.color.gray[500]);case s.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;}"],l(s.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 s.l.SMALL:if(e.$variant===s.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 s.l.LARGE:if(e.$variant===s.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%;"])}),d=a.Ay.div.withConfig({displayName:"Buttonstyled__SpinnerContainer",componentId:"sc-usb2e3-1"})(["position:absolute;--spinner-color:var(--color);
1"]),u=r(64115),p=r(80263);function m(e){return(m="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 g(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"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(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 y=i.forwardRef(function(e,t){var r=e.children,i=e.variant,a=void 0===i?s.h.PRIMARY:i,l=e.fullWidth,m=e.size,h=e.loading,y=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,p.jsxs)(c,g(g({ref:t,$variant:a,$fullWidth:l,$size:m,"data-testid":y},b),{},{children:[(0,p.jsx)(n.y,{loading:!!h,children:r}),(0,p.jsx)(o.j,{condition:!!h,children:(0,p.jsx)(d,{children:(0,p.jsx)(u.y,{})})})]}))});y.displayName="Button"},26156:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(53239);let o=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]])},28195:(e,t,r)=>{"use strict";r.d(t,{S:()=>l,b:()=>c});var n=r(86917),o=r(97722),i=r(33410),a=r(75341),s=r(71063);let l=(e,t)=>
1{if((0,s.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 c(e,t,r){return e.reduce((e,i)=>{var a;let l=(({ssNumber:"ssn"})[a=i.fieldKey]||a).split(".").filter(Boolean).reduce((e,t)=>{if(!(0,s.uy)(e))return e instanceof Date?e:"object"==typeof e?e[t]:e},r);return(0,s.uy)(l)||"object"==typeof l?!(0,s.uy)(l)&&"object"==typeof l&&"value"in l?(0,o._)((0,n._)({},e),{[i.fieldKey]:t(i.fieldKey,null==l?void 0:l.value)}):(0,o._)((0,n._)({},e),{[i.fieldKey]:null!=l?l:i.input.config.defaultValue}):(0,o._)((0,n._)({},e),{[i.fieldKey]:t(i.fieldKey,l)})},{})}},30587:(e,t,r)=>{"use strict";r.d(t,{z:()=>O});var n=r(86917),o=r(97722),i=r(80263),a=r(55499),s=r(22737),l=r(24825),c=r(63607),d=r(59046),u=r(80619),p=r(66329),m=r(44007),f=r(8368),h=r(25437),g=r(59946);let y="96px",b="128px";f.Ay.div.withConfig({displayName:"BusinessLayout.styled__LinkWrapper",componentId:"sc-ad0754ce-0"})(["display:flex;align-items:center;gap:1rem;font-family:",";padding-left:1rem;"],e=>{let{theme:t}=e;return t.foundations.typography.fontFamily.sansSerifSecondary});let v=f.Ay.div.withConfig({displayName:"BusinessLayout.styled__FontFamilyDiv",componentId:"sc-ad0754ce-1"})(["font-family:",";*{font-family:inherit;}"],e=>{let{theme:t}=e;return t.foundations.typography.fontFamily.sansSerifSecondary}),E=f.Ay.div.withConfig({displayName:"BusinessLayout.styled__ContentStyled",componentId:"sc-ad0754ce-2"})(["overflow-x:hidden;grid-area:content;width:100%;max-width:100vw;@media ","{height:calc(100% - "," - "," - env(safe-area-inset-bottom,0px));}"],(0,g.P)({from:"lg"}),y,b),I=f.Ay.div.withConfig({displayName:"BusinessLayout.styled__ContentWrapper",componentId:"sc-ad0754ce-3"})(["display:flex;flex-direction:column;padding:1.5rem;overflow:visible;width:100%;margin:auto;box-sizing:border-box;max-width:100%;padding-bottom:2rem;height:100%;@media ","{max-width:910px;padding-top:0;overflow:visible;padding-bottom:calc("," + env(safe-area-inset-bottom,0px));height:calc(100% - "," - "," - env(safe-area-inset-bottom,0px));}"],(0,g.P)({from:"lg"}),y,y,b),A=(0,f.Ay)(h.$).withConfig({displayName:"BusinessLayout.styled__Button",componentId:"sc-ad0754ce-4"})(["grid-column-start:3;justify-self:end;border-radius:",";"],e=>{let{theme:t}=e;return t.token.radius["03"]});function O(e){let{children:t,message:r,withHeader:h,withBrandedHeader:g=!0,buttonProps:y}=e,{isDesktop:b}=(0,a.k)(),O=(0,f.DP)(),S=(0,m.useRouter)(),N=y?(0,o._)((0,n._)({},y),{"data-testid":y.dataTestID}):{};return y&&N.dataTestID&&delete N.dataTestID,(0,i.jsx)(v,{children:(0,i.jsxs)(u.sc,{$contentWidth:"100%",$contentHeight:"100%",$backgroundColor:"#FFFFFF",children:[(0,i.jsx)(s.j,{condition:g,children:(0,i.jsx)(u.Vs,{children:(0,i.jsx)(d.u,{hideMenu:!0})})}),(0,i.jsx)(s.j,{condition:h,children:(0,i.jsx)(u.IS,{children:(0,i.jsx)(p.g,{small:!0,onBack:()=>S.back(),showBackButton:!0,children:(0,i.jsx)(l.h,{color:O.token.color.partner.primary,as:"h3",variant:"tertiary",children:r})})})}),(0,i.jsx)(E,{as:"main",id:"main-content",children:(0,i.jsx)(I,{children:t})}),(0,i.jsx)(s.j,{condition:b,children:(0,i.jsx)(c.E,{innerWidth:"900px",children:(0,i.jsx)(A,(0,o._)((0,n._)({},N),{size:"lg",children:(null==y?void 0:y.label)||"Continue"}))})})]})})}},33722:(e,t,r)=>{"use strict";r.d(t,{M:()=>s,u:()=>l});var n=r(58064),o=r(92972),i=r(23096),a=r(98428);let s={BUSINESS_PERSONS:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/business-persons",CREATE_BUSINESS_PERSON_2FA_AUTH_FLOW:"/refi-pipeline/:partnerId/account-opening/customers/main-authorized-signer",CREATE_BUSINESS_PERSON_MANUAL_FLOW:"/refi-pipeline/:partnerId/account-opening/customers/manual",SAVE_BUSINESS_INFORMATION:"/refi-pipeline/:partnerId/account-opening/applications/orchestrations/business-application",SAVE_BUSINESS_QUESTIONNAIRE:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/businesses/:businessId/custom-questions",GET_BUSINESS_DATA:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/businesses/:businessId",ACTION_ON_BUSINESS_PERSON:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/business-persons/:pers
1onId",GET_DOCUMENT_REQUIREMENTS:"/account-opening/document-requirements?applicationId=:applicationId&applicationSource=:applicationSource",GET_APPLICATION_DOCUMENTS:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/documents",DELETE_APPLICATION_DOCUMENT:"/refi-pipeline/:partnerId/account-opening/applications/:applicationId/documents/:documentId"},l={createAuthorizedSigner:async e=>{let{partnerId:t,accessToken:r,body:n,useManualFlow:a}=e,l=a?s.CREATE_BUSINESS_PERSON_MANUAL_FLOW:s.CREATE_BUSINESS_PERSON_2FA_AUTH_FLOW,c=await i.FU.post(l.replace(":partnerId",t),n,{headers:{Authorization:"Bearer ".concat(r)}});if(c.status===o.t.CREATED)return c.data;throw Error("Error creating business person on ".concat(a?"manual flow":"2fa flow"))},createBusinessPerson:async e=>{let{applicationId:t,partnerId:r,accessToken:a,body:l}=e,c=(0,n.iv)(t)?t:"";if(!c)throw Error("Invalid application id");let d=s.BUSINESS_PERSONS.replace(":applicationId",c).replace(":partnerId",r),u=await i.FU.post(d,l,{headers:{Authorization:"Bearer ".concat(a)}});if(u.status===o.t.CREATED)return u.data;throw Error("Error creating business person")},saveBusinessLevelCustomQuestions:async e=>{let{applicationId:t,partnerId:r,businessId:a,accessToken:l,body:c}=e,d=(0,n.iv)(t)?t:"",u=(0,n.iv)(a)?a:"";if(!d||!u)throw Error("Invalid application or business id");let p=s.SAVE_BUSINESS_QUESTIONNAIRE.replace(":applicationId",d).replace(":partnerId",r).replace(":businessId",u),m=await i.FU.patch(p,c,{headers:{Authorization:"Bearer ".concat(l)}});if(m.status===o.t.OK)return m.data;throw Error("Error saving business questionnaire")},saveBusinessInformation:async e=>{let{accessToken:t,body:r,partnerId:n}=e,a=s.SAVE_BUSINESS_INFORMATION.replace(":partnerId",n),l=await i.FU.post(a,r,{headers:{Authorization:"Bearer ".concat(t)}});if(l.status===o.t.OK||l.status===o.t.CREATED)return l.data;throw Error("Error saving business information")},getBusinessData:async e=>{let{applicationId:t,businessId:r,accessToken:a,partnerId:l}=e,c=(0,n.iv)(t)?t:"",d=(0,n.iv)(r)?r:"";if(!c||!d)throw Error("Invalid application or business id");let u=s.GET_BUSINESS_DATA.replace(":applicationId",c).replace(":businessId",d).replace(":partnerId",l),p=await i.FU.get(u,{headers:{Authorization:"Bearer ".concat(a)}});if(p.status===o.t.OK)return p.data;throw Error("Error getting business data")},getBusinessPeople:async e=>{let{applicationId:t,accessToken:r,partnerId:a}=e,l=(0,n.iv)(t)?t:"";if(!l)throw Error("Invalid application id");let c=s.BUSINESS_PERSONS.replace(":applicationId",l).replace(":partnerId",a),d=await i.FU.get(c,{headers:{Authorization:"Bearer ".concat(r)}});if(d.status===o.t.OK)return d.data.persons;throw Error("Error getting business people")},deleteBusinessPerson:async e=>{let{applicationId:t,accessToken:r,partnerId:a,personId:l}=e,c=(0,n.iv)(t)?t:"",d=(0,n.iv)(l)?l:"";if(!c||!d)throw Error("Invalid application id or person id");let u=s.ACTION_ON_BUSINESS_PERSON.replace(":applicationId",c).replace(":partnerId",a).replace(":personId",d),p=await i.FU.delete(u,{headers:{Authorization:"Bearer ".concat(r)}});if(p.status===o.t.NO_CONTENT)return p.data;throw Error("Error deleting business person")},editBusinessPerson:async e=>{let{applicationId:t,accessToken:r,partnerId:a,personId:l,body:c}=e,d=(0,n.iv)(t)?t:"",u=(0,n.iv)(l)?l:"";if(!d||!u)throw Error("Invalid application id or person id");let p=s.ACTION_ON_BUSINESS_PERSON.replace(":applicationId",d).replace(":partnerId",a).replace(":personId",u),m=await i.FU.put(p,c,{headers:{Authorization:"Bearer ".concat(r)}});if(m.status===o.t.OK)return m.data;throw Error("Error editing business person")},patchBusinessPerson:async e=>{let{applicationId:t,accessToken:r,partnerId:a,personId:l,body:c,signal:d}=e,u=(0,n.iv)(t)?t:"",p=(0,n.iv)(l)?l:"";if(!u||!p)throw Error("Invalid application id or person id");let m=s.ACTION_ON_BUSINESS_PERSON.replace(":applicationId",u).replace(":partnerId",a).replace(":personId",p),f=await i.FU.patch(m,c,{headers:{Authorization:"Bearer ".concat(r)},signal:d});if(f.status===o.t.OK)return f.data;throw Error("Error patching business person")},getDocumentRequirements:async e=>{let{applicationId:t,accessToken:r,partnerId:l,signal:c}=e,d=(0,n.iv)(t)?t:"";if(!d)throw Error("getDocumentRequirements: Invalid application id");let u=s.GET_DOCUMENT_REQUIREMENTS.replace(":applicationId",d).replace(":applicationSource",a.C.CONSUMER_PORTAL),p=await i.FU.get(u,{headers:{Authorization:"Bearer ".concat(r)},signal:c});if(p.status===o.t.OK)return p.data;throw Error("Error getting document requirements")},getApplicationDocuments:async e=>{let{applicationId:t,accessToken:r,partnerId:a,signal:l}=e,c=(0,n.iv)(t)?t:"";if(!c)throw Error("getApplicationDocuments: Invalid application id");let d=s.GET_APPLICATION_DOCUMENTS.replace(":applicationId",c).replace(":partnerId",a),u=await i.FU.get(d,{headers:{Authorization:"Bearer ".concat(r)},signal:l});if(u.status===o.t.OK)return u.data;throw Error("Error getting application documents")},deleteUploadedDocument:async e=>{let{applicationId:t,documentId:r,accessToken:a,partnerId:l,signal:c}=e,d=(0,n.iv)(t)?t:"",u=(0,n.iv)(r)?r:"";
1if(!d||!u)throw Error("deleteUploadedDocument: Invalid application id or document id");let p=s.DELETE_APPLICATION_DOCUMENT.replace(":applicationId",d).replace(":documentId",u).replace(":partnerId",l),m=await i.FU.delete(p,{headers:{Authorization:"Bearer ".concat(a)},signal:c});if(m.status===o.t.OK)return m.data;throw Error("Error deleting uploaded document")}}},47058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in l)return l[t].test(e);if("any"===t){for(var r in l)if(l.hasOwnProperty(r)&&l[r].test(e))return!0;return!1}throw Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(79278)),o=/^\d{3}$/,i=/^\d{4}$/,a=/^\d{5}$/,s=/^\d{6}$/,l={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BD:/^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,BE:i,BG:i,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:a,DK:i,DO:a,DZ:a,EE:a,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:a,FR:/^(?:(?:0[1-9]|[1-8]\d|9[0-5])\d{3}|97[1-46]\d{2})$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:a,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:o,IT:a,JP:/^\d{3}\-\d{4}$/,KE:a,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:a,MG:o,MX:a,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:a,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PK:a,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:s,RU:s,SA:a,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:s,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:a,TN:i,TW:/^\d{3}(\d{2,3})?$/,UA:a,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:a};t.locales=Object.keys(l)},50034:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63535),o=r(53239),i=r(46842),a=r(41314),s=r(80836),l=r(11273),c=r(65526),d=r(78403),u=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=String(e).toLowerCase(),o=String(r.getOptionValue(t)).toLowerCase(),i=String(r.getOptionLabel(t)).toLowerCase();return o===n||i===n},m={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r,n){return!(!e||t.some(function(t){return p(e,t,n)})||r.some(function(t){return p(e,t,n)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};r(37034),r(10190);var f=(0,o.forwardRef)(function(e,t){var r,p,f,h,g,y,b,v,E,I,A,O,S,N,w,_,C,x,j,P,T,k,U,B,D,R,M,L,F=(f=void 0!==(p=(r=(0,a.u)(e)).allowCreateWhileLoading)&&p,g=void 0===(h=r.createOptionPosition)?"last":h,b=void 0===(y=r.formatCreateLabel)?m.formatCreateLabel:y,E=void 0===(v=r.isValidNewOption)?m.isValidNewOption:v,A=void 0===(I=r.getNewOptionData)?m.getNewOptionData:I,O=r.onCreateOption,N=void 0===(S=r.options)?[]:S,w=r.onChange,x=void 0===(C=(_=(0,c.A)(r,u)).getOptionValue)?i.g:C,P=void 0===(j=_.getOptionLabel)?i.b:j,T=_.inputValue,k=_.isLoading,U=_.isMulti,B=_.value,D=_.name,R=(0,o.useMemo)(function(){return E(T,(0,d.H)(B),N,{getOptionValue:x,getOptionLabel:P})?A(T,b(T)):void 0},[b,A,P,x,T,E,N,B]),M=(0,o.useMemo)(function(){return(f||!k)&&R?"first"===g?[R].concat((0,l.A)(N)):[].concat((0,l.A)(N),[R]):N},[f,g,k,R,N]),L=(0,o.useCallback)(function(e,t){if("select-option"!==t.action)return w(e,t);var r=Array.isArray(e)?e:[e];if(r[r.length-1]===R){if(O)O(T);else{var n=A(T,T);w((0,d.D)(U,[].concat((0,l.A)((0,d.H)(B)),[n]),n),{action:"create-option",name:D,option:n})}return}w(e,t)},[A,T,U,D,R,O,w,B]),(0,s.A)((0,s.A)({},_),{},{options:M,onChange:L}));return o.createElement(i.S,(0,n.A)({ref:t},F))})},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;"])},55499:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(4366),o=r(21819),i=function(){var e=(0,n.U)("(max-width: ".concat(o.L.tablet,")"));return{isDesktop:!e,isMobile:e}}},57844:(e,t,r)=>{"use strict";r.d(t,{v:()=>m});var n=r(53239),o=r(33747),i=r(26156),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let m=(0,n.forwardRef)((e,t)=>n.createElement(o.A,s(((e,t)=>{for(var r in t||(t={}))d.call(t,r)&&p(e,r,t[r]);if(c)for(var r of c(t))u.call(t,r)&&p(e,r,t[r]);return e})({ref:t},e),l({weights:i.A}))));m.displayName="Question"},57929:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(53239);let o=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]])},63607:(e,t,r)=>{"use strict";r.d(t,{E:()=>A});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"}),s=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"]}),l=n.Ay.div.withConfig({displayName:"ActionBarstyled__Body",componentId:"sc-1nrp16z-3"})(["grid-area:center;justify-self:center;"]),c=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),d=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),p=r(80263);function m(e){return(m="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 g(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"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(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 y=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(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?E(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)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var A=function(e){var t=e.children,r=e.innerWidth;return(0,p.jsx)(i,{children:(0,p.jsx)(a,{$innerWidth:r,children:t})})};A.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,p.jsx)(c,{children:(0,p.jsx)(y.$,I(I({},o),{},{disabled:n||r,size:"lg","aria-busy":r,loading:!!r,children:t}))})},A.Body=l,A.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,p.jsx)(s,{children:(0,p.jsx)(d,g(g({},o),{},{"aria-label":void 0===r?"Assistant":r,ref:t,children:(0,p.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:()=>g});var n=r(80263),o=r(22737),i=r(68822),a=r(72521),s=r(60605);r(53239);var l=r(67280),c=r(63298),d=r(8368),u=r(57253);let p=e=>{let{onClick:t,icon:r,colored:o,ariaLabel:i,testId:a}=e,s=(0,d.DP)(),{theme:p}=(0,u.W)(),m="function"==typeof t,f=o?s.foundations.colors.white:p.colors.primary;if(!m)return(0,n.jsx)("div",{});let h=null!=r?r:c.A;return(0,n.jsx)(l.K,{"data-testid":a,onClick:t,"aria-label":i,children:(0,n.jsx)(h,{weight:"bold",color:f})})};var m=r(59946);let f=d.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,m.P)({from:"md"}),e=>{var t;return null!=(t=e.$maxWidth)?t:"var(--default-max-width)"}),h=d.Ay.div.withConfig({displayName:"NavigationHeader.styled__BackButtonWrapper",componentId:"sc-aada6fa7-1"})(["display:flex;align-items:center;p{color:",";}"],e=>e.$colored?e.theme.foundations.colors.white:e.theme.colors.colorfulBackground),g=e=>{let{onBack:t,onClose:r,colored:l,children:c,maxWidth:d,closeButtonAriaLabel:u="Close",small:m=!1,icon:g,showBackButton:y=!0,showCloseButton:b=!0,$enableUiGlowUp:v,$expandedNavbarContainer:E,backButtonLabel:I}=e;return(0,n.jsxs)(f,{"aria-label":"Page navigation",$maxWidth:d,$small:m,$colored:l,$enableUiGlowUp:v,$expandedNavbarContainer:E,"data-testid":"section-header",children:[y?(0,n.jsxs)(h,{$colored:!!l,children:[(0,n.jsx)(p,{onClick:t,icon:g,colored:l,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",{}),c,b?(0,n.jsx)(p,{onClick:r,icon:s.u,colored:l,ariaLabel:u,testId:"navigation-header-close-btn"}):(0,n.jsx)("div",{})]})}},67119:(e,t,r)=>{"use strict";r.d(t,{t:()=>u});var n=r(86917),o=r(97722),i=r(20124),a=r(54366),s=r(53239),l=r(91807),c=r(62257),d=r(82198);let u=e=>{let{fraudConfig:t,autoInitialize:r,authenticationMethod:d}=e,u=(0,c.wQ)(),g=(0,s.useRef)(!1),y={key:null==t?void 0:t.engineSDKKey,journeyToken:null==t?void 0:t.engineApplicationToken,isSingleEntity:!1,production:u.env===l.O.PRODUCTION,apiUrl:null==t?void 0:t.engineSDKApiUrl,appUrl:null==t?void 0:t.engineSDKAppUrl,neuroIdFunnel:p(d,t)},b=async e=>await i.A.init((0,o._)((0,n._)({},y),{journeyApplicationToken:e})),v=r&&((null==t?void 0:t.shouldCollectNeuroIntegration)||(null==t?void 0:t.shouldCollectThreatmetrixIntegration))&&!g.current;return v&&((0,a.ZI)("AlloySDK: Auto initializing alloy sdk"),g.current=!0,b().then(e=>{m(null==e?void 0:e.neuroUserId,t),f(null==e?void 0:e.threatmetrixSessionId,t),(0,a.ZI)("AlloySDK: Successfully auto-initialized")}
1).catch(e=>{h({error:e,message:"Error while setting up alloy SDK",context:(0,o._)((0,n._)({},y),{errorMessage:null==e?void 0:e.message,shouldCollectNeuroIntegration:null==t?void 0:t.shouldCollectNeuroIntegration,shouldCollectThreatmetrixIntegration:null==t?void 0:t.shouldCollectThreatmetrixIntegration,supportsNeuroIdOrchestrator:null==t?void 0:t.supportsNeuroIdOrchestrator,shouldAutoInitialize:v})})})),{alloyInit:b,openAlloySDK:(e,r)=>{try{i.A.open(e,r)}catch(e){h({error:e,message:"Error while opening alloy SDK",context:(0,o._)((0,n._)({},y),{errorMessage:null==e?void 0:e.message,shouldCollectNeuroIntegration:null==t?void 0:t.shouldCollectNeuroIntegration,shouldCollectThreatmetrixIntegration:null==t?void 0:t.shouldCollectThreatmetrixIntegration,supportsNeuroIdOrchestrator:null==t?void 0:t.supportsNeuroIdOrchestrator,shouldAutoInitialize:v})})}},closeAlloy:()=>{try{i.A.close(),(0,a.ZI)("AlloySDK: Successfully closed")}catch(e){h({error:e,message:"Error while closing alloy SDK",context:{errorMessage:null==e?void 0:e.message}})}}}},p=(e,t)=>{if((null==t?void 0:t.supportsNeuroIdOrchestrator)&&(null==t?void 0:t.shouldCollectNeuroIntegration))return e&&"manual"!==e?"phone":"manual"},m=(e,t)=>{if(t.shouldCollectNeuroIntegration)try{e&&((0,d.Hc)(e),(0,a.ZI)("AlloySDK: Successfully saved neuroUserId"))}catch(t){throw h({error:t,message:"Error while saving neuroUserId on session storage",context:{errorMessage:null==t?void 0:t.message,hasNeuroUserId:!!e}}),t}},f=(e,t)=>{if(t.shouldCollectThreatmetrixIntegration)try{e&&((0,d.Q9)(e),(0,a.ZI)("AlloySDK: Successfully saved threatmetrixSessionId"))}catch(t){throw h({error:t,message:"Error while saving threatmetrixSessionId on session storage",context:{errorMessage:null==t?void 0:t.message,hasThreatmetrixSessionId:!!e}}),t}},h=e=>{let{message:t,error:r,context:n}=e,o=Error(t);o.name="AlloySDKError",o.cause=r,(0,a.Qw)(o,n)}},72705:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(31901),o=r(87763),i=r(27194);let a={queryKey:()=>[i.oR.ACCOUNT_OPENING_FEATURES],queryFn:async()=>i.MP.configs.features()},s=function(){let{enabled:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{enabled:!0},{isLoading:t,isFetching:r,error:i,data:s,refetch:l}=(0,n.I)(a.queryKey(),async()=>await a.queryFn(),{refetchOnWindowFocus:!1,staleTime:o.To,enabled:e});return{features:null==s?void 0:s.features,isLoading:t,error:i,isFetching:r,refetch:l}}},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"}},78607:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(22737),o=r(24825),i=r(80263);function a(e){var t=e.title,r=e.titleAs,a=e.titleVariant,s=e.description,l=e.subtitle,c=e.customContent;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.j,{condition:!!c,children:c}),(0,i.jsx)(n.j,{condition:!!t,children:(0,i.jsx)(o.h,{as:void 0===r?"h1":r,variant:void 0===a?"primary":a,children:t})}),(0,i.jsx)(n.j,{condition:!!l,children:(0,i.jsx)(o.h,{as:"h2",variant:"secondary",children:l})}),(0,i.jsx)(n.j,{condition:!!s,children:(0,i.jsx)(o.h,{as:"h3",variant:"tertiary",children:s})})]})}},79276:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});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 s(e){let{formId:t,token:r,enabled:i,opts:{onSuccess:s}={}}=e,{data:l,isLoading:c,isError:d,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==s||s(e)}});return{data:l,isLoading:c,isError:d,error:u}}},79876:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n={AUTHORIZED_SIGNER:"/account-opening/business/authorized-signer",BUSINESS_DOCUMENTS:"/account-opening/business/business-documents",BUSINESS_INFORMATION:"/account-opening/business/business-information",BUSINESS_QUESTIONNAIRE:"/account-opening/business/business-questionnaire",BUSINESS_ROLES:"/account-opening/business/business-roles",
1ELIGIBILITY:"/account-opening/business/eligibility",FUNDING_TYPE:e=>"/account-opening/business/".concat(e,"/funding-type"),REVIEW:"/account-opening/business/review",FUNDING_INTERNAL_ACCOUNT:"/account-opening/business/funding/internal-account",FUNDING_ACH:"/account-opening/business/funding/ach",FUNDING_CASH:"/account-opening/business/funding/cash",FUNDING_CREDIT_CARD:"/account-opening/business/funding/credit-card",NO_FUNDING:"/account-opening/business/funding/no-funding",THANK_YOU:"/account-opening/business/thank-you",FRAUD_CHECK:"/account-opening/business/fraud-check"}},86418:(e,t,r)=>{"use strict";r.d(t,{a:()=>h,h:()=>g});var n=r(80251),o=r(42884),i=r(44007),a=r(82198),s=r(11626),l=r(79876),c=r(92972),d=r(965),u=r(71599),p=r(25563);let m=e=>{var t;return(null==e||null==(t=e.response)?void 0:t.status)===c.t.UNPROCESSABLE_ENTITY},f=async function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t)return e.replace(u.w.HOME);let o=r?l.j.FRAUD_CHECK:u.w.FRAUD_CHECK;return e.replace(n?(0,p.pv)(o,t.id):o)},h=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,s.P)(e)?(0,s._)(t,r):m(e)&&(e=>{var t;let r=null==e||null==(t=e.response)?void 0:t.data;return![d.jy.MEMBER_HAS_HARD_STOP_LOCKOUT,d.jy.APPLICANT_HAS_PERSON_FLAG_INELIGIBILITY].includes(null==r?void 0:r.code)})(e)&&f(t,r,n,o)},g=e=>{let{mutationKey:t,mutationFn:r,onSuccess:s,onError:l,shouldNotRedirectOnUnprocessable:c,isBusinessApplication:d}=e,u=(0,i.useRouter)(),p=(0,o.GI)(),f=(0,a.RB)();return(0,n.n)({mutationKey:t,mutationFn:r,retry:!1,onSuccess:s,onError:async(e,t,r)=>{try{await (null==l?void 0:l(e,t,r))}finally{c&&m(e)||h(e,u,f,d,p)}}})}},87875:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n.Q});var n=r(23120)},90946:(e,t,r)=>{"use strict";r.d(t,{m:()=>n.m});var n=r(72705)},91681:(e,t,r)=>{"use strict";r.d(t,{k:()=>m});var n=r(53239),o=r(33747),i=r(57929),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let m=(0,n.forwardRef)((e,t)=>n.createElement(o.A,s(((e,t)=>{for(var r in t||(t={}))d.call(t,r)&&p(e,r,t[r]);if(c)for(var r of c(t))u.call(t,r)&&p(e,r,t[r]);return e})({ref:t},e),l({weights:i.A}))));m.displayName="Eye"},96552:(e,t,r)=>{"use strict";r.d(t,{P:()=>p});var n=r(86917),o=r(97722),i=r(80263),a=r(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;"]),d=(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;"],d),p=e=>{var t;return(0,i.jsx)(l,(0,o._)((0,n._)({"data-testid":"circular-progress"},e),{role:"progressbar","aria-label":null!=(t=e["aria-label"])?t:"Loading",children:(0,i.jsx)(c,{viewBox:"22 22 44 44",children:(0,i.jsx)(u,{cx:"44",cy:"44",r:"20.2",fill:"none",strokeWidth:"3.6"})})}))}}},e=>{e.O(0,[5931,3140,5708,6617,7086,1493,2900,9266,1036,2528,2791,4179,711,2411,5183,3076,1653,3633,8607,8907,584,6977,9046,5341,6594,3466,2496,9154,9136,7398,636,6593,8792],()=>e(e.s=18360)),_N_E=e.O()}]); 2//# sourceMappingURL=business-questionnaire-51cf0378036b180f.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.