https://apply.ttcu.com/_next/static/chunks/pages/account-opening/b…/funding-type-2721555299ae1b3e.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4698],{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}})},3435:(e,t,n)=>{"use strict";n.d(t,{E:()=>f,C:()=>m});var r=n(8368),i=(0,r.i7)(["0%{background-position:200% 0;}100%{background-position:-200% 0;}"]),o=(0,r.AH)(["margin:0.5rem 0;background:linear-gradient(90deg,transparent,rgba(0,0,0,0.04),transparent),rgba(0,0,0,0.11);background-size:200% 100%;animation:4s ease-in-out 0.5s infinite normal none running ",";"],i),a=function(e){return"number"==typeof e?"".concat(e,"px"):"string"==typeof e?e:"100%"},l=r.Ay.div.withConfig({displayName:"Skeletonstyled__Rect",componentId:"sc-1aziwm1-0"})([""," width:",";height:",";border-radius:",";"],o,function(e){return a(e.$width)},function(e){return a(e.$height)},function(e){return e.theme.token.radius["02"]}),c=r.Ay.div.withConfig({displayName:"Skeletonstyled__Circle",componentId:"sc-1aziwm1-1"})([""," width:",";height:",";border-radius:50%;"],o,function(e){return a(e.$size)},function(e){return a(e.$size)}),u=n(26280),d=n(80263);function s(e){return(s="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 p(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 f(e){var t=e.variant,n=e.size,r=e.height,i=e.width,o=e.style;return t===u.y.CIRCLE?(0,d.jsx)(c,{role:"presentation","data-testid":"circle-skeleton",$size:n,style:o}):(0,d.jsx)(l,{role:"presentation","data-testid":"rect-skeleton",$height:r,$width:i,style:o})}f.displayName="Skeleton";var m=function(e){var t=e.amount,n=e.skeletonProps,r=e.keyPrefix;return Array.from({length:t},function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(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"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(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)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({key:r?"".concat(r,"-skeleton-").concat(t):"skeleton-".concat(t)},n)})}},4366:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(53239),i=n(19246);let o="undefined"==typeof window;function a(e,t){var n,a;let l="boolean"==typeof t?t:null!=(n=null==t?void 0:t.defaultValue)&&n,c="boolean"==typeof t?void 0:null!=(a=null==t?void 0:t.initializeWithValue)?a:void 0;o&&(c=!1);let[u,d]=(0,r.useState)(()=>c?s(e):l),s=e=>"undefined"!=typeof window?window.matchMedia(e).matches:l;function p(){d(s(e))}return(0,i.E)(()=>{let t=window.matchMedia(e);return p(),t.addListener?t.addListener(p):t.addEventListener("change",p),()=>{t.removeListener?t.removeListener(p):t.removeEventListener("change",p)}},[e]),u}},10550:(e,t,n)=>{"use strict";n.d(t,{ZU:()=>i,rA:()=>o,xn:()=>r});var r={PERSONAL:"PERSONAL",BUSINESS:"BUSINESS",BUSINESS_LEGACY:"BUSINESS_LEGACY"},i={NOT_STARTED:"NOT_STARTED",INITIATED:"INITIATED",ACCEPTED:"ACCEPTED",FRAUD_VERIFICATION:"FRAUD_VERIFICATION",ERROR:"ERROR",PENDING:"PENDING",STARTED:"STARTED",PROCESSING:"PROCESSING",RETRIEVING_FUNDS:"RETRIEVING_FUNDS",CREATED:"CREATED",PASSED:"PASSED",PROCESSED:"PROCESSED",FINISHED:"FINISHED",DENIED:"DENIED",ID_VERIFICATION:"ID_VERIFICATION",MANUAL_REVIEW:"MANUAL_REVIEW",CANCELLED:"CANCELLED",EXTERNAL_FUNDING_CONFIRMATION:"EXTERNAL_FUNDING_CONFIRMATION",LOAN_FIRST_DRAFT:"LOAN_FIRST_DRAFT"},o={APPROVED:"APPROVED",DENIED:"DENIED",PENDING_USER_ACTION:"PENDING_USER_ACTION",REFER:"REFER",ERROR:"ERROR",DRAFT:"DRAFT",WITHDRAWN:"WITHDRAWN",EXPIRED:"EXPIRED",UNSUPPORTED:"UNSUPPORTED",AWAITING_RESUBMISSION:"AWAITING_RESUBMISSION"}},26280:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var r={CIRCLE:"circle",RECT:"rect"}},28570:(e,t,n)=>{"use strict";n.d(t,{u:()=>
1o});var r=n(121);let i=e=>{let t=Number(e);return isNaN(t)?0:t},o=e=>{if(!Array.isArray(e))return 0;let t=e.reduce((e,t)=>i(e)+i(t),0);return r.p1.toDollarAmount(r.p1.ofCents(t))}},30587:(e,t,n)=>{"use strict";n.d(t,{z:()=>A});var r=n(86917),i=n(97722),o=n(80263),a=n(55499),l=n(22737),c=n(24825),u=n(63607),d=n(59046),s=n(80619),p=n(66329),f=n(44007),m=n(8368),y=n(25437),g=n(59946);let h="96px",v="128px";m.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 N=m.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}),b=m.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"}),h,v),_=m.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"}),h,h,v),I=(0,m.Ay)(y.$).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 A(e){let{children:t,message:n,withHeader:y,withBrandedHeader:g=!0,buttonProps:h}=e,{isDesktop:v}=(0,a.k)(),A=(0,m.DP)(),E=(0,f.useRouter)(),S=h?(0,i._)((0,r._)({},h),{"data-testid":h.dataTestID}):{};return h&&S.dataTestID&&delete S.dataTestID,(0,o.jsx)(N,{children:(0,o.jsxs)(s.sc,{$contentWidth:"100%",$contentHeight:"100%",$backgroundColor:"#FFFFFF",children:[(0,o.jsx)(l.j,{condition:g,children:(0,o.jsx)(s.Vs,{children:(0,o.jsx)(d.u,{hideMenu:!0})})}),(0,o.jsx)(l.j,{condition:y,children:(0,o.jsx)(s.IS,{children:(0,o.jsx)(p.g,{small:!0,onBack:()=>E.back(),showBackButton:!0,children:(0,o.jsx)(c.h,{color:A.token.color.partner.primary,as:"h3",variant:"tertiary",children:n})})})}),(0,o.jsx)(b,{as:"main",id:"main-content",children:(0,o.jsx)(_,{children:t})}),(0,o.jsx)(l.j,{condition:v,children:(0,o.jsx)(u.E,{innerWidth:"900px",children:(0,o.jsx)(I,(0,i._)((0,r._)({},S),{size:"lg",children:(null==h?void 0:h.label)||"Continue"}))})})]})})}},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)}},37384:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/business/[applicationId]/funding-type",function(){return n(61775)}])},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},47058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in c)return c[t].test(e);if("any"===t){for(var n in c)if(c.hasOwnProperty(n)&&c[n].test(e))return!0;return!1}throw Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(79278)),i=/^\d{3}$/,o=/^\d{4}$/,a=/^\d{5}$/,l=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:o,AU:o,AZ:/^AZ\d{4}
1$/,BA:/^([7-8]\d{4}$)/,BD:/^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,BE:o,BG:o,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:o,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:o,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:o,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:i,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:o,LV:/^LV\-\d{4}$/,LK:a,MG:i,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:o,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:o,PK:a,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:a,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:o,SK:/^\d{3}\s?\d{2}$/,TH:a,TN:o,TW:/^\d{3}(\d{2,3})?$/,UA:a,US:/^\d{5}(-\d{4})?$/,ZA:o,ZM:a};t.locales=Object.keys(c)},55499:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(4366),i=n(21819),o=function(){var e=(0,r.U)("(max-width: ".concat(i.L.tablet,")"));return{isDesktop:!e,isMobile:e}}},59857:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(8368).Ay.p.withConfig({displayName:"ErrorMessagestyled__Error",componentId:"sc-1mvr0yp-0"})(["font-size:",";color:",";margin:0.25rem 0 0 ",";position:relative;bottom:0;"],function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.color.support.error},function(e){return e.$margin?"0.875rem":"0"}),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=["id","error","margin","dataDogRumPrivacy"];function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(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)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=function(e){var t=e.id,n=e.error,o=e.margin,l=e.dataDogRumPrivacy,u=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 n?(0,i.jsx)(r,c(c({id:t,$margin:void 0===o||o},u),{},{children:(0,i.jsx)("span",{"data-dd-privacy":void 0===l?"allow":l,children:n})})):null}},61775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>ev,default:()=>eN});var r=n(80263),i=n(86917),o=n(25722),a=n(78252),l=n(55499),c=n(75341),u=n(22737),d=n(59857),s=n(53239),p=n(95550),f=n(8368),m=f.Ay.div.withConfig({displayName:"FundingTypeListstyled__FundingTypeRadioGroup",componentId:"sc-12zrsmq-0"})(["display:flex;flex-direction:column;border:1px solid ",";border-radius:",";overflow:hidden;"],function(e){return e.theme.token.color.gray[300]},function(e){return e.theme.token.radius["02"]}
1),y=f.Ay.label.withConfig({displayName:"FundingTypeListstyled__FundingTypeRadioLabel",componentId:"sc-12zrsmq-1"})(["position:relative;display:flex;flex-direction:column;padding-block:1.5rem;padding-inline:1rem;transition:background-color 200ms ease;cursor:pointer;background-color:",";&:not(:last-child){border-bottom:1px solid ",";}&:hover{background-color:",";}&:has(input[aria-invalid='true']){border:1px solid ",";}"],function(e){var t=e.$isSelected,n=e.$selectedBgColor;return t?n:"transparent"},function(e){return e.theme.token.color.gray[300]},function(e){var t=e.$isSelected,n=e.$selectedBgColor,r=e.theme;return t?n:r.token.color.surface.card},function(e){return e.theme.token.color.status.negative}),g=f.Ay.input.withConfig({displayName:"FundingTypeListstyled__FundingRadioInput",componentId:"sc-12zrsmq-2"})(["position:absolute;top:0.75rem;right:0.75rem;accent-color:",";width:1rem;height:1rem;cursor:pointer;@media (min-width:40rem){top:1rem;right:1rem;}"],function(e){return e.theme.token.color.partner.primary}),h=f.Ay.div.withConfig({displayName:"FundingTypeListstyled__FundingInfoWrapper",componentId:"sc-12zrsmq-3"})(["display:flex;gap:1rem;padding-right:2rem;"]),v=f.Ay.div.withConfig({displayName:"FundingTypeListstyled__FundingInfo",componentId:"sc-12zrsmq-4"})(["display:flex;flex-direction:column;align-items:flex-start;gap:0.25rem;width:100%;"]),N=f.Ay.h3.withConfig({displayName:"FundingTypeListstyled__FundingName",componentId:"sc-12zrsmq-5"})(["font-weight:",";font-size:",";color:",";margin-block:0;text-align:left;transition:color 100ms ease;@media (min-width:40rem){font-size:",";}"],function(e){return e.theme.token.typography.fontWeight[500]},function(e){return e.theme.token.typography.fontSize["03"]},function(e){var t=e.theme;return e.$isSelected?t.token.color.partner.primary:t.token.color.text.primary},function(e){return e.theme.token.typography.fontSize["04"]}),b=f.Ay.p.withConfig({displayName:"FundingTypeListstyled__FundingDescription",componentId:"sc-12zrsmq-6"})(["font-weight:",";font-size:",";line-height:1.5;color:",";margin-block:0;text-align:left;"],function(e){return e.theme.token.typography.fontWeight[400]},function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.color.text.secondary}),_=f.Ay.ul.withConfig({displayName:"FundingTypeListstyled__FundingDetailsList",componentId:"sc-12zrsmq-7"})(["text-align:left;padding-inline-start:1.5rem;margin-block-end:0;line-height:1.5;list-style-type:disc;margin-top:1rem;padding-right:2rem;"]),I=f.Ay.li.withConfig({displayName:"FundingTypeListstyled__FundingDetailsListItem",componentId:"sc-12zrsmq-8"})(["font-size:",";color:",";"],function(e){return e.theme.token.typography.fontSize["02"]},function(e){return e.theme.token.color.blue[500]}),A=function(e){var t=e.fundingTypes,n=e.onSelectFundingAccount,i=e.fundingAccountIdSelected,o=e.LogoComponent,a=(0,f.DP)().token.color.partner.lighter;return(0,r.jsx)(m,{role:"radiogroup","data-testid":"funding-type-list",children:t.map(function(e){if(t=e.id,!Object.values(p.P).includes(t))return null;var t,l=i===e.id,c=e.id,u=e.name,d=e.logoSrc,s=e.description,f=e.details;return(0,r.jsxs)(y,{$isSelected:l,$selectedBgColor:a,"aria-labelledby":c,children:[(0,r.jsxs)(h,{children:[(0,r.jsx)(o,{alt:"".concat(u," logo"),logoSrc:d,width:40,height:40,objectFit:"contain"}),(0,r.jsxs)(v,{children:[(0,r.jsx)(N,{$isSelected:l,id:c,children:u}),(0,r.jsx)(b,{children:s})]})]}),(0,r.jsx)(g,{type:"radio",name:"fundingType",value:c,checked:l,onChange:function(){return n(c)}}),f&&f.length>0&&(0,r.jsx)(_,{children:f.map(function(e){return(0,r.jsx)(I,{children:e},e)})})]},c)})})},E=f.Ay.p.withConfig({displayName:"FundingTypeDisclosurestyled__FundingTypeDisclosureText",componentId:"sc-1r2rpih-0"})(["font-size:",";line-height:1.5;color:",";background-color:",";border-radius:0.5rem;padding:1.5rem;opacity:1;&[aria-hidden='true']{opacity:0;}"],function(e){return e.theme.token.typography.fontSize["02"]},function(e){return e.theme.token.color.gray["70"]},function(e){return e.$bgColor||e.theme.token.color.surface.card});function S(e){return(S="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 D(e,t,n){var r;return(r=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==S(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=D(D(D(D(D({},p.P.INTERNAL_ACCOUNT,""),p.P.ACH,'By clicking "continue", I/we authorize a one-time electronic debit on the account provided, and, if necessary, to credit the account to correct erroneous debits. I/we agree that this authorization will remain in full force until I/we notify the Credit Union that I/we wish to revoke this authorization. I understand that Credit Union needs at least three days prior notice to cancel this authorization. ACH transfer will typically process within four business days.'),p.P.CREDIT_CARD,'By clicking "continue", I/we authorize a one-time electronic debit on the card account provided, and, if necessary, to credit the card account to correct erroneous debits. I/we agree that this authorization will remain in full force until I/we notify the Credit Union that I/we wish to revoke this authorization. I understand that the Credit Union needs at least three days prior notice to cancel this authorization. Card account transfers will typically process within four business days.'),p.P.CASH,""),p.P.NO_FUNDING,""),C=function(e){var t=e.fundingAccountIdSelected,n=e.disclosure,i=e.disclosureRef,o=(0,f.DP)().token.color.partner.lighter,a="str
1ing"==typeof n?n:w[t||p.P.NO_FUNDING];return(0,r.jsx)(E,{role:"region","aria-live":"polite","aria-hidden":!a||void 0,ref:i,"data-testid":"funding-disclosure-text",$bgColor:o,children:a})},O=f.Ay.div.withConfig({displayName:"FundingTypeNotificationsstyled__FundingTypeNotificationsWrapper",componentId:"sc-s9pck0-0"})(["max-width:26.875rem;width:100%;margin-block:1.5rem;margin-inline:auto;"]),T=function(e){var t=e.exceedsLimitOfFundingSelected,n=e.fundingLimit,i=e.fundingAccountIdSelected,o=e.disclosure,a=e.disclosureRef,l=e.FundingTypeLimitExceededAlert;return(0,r.jsx)(O,{children:(0,r.jsx)(u.j,{condition:t,fallback:(0,r.jsx)(C,{fundingAccountIdSelected:i,disclosure:o,disclosureRef:a}),children:(0,r.jsx)(l,{fundingLimit:n})})})},x=n(3435),R=f.Ay.div.withConfig({displayName:"FundingTypeSectionSkeletonstyled__FundingTypeSectionWrapper",componentId:"sc-1jjsczp-0"})(["width:100%;max-width:25.375rem;padding-inline:1.5rem;@media (min-width:25.375rem){padding-inline:revert;}"]),F=f.Ay.div.withConfig({displayName:"FundingTypeSectionSkeletonstyled__FundingCardListSkeleton",componentId:"sc-1jjsczp-1"})(["display:flex;flex-direction:column;gap:0.5rem;"]),j=f.Ay.div.withConfig({displayName:"FundingTypeSectionSkeletonstyled__FundingCardSkeletonWrapper",componentId:"sc-1jjsczp-2"})(["align-items:center;display:flex;width:100%;background-color:",";border-radius:0.5rem;padding-block:1.5rem;padding-inline:1rem;gap:1rem;"],function(e){return e.theme.token.color.surface.card}),P=f.Ay.div.withConfig({displayName:"FundingTypeSectionSkeletonstyled__FundingCardInfoSkeleton",componentId:"sc-1jjsczp-3"})(["display:flex;flex-direction:column;flex:1;"]),U=function(){return(0,r.jsx)(R,{"data-testid":"funding-type-section-skeleton",children:(0,r.jsxs)(F,{children:[(0,r.jsx)(k,{}),(0,r.jsx)(k,{}),(0,r.jsx)(k,{}),(0,r.jsx)(k,{})]})})};function k(){return(0,r.jsxs)(j,{children:[(0,r.jsx)(x.E,{variant:"circle",size:44}),(0,r.jsxs)(P,{children:[(0,r.jsx)(x.E,{variant:"rect",height:"1rem"}),(0,r.jsx)(x.E,{variant:"rect",height:"0.75rem"})]})]})}var L=n(25437),$=f.Ay.form.withConfig({displayName:"FundingTypeSectionstyled__FundingTypeSectionWrapper",componentId:"sc-rsyz6j-0"})(["max-width:26.875rem;width:100%;margin:0 auto;"]),z=(0,f.Ay)(L.$).withConfig({displayName:"FundingTypeSectionstyled__FundingTypeButton",componentId:"sc-rsyz6j-1"})(["border-radius:100vw;height:3rem;"]);function G(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,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(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)?M(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 M(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 B="funding-type-form",H=function(e){var t=e.isLoading,n=e.funding,i=e.totalInitialFunding,o=e.FundingTypeLimitExceededAlert,f=e.LogoComponent,m=e.redirectToFundingPage,y=(0,l.k)().isMobile,g=G((0,s.useState)(),2),h=g[0],v=g[1],N=G((0,s.useState)(!1),2),b=N[0],_=N[1],I=G((0,s.useState)(null),2),E=I[0],S=I[1],D=(0,s.useRef)(null),w=null==n?void 0:n.types.some(function(e){return e.id===p.P.NO_FUNDING});if((0,s.useEffect)(function(){w&&m(p.P.NO_FUNDING)},[w,m]),w||t||!n)return(0,r.jsx)(U,{});var C=n.types.find(function(e){return e.id===h}),O=null==C?void 0:C.fundingLimit,x=!!(O&&i>(null!=O?O:0)),R=null==C?void 0:C.disclosure;return(0,r.jsxs)($,{onSubmit:function(e){if(e.preventDefault(),_(!0),!h){S("Please select your initial deposit account"),_(!1);return}if(x)return void _(!1);h&&m(h)},id:B,children:[(0,r.jsx)(A,{LogoComponent:f,fundingTypes:n.types,onSelectFundingAccount:function(e){var t,n;v(e),S(null),null==(t=D.current)||null==(n=t.scrollIntoView)||n.call(t)},fundingAccountIdSelected:h}),(0,r.jsx)(T,{FundingTypeLimitExceededAlert:o,fundingLimit:Number(c.Q.formatters.fromCentsToDollar(O)),disclosureRef:D,fundingAccountIdSelected:h,disclosure:R,exceedsLimitOfFundingSelected:x}
1),(0,r.jsx)(u.j,{condition:y,children:(0,r.jsx)(z,{fullWidth:!0,disabled:b,loading:b,type:"submit",children:"Agree and proceed"})}),(0,r.jsx)(d.K,{error:E}),(0,r.jsx)(a.Q,{})]})},W=f.Ay.div.withConfig({displayName:"FundingHeaderstyled__Wrapper",componentId:"sc-18215wf-0"})(["display:flex;flex-direction:column;margin-bottom:1rem;max-width:26.875rem;width:100%;margin-inline:auto;"]),V=f.Ay.h1.withConfig({displayName:"FundingHeaderstyled__Title",componentId:"sc-18215wf-1"})(["font-weight:",";font-size:",";color:",";margin-block:0;"],function(e){return e.theme.token.typography.fontWeight[400]},function(e){return e.theme.token.typography.fontSize["05"]},function(e){return e.theme.token.color.text.primary}),q=f.Ay.p.withConfig({displayName:"FundingHeaderstyled__Description",componentId:"sc-18215wf-2"})(["font-size:",";color:",";margin-block:1rem 0;"],function(e){return e.theme.token.typography.fontSize["03"]},function(e){return e.theme.token.color.text.secondary});function K(){return(0,r.jsxs)(W,{children:[(0,r.jsx)(V,{children:"Set up your initial deposit"}),(0,r.jsx)(q,{children:"No funds will be transferred until your account is approved"})]})}var Z=n(67380),X=n(30587),Y=n(70098),J=n(86069),Q=n(55952),ee=n(64066),et=n(44007),en=n(86281),er=n(34375),ei=n(35613),eo=n(71599),ea=n(87875),el=n(44148),ec=n(91522),eu=n.n(ec);let ed=(0,f.Ay)(eu()).withConfig({displayName:"FundingTypeLimitExceededAlert.styled__LinkWrapper",componentId:"sc-2430c094-0"})(["display:flex;flex-direction:column;gap:0.5rem;padding-inline:1.5rem;padding-block:1rem;border-radius:0.5rem;text-decoration-line:none;background-color:",";color:",";font-size:",";@media (prefers-reduced-motion:no-preference){transition:background-color 250ms ease;}&:hover{background-color:",";}& > *{margin-block:0;}"],e=>e.theme.foundations.colors.negativeBg10,e=>e.theme.foundations.colors.negativeText,e=>e.theme.foundations.typography.fontSize.xs2,e=>e.theme.foundations.colors.negativeBg20),es=e=>{let{fundingLimit:t}=e,n=er.G.toCurrency(t);return((0,ea.Q)({eventName:ei.P.UI_ACCOUNT_OPENING_FUNDING_SELECTION_LIMIT_MESSAGE,clutchProduct:el.bD.ACCOUNT_OPENING}),n.success)?(0,r.jsxs)(ed,{href:eo.w.REVIEW,"data-testid":"funding-type-limit-exceeded-alert","aria-live":"assertive",children:[(0,r.jsxs)("span",{children:["The maximum amount for the selected funding method is ",(0,r.jsx)("strong",{children:n.data}),"."]}),(0,r.jsx)("span",{children:"Return to the revision screen to change your total initial funding."})]}):null};var ep=n(94389),ef=n(57253);let em=(0,Z.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("ACCOUNT_OPENING").product("ACCOUNT_APPLICATION").feature("FUNDING_TYPE_SELECTION").tags,ey=()=>{let{useTelemetryTags:e}=(0,en.Jr)();e(em);let{query:t}=(0,et.useRouter)(),n=null==t?void 0:t.applicationId,{accountReviewData:a,isLoadingAccountReviewData:l}=(0,J.F)({shouldRedirectWhenUnauthorized:!0,applicationId:n}),{fundingConfiguration:c,isLoadingFundingConfiguration:u}=(0,Q.N)(),{redirectToFundingPage:d}=(0,ee.I)();return!function(e){var t;let{partnerAlias:n}=(0,ef.W)();(0,s.useEffect)(()=>{var t,r;(null==e||null==(t=e.mainApplicant)?void 0:t.isMember)===!0?ep.g.trackEvent(ei.P.UI_ACCOUNT_OPENING_FUNDING_SELECTION_EXISTING_MEMBER,{type:"page_view",status:"started",partnerAlias:n,productType:el.bD.ACCOUNT_OPENING}):(null==e||null==(r=e.mainApplicant)?void 0:r.isMember)===!1&&ep.g.trackEvent(ei.P.UI_ACCOUNT_OPENING_FUNDING_SELECTION_NEW_MEMBER,{type:"page_view",status:"started",partnerAlias:n,productType:el.bD.ACCOUNT_OPENING})},[null==e||null==(t=e.mainApplicant)?void 0:t.isMember])}(a),(0,r.jsxs)(X.z,{withHeader:!0,message:"Fund your account",buttonProps:{form:B,type:"submit"},children:[(0,r.jsx)(K,{}),(0,r.jsx)(H,{redirectToFundingPage:d,isLoading:l||u,funding:null==c?void 0:c.funding,LogoComponent:e=>{var{alt:t,logoSrc:n}=e,a=(0,o._)(e,["alt","logoSrc"]);return(0,r.jsx)(Y.N3,(0,i._)({alt:t,src:n},a))},FundingTypeLimitExceededAlert:es,totalInitialFunding:null==a?void 0:a.totalInitialFunding})]})};var eg=n(50140),eh=n.n(eg),ev=!0;function eN(){let{text:e}=(0,ef.W)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eh(),{children:(0,r.jsxs)("title",{children:["Set up your initial deposit - ",e.PARTNER_LONG_NAME]})}),(0,r.jsx)(ey,{})]})}},62509:(e,t,n)=>{"use strict";
1Object.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=l(c(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=l(c(e));return void 0===t?void 0:new i(t.mul(100))}static 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))},l=e=>{try{return new r.Dec(e)}catch(e){return}},c=e=>(null!=e?e:"".concat(e)).toString(10)},86069:(e,t,n)=>{"use strict";n.d(t,{g:()=>h,F:()=>N});var r=n(86917),i=n(97722),o=n(92350),a=n(31901),l=n(42884),c=n(44007),u=n(27194),d=n(965),s=n(71599),p=n(28570),f=n(25563),m=n(29974),y=n(87520),g=n(11626);let h={queryKey:e=>{let{applicationId:t}=e;return[u.oR.ACCOUNT_REVIEW,t]},queryFn:async e=>u.MP.configs.accountReview(e)},v=void 0,N=e=>{let{shouldRedirectWhenUnauthorized:t=!0,shouldRedirectOnSucess:n=!0,applicationId:u,enabled:N=!0}=e,b=(0,c.useRouter)(),_=(0,l.GI)(),{isToggleEnabled:I}=(0,l.dG)(),{accessToken:A}=(0,m.u)(),E={token:A,applicationId:u},{isLoading:S,error:D,data:w,refetch:C}=t?(0,y.U)({queryKey:h.queryKey({applicationId:u}),queryFn:async()=>h.queryFn(E),queryOptions:{enabled:!!u&&N}}):(0,a.I)(h.queryKey({applicationId:u}),async()=>h.queryFn(E),{refetchOnWindowFocus:!1,enabled:!!u&&N,retry:(e,t)=>!(0,g.P)(t)}),O=!!w&&(0,o._b)({isReEvaluateEnabled:!!I,applicationType:w.type,applicationStatus:w.applicationStatus,applicationFraudStatus:w.fraudCheckStatus,fraudEngineApplicationId:v});if(!S&&!D&&w&&n&&w.applicationStatus!==d.rA.INITIATED&&!O){let e=(0,f.X6)(b);return w.applicationStatus===d.rA.FRAUD_VERIFICATION?b.replace(_?(0,f.pv)(s.w.FRAUD_CHECK,e):s.w.FRAUD_CHECK):b.replace((0,f.pv)(s.w.THANK_YOU,e)),{isLoadingAccountReviewData:!0}}return{isLoadingAccountReviewData:S,accountReviewError:D,accountReviewData:((e,t,n)=>{var o,a;if(e||t)return null;let l=null==n||null==(o=n.accounts)?void 0:o.map(e=>{var t;return null!=(t=e.fundingAmount)?t:0});return(0,i._)((0,r._)({},n),{totalInitialFunding:(0,p.u)(l),accounts:null==(a=n.accounts)?void 0:a.map(e=>(0,i._)((0,r._)({},e),{bundledMainAccountNamesFormatted:(e=>{let t=null==e?void 0:e.length;if(0===t)return null;if(1===t)return e[0];if(2===length)return"".concat(e[0]," and ").concat(e[1]);let n=e.slice(0,-1).join(", "),r=e[length-1];return"".concat(n," and ").concat(r)})((e=>{var t;return Array.from(new Set(null==(t=e.bundledMainAccounts)?void 0:t.map(e=>{var t;return null==(t=e.accountDetails)?void 0:t.name})))})(e))}))})})(S,D,w),refetch:C}}},87520:(e,t,n)=>{"use strict";n.d(t,{U:()=>r.U});var r=n(56537)},92350:(e,t,n)=>{"use strict";n.d(t,{_b:()=>c,dA:()=>u});var r=n(10550),i=[r.xn.PERSONAL,r.xn.BUSINESS],o=function(e){var t=e.applicationType,n=e.applicationStatus;return i.includes(null!=t?t:"")&&n===r.ZU.FRAUD_VERIFICATION},a=function(e){var t=e.isReEvaluateEnabled,n=e.applicationType,i=e.applicationStatus,a=e.applicationFraudStatus;return t&&o({applicationType:n,applicationStatus:i})&&a===r.rA.AWAITING_RESUBMISSION},l=function(e){var t=e.fraudEngineApplicationId;return void 0!==t&&""!==t},c=function(e){return a(e)&&!l(e)},u=function(e){return a(e)&&l(e)}},92453:(e,t,n)=>{"use strict";
1Object.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)},95550:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var r={INTERNAL_ACCOUNT:"INTERNAL_ACCOUNT",ACH:"ACH",CREDIT_CARD:"CREDIT_CARD",CASH:"CASH",NO_FUNDING:"NO_FUNDING"}}},e=>{e.O(0,[3140,6617,1493,2900,2471,9046,5341,3877,98,6093,636,6593,8792],()=>e(e.s=37384)),_N_E=e.O()}]); 2//# sourceMappingURL=funding-type-2721555299ae1b3e.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.