PageSourceSearch

https://applynow.avadiancu.com/_next/static/chunks/5755.7d5cb3e4487659f4.js

js avadiancu.com collected 2026-09-28 06:44:57 UTC 67,077 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5755],{317:(e,t,n)=>{"use strict";n.d(t,{v:()=>o,w:()=>i});var r=n(8368);let o=r.Ay.div.withConfig({displayName:"Disclaimer.styled__DisclaimerStyle",componentId:"sc-c771f199-0"})(["font-size:",";font-family:",";line-height:1.5;color:",";a{color:",";text-decoration:underline;font-weight:",";cursor:pointer;}"," ",""],e=>e.$shouldUseNewUi?e.theme.foundations.typography.fontSize.xs:e.theme.foundations.typography.fontSize.sm,e=>e.$shouldUseDesignSystemFont?e.theme.foundations.typography.fontFamily.sansSerifSecondary:"inherit",e=>e.$textDark?e.$shouldUseNewUi?"#585858":e.theme.foundations.colors.black70:"#FFF",e=>e.$textDark?e.theme.colors.primary:"#FFF",e=>e.theme.foundations.typography.fontWeight.bold,e=>e.$showBackdrop?(0,r.AH)(["background:rgba(0,0,0,0.3);backdrop-filter:blur(10px);border-radius:8px;padding:24px;"]):"",e=>e.$alignCenter?(0,r.AH)(["text-align:center;"]):""),i=r.Ay.div.withConfig({displayName:"Disclaimer.styled__DisclaimerGetStartedWrapper",componentId:"sc-c771f199-1"})(["margin-top:1rem;margin-bottom:0.5rem;@media (min-width:800px){font-size:0.875rem;}"])},12528:(e,t,n)=>{"use strict";n.d(t,{gu:()=>h,Tu:()=>p,qX:()=>m});var r=n(80263),o=n(37473),i=n(91522),a=n.n(i),l=n(8368),s=n(57253);let c=(0,l.Ay)(a()).withConfig({displayName:"Logo__LogoLink",componentId:"sc-e3b5352d-0"})(["display:inline-flex;align-items:center;min-width:2.75rem;min-height:2.75rem;"]),d={withclutch:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,r.jsxs)("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",children:[(0,r.jsx)("circle",{cx:"25",cy:"25",r:"25",fill:e?"white":"black"}),(0,r.jsx)("circle",{cx:"25",cy:"25",r:"12",fill:e?"black":"white"}),(0,r.jsx)("circle",{cx:"25",cy:"25",r:"6",fill:e?"white":"black"}),(0,r.jsx)("rect",{x:"29",y:"21",width:"8",height:"8",fill:e?"white":"black"})]})}},u=(e,t)=>{var n;return null==(n=d[e])?void 0:n.call(d,t)},p=e=>{let{redirectToMainPage:t,useColoredLogo:n}=e,{theme:i,shortName:a}
1=(0,s.W)(),l=n?i.logo.srcUpToBackground:i.logo.srcToBrandedHeader;return t?(0,r.jsx)(c,{href:"/main",children:(0,r.jsx)(o._,{imageFile:null!=l?l:i.logo.src,alt:"".concat(a," logo")})}):(0,r.jsx)("div",{children:(0,r.jsx)(o._,{imageFile:null!=l?l:i.logo.src,alt:"".concat(a," logo")})})},m=()=>{var e;let{theme:t,partnerAlias:n}=(0,s.W)(),i=null!=(e=t.logo.srcUpToBackground)?e:t.logo.src;return u(n,!0)||(0,r.jsx)("div",{style:{width:t.logo.width,height:t.logo.height},children:(0,r.jsx)(o._,{imageFile:i,width:t.logo.width,height:t.logo.height,alt:"logo"})})},h=()=>{let{theme:e,partnerAlias:t}=(0,s.W)();return u(t,!1)||(0,r.jsx)("div",{style:{width:e.logo.width,height:e.logo.height},children:(0,r.jsx)(o._,{imageFile:e.logo.src,width:e.logo.width,height:e.logo.height,alt:"logo"})})}},15332:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(34067);let o=()=>{let e=(0,r.g)();return!!(null==e?void 0:e.enabled)}},16568:(e,t,n)=>{"use strict";n.d(t,{m:()=>h});var r=n(22737),o=n(87086),i=n(53239),a=n(8368),l=(0,a.Ay)(o.UC).withConfig({displayName:"Tooltipstyled__TooltipContent",componentId:"sc-ymbg0m-0"})(["border-radius:4px;padding:8px 12px;font-size:",";font-weight:",";line-height:1;background-color:",";color:",";z-index:",";"," & .tooltip-arrow path{fill:",";}& > span:has(svg.tooltip-arrow){display:inline-flex;}"],function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.typography.fontWeight[500]},function(e){return e.theme.token.color.gray[800]},function(e){return e.theme.token.color.gray[100]},function(e){return e.theme.token.zIndex.tooltip},function(e){var t=e.$maxWidth;return t&&"max-width: ".concat(t,"px;")},function(e){return e.theme.token.color.gray[800]}),s=(0,a.Ay)(o.l9).withConfig({displayName:"Tooltipstyled__TooltipTrigger",componentId:"sc-ymbg0m-1"})(["",""],function(e){return e.$disablebuttonstyle?"all: unset; box-sizing: border-box; border: none;":""}),c=n(80263);function d(e){return(d="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 u(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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 h=function(e){var t,n=e.children,a=e.message,d=e.openOnClick,u=void 0!==d&&d,h=e.timeToClose,y=void 0===h?1e3:h,g=e.delayDuration,v=e.position,x=void 0===v?{side:"top",align:"center"}:v,b=e.disableButtonStyle,C=e.disabled,w=e.asChild,j=e.maxWidth,k=e.dataDogRumPrivacy,A=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=A[0],S=A[1],I=(0,i.useRef)(null);(0,i.useEffect)(function(){return function(){I.current&&clearTimeout(I.current)}},[y]);var N=(0,i.useCallback)(function(e){S(e),I.current&&(clearTimeout(I.current),I.current=null),e&&(I.current=setTimeout(function(){S(!1)},y))},[y]),O=(0,i.useCallback)(function(){N(!_)},[N,_]);return void 0!==C&&C?(0,c.jsx)(c.Fragment,{children:n}):(0,c.jsx)(o.Kq,{delayDuration:void 0===g?700:g,children:(0,c.jsxs)(o.bL,{open:u?_:void 0,onOpenChange:u?N:void 0,children:[(0,c.jsx)(s,p(p({asChild:void 0===w||w,$disablebuttonstyle:void 0===b||b},u?{onClick:O}:{}),{},{children:n})),(0,c.jsx)(r.j,{condition:!!a,children:(0,c.jsx)(o.ZL,{children:(0,c.jsxs)(l,{side:x.side,align:x.align,"data-testid":"tooltip","data-dd-privacy":k,sideOffset:3,$maxWidth:j,children:[(0,c.jsx)(o.i3,{asChild:!0,children:(0,c.jsx)(f,{})}),a]})})})]})})},f=function(e){return(0,c.jsx)("svg",p(p({},e),{},{width:"12",height:"6",viewBox:"0 0 12 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tooltip-arrow",children:(0,c.jsx)("path",{d:"M0 0L4.91 4.91C5.5 5.51 6.48 5.51 7.07 4.91L12 0L0 0Z",fill:"currentColor"})}))}},24196:()=>{},24939:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(62257),o=n(57253);let i=e=>{let t=(0,r.wQ)(),{partnerAlias:n}=(0,o.W)();return e?"".concat(t.assets.url,"/").concat(n,"/").concat(e):""}},30243:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(e){return e.RUN_LFAO="RUN_LFAO",e.SKIP_LFAO="SKIP_LFAO",e}({})},31814:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(86917),o=n(97722),i=n(80263),a=n(45540),l=n(14070);let s=e=>(0,i.jsx)(l.I,(0,o._)((0,r._)({},e),{children:(0,i.jsx)(a.R,{})}))},34067:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(57253);let o=()=>{let e=(0,r.W)();return null==e?void 0:e.membershipConfig}},36648:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(86917),o=n(97722),i=n(80263),a=n(94506),l=n(14070);let s=e=>(0,i.jsx)(l.I,(0,o._)((0,r._)({},e),{children:(0,i.jsx)(a.J,{})}))},37473:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(80263),o=n(24939);let i=(0,n(53239).forwardRef)((e,t)=>{let{imageFile:n,className:i,width:a,maxWidth:l,height:s,maxHeight:c,alt:d,source:u}=e,p=(0,o.w)(n);return(0,r.jsx)("div",{className:i,style:{width:a,height:s,maxWidth:l,maxHeight:c},children:(0,r.jsx)("img",{ref:t,width:a,height:s,style:{width:a,height:s,maxWidth:l,maxHeight:c},src:u||p,alt:d})})})},40196:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var r=n(86917),o=n(97249),i=n(7711),a=n(57253);let l=e=>{let t=(0,a.W)(),{shouldRunFlow:n}=(0,o.YI)({enabled:!0}),{hasCoApplicantIdAndCoApplicantIsEnabledForProduct:l}=(0,i.I)();return s((0,r._)({partner:t,isCoApplicantEnabled:l(e.productType,e.loanType),shouldShowMembershipConsent:n},e))},s=e=>{var t;let{partner:n,loanType:r,isRefinance:o,isRefiAnyway:i,isCoApplicantEnabled:a,shouldShowMembershipConsent:l}=e,{loansConfig:s,text:c,features:d}=n,u=null==d?void 0:d.ENABLE_MEMBERSHIP_CONSENT,{HARD_PULL_CONSENT_NOTICE:p,CO_APPLICANT_HARD_PULL_CONSENT_NOTICE:m,MEMBERSHIP_CONSENT_NOTICE:h}=c,f=null==(t=s[r])?void 0:t.text,y=null==f?void 0:f[i?"TERMS_OF_SERVICE_FOR_REFI_ANYWAY":o?"TERMS_OF_SERVICE_FOR_REFI":"TERMS_OF_SERVICE_FOR_NEW_LOAN"],g=null==f?void 0:f[i?"CO_APPLICANT_TERMS_OF_SERVICE_FOR_REFI_ANYWAY":o?"CO_APPLICANT_TERMS_OF_SERVICE_FOR_REFI":"CO_APPLICANT_TERMS_OF_SERVICE_FOR_NEW_LOAN"],v=a?g||m||y||p:y||p,x=u&&h?"".concat(v,"<br><br>").concat(h):v;return l?x:v}},43348:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(8368),o=function(e,t,n){if(!n)return"cta"===t||"disclaimer"===t?e.token.typography.fontWeight["700"]:e.token.typography.fontWeight["400"];switch(n){case"bold":return e.token.typography.fontWeight["700"];case"medium":return e.token.typography.fontWeight["500"];default:return e.token.typography.fontWeight["400"]}},i=function(e,t){switch(t){case"cta":return e.token.typography.fontSize["00"];case"label":case"action":return e.token.typography.fontSize["01"];case"secondary":return e.token.typography.fontSize["02"];default:return e.token.typography.fontSize["03"]}},a=(0,r.AH)(["",""],function(e){var t=e.$color,n=e.theme;return(0,r.AH)(["color:",";"],t||n.token.color.text.primary)}),l=r.Ay.p.withConfig({displayName:"Textstyled__Text",componentId:"sc-hn4bbp-0"})([""," "," font-weight:",";font-size:",";",""],a,function(e){var t=e.$variant;return"action"===t||"cta"===t?"text-transform: uppercase;":""},function(e){return o(e.theme,e.$variant,e.$weight)},function(e){return i(e.theme,e.$variant)},function(e){return e.$shouldUseDesignSystemFont?(0,r.AH)(["font-family:",";"],function(e){return e.theme.token.typography.fontFamily.base}):""})},43894:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r=n(86917),o=n(97722),i=n(25722),a=n(80263),l=n(85993),s=n(317);let c=e=>{var{text:t,children:n,textDark:c=!0,showBackdrop:d,alignCenter:u,shouldUseDesignSystemFont:p=!1,shouldUseNewUi:m=!1}=e,h=(0,i._)(e,["text","children","textDark","showBackdrop","alignCenter","shouldUseDesignSystemFont","shouldUseNewUi"]);return n?(0,a.jsx)(s.v,(0,o._)((0,r._)({},h),{$textDark:c,$alignCenter:u,$showBackdrop:d,$shouldUseDesignSystemFont:p,$shouldUseNewUi:m,children:n})):(0,a.jsx)(s.v,(0,o._)((0,r._)({},h),{$alignCenter:u,$textDark:c,$showBackdrop:d,$shouldUseDesignSystemFont:p,$shouldUseNewUi:m,dangerouslySetInnerHTML:{__html:l.D.sanitize(t)}}))}},44901:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(59235),o=n(57253);let i=e=>{let{sync:t}=e,{features:n,isLoading:i}=(0,o.W)(),a=!!(null==n?void 0:n.ENABLE_CONSUMER_PORTAL_LOAN_APPLICATION_STATUS),{data:l,isInitialLoading:s}=(0,r.x)({enabled:a,sync:t});return{shouldDisplayLoanApplicationStatus:a&&(null==l?void 0:l.length)>0,isFeatureEnabled:a,isLoadingDisplayLoanApplicationStatus:i,isLoadingGetLoanApplications:a&&s}}},53736:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(21819);let o=n(8368).Ay.div.withConfig({displayName:"PurchaseActionBar.styled__ActionBarWrapper",componentId:"sc-d201c086-0"})(["@media (max-width:","){> div > div{grid-template-areas:'primary';}}@media (min-width:","){> div > div{padding-inline:",";}}"],r.L.tablet,r.L.tablet,e=>{let{theme:t}=e;return t.token.spacing["24"]})}
1,55499:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(4366),o=n(21819),i=function(){var e=(0,r.U)("(max-width: ".concat(o.L.tablet,")"));return{isDesktop:!e,isMobile:e}}},59235:(e,t,n)=>{"use strict";n.d(t,{g:()=>u,x:()=>p});var r=n(65419),o=n(31901),i=n(87763),a=n(57253),l=n(64413),s=n(92972),c=n(23096);let d={getLoanApplicationsByCustomerId:async e=>{let{partnerId:t,customerId:n,accessToken:r,sync:o}=e,i=await c.FU.get("/refi-pipeline/".concat(t,"/consumer-portal/customers/").concat(n,"/applications"),{headers:{Authorization:"Bearer ".concat(r)},params:{sync:o}});if(i.status===s.t.OK)return i.data;throw Error("Error getting loan applications")}},u={queryKey:e=>{let{customerId:t,partnerId:n,sync:r}=e;return["/refi-pipeline/".concat(n,"/consumer-portal/customers/").concat(t,"/applications"),r]},queryFn:async e=>await d.getLoanApplicationsByCustomerId(e)};function p(e){let{enabled:t,sync:n}=e,{partnerId:s}=(0,a.W)(),{customerId:c,accessToken:d}=(0,l.useCustomer)();return(0,o.I)(u.queryKey({customerId:c,partnerId:s,accessToken:d,sync:n}),async()=>await u.queryFn({customerId:c,partnerId:s,accessToken:d,sync:n}),{refetchOnWindowFocus:()=>n,retry:!1,cacheTime:i.k,staleTime:i.k,enabled:t&&void 0!==c,onError:e=>{r.datadogRum.addError(e,{source:"useGetLoanApplicationsByCustomerId",metadata:{customerId:c}})}})}},65119:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(8368).Ay.div.withConfig({displayName:"Layoutstyled__Root",componentId:"sc-14uatzm-0"})(["display:flex;flex-direction:column;min-height:100vh;width:100%;background:",";"],function(e){return e.theme.token.color.surface.neutral}),o=n(80263);function i(e){var t=e.children;return(0,o.jsx)(r,{children:t})}},67356:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(53239);let o=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{var e;t((null==(e=window.history)?void 0:e.length)>1)},[]),e}},71465:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,t:()=>r});var r={INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",SUCCESS:"SUCCESS",NEUTRAL:"NEUTRAL"},o={DISMISS:"dismiss",REDIRECT:"redirect",ACTION:"action"}},73559:()=>{},78125:(e,t,n)=>{"use strict";n.d(t,{E:()=>p});var r=n(80263),o=n(84474),i=n(36648),a=n(31814),l=n(70565),s=n(8368);let c=s.Ay.div.withConfig({displayName:"Badge.styled__BadgeStyle",componentId:"sc-7f125e47-0"})(["display:flex;align-items:center;justify-content:flex-start;flex-direction:row;width:100%;gap:10px;padding:8px;font-size:",";border-radius:7px;background-color:",";color:",";"],e=>e.theme.foundations.typography.fontSize.xs2,e=>e.$configBadge.bgColor,e=>e.$configBadge.textColor),d=s.Ay.p.withConfig({displayName:"Badge.styled__BadgeText",componentId:"sc-7f125e47-1"})(["margin:0;box-sizing:border-box;line-height:18px;span{font-weight:700;}"]),u=s.Ay.div.withConfig({displayName:"Badge.styled__BadgeIconRoot",componentId:"sc-7f125e47-2"})(["display:flex;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;border-radius:50%;background-color:",";svg{height:inherit;}"],e=>e.$configBadge.IconBgColor),p=e=>{let{message:t,type:n="error",testId:u="badge"}=e,p=(e=>{let{foundations:{colors:t}}=(0,s.DP)();return({error:(e=>({weight:"fill",bgColor:e.negativeBg10,textColor:e.negativeText,IconColor:e.white,IconBgColor:e.error,IconType:l.i}))(t),success:(e=>({weight:"regular",bgColor:e.successRounded,textColor:e.successLabel,IconColor:e.white,IconBgColor:e.successLabel,IconType:i.S}))(t),info:(e=>({weight:"regular",bgColor:e.lightBlue,textColor:e.listBlue,IconColor:e.white,IconBgColor:e.listBlue,IconType:a.m}))(t),warning:(e=>({weight:"regular",bgColor:e.warning,textColor:e.warningText,IconColor:e.white,IconBgColor:e.warningText}))(t),default:(e=>({weight:"regular",bgColor:e.lightGrey,textColor:e.darkCharcoal,IconColor:e.white,IconBgColor:e.darkCharcoal}))(t)})[e]})(n);return(0,r.jsxs)(c,{$configBadge:p,"data-testid":u,children:[(0,r.jsx)(o.j,{condition:"default"!==n,children:(0,r.jsx)(m,{configBadge:p})}),(0,r.jsx)(d,{children:t})]})},m=e=>{let{configBadge:t}=e,n=t.IconType;return(0,r.jsx)(u,{$configBadge:t,children:(0,r.jsx)(n,{color:t.IconColor,size:"xs",weight:t.weight})})}},79111:(e,t,n)=>{"use strict";n.d(t,{AB:()=>o,QA:()=>l,EL:()=>s});var r=n(23096);let o={async getLoanFormDefinition(e){let{token:t,partnerId:n,formLoanType:o,abortSignal:i}=e;try{let e=await r.FU.get("refi-pipeline/".concat(n,"/loans/forms/").concat(o),{signal:i,headers:{Authorization:"Bearer ".concat(t)}});if(200===e.status){var a;return null==e||null==(a=e.data)?void 0:a.form}}catch(e){return}}};var i=n(92972),a=n(35083);let l={async createDeal(e){let t={signal:e.abortSignal,headers:{Authorization:"Bearer ".concat(e.token)},params:(null==e?void 0:e.params)?(0,a.XV)(e.params):void 0},n=await r.FU.post("/deals",e.payload,t);
1return n.status===i.t.OK?n.data.data:Promise.resolve({dealId:null})}},s={async getSummary(e){let t=await fetch("/bff/bff/loans/offers/".concat(e,"/summary")),n=await t.json();if(!t.ok||(null==n?void 0:n.error))throw Error((null==n?void 0:n.error)||"Failed to fetch loan details summary");return n}}},79314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LoanDetailsSummary:()=>ek});var r=n(80263),o=n(65119),i=n(86705),a=n(45007),l=n(21819),s=n(76081),c=n(80319),d=n(43894),u=n(78125),p=n(51615),m=n(75341),h=n(88814),f=n(81637),y=n(88859),g=n(43348),v=n(8368);let x=(0,v.Ay)(g.E).withConfig({displayName:"AddonDisclosureSection.styled__Disclaimer",componentId:"sc-630aab74-0"})(["margin-bottom:",";"],e=>{let{theme:t}=e;return t.token.spacing["16"]}),b={MRC:e=>{let{fee:t,deductible:n}=e;return{title:"Mechanical Repair Coverage Protection",body:"This optional coverage protects you against the cost of certain mechanical repairs for a monthly fee of ".concat(void 0!==t?m.Q.formatters.monetary(t,!0):"-",", subject to a ").concat(void 0!==n?m.Q.formatters.monetary(n):"-"," deductible per covered repair.")}}},C=e=>{let{addonType:t,fee:n,deductible:o,documentUrl:i}=e,a=t?b[t.toUpperCase()]:void 0;if(!a)return null;let{title:l,body:s}=a({fee:n,deductible:o});return(0,r.jsx)(h.Z.Container,{title:l,children:(0,r.jsxs)(h.Z.Content,{children:[(0,r.jsx)(x,{$variant:"disclaimer",children:s}),i&&(0,r.jsx)(f.N,{variant:y.b.STANDALONE,href:i,target:"_blank",rel:"noopener noreferrer",children:"View plan documents"})]})})};var w=n(77216),j=n(62791),k=n(88635),A=n(42123);let _={PRE_QUALIFIED:"Pre-qualified",PRE_APPROVED:"Pre-approved"},S=e=>{let{approvalType:t}=e,n=t?_[t]:void 0;return n?(0,r.jsx)(j.v,{variant:k.F.SUCCESS,icon:(0,r.jsx)(A.w,{size:16,weight:"fill"}),label:n}):null};var I=n(35083);let N=v.Ay.div.withConfig({displayName:"LoanApprovalInfoCard.styled__Grid",componentId:"sc-99462342-0"})(["display:grid;grid-template-columns:1fr;gap:",";width:100%;@media (min-width:","){grid-template-columns:repeat(3,minmax(0,1fr));gap:",";}"],e=>{let{theme:t}=e;return t.token.spacing["16"]},l.L.tablet,e=>{let{theme:t}=e;return t.token.spacing["24"]}),O=e=>{let{title:t="Loan information",apr:n,balance:o,months:i,approvalType:a,children:l}=e;return(0,r.jsx)(h.Z.Container,{title:t,headerActionButton:(0,r.jsx)(S,{approvalType:a}),children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsxs)(N,{children:[(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Requested amount"},value:{text:m.Q.formatters.monetary(null!=o?o:void 0,!1,"-")}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Terms"},value:{text:null!==i?"".concat(i," months"):"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"APR"},value:{text:null!==n?"".concat((0,I.$I)(n),"%"):"-"}}),l]})})})},E=e=>{let{title:t,apr:n,balance:o,months:i,approvalType:a}=e;return(0,r.jsx)(O,{title:t,apr:n,balance:o,months:i,approvalType:a})},P=v.Ay.div.withConfig({displayName:"CarInformationSection.styled__Grid",componentId:"sc-816e6cca-0"})(["display:grid;grid-template-columns:1fr;gap:",";width:100%;@media (min-width:","){grid-template-columns:repeat(3,minmax(0,1fr));gap:",";}"],e=>{let{theme:t}=e;return t.token.spacing["16"]},l.L.tablet,e=>{let{theme:t}=e;return t.token.spacing["24"]}),T=v.Ay.p.withConfig({displayName:"CarInformationSection.styled__EmptyState",componentId:"sc-816e6cca-1"})(["margin:0;font-size:",";color:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["03"]},e=>{let{theme:t}=e;return t.token.color.text.secondary}),R=e=>{let{message:t}=e;return(0,r.jsx)(h.Z.Container,{title:"Car information",children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsx)(T,{children:t})})})},L=e=>{var t,n,o;let{vehicle:i}=e;if(!i)return(0,r.jsx)(R,{message:"Vehicle information not available"});if(i.isSynthetic)return(0,r.jsx)(R,{message:"Not included"});let a=void 0===i.mileage?"-":0===i.mileage?"New":"Used";return(0,r.jsx)(h.Z.Container,{title:"Car information",children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsxs)(P,{children:[(0,r.jsx)(w.G,{variant:"form-field",label:{text:"VIN"},value:{text:null!=(t=i.vin)?t:"-",copyValue:i.vin},actions:i.vin?["copy"]:void 0}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Make"},value:{text:null!=(n=i.make)?n:"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Model"},value:{text:null!=(o=i.model)?o:"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Condition"},value:{text:a}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Mileage"}
1,value:{text:void 0!==i.mileage?"".concat(i.mileage.toLocaleString()," mi"):"-"}})]})})})},B=v.Ay.p.withConfig({displayName:"CoApplicantSection.styled__CoApplicantName",componentId:"sc-f162d8bf-0"})(["margin:0;font-size:",";font-weight:",";color:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["03"]},e=>{let{theme:t}=e;return t.token.typography.fontWeight[500]},e=>{let{theme:t}=e;return t.token.color.text.primary}),$=v.Ay.p.withConfig({displayName:"CoApplicantSection.styled__EmptyState",componentId:"sc-f162d8bf-1"})(["margin:0;font-size:",";color:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["03"]},e=>{let{theme:t}=e;return t.token.color.text.secondary}),D=e=>{let{coApplicant:t}=e,n=[null==t?void 0:t.firstName,null==t?void 0:t.lastName].filter(Boolean).join(" ");return(0,r.jsx)(h.Z.Container,{title:"Co-applicant",children:(0,r.jsx)(h.Z.Content,{children:(null==t?void 0:t.present)?(0,r.jsx)(B,{children:n||"Co-applicant"}):(0,r.jsx)($,{children:"Not included"})})})},F=v.Ay.div.withConfig({displayName:"CurrentLoanSection.styled__Grid",componentId:"sc-99462342-0"})(["display:grid;grid-template-columns:1fr;gap:",";width:100%;@media (min-width:","){grid-template-columns:repeat(3,minmax(0,1fr));gap:",";}"],e=>{let{theme:t}=e;return t.token.spacing["16"]},l.L.tablet,e=>{let{theme:t}=e;return t.token.spacing["24"]}),z=e=>{let{lender:t,monthlyPayment:n,apr:o,vehicle:i}=e;return(0,r.jsx)(h.Z.Container,{title:"Current loan",subtitle:(e=>{let t=[null==e?void 0:e.year,null==e?void 0:e.make,null==e?void 0:e.model].filter(Boolean);return t.length>0?t.join(" "):void 0})(i),children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsxs)(F,{children:[(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Lender"},value:{text:null!=t?t:"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Monthly payment (estimated)"},value:{text:void 0!==n?m.Q.formatters.monetary(n):"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"APR"},value:{text:void 0!==o?"".concat(o,"%"):"-"}})]})})})};var M=n(92650),U=n(71465);let W=v.Ay.div.withConfig({displayName:"NewLoanSection.styled__Content",componentId:"sc-ee6938fa-0"})(["display:flex;flex-direction:column;gap:",";width:100%;"],e=>{let{theme:t}=e;return t.token.spacing["16"]}),H=v.Ay.div.withConfig({displayName:"NewLoanSection.styled__Grid",componentId:"sc-ee6938fa-1"})(["display:grid;grid-template-columns:1fr;gap:",";width:100%;@media (min-width:","){grid-template-columns:repeat(3,minmax(0,1fr));gap:",";}"],e=>{let{theme:t}=e;return t.token.spacing["16"]},l.L.tablet,e=>{let{theme:t}=e;return t.token.spacing["24"]}),G=e=>{let{requestedAmount:t,termMonths:n,apr:o,monthlyPayment:i,savingsPerMonth:a,approvalType:l}=e;return(0,r.jsx)(h.Z.Container,{title:"New loan",headerActionButton:(0,r.jsx)(S,{approvalType:l}),children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsxs)(W,{children:[void 0!==a&&a>0&&(0,r.jsx)(M.P,{status:U.t.SUCCESS,description:"Savings opportunity of ".concat(m.Q.formatters.monetary(a),"/mo")}),(0,r.jsxs)(H,{children:[(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Amount financed"},value:{text:void 0!==t?m.Q.formatters.monetary(t):"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"APR"},value:{text:void 0!==o?"".concat(o,"%"):"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Monthly payment"},value:{text:void 0!==i?m.Q.formatters.monetary(i):"-"}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Terms"},value:{text:void 0!==n?"".concat(n," months"):"-"}})]})]})})})},K=e=>{let{title:t,apr:n,balance:o,months:i,monthlyPayments:a,loanPurpose:l,approvalType:s}=e;return(0,r.jsxs)(O,{title:t,apr:n,balance:o,months:i,approvalType:s,children:[(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Monthly payment"},value:{text:null===n?"-":m.Q.formatters.monetary(null!=a?a:void 0,!1,"-")}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Loan purpose"},value:{text:null!=l?l:"-"}})]})},q=v.Ay.div.withConfig({displayName:"ProtectionProductsSection.styled__Products",componentId:"sc-3c9c20aa-0"})(["display:flex;flex-direction:column;gap:",";width:100%;list-style:none;margin:0;padding:0;"],e=>{let{theme:t}=e;return t.token.spacing["24"]}),Z=v.Ay.div.withConfig({displayName:"ProtectionProductsSection.styled__Grid",componentId:"sc-3c9c20aa-1"})(["display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:",";width:100%;"],e=>{let{theme:t}=e;return t.token.spacing["24"]}),Y=v.Ay.div.withConfig({displayName:"ProtectionProductsSection.styled__SelectedProduct",componentId:"sc-3c9c20aa-2"})(["display:flex;flex-direction:column;gap:",";"],e=>{let{theme:t}=e;return t.token.spacing["12"]}),Q=v.Ay.span.withConfig({displayName:"ProtectionProductsSection.styled__Label",componentId:"sc-3c9c20aa-3"})(["font-size:",";font-weight:",";color:",";line-height:1.4;"],e=>{let{theme:t}=e;return t.token.typography.fontSize["01"]},e=>{let{theme:t}=e;return t.token.typography.fontWeight[400]},e=>{let{theme:t}=e;return t.token.color.text.secondary}),V=v.Ay.span.withConfig({displayName:"ProtectionProductsSection.styled__ProductName",componentId:"sc-3c9c20aa-4"})(["font-size:",";font-weight:",";color:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["03"]},e=>{let{theme:t}=e;return t.token.typography.fontWeight[400]},e=>{let{theme:t}=e;return t.token.color.text.primary}),X=v.Ay.span.withConfig({displayName:"ProtectionProductsSection.styled__ProductSubType",componentId:"sc-3c9c20aa-5"})(["font-size:",";font-weight:",";color:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["02"]},e=>{let{theme:t}=e;return t.token.typography.fontWeight[400]},e=>{let{theme:t}=e;return t.token.color.text.primary}),J=e=>{let{products:t}=e;return 0===t.length?null:(0,r.jsx)(h.Z.Container,{title:"Protection products",children:(0,r.jsx)(h.Z.Content,{children:(0,r.jsx)(q,{as:"ul",children:t.map(e=>{var t;return(0,r.jsxs)(Z,{as:"li",children:[(0,r.jsxs)(Y,{children:[(0,r.jsx)(Q,{children:"Selected product"}),(0,r.jsx)(V,{children:null!=(t=e.name)?t:"-"}),e.subType&&(0,r.jsx)(X,{children:e.subType})]}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Monthly cost"},value:{text:void 0!==e.monthlyCost?"".concat(m.Q.formatters.monetary(e.monthlyCost,!0),"/mo"):"-",tooltipProps:{message:"Included in your monthly payment"}}}),(0,r.jsx)(w.G,{variant:"form-field",label:{text:"Total cost"},value:{text:void 0!==e.totalCost?m.Q.formatters.monetary(e.totalCost,!0):"-",tooltipProps:{message:"Total cost over the life of the loan"}}})]},e.id)})})})})},ee=e=>e.replace("_REFINANCE",""),et=e=>{let{apr:t,balance:n,months:o,monthlyPayments:i,approvalType:a,currentLoan:l}=e,s=null!=t,c=s&&(null==l?void 0:l.monthlyPayment)!==void 0&&null!=i?l.monthlyPayment-i:void 0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{lender:null==l?void 0:l.lender,apr:null==l?void 0:l.apr,monthlyPayment:null==l?void 0:l.monthlyPayment,vehicle:null==l?void 0:l.vehicle}),(0,r.jsx)(G,{apr:null!=t?t:void 0,requestedAmount:null!=n?n:void 0,termMonths:null!=o?o:void 0,monthlyPayment:s&&null!=i?i:void 0,approvalType:a,savingsPerMonth:c})]})},en={AUTO:e=>{let{isRefinance:t,apr:n,balance:o,months:i,monthlyPayments:a,vehicle:l,approvalType:s,currentLoan:c}=e;return t?(0,r.jsx)(et,{apr:n,balance:o,months:i,monthlyPayments:a,approvalType:s,currentLoan:c}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L,{vehicle:l}),(0,r.jsx)(E,{apr:n,balance:o,months:i,approvalType:s})]})},PERSONAL:e=>{let{isRefinance:t,apr:n,balance:o,months:i,monthlyPayments:a,approvalType:l,currentLoan:s,addons:c}=e;if(t)return(0,r.jsx)(et,{apr:n,balance:o,months:i,monthlyPayments:a,approvalType:l,currentLoan:s});let d=c.find(e=>(e=>void 0!==e&&e.toUpperCase()in b)(e.type));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{apr:n,balance:o,months:i,monthlyPayments:a,loanPurpose:void 0,approvalType:l}),(0,r.jsx)(C,{addonType:null==d?void 0:d.type})]})},HOME_EQUITY:()=>null,CREDIT_CARD:()=>null,DEBT_CONSOLIDATION:()=>null,LINE_OF_CREDIT:()=>null},er={AUTO:!0,PERSONAL:!0,CREDIT_CARD:!0,DEBT_CONSOLIDATION:!0,LINE_OF_CREDIT:!0,HOME_EQUITY:!1},eo=e=>{let{data:t}=e,{loanType:n,addons:o,coApplicant:i}=t,a=ee(n),l=(0,r.jsx)(J,{products:o.map(e=>({id:e.id,name:(e=>null==e?void 0:e.split("_").map(e=>e.charAt(0)+e.slice(1).toLowerCase()).join(" "))(e.type),monthlyCost:e.monthlyCost,totalCost:e.totalCost}))}),s=(0,r.jsx)(D,{coApplicant:i});return(0,r.jsxs)(r.Fragment,{children:[en[a](t),s,er[a]&&l]})};var ei=n(86917),ea=n(97722),el=n(65419),es=n(31901),ec=n(87763),ed=n(79111),eu=n(67356),ep=n(
157253),em=n(40196),eh=n(82643),ef=n(53239),ey=n(97870),eg=n(98282),ev=n(53736);let ex=v.Ay.main.withConfig({displayName:"LoanDetailsSummary.styled__ContentWrapper",componentId:"sc-bacc3de5-0"})(["flex:1;padding:",";margin:0 auto;width:100%;@media (min-width:","){max-width:",";padding:",";}"],e=>{let{theme:t}=e;return"".concat(t.token.spacing["24"]," ").concat(t.token.spacing["24"]," 10rem")},l.L.tablet,l.L.laptop,e=>{let{theme:t}=e;return"".concat(t.token.spacing["32"]," ").concat(t.token.spacing["24"]," 10rem")}),eb=v.Ay.h1.withConfig({displayName:"LoanDetailsSummary.styled__PageTitle",componentId:"sc-bacc3de5-1"})(["margin:0 0 "," 0;font-size:",";font-weight:",";color:",";line-height:normal;"],e=>{let{theme:t}=e;return t.token.spacing["16"]},e=>{let{theme:t}=e;return t.token.typography.fontSize["07"]},e=>{let{theme:t}=e;return t.token.typography.fontWeight[700]},e=>{let{theme:t}=e;return t.token.color.gray["900"]}),eC=v.Ay.div.withConfig({displayName:"LoanDetailsSummary.styled__LegalDisclaimer",componentId:"sc-bacc3de5-2"})(["margin:"," 0 0 0;font-size:",";color:",";line-height:normal;"],e=>{let{theme:t}=e;return t.token.spacing["24"]},e=>{let{theme:t}=e;return t.token.typography.fontSize["02"]},e=>{let{theme:t}=e;return t.token.color.gray["700"]}),ew=v.Ay.div.withConfig({displayName:"LoanDetailsSummary.styled__Sections",componentId:"sc-bacc3de5-3"})(["display:flex;flex-direction:column;gap:",";"],e=>{let{theme:t}=e;return t.token.spacing["16"]}),ej=e=>(0,r.jsx)(eo,{data:e}),ek=e=>{var t,n;let{renderSections:m=ej}=e,{back:h,push:f,query:y}=(0,eh.Y)(),g=(0,eu.v)(),v=y.loan,{data:x,isLoading:b,isError:C}=(e=>{let{data:t,isLoading:n,isFetching:r,isError:o}=(0,es.I)({queryKey:["loanDetailsSummary",e],queryFn:()=>ed.EL.getSummary(e),select:e=>(0,ea._)((0,ei._)({},e),{isRefinance:e.loanType.includes("REFINANCE")}),enabled:!!e,refetchOnWindowFocus:!1,staleTime:ec.$m,cacheTime:ec.$m,onError:t=>
1{el.datadogRum.addError(t,{source:"useLoanDetailsSummary",metadata:{offerId:e}})}});return{data:t,isLoading:n||r,isError:o}})(v),{loansConfig:w}=(0,ep.W)(),j=(null==x?void 0:x.loanType)?ee(x.loanType):ey.Cg.AUTO,k=(0,em.H)({loanType:j,productType:(null==x?void 0:x.isRefinance)?ey.ch.AUTO_REFI:ey.ch.AUTO_NEW,isRefinance:null==x?void 0:x.isRefinance}),A=null==w||null==(n=w[j])||null==(t=n.text)?void 0:t.DETAILS_SCREEN_DISCLAIMER,{goToNextStepFeatureChaining:_,isGoingToNextStep:S}=(0,p.h)();(0,ef.useEffect)(()=>{C&&(g?h():f(eg.t.MAIN))},[C,g,h,f]);let I=(0,ef.useCallback)(async()=>{S||await _({offerId:v,fromStepKey:s.FeatureChainingStepOptions.CONSUMER_PORTAL.CREATE_LOAN_APPLICATION.APPLICATION_REVIEW})},[_,v,S]);if(C)return null;let N=b||!x?"Loading...":m(x);return(0,r.jsxs)(o.P,{children:[(0,r.jsx)(c.c,{}),(0,r.jsx)(i.y,{variant:"workflow",theme:"primary",leftColumn:{backButtonProps:{onClick:()=>h(),"aria-label":"Go back"}},centerColumn:{title:"Your loan details"},closeButtonProps:{onClick:()=>f(eg.t.MAIN),"aria-label":"Close"}}),(0,r.jsxs)(ex,{children:[(0,r.jsx)(eb,{children:"Your loan details"}),(0,r.jsx)(ew,{children:N}),(0,r.jsxs)(eC,{children:[A&&(0,r.jsx)(u.E,{message:A,type:"info"}),k&&(0,r.jsx)(d.M,{text:k})]})]}),(0,r.jsx)(ev.f,{children:(0,r.jsx)(a.E,{maxWidth:l.L.laptop,primaryAction:{children:"Submit",type:"button",loading:b||S,onClick:I}})})]})}},80319:(e,t,n)=>{"use strict";n.d(t,{c:()=>N});var r=n(80263),o=n(55499),i=n(22737),a=n(39194),l=n(77091),s=n(87255),c=n(74635),d=n(95128),u=n(12528),p=n(96672),m=n(44901),h=n(57253),f=n(82643),y=n(64413),g=n(53239),v=n(44148),x=n(98282),b=n(81416),C=n(94855),w=n(8368);let j=w.Ay.div.withConfig({displayName:"BrandedHeaderRefreshed.styled__Container",componentId:"sc-9387cbf3-0"})(["position:relative;z-index:35;width:100%;height:var(--branded-header-height);min-height:var(--branded-header-height);background:",";display:flex;align-items:center;justify-content:center;"],e=>e.$backgroundColor),k=(0,w.Ay)(C.A).withConfig({displayName:"BrandedHeaderRefreshed.styled__Content",componentId:"sc-9387cbf3-1"})(["display:flex;align-items:center;justify-content:space-between;img{height:32px;max-height:100%;image-rendering:auto;}"]),A=w.Ay.div.withConfig({displayName:"BrandedHeaderRefreshed.styled__ControlsWrapper",componentId:"sc-9387cbf3-2"})(["display:flex;"]),_=(0,w.Ay)(b.$).withConfig({displayName:"BrandedHeaderRefreshed.styled__ButtonHeader",componentId:"sc-9387cbf3-3"})(["display:flex;align-items:center;justify-content:center;gap:0.7rem;flex-shrink:0;width:auto;margin-left:0.5rem;background-color:transparent;border-color:transparent;svg{flex-shrink:0;width:24px;height:24px;}"]),S=(0,w.Ay)(b.$).withConfig({displayName:"BrandedHeaderRefreshed.styled__ButtonHeaderMobile",componentId:"sc-9387cbf3-4"})(["padding:0 0.3rem;font-size:1.5rem;border-radius:0.5rem;"]),I=(0,w.Ay)(b.$).withConfig({displayName:"BrandedHeaderRefreshed.styled__MenuItem",componentId:"sc-9387cbf3-5"})(["display:flex;width:100%;justify-content:space-between;align-items:center;padding:0.5rem;cursor:pointer;svg{color:",";}"],e=>e.theme.colors.primary),N=e=>{let{redirectToMainPage:t=!0,$backgroundColor:n,useColoredLogo:b=!1}=e,{theme:C}=(0,h.W)(),{isMobile:w}=(0,o.k)(),{logout:N,accessToken:O}=(0,y.useCustomer)(),E=(0,f.Y)(),{sendTracking:P}=(0,p.X)(),[T,R]=(0,g.useState)(!1),{isFeatureEnabled:L}=(0,m.i)({sync:!1}),B=async()=>{await P({accessToken:O,name:v.Y9.TRACK_MY_APPLICATIONS_BUTTON_CLICKED,trackingPayload:{buttonPlacement:E.cleanPathname.includes(x.t.LOANS_PORTAL)?"Loans portal":E.cleanPathname.includes(x.t.SUBMITTED)?"Thank you page":"Header"}}),E.push(x.t.MY_LOAN_APPLICATIONS)},$=[...L?[{title:"My Applications",onClick:B,icon:(0,r.jsx)(s.O,{})}]:[],{title:"Logout",onClick:N,icon:(0,r.jsx)(c.M,{})}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{$backgroundColor:null!=n?n:C.colors.colorfulBackgroun
1d,"data-testid":"branded-header",children:(0,r.jsxs)(k,{children:[(0,r.jsx)(u.Tu,{redirectToMainPage:t,useColoredLogo:b}),(0,r.jsx)(A,{children:(0,r.jsx)(i.j,{condition:w,fallback:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.j,{condition:L,children:(0,r.jsxs)(_,{type:"button",fullWidth:!0,onClick:B,children:["My Applications",(0,r.jsx)(s.O,{size:24})]})}),(0,r.jsxs)(_,{type:"button",fullWidth:!0,onClick:N,children:["Logout",(0,r.jsx)(c.M,{size:24})]})]}),children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(S,{type:"button",fullWidth:!0,onClick:()=>R(!0),"aria-label":"Open menu",children:(0,r.jsx)(d.B,{})})})})})]})}),(0,r.jsx)(a.a,{open:T,size:"medium",type:"dialog",onClose:()=>R(!1),children:$.map(e=>{let{title:t,icon:n,onClick:o}=e;return(0,r.jsxs)(I,{onClick:o,variant:l.h.TEXT,size:l.l.MEDIUM,children:[t,n]},t)})})]})}},81637:(e,t,n)=>{"use strict";n.d(t,{N:()=>m});var r=n(53239),o=n(8368),i=o.Ay.a.withConfig({displayName:"Linkstyled__Anchor",componentId:"sc-xcof91-0"})(["display:inline-flex;align-items:center;gap:",";padding:",";border:none;background:none;border-radius:",";color:",";font-family:",";font-size:",";font-weight:",";line-height:1.4;text-decoration:",";cursor:pointer;transition:color 0.15s ease,background-color 0.15s ease;&:hover{color:",";background-color:",";text-decoration:underline;}&:active{color:",";background-color:transparent;}&:focus-visible{outline:",";outline-offset:",";}&:disabled{cursor:not-allowed;opacity:0.4;}& [aria-hidden='true'] svg{width:",";height:",";color:",";}"],function(e){return e.theme.token.spacing["02"]},function(e){var t=e.theme;return"".concat(t.token.spacing["04"]," ").concat(t.token.spacing["08"])},function(e){return e.theme.token.radius["02"]},function(e){return e.theme.token.color.text.primary},function(e){return e.theme.token.typography.fontFamily.base},function(e){return e.theme.token.typography.fontSize["01"]},function(e){return e.theme.token.typography.fontWeight["700"]},function(e){return"inline"===e.$variant?"underline":"none"},function(e){return e.theme.token.color.partner.primary},function(e){return e.theme.token.color.surface.active.default},function(e){return e.theme.token.color.partner.primary},function(e){var t=e.theme;return"".concat(t.token.spacing["02"]," solid ").concat(t.token.color.partner.primary)},function(e){return e.theme.token.spacing["02"]},function(e){return e.theme.token.icon.size.sm},function(e){return e.theme.token.icon.size.sm},function(e){return e.theme.token.color.partner.primary}),a=o.Ay.span.withConfig({displayName:"Linkstyled__IconSlot",componentId:"sc-xcof91-1"})(["display:inline-flex;flex-shrink:0;align-items:center;"]),l=n(88859),s=n(80263);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["variant","iconStart","iconEnd","children"];function u(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=r.forwardRef(function(e,t){var n,r=e.variant,o=void 0===r?l.b.INLINE:r,c=e.iconStart,u=e.iconEnd,m=e.children,h=function(e,t){if(null==e)return{};var n,r,o=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 i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),f=(0,s.jsxs)(s.Fragment,{children:[c&&(0,s.jsx)(a,{"aria-hidden":"true",children:c}),(0,s.jsx)("span",{children:m}),u&&(0,s.jsx)(a,{"aria-hidden":"true",children:u})]});return"button"===h.as?(0,s.jsx)(i,p(p({},h),{},{as:"button",type:null!=(n=h.type)?n:"button",ref:t,$variant:o,children:f})):(0,s.jsx)(i,p(p({},h),{},{ref:t,$variant:o,children:f}))});m.displayName="Link"},83549:()=>{}
1,84474:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(80263);let o=e=>{let{condition:t,children:n,fallback:o=null}=e;return(0,r.jsx)(r.Fragment,{children:t?n:o})}},85993:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var r=n(86917),o=n(97722),i=n(15708),a=n.n(i);let l=["a","br","div","i","img","li","ol","p","h1","h2","h3","h4","h5","h6","footer","header","aside","section","strong","ul","b","span","em"],s=["id","style","class"],c={sanitize:function e(t){return Array.isArray(t)||"string"==typeof String(t)?Array.isArray(t)?t.flatMap(t=>e(t)):a()(t,{allowedTags:l,allowedAttributes:{h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,footer:s,header:s,aside:s,section:s,a:["href","target","rel"].concat(s),br:[],div:s,i:s,img:["width","height","src","srcset","alt"].concat(s),li:s,ol:s,p:s,span:["style"].concat(s),strong:s,ul:s,em:s,b:s},allowedSchemesByTag:{img:["data","https"]},transformTags:{a:(e,t)=>"_blank"===t.target?{tagName:e,attribs:(0,o._)((0,r._)({},t),{rel:"noopener noreferrer"})}:{tagName:e,attribs:t}}}).replace(/<a\s([^>]*?target="_blank"[^>]*?)>([\s\S]*?)<\/a>/gi,(e,t,n)=>{let r=n.includes("opens in new tab")?"":'<span style="'.concat("position:relative",'"><span style="').concat("position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0",'"> (opens in new tab)</span></span>');return"<a ".concat(t,">").concat(n).concat(r,"</a>")}):""}}},86705:(e,t,n)=>{"use strict";n.d(t,{y:()=>A});var r=n(22737),o=n(82184),i=n(20174),a=n(17378),l=n(53239),s=n(8368),c=n(33332),d=n(68822),u=s.Ay.nav.withConfig({displayName:"NavigationBarstyled__NavigationBarContainer",componentId:"sc-gu9bw-0"})(["position:sticky;top:0;z-index:",";width:100%;display:flex;align-items:center;padding:",";height:",";background-color:",";border-bottom:1px solid ",";svg{fill:",";path{stroke-width:2px;}}@media (max-width:48rem){border-bottom:none;}"],function(e){return e.theme.token.zIndex.sticky},function(e){return e.theme.token.spacing["24"]},function(e){return"workflow"===e.$variant?"4rem":"5.25rem"},function(e){var t=e.theme;return"primary"===e.$theme?t.token.color.surface.neutral:t.token.color.partner.primary},function(e){var t=e.theme;return"primary"===e.$theme?t.token.color.gray[200]:"rgb(from ".concat(t.token.color.partner.primary," r g b / 0.2)")},function(e){var t=e.theme;return"inverted"===e.$theme?t.token.color.gray[100]:t.token.color.partner.primary}),p=s.Ay.div.withConfig({displayName:"NavigationBarstyled__NavigationBarContent",componentId:"sc-gu9bw-1"})(["position:relative;width:100%;max-width:74rem;display:flex;align-items:center;justify-content:space-between;gap:",";margin:0 auto;"],function(e){return e.theme.token.spacing["16"]}),m=s.Ay.div.withConfig({displayName:"NavigationBarstyled__NavigationBarLeft",componentId:"sc-gu9bw-2"})(["display:flex;align-items:center;gap:",";flex-shrink:0;"],function(e){return e.theme.token.spacing["16"]}),h=s.Ay.div.withConfig({displayName:"NavigationBarstyled__NavigationBarCenter",componentId:"sc-gu9bw-3"})(["display:flex;position:absolute;left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;justify-content:center;gap:0.625rem;"]),f=s.Ay.div.withConfig({displayName:"NavigationBarstyled__NavigationBarRight",componentId:"sc-gu9bw-4"})(["display:flex;align-items:center;justify-content:space-between;flex-shrink:0;svg{width:",";height:",";}"],function(e){return"default"===e.$variant?"2rem":"1.5rem"},function(e){return"default"===e.$variant?"2rem":"1.5rem"}),y=(0,s.Ay)(d.o.Body).withConfig({displayName:"NavigationBarstyled__UserName",componentId:"sc-gu9bw-5"})(["color:",";margin-right:",";@media (max-width:48rem){display:none;}"],function(e){var t=e.theme;return"primary"===e.$theme?t.token.color.partner.primary:t.token.color.text.negative},function(e){return e.theme.token.spacing["16"]}),g=s.Ay.div.withConfig({displayName:"NavigationBarstyled__BrandContainer",componentId:"sc-gu9bw-6"})(["display:flex;align-items:center;flex-shrink:0;img,svg{height:auto;width:auto;max-width:",";image-rendering:auto;}",""],function(e){return"workflow"===e.$variant?"5.875rem":"8rem"},function(e){return"workflow"===e.$variant&&(0,s.AH)(["@media (max-width:48rem){display:none;}"])}),v=(0,s.Ay)(c.K).withConfig({displayName:"NavigationBarstyled__ActionButton",componentId:"sc-gu9bw-7"})(["background-color:transparent;border:none;cursor:pointer;padding:0;width:",";height:",";svg{width:",";height:",";}&:hover:not(:disabled){opacity:0.7;}&:disabled{cursor:not-allowed;opacity:0.5;}"],function(e){return"default"===e.$variant?"32px":"24px"},function(e){return"default"===e.$variant?"32px":"24px"},function(e){return"default"===e.$variant?"32px":"24px"},function(e){return"default"===e.$variant?"32px":"24px"}),x=s.Ay.div.withConfig({displayName:"NavigationBarstyled__TitleContainer",componentId:"sc-gu9bw-8"})(["display:flex;flex-direction:column;align-items:center;gap:",";"],function(e){return"workflow"===e.$variant?"0.313rem":"0.625rem"}),b=(0,s.Ay)(d.o.Heading).withConfig({displayName:"NavigationBarstyled__Title",componentId:"sc-gu9bw-9"})(["margin:0;font-size:",";font-weight:",";line-height:1;letter-spacing:0;color:",";text-align:center;"],function(e){var t=e.theme;return"workflow"===e.$variant?t.token.typography.fontSize["03"]:t.token.typography.fontSize["04"]},function(e){return e.theme.token.typography.fontWeight["700"]},function(e){var t=e.theme,n=e.$theme;return"workflow"===e.$variant?"inverted"===n?t.token.color.text.negative:t.token.color.partner.primary:"primary"===n?t.token.color.text.primary:t.token.color.text.negative}),C=(0,s.Ay)(d.o.Body).withConfig({displayName:"NavigationBarstyled__Subtitle",componentId:"sc-gu9bw-10"})(["margin:0;font-size:",";font-weight:",";line-height:1;letter-spacing:0;color:",";text-align:center;"],function(e){var t=e.theme;return e.$variant,t.token.typography.fontSize["02"]},function(e){var t=e.theme;return e.$variant,t.token.typography.fontWeight["400"]},function(e){var t=e.theme,n=e.$theme;return"workflow"===e.$variant?"inverted"===n?t.token.color.text.negative:t.token.color.gray[900]:"primary"===n?t.token.color.text.secondary:t.token.color.text.negative}),w=n(72521),j=n(80263),k=(0,l.forwardRef)(function(e,t){var n,l,s,c,d,k,A,_,S,I,N,O,E,P,T,R,L,B,$,D,F,z,M,U,W,H,G,K,q,Z=e.theme,Y=e.variant,Q=e.className,V=e["data-testid"],X=e["aria-label"],J="workflow"===Y,ee="default"===Y,et="default"===Y?32:24,en=J?e:null,er=ee?e:null,eo=null==en||null==(n=en.centerColumn)?void 0:n.subtitle,ei=null!=eo&&""!==eo,ea=!!((null==er||null==(l=er.centerColumn)?void 0:l.brand)||(null==en||null==(s=en.centerColumn)?void 0:s.title)||ei),el=!!((null==er||null==(c=er.rightColumn)?void 0:c.userName)||(null==er||null==(d=er.rightColumn)?void 0:d.menu)||(null==en?void 0:en.closeButtonProps)),es=X||(V?"".concat(Y," variant, ").concat(Z," theme navigation bar (").concat(V,")"):"".concat(Y," variant, ").concat(Z," theme navigation bar")),ec=(null==en||null==(k=en.leftColumn)||null==(k=k.backButtonProps)?void 0:k["aria-label"])||"Go back",ed=(null==er||null==(A=er.leftColumn)||null==(A=A.homeButtonProps)?void 0:A["aria-label"])||"Go to home",eu=(null==en||null==(_=en.closeButtonProps)?void 0:_["aria-label"])||"Close";return(0,j.jsx)(u,{ref:t,className:Q,"data-testid":V,$theme:Z,$variant:Y,"aria-label":es,children:(0,j.jsxs)(p,{children:[(0,j.jsxs)(m,{children:[(0,j.jsx)(r.j,{condition:!!((null==er||null==(S=er.leftColumn)?void 0:S.brand)||(null==en||null==(I=en.leftColumn)?void 0:I.brand)),children:(0,j.jsx)(g,{$variant:Y,children:(null==er||null==(N=er.leftColumn)?void 0:N.brand)||(null==en||null==(O=en.leftColumn)?void 0:O.brand)})}),(0,j.jsx)(r.j,{condition:!!(null==en||null==(E=en.leftColumn)?void 0:E.backButtonProps),children:(0,j.jsx)(v,{$theme:Z,$variant:Y,onClick:null==en||null==(P=en.leftColumn)||null==(P=P.backButtonProps)?void 0:P.onClick,disabled:null==en||null==(T=en.leftColumn)||null==(T=T.backButtonProps)?void 0:T.disabled,type:"button","aria-label":ec,children:(0,j.jsx)(o.Z,{size:et,weight:"bold"})})}),(0,j.jsx)(r.j,{condition:!!(null==er||null==(R=er.leftColumn)?void 0:R.homeButtonProps),children:(0,j.jsx)(v,{$theme:Z,$variant:Y,onClick:null==er||null==(L=er.leftColumn)||null==(L=L.homeButtonProps)?void 0:L.onClick,disabled:null==er||null==(B=er.leftColumn)||null==(B=B.homeButtonProps)?void 0:B.disabled,type:"button","aria-label":ed,children:(0,j.jsx)(i.t,{size:et})})})]}),(0,j.jsx)(r.j,{condition:ea,children:(0,j.jsxs)(h,{children:[(0,j.jsx)(r.j,{condition:!!(null==er||null==($=er.centerColumn)?void 0:$.brand),children:(0,j.jsx)(g,{$variant:Y,children:(0,j.jsx)("span",{children:null==er||null==(D=er.centerColumn)?void 0:D.brand})})}),(0,j.jsx)(r.j,{condition:!!((null==en||null==(F=en.centerColumn)?void 0:F.title)||ei),children:(0,j.jsxs)(x,{$theme:Z,$variant:Y,children:[(0,j.jsx)(r.j,{condition:!!(null==en||null==(z=en.centerColumn)?void 0:z.title),children:(0,j.jsx)(b,{as:"h1",size:w.RH.MD,$theme:Z,$variant:Y,children:(0,j.jsx)("span",{children:null==en||null==(M=en.centerColumn)?void 0:M.title})})}),(0,j.jsx)(r.j,{condition:ei,children:(0,j.jsx)(C,{as:"p",size:w.jJ.SM,weight:w.Wo.REGULAR,$theme:Z,$variant:Y,children:(0,j.jsx)("span",{children:eo})})})]})})]})}),(0,j.jsx)(r.j,{condition:el,children:(0,j.jsxs)(f,{$variant:Y,children:[(0,j.jsx)(r.j,{condition:!!(null==er||null==(U=er.rightColumn)?void 0:U.userName),children:(0,j.jsx)(y,{$theme:Z,size:w.jJ.SM,weight:w.Wo.BOLD,children:(0,j.jsx)("span",{children:null==er||null==(W=er.rightColumn)?void 0:W.userName})})}),(0,j.jsx)(r.j,{condition:!!(null==er||null==(H=er.rightColumn)?void 0:H.menu),children:null==er||null==(G=er.rightColumn)?void 0:G.menu}),(0,j.jsx)(r.j,{condition:!!(null==en?void 0:en.closeButtonProps),children:(0,j.jsx)(v,{$theme:Z,$variant:Y,onClick:null==en||null==(K=en.closeButtonProps)?void 0:K.onClick,disabled:null==en||null==(q=en.closeButtonProps)?void 0:q.disabled,type:"button","aria-label":eu,children:(0,j.jsx)(a.X,{size:et,weight:"bold"})})})]})})]})})});k.displayName="NavigationBar";var A=k}
1,88089:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(92972),o=n(23096);let i={async getLoanFirstMembershipStatus(e,t){let n=await o.FU.get("account-opening/loan-first/member-status",{headers:{Authorization:"Bearer ".concat(e)},signal:t});return 200===n.status?n.data:null},async createMembershipCore(e,t,n){try{let i=await o.FU.post("/account-opening/loan-first",t,{signal:n,headers:{Authorization:"Bearer ".concat(e)}});if(i.status===r.t.CREATED)return i.data}catch(e){var i,a;if((null==(a=e.response)||null==(i=a.data)?void 0:i.code)==="LOAN_FIRST_APPLICATION_ALREADY_EXISTS_FOR_CUSTOMER")return{applicationId:void 0};throw e}}}},88814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(22737),o=n(53239),i=n(8368),a=i.Ay.div.withConfig({displayName:"Cardstyled__CardContainer",componentId:"sc-1n0i7oq-0"})(["border:1px solid ",";border-radius:0.75rem;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;background:",";"," ",""],function(e){return e.theme.token.color.gray["400"]},function(e){return e.theme.token.color.surface.neutral},function(e){var t=e.theme,n=e.$selected;return e.$error?(0,i.AH)(["border-color:",";box-shadow:inset 0 0 0 "," ",";"],t.token.color.status.negative,t.token.stroke.weight.interaction,t.token.color.status.negative):n?(0,i.AH)(["border-color:",";box-shadow:inset 0 0 0 "," ",";"],t.token.color.gray["600"],t.token.stroke.weight.interaction,t.token.color.gray["600"]):""},function(e){var t=e.theme,n=e.$interactive,r=e.$error;return n?(0,i.AH)(["cursor:pointer;&:hover{background:",";}&:focus-visible{outline:none;border-color:",";box-shadow:inset 0 0 0 "," ",";}"],t.token.color.surface.card,r?t.token.color.status.negative:t.token.color.gray["600"],t.token.stroke.weight.interaction,r?t.token.color.status.negative:t.token.color.gray["600"]):""}),l=i.Ay.div.withConfig({displayName:"Cardstyled__CardHeader",componentId:"sc-1n0i7oq-1"})(["display:flex;align-items:center;justify-content:",";height:1.25rem;width:100%;"],function(e){return e.$justifyEnd?"flex-end":"space-between"}),s=i.Ay.div.withConfig({displayName:"Cardstyled__CardHeaderGroup",componentId:"sc-1n0i7oq-2"})(["display:flex;flex-direction:column;gap:",";width:100%;"],function(e){return e.theme.token.spacing["12"]}),c=i.Ay.p.withConfig({displayName:"Cardstyled__CardSubtitle",componentId:"sc-1n0i7oq-3"})(["margin:0;"]),d=i.Ay.h3.withConfig({displayName:"Cardstyled__CardTitle",componentId:"sc-1n0i7oq-4"})(["font-size:",";font-weight:",";color:",";line-height:100%;margin:0;"],function(e){return e.theme.token.typography.fontSize["04"]},function(e){return e.theme.token.typography.fontWeight[700]},function(e){return e.theme.token.color.gray["900"]}),u=i.Ay.div.withConfig({displayName:"Cardstyled__CardContent",componentId:"sc-1n0i7oq-5"})(["background:",";padding:0;width:100%;"],function(e){return e.theme.token.color.gray["100"]}),p=i.Ay.div.withConfig({displayName:"Cardstyled__CardMediaRoot",componentId:"sc-1n0i7oq-6"})(["position:relative;display:flex;justify-content:center;align-items:center;border-radius:",";overflow:hidden;padding:1.5rem 2.5rem;"],function(e){return e.theme.token.radius["03"]}),m=i.Ay.svg.withConfig({displayName:"Cardstyled__CardMediaWaves",componentId:"sc-1n0i7oq-7"})(["position:absolute;inset:0;width:100%;height:100%;"]),h=i.Ay.div.withConfig({displayName:"Cardstyled__CardMediaContent",componentId:"sc-1n0i7oq-8"})(["position:relative;z-index:1;display:flex;justify-content:center;align-items:center;img{width:218px;height:auto;}"]),f=(0,o.createContext)(void 0),y=function(){var e=(0,o.useContext)(f);if(void 0===e)throw Error("Card.Content must be used within Card.Container. Please wrap Card.Content with Card.Container.");return e},g=f.Provider,v=n(80263);function x(e){return(x="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 b=["title","titleAs","subtitle","headerActionButton","className","children","dataDogRumPrivacy","selected","error","onClick","onKeyDown"];function C(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?C(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=x(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=function(e){var t=e.target.closest('button, a, input, select, textarea, [role="button"], [role="link"]');return!!(t&&t!==e.currentTarget&&e.currentTarget.contains(t))},k=o.forwardRef(function(e,t){var n=e.title,o=e.titleAs,i=e.subtitle,u=e.headerActionButton,p=e.className,m=e.children,h=e.dataDogRumPrivacy,f=void 0===h?"allow":h,y=e.selected,x=e.error,C=e.onClick,k=e.onKeyDown,A=function(e,t){if(null==e)return{};var n,r,o=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 i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,b),_=null!=n,S=null!=i,I=_||!!u,N=!!C,O=(0,v.jsxs)(l,{$justifyEnd:!_,children:[(0,v.jsx)(r.j,{condition:_,children:(0,v.jsx)(d,{as:o,children:(0,v.jsx)("span",{"data-dd-privacy":f,children:n})})}),(0,v.jsx)(r.j,{condition:!!u,children:u})]});return(0,v.jsx)(g,{value:!0,children:(0,v.jsxs)(a,w(w(w({},A),{},{ref:t,className:p,$selected:y,$error:x,$interactive:N,onKeyDown:N?function(e){null==k||k(e),e.defaultPrevented||e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())}:k},N?w({onClick:function(e){j(e)||null==C||C(e)},role:"button",tabIndex:0},void 0!==y?{"aria-pressed":y}:{}):{}),{},{children:[(0,v.jsx)(r.j,{condition:I,children:S?(0,v.jsxs)(s,{children:[O,(0,v.jsx)(c,{children:(0,v.jsx)("span",{"data-dd-privacy":f,children:i})})]}):O}),m]}))})});k.displayName="Card.Container";var A=o.forwardRef(function(e,t){var n=e.className,r=e.children;return y(),(0,v.jsx)(u,{ref:t,className:n,children:r})});function _(e){var t=e.color;return(0,v.jsxs)(m,{viewBox:"0 0 246 120",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,v.jsx)("rect",{width:"246",height:"120",fill:t,fillOpacity:"0.05"}),(0,v.jsx)("circle",{opacity:"0.04",cx:"123",cy:"60",r:"123",fill:t}),(0,v.jsx)("circle",{opacity:"0.04",cx:"123",cy:"60",r:"98",fill:t}),(0,v.jsx)("circle",{opacity:"0.04",cx:"123",cy:"60",r:"73",fill:t}),(0,v.jsx)("circle",{opacity:"0.04",cx:"123",cy:"60",r:"53",fill:t})]})}A.displayName="Card.Content";var S=o.forwardRef(function(e,t){var n=e.color,r=e.className,o=e.children;return(0,v.jsxs)(p,{ref:t,className:r,children:[n&&(0,v.jsx)(_,{color:n}),(0,v.jsx)(h,{children:o})]})});S.displayName="Card.Media";var I={Container:k,Content:A,Media:S}},88859:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r={INLINE:"inline",STANDALONE:"standalone"}},92650:(e,t,n)=>{"use strict";n.d(t,{P:()=>F});var r=n(84297),o=n(95952),i=n(22737),a=n(17378),l=n(38057),s=n(45540),c=n(90410),d=n(24609),u=n(94506),p=n(53239),m=n(81416),h=n(77091),f=n(9186),y=n(8368),g=n(17999),v=function(e){var t=e.status,n=e.colorKey;return({text:{INFO:f.A.token.color.status.info,WARNING:f.A.token.color.status.alert,ERROR:f.A.token.color.status.negative,SUCCESS:f.A.token.color.status.positive,NEUTRAL:f.A.token.color.status.disabled},surface:{INFO:f.A.token.color.surface.status.info,WARNING:f.A.token.color.surface.status.alert,ERROR:f.A.token.color.surface.status.negative,SUCCESS:f.A.token.color.surface.status.positive,NEUTRAL:f.A.token.color.surface.status.disabled}})[n][t]},x=(0,y.i7)(["from{opacity:0;}to{opacity:1;}"]),b=(0,y.AH)(["animation:"," ","ms ease-in;"],x,200),C=(0,y.i7)(["from{opacity:1;}to{opacity:0;}"]),w=(0,y.AH)(["animation:"," ","ms ease-out;
1"],C,200),j=y.Ay.div.withConfig({displayName:"Calloutstyled__CalloutWrapper",componentId:"sc-1q9ixyt-0"})(["padding:1.5rem;width:100%;min-height:",";background-color:",";border-radius:",";gap:0.625rem;display:flex;align-items:center;justify-content:space-between;"," "," ",""],"4.75rem",function(e){return v({status:e.$status,colorKey:"surface"})},function(e){return e.theme.token.radius["02"]},function(e){return e.$pointer?"cursor: pointer;":""},function(e){return e.$shouldHaveAppearAnimation?b:""},function(e){return e.$shouldHaveHideAnimation?w:""}),k=y.Ay.div.withConfig({displayName:"Calloutstyled__ActionsWrapper",componentId:"sc-1q9ixyt-1"})(["display:flex;align-items:center;gap:",";flex-shrink:0;"],function(e){return e.theme.token.spacing["08"]}),A=y.Ay.div.withConfig({displayName:"Calloutstyled__TextWrapper",componentId:"sc-1q9ixyt-2"})([""," display:flex;flex-direction:column;flex-grow:1;"],function(e){return e.$shouldHaveGap?"gap: 0.5rem;":""}),_=y.Ay.button.withConfig({displayName:"Calloutstyled__IconButton",componentId:"sc-1q9ixyt-3"})(["padding:0;background-color:",";transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:var(--border-radius);cursor:pointer;border:none;"],function(e){return v({status:e.$status,colorKey:"surface"})}),S=(0,y.Ay)(g.Uo).withConfig({displayName:"Calloutstyled__TitleStyled",componentId:"sc-1q9ixyt-4"})(["color:",";margin:0;text-box-trim:trim-both;text-box-edge:cap alphabetic;"],function(e){return v({status:e.$status,colorKey:"text"})}),I=(0,y.Ay)(g.mb).withConfig({displayName:"Calloutstyled__BodyStyled",componentId:"sc-1q9ixyt-5"})(["color:",";margin:0;text-box-trim:trim-both;text-box-edge:cap alphabetic;> *{color:",";}"],function(e){return v({status:e.$status,colorKey:"text"})},function(e){return v({status:e.$status,colorKey:"text"})}),N=n(71465),O=n(16568),E=n(80263);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t,n){var r;return(r=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==P(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=B(B({},N.K.DISMISS,(0,E.jsx)(a.X,{})),N.K.REDIRECT,(0,E.jsx)(l.K,{})),D=B(B(B(B(B({},N.t.INFO,(0,E.jsx)(s.R,{})),N.t.WARNING,(0,E.jsx)(c.N,{})),N.t.ERROR,(0,E.jsx)(d.Q,{})),N.t.SUCCESS,(0,E.jsx)(u.J,{})),N.t.NEUTRAL,(0,E.jsx)(s.R,{})),F=(0,p.forwardRef)(function(e,t){var n,a,l,c=e.status,d=void 0===c?"INFO":c,u=e.title,f=e.description,y=e.customDescription,g=e.dataTestId,x=e.actionButtonDataTestId,b=e.onClick,C=e.actionButtonText,w=e.secondaryOnClick,P=e.secondaryActionButtonDataTestId,T=e.secondaryActionButtonText,B=e.variant,F=e.withIcon,z=e.tooltipProps,M=function(e){if(Array.isArray(e))return e}(n=(0,p.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
1finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,2)||function(e,t){if(e){if("string"==typeof e)return L(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),U=M[0],W=M[1],H=v({status:d,colorKey:"text"});return(0,E.jsxs)(j,{onClick:B&&B===N.K.REDIRECT?b:void 0,$pointer:!!B&&B===N.K.REDIRECT,$status:d,$shouldHaveAppearAnimation:B===N.K.DISMISS&&!U,$shouldHaveHideAnimation:B===N.K.DISMISS&&U,"data-testid":g,ref:t,children:[(void 0===F||F)&&(0,E.jsx)(r.I,{colorfulBackground:!1,color:H,size:o.y.MEDIUM,weight:"bold",children:D[d]}),(0,E.jsxs)(A,{$shouldHaveGap:!!u&&(null!=f||null!=y),children:[(0,E.jsx)(S,{size:"sm",as:"h4",$status:d,children:(0,E.jsx)("span",{children:u})}),(null!=f||null!=y)&&(0,E.jsx)(I,{size:"sm",$status:d,children:null!=f?f:y})]}),(0,E.jsx)(i.j,{condition:!!(null!=z&&z.message),children:(0,E.jsx)(O.m,R(R({},z),{},{asChild:!0,openOnClick:null==(a=null==z?void 0:z.openOnClick)||a,timeToClose:null!=(l=null==z?void 0:z.timeToClose)?l:8e5,children:(0,E.jsx)(_,{type:"button",$status:d,"aria-label":"More information",onClick:function(e){return e.stopPropagation()}
1,children:(0,E.jsx)(r.I,{colorfulBackground:!1,color:H,size:o.y.SMALL,weight:"bold",children:(0,E.jsx)(s.R,{})})})}))}),B&&B!==N.K.ACTION?(0,E.jsx)(_,{type:"button",onClick:B!==N.K.REDIRECT?function(){B===N.K.DISMISS?(W(!0),setTimeout(function(){return b()},200)):b()}:void 0,$status:d,"data-testid":x,children:(0,E.jsx)(r.I,{colorfulBackground:!1,color:H,size:o.y.SMALL,weight:"bold",children:$[B]})}):null,(0,E.jsx)(i.j,{condition:!!B&&B===N.K.ACTION,children:(0,E.jsxs)(k,{children:[!!T&&(0,E.jsx)(m.$,{variant:"text",size:h.l.SMALL,onClick:w,dataTestId:P,children:T}),(0,E.jsx)(m.$,{variant:"text",size:h.l.SMALL,onClick:b,dataTestId:x,children:C})]})})]})});F.displayName="Callout"},94855:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(80263);n(53239);var o=n(59946);let i=n(8368).Ay.div.withConfig({displayName:"ViewportContainer.styled__StyledViewportContainer",componentId:"sc-c3f2ea51-0"})(["width:100%;padding:0 1.5rem;margin:auto;@media ","{max-width:65rem;padding:0;}"],(0,o.P)({from:"xl"})),a=e=>{let{children:t,className:n}=e;return(0,r.jsx)(i,{className:n,children:t})}},97249:(e,t,n)=>{"use strict";n.d(t,{YI:()=>u});var r=n(31901),o=n(87763),i=n(53239),a=n(88089),l=n(15332),s=n(30243),c=n(64413);let d={queryKey:e=>{let{token:t}=e;return["loan-first-membership-status",t]},queryFn:async e=>{let{token:t,signal:n}=e;return a.C.getLoanFirstMembershipStatus(t,n)}};function u(e){var t,n,a,u;let{accessToken:p}=(0,c.useCustomer)(),m=(0,l.f)(),h=(n={enabled:(null==(t=null==e?void 0:e.enabled)||t)&&m&&!!p,refetchOnWindowFocus:!1},(0,r.I)({queryKey:d.queryKey({token:p}),queryFn:async e=>{let{signal:t}=e;return d.queryFn({token:p,signal:t})},enabled:null!=(a=null==n?void 0:n.enabled)?a:!!p,refetchOnWindowFocus:null!=(u=null==n?void 0:n.refetchOnWindowFocus)&&u,cacheTime:o.T2}));return{shouldRunFlow:(0,i.useMemo)(()=>{var e;return!!m&&!!p&&!h.isLoading&&(null==(e=h.data)?void 0:e.lfaoStatus)===s.l.RUN_LFAO},[m,p,h.data,h.isLoading]),isLoading:h.isLoading,isResolvingStatus:h.isInitialLoading,error:h.error,loanFirstData:h.data}}},99732:()=>{}}]);
2//# sourceMappingURL=5755.7d5cb3e4487659f4.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.