1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5568],{3056:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-opening/funding-authorization",function(){return n(37260)}])},4366:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var i=n(53239),r=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,d="boolean"==typeof t?void 0:null!=(a=null==t?void 0:t.initializeWithValue)?a:void 0;o&&(d=!1);let[s,c]=(0,i.useState)(()=>d?u(e):l),u=e=>"undefined"!=typeof window?window.matchMedia(e).matches:l;function m(){c(u(e))}return(0,r.E)(()=>{let t=window.matchMedia(e);return m(),t.addListener?t.addListener(m):t.addEventListener("change",m),()=>{t.removeListener?t.removeListener(m):t.removeEventListener("change",m)}},[e]),s}},8256:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var i=n(80263),r=n(84474),o=n(54366),a=n(71599),l=n(51656),d=n(82198),s=n(44007),c=n(53239);let u=e=>{var t;let{children:n}=e,u=(0,s.useRouter)(),m=(0,c.useRef)(!1),h=null==(t=u.query)?void 0:t.applicationId,f=(()=>{try{var e;return null==(e=(0,d.RB)())?void 0:e.id}catch(e){(0,o.Qw)(e instanceof Error?e:Error("Failed to read applicationId from session storage"),{context:"ApplicationIdPresentGuard.readSessionStorageApplicationId"});return}})();h&&h!==f&&((0,d.Py)(),(0,d.I6)({id:h,source:l.r.CUSTOMER_PORTAL}));let p=h||f,y=(0,c.useCallback)(async()=>u.replace(a.w.HOME),[u]);return(0,c.useEffect)(()=>{m.current||(m.current=!0,(0,o.ZI)("ApplicationIdPresentGuard: resolved application id",{hasQueryParamApplicationId:!!h,hasSessionStorageApplicationId:!!f,pathname:u.pathname,resolved:!!p}))},[p,h,f,u.pathname]),(0,c.useEffect)(()=>{p||y()},[p,y]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.j,{condition:!!p,children:n})})}},20174:(e,t,n)=>{"use strict";n.d(t,{t:()=>h});var i=n(53239),r=n(33747),o=n(47238),a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let h=(0,i.forwardRef)((e,t)=>i.createElement(r.A,l(((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&m(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&m(e,n,t[n]);return e})({ref:t},e),d({weights:o.A}))));h.displayName="House"},23562:(e,t,n)=>{"use strict";function i(e,t){return e?{success:!1,error:e}:{success:!0,data:t}}n.d(t,{l:()=>i})},37260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>eo,default:()=>ea});var i=n(80263),r=n(8256),o=n(64115),a=n(43348),l=n(25437),d=n(54366),s=n(42884),c=n(35613),u=n(70098),m=n(73060),h=n(33362),f=n(44007),p=n(53239),y=n(57595),g=n(57253),A=n(35083),_=n(71599),E=n(65419),b=n(31901),v=n(29974),O=n(27194);let x={queryKey:e=>{let{applicationId:t}=e;return[O.oR.FUNDING_AUTHORIZATION_INFO,t]},queryFn:async e=>{let{token:t,partnerId:n,applicationId:i}=e;return O.MP.configs.getFundingAuthorizationInfo({token:t,partnerId:n,applicationId:i})}};var N=n(12069),I=n(80251);let w={mutationKey:e=>[O.oR.FUNDING_AUTHORIZATION_CONSENT,e],mutationFn:async e=>O.MP.configs.saveFundingAuthorizationConsent(e)};var C=n(25563);let j={TITLE_HEADER:"Funding",TITLE_PAGE:"Funding Authorization",BANK_ACCOUNT_NAME:"Bank Account",BANK_ACCOUNT_DESCRIPTION:"Login to your bank account to make an initial deposit",AMOUNT_LABEL:"Amount",ACCOUNT_NUMBER_LABEL:"Account number",ACCOUNT_OWNER_LABEL:"Account owner",DATE_OF_AUTHORIZATION_LABEL:"Date of authorization",PROCEED_BUTTON_TEXT:"AGREE AND PROCEED",START_NEW_APPLICATION_TEXT:"START A NEW APPLICATION",LOAD_FUNDING_ERROR_TITLE:"We couldn't load your funding details.",LOAD_FUNDING_ERROR_DESCRIPTION_LINE_1:"We're unable to retrieve the information needed to show your funding authorization details right now. No funds have been transferred. Please try again.",LOAD_FUNDING_ERROR_DESCRIPTION_LINE_2:"Please try again",TRY_AGAIN_BUTTON:"TRY AGAIN",CONSENT_ERROR_MODAL_TITLE:"We couldn't complete your authorization.",CONSENT_ERROR_MODAL_DESCRIPTION_LINE_1:"Your funding authorization wasn't saved successfully. No funds have been transferred.",CONSENT_ERROR_MODAL_DESCRIPTION_LINE_2:"Please try again to continue."};var T=n(8368);
1let R=T.Ay.div.withConfig({displayName:"FundingAuthorizationDataError.styled__FundingDetailsErrorWrapper",componentId:"sc-9a02f13c-0"})(["display:flex;flex-direction:column;align-items:left;flex:1;min-height:0;"]),D=T.Ay.div.withConfig({displayName:"FundingAuthorizationDataError.styled__FundingDetailsErrorButtonWrapper",componentId:"sc-9a02f13c-1"})(["margin-top:auto;"]),F=T.Ay.img.withConfig({displayName:"FundingAuthorizationDataError.styled__FundingDetailsErrorImage",componentId:"sc-9a02f13c-2"})(["max-width:240px;width:100%;display:block;margin-left:auto;margin-right:auto;"]),P=T.Ay.h2.withConfig({displayName:"FundingAuthorizationDataError.styled__FundingDetailsErrorTitle",componentId:"sc-9a02f13c-3"})(["font-size:",";font-weight:500;color:",";margin:2rem 0 0.5rem;"],e=>e.theme.foundations.typography.fontSize.md,e=>e.theme.foundations.colors.tertiary),L=T.Ay.p.withConfig({displayName:"FundingAuthorizationDataError.styled__FundingDetailsErrorDescription",componentId:"sc-9a02f13c-4"})(["margin:0;font-size:",";line-height:1.5;color:",";margin-bottom:0.5rem;"],e=>e.theme.foundations.typography.fontSize.xs2,e=>e.theme.foundations.colors.black70);function M(e){let{onTryAgain:t}=e;return(0,i.jsxs)(R,{children:[(0,i.jsx)(F,{src:"/assets/images/generic-error.svg",alt:"",role:"img","aria-hidden":!0}),(0,i.jsx)(P,{children:j.LOAD_FUNDING_ERROR_TITLE}),(0,i.jsx)(L,{children:j.LOAD_FUNDING_ERROR_DESCRIPTION_LINE_1}),(0,i.jsx)(L,{children:j.LOAD_FUNDING_ERROR_DESCRIPTION_LINE_2}),(0,i.jsx)(D,{children:(0,i.jsx)(l.$,{variant:"primary",fullWidth:!0,onClick:t,children:j.TRY_AGAIN_BUTTON})})]})}var S=n(84176);let z=T.Ay.div.withConfig({displayName:"FundingAuthorizationErrorModal.styled__AuthorizationErrorModalContent",componentId:"sc-5590a57a-0"})(["display:flex;flex-direction:column;padding:0 0 1rem;flex:1;min-height:0;"]),k=T.Ay.img.withConfig({displayName:"FundingAuthorizationErrorModal.styled__AuthorizationErrorModalImage",componentId:"sc-5590a57a-1"})(["display:block;margin-left:auto;margin-right:auto;max-width:280px;width:100%;"]),B=T.Ay.h2.withConfig({displayName:"FundingAuthorizationErrorModal.styled__AuthorizationErrorModalTitle",componentId:"sc-5590a57a-2"})(["font-size:",";font-weight:700;color:",";margin:2rem 0 0.5rem;"],e=>e.theme.foundations.typography.fontSize.md,e=>e.theme.foundations.colors.tertiary),U=T.Ay.p.withConfig({displayName:"FundingAuthorizationErrorModal.styled__AuthorizationErrorModalDescription",componentId:"sc-5590a57a-3"})(["margin:0;font-size:",";line-height:1.5;color:",";margin-bottom:0.5rem;"],e=>e.theme.foundations.typography.fontSize.xs2,e=>e.theme.foundations.colors.black70);function H(e){let{isOpen:t,onClose:n,onTryAgain:r,isLoading:o=!1}=e;return(0,i.jsx)(S.a,{shouldUseDesignSystemFont:!0,open:t,onClose:n,withCloseButton:!0,shouldCloseOnOutsideClick:!1,buttons:[{text:j.TRY_AGAIN_BUTTON,onClick:r,disabled:o}],children:(0,i.jsxs)(z,{children:[(0,i.jsx)(k,{src:"/assets/images/generic-error.svg",alt:"",role:"img","aria-hidden":!0}),(0,i.jsx)(B,{children:j.CONSENT_ERROR_MODAL_TITLE}),(0,i.jsx)(U,{children:j.CONSENT_ERROR_MODAL_DESCRIPTION_LINE_1}),(0,i.jsx)(U,{children:j.CONSENT_ERROR_MODAL_DESCRIPTION_LINE_2})]})})}let Z=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__ContentBlock",componentId:"sc-58391cdf-0"})(["display:flex;flex-direction:column;flex:1;min-height:0;gap:2rem;width:100%;border-radius:8px;box-sizing:border-box;background-color:#fff;"]),V=T.Ay.h1.withConfig({displayName:"FundingAuthorization.styled__ContentBlockTitle",componentId:"sc-58391cdf-1"})(["margin:0;font-size:1.5rem;font-weight:600;color:",";"],e=>e.theme.foundations.colors.tertiary);T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__ModalContent",componentId:"sc-58391cdf-2"})(["display:flex;flex-direction:column;gap:24px;"]);let W=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__BankAccountSection",componentId:"sc-58391cdf-3"})(["display:flex;align-items:flex-start;gap:16px;"]),G=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__BankIconWrapper",componentId:"sc-58391cdf-4"})(["display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;
1"]),K=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__BankAccountInfo",componentId:"sc-58391cdf-5"})(["display:flex;flex-direction:column;gap:4px;flex:1;"]),$=T.Ay.h3.withConfig({displayName:"FundingAuthorization.styled__BankAccountName",componentId:"sc-58391cdf-6"})(["font-size:1rem;font-weight:600;color:",";margin:0;"],e=>e.$primaryColor),Y=T.Ay.p.withConfig({displayName:"FundingAuthorization.styled__BankAccountDescription",componentId:"sc-58391cdf-7"})(["font-size:0.875rem;color:",";margin:0;"],e=>e.theme.foundations.colors.black70),X=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__FundingDetails",componentId:"sc-58391cdf-8"})(["display:flex;flex-direction:column;gap:12px;"]),q=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__DetailRow",componentId:"sc-58391cdf-9"})(["display:flex;justify-content:space-between;align-items:center;"]),Q=T.Ay.span.withConfig({displayName:"FundingAuthorization.styled__DetailLabel",componentId:"sc-58391cdf-10"})(["font-size:0.875rem;color:",";"],e=>e.theme.foundations.colors.black70),J=T.Ay.span.withConfig({displayName:"FundingAuthorization.styled__DetailValue",componentId:"sc-58391cdf-11"})(["font-size:0.875rem;font-weight:600;color:",";"],e=>e.theme.foundations.colors.tertiary),ee=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__AuthorizationBox",componentId:"sc-58391cdf-12"})(["background-color:",";border-radius:8px;padding:16px;p{margin:0;font-size:0.75rem;color:",";line-height:1.5;white-space:pre-line;}"],e=>e.theme.foundations.colors.grayCard,e=>e.theme.foundations.colors.tertiary),et=T.Ay.div.withConfig({displayName:"FundingAuthorization.styled__ButtonGroup",componentId:"sc-58391cdf-13"})(["display:flex;flex-direction:column;align-items:center;align-self:center;width:100%;gap:10px;margin-top:auto;"]);function en(){let e=(0,f.useRouter)(),{theme:t}=(0,g.W)(),{isToggleEnabled:n}=(0,s.xw)(),r=(0,C.X6)(e),{fraudCheckRoute:O}=(0,N.r)({isBusinessApplication:!1}),{sendButtonClickEvent:T}=(0,h.b)(),{fundingAuthorizationInfoData:R,isLoading:D,error:F,refetch:P}=(e=>{let{applicationId:t,enabled:n=!0}=e,{accessToken:i}=(0,v.u)(),{partnerId:r,isLoading:o}=(0,g.W)({enabled:n&&!!t}),a=n&&!!t&&!!r,{isLoading:l,error:d,data:s,refetch:c}=(0,b.I)({queryKey:x.queryKey({applicationId:t}),queryFn:async()=>x.queryFn({token:i,partnerId:r,applicationId:t}),refetchOnWindowFocus:!1,enabled:a,onError:e=>{E.datadogRum.addError(e,{source:"useFundingAuthorizationInfo",metadata:{applicationId:t}})}});return{isLoading:!!a&&(l||o),error:d,refetch:c,fundingAuthorizationInfoData:s}})({applicationId:r}),{saveFundingAuthorizationConsent:L,isLoading:S,error:z,reset:k}=(e=>{let{applicationId:t}=e,{partnerId:n,isLoading:i}=(0,g.W)(),{accessToken:r}=(0,v.u)(),{mutateAsync:o,isLoading:a,error:l,reset:d}=(0,I.n)({mutationKey:w.mutationKey(t),mutationFn:async()=>w.mutationFn({applicationId:t,partnerId:n,token:r}),onError:e=>{E.datadogRum.addError(e,{source:"useSaveFundingAuthorizationConsent",metadata:{applicationId:t}})}});return{saveFundingAuthorizationConsent:o,isLoading:a||i,error:l,reset:d}})({applicationId:r}),B=(0,p.useCallback)(()=>{P()},[P]),U=(null==R?void 0:R.amount)?(0,A.YD)(Number(R.amount)):"",en=function(e){let t=null!=e?e:new Date().toISOString(),n=y._.formatToUSDatePattern(t);return n.success?n.data:t}(null==R?void 0:R.dateOfAuthorization),ei=null==R?void 0:R.disclaimer,er=(0,p.useCallback)(async()=>{(0,d.ZI)("FundingAuthorization: Agree and Proceed clicked"),T({eventName:c.P.ACH_AUTHORIZATION_AGREE_AND_PROCEED_BUTTON_CLICKED});try{await L(),e.push(O)}catch(e){}},[L,O,e,T]),eo=(0,p.useCallback)(async()=>{try{await L(),e.push(O)}catch(e){}},[L,O,e]),ea=(0,p.useCallback)(()=>{k()},[k]),el=(0,p.useCallback)(()=>{(0,d.ZI)("FundingAuthorization: Start a new application clicked"),T({eventName:c.P.ACH_AUTHORIZATION_START_NEW_APPLICATION_BUTTON_CLICKED}),e.replace(_.w.HOME)},[e,T]);return(0,p.useEffect)(()=>{if(!n)return e.beforePopState(()=>(el(),!1)),()=>{e.beforePopState(()=>!0)}},[e,el,n]),(0,i.jsxs)(m.E,{title:j.TITLE_HEADER,children:[(0,i.jsx)(Z,{children:D?(0,i.jsx)(o.y,{size:o.H.MEDIUM}):F?(0,i.jsx)(M,{onTryAgain:B}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{children:j.TITLE_PAGE}),(0,i.jsxs)(W,{children:[(0,i.jsx)(G,{children:(0,i.jsx)(u.gw,{label:"Bank Account"})}),(0,i.jsxs)(K,{children:[(0,i.jsx)($,{$primaryColor:t.colors.primary,children:j.BANK_ACCOUNT_NAME}),(0,i.jsx)(Y,{children:j.BANK_ACCOUNT_DESCRIPTION})]})]}),(0,i.jsxs)(X,{children:[(0,i.jsxs)(q,{children:[(0,i.jsx)(Q,{children:j.AMOUNT_LABEL}),(0,i.jsx)(J,{children:U})]}),(0,i.jsxs)(q,{children:[(0,i.jsx)(Q,{children:j.ACCOUNT_NUMBER_LABEL}),(0,i.jsx)(J,{children:null==R?void 0:R.accountNumber})]}),(0,i.jsxs)(q,{children:[(0,i.jsx)(Q,{children:j.ACCOUNT_OWNER_LABEL}),(0,i.jsx)(J,{children:null==R?void 0:R.accountOwner})]}),(0,i.jsxs)(q,{children:[(0,i.jsx)(Q,{children:j.DATE_OF_AUTHORIZATION_LABEL}),(0,i.jsx)(J,{children:en})]})]}),(0,i.jsx)(ee,{children:(0,i.jsx)(a.E,{$variant:"primary",children:ei})}),(0,i.jsxs)(et,{children:[(0,i.jsx)(l.$,{variant:"primary",fullWidth:!0,onClick:er,disabled:S,loading:S,children:j.PROCEED_BUTTON_TEXT}),(0,i.jsx)(l.$,{variant:"text",fullWidth:!0,onClick:el,children:j.START_NEW_APPLICATION_TEXT})]})]})}),(0,i.jsx)(H,{isOpen:!!z,onClose:ea,onTryAgain:eo,isLoading:S})]})}var ei=n(50140),er=n.n(ei),eo=!0;function ea(){let{text:e}=(0,g.W)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(er(),{children:(0,i.jsxs)("title",{children:["Funding Authorization - ",null==e?void 0:e.PARTNER_LONG_NAME]})}),(0,i.jsx)(en,{})]})}
1ea.getLayout=function(e){return(0,i.jsx)(r.K,{children:e})}},37552:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(53239);let r=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),i.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]])},40308:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var i=n(53239),r=function(){(0,i.useEffect)(function(){var e=new Set,t=function(t){var n=t.target,i=t.relatedTarget;if(i instanceof HTMLElement&&n instanceof Node){var r=i.closest('[role="dialog"]');if(r&&r.contains(n)){var o=requestAnimationFrame(function(){e.delete(o),r.isConnected&&i.isConnected&&document.activeElement===r&&i.focus()});e.add(o)}}};return document.addEventListener("focusout",t,!0),function(){document.removeEventListener("focusout",t,!0),e.forEach(cancelAnimationFrame)}},[])}},47238:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(53239);let r=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),i.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]])},57595:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var i=n(82617),r=n(25577),o=n(78402),a=n(23562);let l=/^(\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$)/,d=/\d{4}-\d{2}-\d{2}/,s={invalidDate:"Invalid ISO 8601 date"},c=e=>{let t=e.replace("Z","");return(0,o.A)(t)},u={isValid:e=>!e||d.test(e)&&(0,r.A)(new Date(e)),format:e=>{if(!l.test(e))return(0,a.l)(s.invalidDate,null);
1let t=c(e),n=(0,i.A)(t,"MM/dd/yyyy hh:mm:ss aa");return(0,a.l)(null,n)},formatToUSDatePattern:e=>{if(!l.test(e))return(0,a.l)(s.invalidDate,null);let t=c(e),n=(0,i.A)(t,"MM/dd/yyyy");return(0,a.l)(null,n)}}},82184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(53239),r=n(33747),o=n(37552),a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let h=(0,i.forwardRef)((e,t)=>i.createElement(r.A,l(((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&m(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&m(e,n,t[n]);return e})({ref:t},e),d({weights:o.A}))));h.displayName="CaretLeft"},84176:(e,t,n)=>{"use strict";n.d(t,{a:()=>z});var i=n(84297),r=n(95952),o=n(22737),a=n(40308),l=n(17378),d=n(49454),s=n(53239),c=n(33332),u=n(25437),m=n(72828),h=n(34367),f=n(8368),p=f.Ay.div.withConfig({displayName:"ModalBottomNavstyled__ModalBottomNav",componentId:"sc-1npe5e0-0"})(["display:flex;padding:1.5rem;gap:0.75rem;"]),y=f.Ay.div.withConfig({displayName:"ModalBottomNavstyled__ModalDividerWrapper",componentId:"sc-1npe5e0-1"})(["margin-top:0.65rem;"]),g=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 _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){var i,r,o;i=e,r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=A(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=function(e){var t=e.slice(0,3);return t.map(function(e,n){var i;switch(t.length){case 1:default:i=m.h.PRIMARY;break;case 2:i=0===n?m.h.TEXT:m.h.PRIMARY;break;case 3:i=0===n?m.h.TEXT:1===n?m.h.SECONDARY:m.h.PRIMARY}return E(E({},e),{},{variant:i})})},v=function(e){var t=e.buttons,n=e.loading,i=e.isSubmit,r=b(t);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y,{children:(0,g.jsx)(h.c,{})}),(0,g.jsx)(p,{children:r.map(function(e){return!i&&"onClick"in e?(0,g.jsx)(u.$,{"data-testid":"modalButton-".concat(e.variant),fullWidth:!0,disabled:e.disabled,loading:n,onClick:e.onClick,"aria-label":e.text,variant:e.variant,children:e.text},e.text):i&&"formId"in e?(0,g.jsx)(u.$,{"data-testid":"modalButton-".concat(e.variant),fullWidth:!0,disabled:n||e.disabled,loading:n,type:"submit",form:e.formId,"aria-label":e.text,variant:e.variant,children:e.text},e.text):null})})]})},O=(0,f.i7)(["from{opacity:0;}to{opacity:1;}"]),x=(0,f.i7)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),N=(0,f.i7)(["from{opacity:0;transform:translate(-50%,-48%) scale(0.96);}to{opacity:1;transform:translate(-50%,-50%) scale(1);}"]),I=(0,f.Ay)(d.hJ).withConfig({displayName:"Modalstyled__ModalOverlay",componentId:"sc-b7pnlx-0"})(["position:fixed;inset:0;background-color:",";animation:"," 150ms cubic-bezier(0.16,1,0.3,1);z-index:",";"],function(e){return e.theme.token.color.surface.overlay},O,function(e){return e.theme.token.zIndex[200]}),w=(0,f.Ay)(d.UC).withConfig({displayName:"Modalstyled__ModalContent",componentId:"sc-b7pnlx-1"})([""," position:fixed;left:0;bottom:0;top:auto;width:100%;max-height:85vh;z-index:",";text-align:center;animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;background-color:",";border-radius:"," "," 0 0;@media (min-width:48rem){min-width:360px;max-width:900px;max-height:100vh;width:auto;top:50%;left:50%;bottom:auto;transform:translate(-50%,-50%);animation:"," 150ms cubic-bezier(0.16,1,0.3,1);border-radius:",";}"],function(e){var t=e.$shouldUseDesignSystemFont,n=e.theme;return t?"font-family: ".concat(n.token.typography.fontFamily.base,";"):""},function(e){return e.theme.token.zIndex[500]},x,function(e){return e.theme.token.color.surface.neutral},function(e){return e.theme.token.radius["03"]},function(e){return e.theme.token.radius["03"]},N,function(e){return e.theme.token.radius["03"]}),C=f.Ay.div.withConfig({displayName:"Modalstyled__ModalInnerContainer",componentId:"sc-b7pnlx-2"})(["padding:0.75rem 1.5rem 1.5rem;"]),j=f.Ay.div.withConfig({displayName:"Modalstyled__ModalHeader",componentId:"sc-b7pnlx-3"})(["display:flex;justify-content:",";align-items:flex-start;padding:0.5rem 0;width:100%;background:",";border-radius:inherit;margin-bottom:1rem;align-items:center;"],function(e){return e.$withTitle?"space-between":"flex-end"},function(e){return e.theme.token.color.surface.neutral}),T=f.Ay.div.withConfig({displayName:"Modalstyled__ModalBody",componentId:"sc-b7pnlx-4"})(["text-align:",";overflow-y:auto;max-height:calc(100vh - 20rem);padding:0.62rem;display:flex;flex-direction:column;"],function(e){return e.$alignItems}),R=f.Ay.div.withConfig({displayName:"Modalstyled__VisuallyHidden",componentId:"sc-b7pnlx-5"})(["clip:rect(0 0 0 0);clip-path:inset(50%);
1height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;"]),D=f.Ay.div.withConfig({displayName:"Modalstyled__ModalTitleWrapper",componentId:"sc-b7pnlx-6"})(["h1,h2,h3,h4,h5,h6{margin:0;}"]),F=n(24825);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var L=["withCloseButton","shouldCloseOnOutsideClick","children","onClose","title","loading","buttons","isFormModal","alignItems","shouldUseDesignSystemFont","aria-label"];function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){var i,r,o;i=e,r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=P(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z=s.forwardRef(function(e,t){var n=e.withCloseButton,u=void 0===n||n,m=e.shouldCloseOnOutsideClick,h=e.children,f=e.onClose,p=e.title,y=e.loading,A=e.buttons,_=e.isFormModal,E=e.alignItems,b=e.shouldUseDesignSystemFont,O=e["aria-label"],x=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,L);(0,a.x)();var N=(0,s.useRef)(null);return(0,g.jsx)(d.bL,S(S({},x),{},{modal:!0,children:(0,g.jsxs)(d.ZL,{children:[(0,g.jsx)(I,{"data-testid":"modal-overlay"}),(0,g.jsxs)(w,{ref:t,$shouldUseDesignSystemFont:void 0!==b&&b,"aria-label":p?void 0:O,"aria-describedby":void 0,onPointerDownOutside:void 0===m||m?f:void 0,onEscapeKeyDown:f,onOpenAutoFocus:function(){N.current="undefined"!=typeof document?document.activeElement:null},onCloseAutoFocus:function(e){var t=N.current;null!=t&&t.isConnected&&(e.preventDefault(),t.focus())},children:[(0,g.jsx)(o.j,{condition:!p&&!O,children:(0,g.jsx)(d.hE,{asChild:!0,children:(0,g.jsx)(R,{children:"Dialog"})})}),(0,g.jsxs)(C,{children:[(0,g.jsx)(o.j,{condition:!!p||u,children:(0,g.jsxs)(j,{$withTitle:!!p,children:[(0,g.jsx)(o.j,{condition:!!p,children:(0,g.jsx)(d.hE,{asChild:!0,children:(0,g.jsx)(D,{children:(0,g.jsx)(F.h,{as:"h2",variant:"secondary",children:p})})})}),(0,g.jsx)(o.j,{condition:u,children:(0,g.jsx)(d.bm,{asChild:!0,children:(0,g.jsxs)(c.K,{onClick:f,children:[(0,g.jsx)(i.I,{size:r.y.LARGE,children:(0,g.jsx)(l.X,{"data-testid":"close-icon"})}),(0,g.jsx)(R,{children:"Close dialog"})]})})})]})}),(0,g.jsx)(T,{$alignItems:void 0===E?"left":E,children:h})]}),(0,g.jsx)(v,{buttons:A,loading:y,isSubmit:void 0!==_&&_})]})]})}))});z.displayName="Modal"}},e=>{e.O(0,[3140,2900,2617,2471,9046,4213,3877,5556,98,636,6593,8792],()=>e(e.s=3056)),_N_E=e.O()}]); 2//# sourceMappingURL=funding-authorization-b4506b39a151b0c4.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.