PageSourceSearch

https://applynow.avadiancu.com/_next/static/chunks/8825-50becc1c3ff388dd.js

js avadiancu.com collected 2026-09-28 06:45:47 UTC 32,775 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8825],{16308:(e,t,n)=>{n.d(t,{w:()=>m});var o=n(80263),i=n(22737),r=n(34367),l=n(59697),a=n(64022),d=n(64413),s=n(97870),c=n(54134),u=n(45031),f=n(95195),p=n(24072);let m=e=>{var t;let{tosText:n,isSubmittingLoan:m,handleSubmit:y,SubmissionComponent:h,isDisabled:g,shouldDisplayNotices:b,approvalType:v,dealType:x=s.nu.PURCHASE,submitTitle:j}=e,{isPreApproved:C}=(0,a.k)(),{loanTypeSelected:w}=(0,d.useCustomer)(),{content:A}=(0,u.T)(),O=v?v===s.Ud.PRE_APPROVED:C,{handleSubmitWithTracking:_}=(0,c.E)({handleSubmit:y,disclaimer:A,loanType:null!=(t=s.Cg[w])?t:s.Cg.OTHER,shouldTrack:O&&b,dealType:x});return(0,o.jsxs)(f.R8,{"data-testid":"footer-container",children:[(0,o.jsxs)(i.j,{condition:O&&b,children:[(0,o.jsx)(r.c,{}),(0,o.jsx)(p.C,{})]}),(0,o.jsx)(f.MW,{children:(0,o.jsx)(l.E,{children:n})}),(0,o.jsx)(h,{loading:m,onPress:_,disabled:g,title:j})]})}},16568:(e,t,n)=>{n.d(t,{m:()=>m});var o=n(22737),i=n(87086),r=n(53239),l=n(8368),a=(0,l.Ay)(i.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]}),d=(0,l.Ay)(i.l9).withConfig({displayName:"Tooltipstyled__TooltipTrigger",componentId:"sc-ymbg0m-1"})(["",""],function(e){return e.$disablebuttonstyle?"all: unset; box-sizing: border-box; border: none;":""}),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)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function f(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 o,i,r;o=e,i=t,r=n[t],(i=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(i))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r}):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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t,n=e.children,l=e.message,c=e.openOnClick,u=void 0!==c&&c,m=e.timeToClose,h=void 0===m?1e3:m,g=e.delayDuration,b=e.position,v=void 0===b?{side:"top",align:"center"}:b,x=e.disableButtonStyle,j=e.disabled,C=e.asChild,w=e.maxWidth,A=e.dataDogRumPrivacy,O=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,l,a=[],d=!0,s=!1;try{r=(n=n.call(e)).next,!1;for(;!(d=(o=r.call(n)).done)&&(a.push(o.value),a.length!==t);d=!0);}catch(e){s=!0,i=e}finally{try{if(!d&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(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.")}(),_=O[0],E=O[1],I=(0,r.useRef)(null);(0,r.useEffect)(function(){return function(){I.current&&clearTimeout(I.current)}},[h]);var P=(0,r.useCallback)(function(e){E(e),I.current&&(clearTimeout(I.current),I.current=null),e&&(I.current=setTimeout(function(){E(!1)},h))},[h]),k=(0,r.useCallback)(function(){P(!_)},[P,_]);return void 0!==j&&j?(0,s.jsx)(s.Fragment,{children:n}):(0,s.jsx)(i.Kq,{delayDuration:void 0===g?700:g,children:(0,s.jsxs)(i.bL,{open:u?_:void 0,onOpenChange:u?P:void 0,children:[(0,s.jsx)(d,f(f({asChild:void 0===C||C,$disablebuttonstyle:void 0===x||x},u?{onClick:k}:{}),{},{children:n})),(0,s.jsx)(o.j,{condition:!!l,children:(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(a,{side:v.side,align:v.align,"data-testid":"tooltip","data-dd-privacy":A,sideOffset:3,$maxWidth:w,children:[(0,s.jsx)(i.i3,{asChild:!0,children:(0,s.jsx)(y,{})}),l]})})})]})})},y=function(e){return(0,s.jsx)("svg",f(f({},e),{},{width:"12",height:"6",viewBox:"0 0 12 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tooltip-arrow",children:(0,s.jsx)("path",{d:"M0 0L4.91 4.91C5.5 5.51 6.48 5.51 7.07 4.91L12 0L0 0Z",fill:"currentColor"})}))}},19371:(e,t,n)=>{n.d(t,{DT:()=>s,Yk:()=>a,mZ:()=>d});var o=n(86917),i=n(97722),r=n(97870),l=n(35083);let a=e=>null==e?void 0:e.fields.reduce((e,t)=>("loanPurpose"===t.id&&(e={id:t.id,input:(0,i._)((0,o._)({},t.input),{config:t.input.config,type:r.Zo.SELECTABLE_LIST})}),e),{}),d=e=>{let{fields:t,defaultValue:n,excludeValidations:o=!1}=e;return t.reduce((e,t)=>{if((null==t?void 0:t.id)==="amount"){var i,r,l,a,d,s,c;e={inputType:null==t||null==(i=t.input)?void 0:i.type,defaultValue:n,items:null==t||null==(l=t.input)||null==(r=l.config)?void 0:r.options,disabled:null==t||null==(d=t.input)||null==(a=d.config)?void 0:a.disabled,validations:o||null==t||null==(c=t.input)||null==(s=c.config)?void 0:s.validations}}return e},{})},s=(e,t)=>{let n=Number(e.loan.amount);if(null==t?void 0:t.amount){var o,i;let e=null==t||null==(o=t.amount)?void 0:o.min,r=null==t||null==(i=t.amount)?void 0:i.max;if(n<e||n>r)return{loan:{amount:{type:"invalidAmount",message:"Min amount ".concat((0,l.vv)(e,0,0),". Max amount ").concat((0,l.vv)(r,0,0))}}}}return n<1?{loan:{amount:{type:"invalidAmount",message:"Loan amount must be greater than $0"}}}:{}}},23396:(e,t,n)=>{n.d(t,{S5:()=>p,B3:()=>f,PN:()=>m,fI:()=>y});var o=n(86917),i=n(97722),r=n(31901),l=n(87763),a=n(81191),d=n(73598),s=n(64413),c=n(53239),u=n(59413);let f="GET /offers",p={queryKey:e=>{let{amount:t,coApplicantId:n,loanType:o,loanId:i,spouseWillSignLoan:r}=e;return[f,null!=t?t:"",null!=n?n:"",null!=o?o:"",null!=i?i:"",null!=r?r:""]}},m=(e,t)=>e.monthlyPayments-t.monthlyPayments,y=e=>{let{accessToken:t}=(0,s.useCustomer)(),n="loanId"in e,f=n?p.queryKey({loanId:e.loanId,coApplicantId:e.coApplicantId,loanType:e.loanType,spouseWillSignLoan:e.spouseWillSignLoan}):p.queryKey({amount:e.amount,coApplicantId:e.coApplicantId,loanType:e.loanType,spouseWillSignLoan:e.spouseWillSignLoan}),y=e.enabled&&(n?!!e.loanId:!!(e.amount&&e.loanPurpose)),{refetch:h,data:g,isLoading:b,isFetching:v,isFetched:x}=(0,r.I)({queryKey:f,queryFn:async r=>{var l,d;let{signal:s}=r;if(n){let{loanId:n,coApplicantId:o,isExistingLoanFromSameLender:i,utmVariables:r}=e,l=await u.Y.getOffers({loanId:n,coApplicantId:o,isExistingLoanFromSameLender:i,metadata:{utmData:r}},t,s);return(null==l?void 0:l.sort(m))||[]}let{amount:c,loanPurpose:f,loanType:p,section:y,coApplicantId:h,utmVariables:g}=e;if((null==(d=e.errors)||null==(l=d.loan)?void 0:l.amount)&&y===a.jP.CUSTOM_AMOUNT||!c||!f)return[];let b={type:p,amount:Number(c),collaterals:[]},v=(0,i._)((0,o._)({},{coApplicantId:h,loanPurpose:f,metadata:{utmData:g}}),{loan:b}),x=await u.Y.getOffers(v,t,s);return(null==x?void 0:x.sort(m))||[]},refetchOnWindowFocus:!1,enabled:y,staleTime:l.$m,cacheTime:l.To}),j=(0,c.useMemo)(()=>null==g?void 0:g.filter(e=>(0,d.z)(e.apr)),[g]),C=(0,c.useMemo)(()=>null==g?void 0:g.filter(e=>!(0,d.z)(e.apr)),[g]);return{isDataReady:!b&&!v,isFirstLoad:b&&0===(null!=g?g:[]).length,validOffers:j,invalidOffers:C,refetchOffers:h,offers:g,isLoading:b,isFetching:v,isFetched:x}}},33986:(e,t,n)=>{n.d(t,{H:()=>o.H});var o=n(40196)},40308:(e,t,n)=>{n.d(t,{x:()=>i});var o=n(53239),i=function(){(0,o.useEffect)(function(){var e=new Set,t=function(t){var n=t.target,o=t.relatedTarget;if(o instanceof HTMLElement&&n instanceof Node){var i=o.closest('[role="dialog"]');if(i&&i.contains(n)){var r=requestAnimationFrame(function(){e.delete(r),i.isConnected&&o.isConnected&&document.activeElement===i&&o.focus()});e.add(r)}}};return document.addEventListener("focusout",t,!0),function(){document.removeEventListener("focusout",t,!0),e.forEach(cancelAnimationFrame)}},[])}},51356:(e,t,n)=>{n.d(t,{b:()=>o,h:()=>i});var o={SMALL:"small",REGULAR:"regular",EMPTY:"empty"},i={SMALL:"small",REGULAR:"regular"}},61970:(e,t,n)=>{n.d(t,{Z:()=>w});var o=n(22737),i=n(53239),r=n(8368),l=n(25437),a=n(72828),d=n(51356),s=n(43348),c=r.Ay.div.withConfig({displayName:"C
1ardstyled__CardContainer",componentId:"sc-wh37z9-0"})(["--background:",";display:",";flex-direction:",";border-radius:16px;padding:16px;gap:12px;min-width:",";min-height:",";",";",";",";",";",";",";background:var(--background);"],function(e){return e.theme.token.color.surface.neutral},function(e){return e.$imageSize===d.h.REGULAR?"block":"flex"},function(e){return e.$imageSize===d.h.REGULAR?"none":"row"},function(e){return e.$shouldDisplayImageSection?"400px":"250px"},function(e){return e.$autoHeight?"":"135px"},function(e){return e.onClick?"cursor: pointer;":""},function(e){return e.$type===d.b.SMALL?"align-items: center":""},function(e){return e.$type===d.b.SMALL?"height: 100%;":""},function(e){var t=e.theme,n=e.$selected;return e.$hasError?"border: 2px solid ".concat(t.token.color.status.negative):n?"border: 3px solid ".concat(t.token.color.gray["600"]):"border: 2px solid ".concat(t.token.color.gray["300"])},function(e){var t=e.onClick,n=e.theme;return t?"&:hover {\n    --background: ".concat(n.token.color.surface.card,";\n  }"):""},function(e){var t=e.onClick,n=e.theme;return t?" &:focus,\n  &:active {\n    border: 3px solid ".concat(n.token.color.gray["600"],";\n  }"):""}),u=r.Ay.div.withConfig({displayName:"Cardstyled__CardInfoContainer",componentId:"sc-wh37z9-1"})(["display:flex;flex-direction:",";align-self:center;gap:0.5rem;width:100%;justify-content:space-between;height:",";"],function(e){return e.$infoContainerDirection},function(e){return e.$infoContainerAutoHeight?"100%":""}),f=r.Ay.div.withConfig({displayName:"Cardstyled__ExtraInfoContainer",componentId:"sc-wh37z9-2"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),p=(0,r.Ay)(s.E).withConfig({displayName:"Cardstyled__ExtraInfoText",componentId:"sc-wh37z9-3"})(["font-size:",";margin:0;"],function(e){return e.theme.token.typography.fontSize["01"]}),m=r.Ay.div.withConfig({displayName:"Cardstyled__InnerContainer",componentId:"sc-wh37z9-4"})(["display:flex;gap:16px;margin-bottom:12px;"]),y=r.Ay.div.withConfig({displayName:"Cardstyled__ImageContainer",componentId:"sc-wh37z9-5"})(["border-radius:",";max-height:107px;position:relative;overflow:hidden;width:153px;img{display:block;}"],function(e){return e.theme.token.radius["02"]}),h=r.Ay.div.withConfig({displayName:"Cardstyled__IconPlaceholder",componentId:"sc-wh37z9-6"})(["display:grid;place-items:center;width:153px;height:107px;border-radius:8px;background-color:",";"],function(e){return e.$backgroundColor}),g=r.Ay.div.withConfig({displayName:"Cardstyled__ImageSectionContainer",componentId:"sc-wh37z9-7"})(["display:flex;justify-content:center;align-items:center;"]),b=r.Ay.div.withConfig({displayName:"Cardstyled__MainInfoContainer",componentId:"sc-wh37z9-8"})(["display:flex;flex-direction:row;gap:1rem;"]),v=r.Ay.div.withConfig({displayName:"Cardstyled__TextSection",componentId:"sc-wh37z9-9"})(["display:flex;flex-direction:column;gap:",";justify-content:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],function(e){return e.$hasGapBetween?"0.5rem":""}),x=(0,r.Ay)(s.E).withConfig({displayName:"Cardstyled__Title",componentId:"sc-wh37z9-10"})(["overflow:hidden;text-wrap:balance;max-height:2.5em;margin:0;"]),j=(0,r.Ay)(s.E).withConfig({displayName:"Cardstyled__SubTitle",componentId:"sc-wh37z9-11"})(["font-size:",";margin:0;"],function(e){return e.theme.token.typography.fontSize["01"]}),C=n(80263),w=i.forwardRef(function(e,t){var n=(0,r.DP)(),i=e.hasError,s=e.type,w=void 0===s?d.b.REGULAR:s,A=e.image,O=e.imagePlaceholderIcon,_=e.imagePlaceholderBackgroundColor,E=e.imageSize,I=void 0===E?d.h.SMALL:E,P=e.title,k=e.subTitle,S=e.extraInfo,T=e.icon,N=e.leftExtraInfo,L=e.rightExtraInfo,D=e.isSelected,M=void 0!==D&&D,R=e.handleClick,$=e.buttonText,z=e.autoHeight,F=void 0!==z&&z,U=e.infoContainerAutoHeight,B=e.infoContainerDirection,W=e.className,H=e.children,G=e.dataTestId,Y=void 0===G?"card":G,X=!!A||!!O,q=!!(R&&!$),K=function(){return(0,C.jsxs)(g,{children:[(0,C.jsx)(o.j,{condition:!!A,children:(0,C.jsx)(y,{children:A})}),(0,C.jsx)(o.j,{condition:!A&&!!O,children:(0,C.jsx)(h,{$backgroundColor:_,children:O})})]})},V=function(){return(0,C.jsxs)(b,{children:[(0,C.jsx)(o.j,{condition:!!T,children:T}),(0,C.jsxs)(v,{$hasGapBetween:!!k,children:[(0,C.jsx)(o.j,{condition:!!P,children:"string"==typeof P?(0,C.jsx)(x,{$weight:"bold",children:P}):P}),(0,C.jsx)(o.j,{condition:!!k,children:"string"==typeof k?(0,C.jsx)(j,{$color:n.token.color.text.tertiary,children:k}):k})]})]})};return w===d.b.EMPTY?(0,C.jsx)(c,{ref:t,$hasError:i,$type:w,$imageSize:I,$shouldDisplayImageSection:X,$selected:M,$autoHeight:F,onClick:R,"data-testid":Y,role:q?"button":void 0,className:W,children:H}):(0,C.jsxs)(c,{ref:t,$type:w,$imageSize:I,$shouldDisplayImageSection:X,$selected:M,$autoHeight:F,onClick:R,"data-testid":Y,role:q?"button":void 0,className:W,children:[(0,C.jsx)(o.j,{condition:I===d.h.REGULAR,children:(0,C.jsxs)(m,{children:[(0,C.jsx)(o.j,{condition:X,children:K()}),V()]})}),(0,C.jsx)(o.j,{condition:I===d.h.SMALL&&X,children:K()}),(0,C.jsxs)(u,{$infoContainerDirection:void 0===B?"column":B,$infoContainerAutoHeight:void 0!==U&&U,children:[(0,C.jsx)(o.j,{condition:I===d.h.SMALL,children:V()}),(0,C.jsx)(o.j,{condition:!!S,children:(0,C.jsx)(p,{$color:n.token.color.text.tertiary,$variant:"label",children:S})}),(0,C.jsx)(o.j,{condition:!!(N||L),children:(0,C.jsxs)(f,{children:[N,L]})}),(0,C.jsx)(o.j,{condition:!!$,children:(0,C.jsx)(l.$,{onClick:R,fullWidth:!0,size:a.l.SMALL,children:$})})]})]})});
1w.displayName="Card"},64022:(e,t,n)=>{n.d(t,{k:()=>u});var o=n(31901),i=n(66104),r=n(19371),l=n(81191),a=n(59783),d=n(64413),s=n(53239),c=n(97870);let u=()=>{var e,t,n,u,f,p,m,y,h;let{loanTypeSelected:g}=(0,d.useCustomer)(),{data:b,isFetched:v}=(0,o.I)({queryKey:[i.g],enabled:!1}),x=null!=(m=null==b||null==(e=b.syntheticOffers)?void 0:e[g])?m:null==b||null==(t=b.syntheticOffers)?void 0:t[c.Cg.PERSONAL],j=(null==x?void 0:x.strongOffer)?x.strongOffer:null==x?void 0:x.preQualified,C=null!=(y=null==j?void 0:j.max.amount)?y:void 0,w=null!=(h=null==j?void 0:j.recommended.amount)?h:void 0,A=null==x?void 0:x.approvalType,{loanConfig:O}=(0,a.K)({loanType:g}),_=null==O||null==(p=O.fields)||null==(f=p.find(e=>"amount"===e.id))||null==(u=f.input)||null==(n=u.config)?void 0:n.validations,E=null==_?void 0:_.max,I=null==_?void 0:_.min,P=(0,s.useCallback)(e=>{let t=null!=C?C:E;return!t||(e?Number(e):0)<=Number(t)},[C,E]),k=(0,s.useCallback)(e=>0===Object.keys((0,r.DT)({loan:{amount:e}},{amount:_})).length,[_]),S=(0,s.useMemo)(()=>A===l.HA.PRE_QUALIFIED,[A]),T=(0,s.useMemo)(()=>A===l.HA.PRE_APPROVED,[A]);return{strongOfferMaxAmount:C,strongOfferRecommendedAmount:w,isAmountUnderMaxValue:P,isAmountWithinConfiguredRange:k,loanConfigMinAmount:I,approvalType:A,isPreQualified:S,isPreApproved:T,isBestOffersSettled:v}}},66104:(e,t,n)=>{n.d(t,{g:()=>u,u:()=>f});var o=n(86917),i=n(97722),r=n(32144),l=n(54366),a=n(42845),d=n(64413),s=n(53239),c=n(97870);let u="GET personal-loan-best-offers",f=e=>{var t,n;let{shouldFetchBestOffers:f=!0,isFromTruvWidget:p}=e,m=(0,r.jE)(),{loanTypeSelected:y}=(0,d.useCustomer)(),{data:h,isFetched:g,isLoading:b,refetch:v}=(0,a.d)({enabled:f,refresh:p}),x=(e=>{var t;if(!e)return;let n=Object.entries(null!=(t=e.syntheticOffers)?t:{}).map(e=>{let[t,n]=e;return{loanType:t,strongOffer:(e=>{if(!e)return;"PRE_QUALIFIED"===e.approvalType&&(0,l.ZI)("best-offer-prequalified");let t=e.strongOffer?e.strongOffer:e.preQualified;return(0,i._)((0,o._)({},e),{strongOffer:t?(0,i._)((0,o._)({},t),{recommended:{amount:t.recommended.amount/100},max:{amount:t.max.amount/100}}):void 0})})(n)}}).reduce((e,t)=>{let{loanType:n,strongOffer:o}=t;return e[n]=o,e},{});return(0,i._)((0,o._)({},e),{syntheticOffers:n})})(h);(0,s.useEffect)(()=>{g&&m.setQueryData([u],e=>{var t;return null!=(t=null!=x?x:e)?t:null})},[m,g,x]);let j=y||c.Cg.PERSONAL,C=null!=(n=null==x||null==(t=x.syntheticOffers)?void 0:t[j])?n:null;return{isDataReady:!f||!b,hasPrequalOffer:(null==C?void 0:C.approvalType)===c.Ud.PRE_QUALIFIED||(null==C?void 0:C.approvalType)===c.Ud.PRE_APPROVED,refetchBestOffers:v,bestOffersResponse:C,approvalType:null==C?void 0:C.approvalType}}},66963:(e,t,n)=>{n.d(t,{E:()=>u,C:()=>f});var o=n(86917),i=n(80263),r=n(8368);let l=(0,r.i7)(["0%{background-position:200% 0;}100%{background-position:-200% 0;}"]),a=(0,r.AH)(["background:linear-gradient(90deg,transparent,rgba(0,0,0,0.04),transparent),rgba(0,0,0,0.11);background-size:200% 100%;animation:"," 1.6s linear 0.5s infinite;"],l),d=e=>"number"==typeof e?"".concat(e,"px"):"string"==typeof e?e:"100%",s=r.Ay.div.withConfig({displayName:"Skeleton.styled__Rect",componentId:"sc-1698c82-0"})([""," width:",";height:",";border-radius:",";"],a,e=>{let{$width:t}=e;return d(t)},e=>{let{$height:t}=e;return d(t)},e=>{let{theme:t}=e;return t.foundations.radius.lg}),c=r.Ay.div.withConfig({displayName:"Skeleton.styled__Circle",componentId:"sc-1698c82-1"})([""," width:",";height:",";border-radius:50%;"],a,e=>{let{$size:t}=e;return d(t)},e=>{let{$size:t}=e;return d(t)});function u(e){let{variant:t,size:n,height:o,width:r,style:l}=e;return"circle"===t?(0,i.jsx)(c,{role:"presentation","data-testid":"circle-skeleton",$size:n,style:l}):(0,i.jsx)(s,{role:"presentation","data-testid":"rect-skeleton",$height:o,$width:r,style:l})}let f=e=>{let{amount:t,skeletonProps:n,keyPrefix:i}=e;return Array.from({length:t},(e,t)=>{let r=i?"".concat(i,"-skeleton-").concat(t):"skeleton-".concat(t);return(0,o._)({key:r},n)})}},79420:(e,t,n)=>{n.d(t,{T:()=>o.T}),n(97182);var o=n(95419)},81191:(e,t,n)=>{n.d(t,{HA:()=>l,Zt:()=>s,jP:()=>r,mA:()=>a,qH:()=>d});var o=n(86917),i=n(97722);let r={PURPOSE:"PURPOSE",RANGE_AMOUNT:"RANGE_AMOUNT",CUSTOM_AMOUNT:"CUSTOM_AMOUNT"},l={PRE_QUALIFIED:"PRE_QUALIFIED",PRE_APPROVED:"PRE_APPROVED"},a={EXCELLENT:"EXCELLENT",MODERATE:"MODERATE",LOWER:"LOWER",ABOVE_MAX:"ABOVE_MAX",BELOW_MIN:"BELOW_MIN"},d=2,s=(0,i._)((0,o._)({},a),{EXCEEDS_MAX:"EXCEEDS_MAX"})},84176:(e,t,n)=>{n.d(t,{a:()=>$});var o=n(84297),i=n(95952),r=n(22737),l=n(40308),a=n(17378),d=n(49454),s=n(53239),c=n(33332),u=n(25437),f=n(72828),p=n(34367),m=n(8368),y=m.Ay.div.withConfig({displayName:"ModalBottomNavstyled__ModalBottomNav",componentId:"sc-1npe5e0-0"})(["display:flex;padding:1.5rem;gap:0.75rem;"]),h=m.Ay.div.withConfig({displayName:"ModalBottomNavstyled__ModalDividerWrapper",componentId:"sc-1npe5e0-1"})(["margin-top:0.65rem;"]),g=n(80263);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?v(Object(n),!0).forEach(function(t){var o,i,r;o=e,i=t,r=n[t],(i=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(i))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=function(e){var t=e.slice(0,3);return t.map(function(e,n){var o;switch(t.length){case 1:default:o=f.h.PRIMARY;break;case 2:o=0===n?f.h.TEXT:f.h.PRIMARY;break;case 3:o=0===n?f.h.TEXT:1===n?f.h.SECONDARY:f.h.PRIMARY}return x(x({},e),{},{variant:o})})},C=function(e){var t=e.buttons,n=e.loading,o=e.isSubmit,i=j(t);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h,{children:(0,g.jsx)(p.c,{})}),(0,g.jsx)(y,{children:i.map(function(e){return!o&&"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):o&&"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})})]})},w=(0,m.i7)(["from{opacity:0;}to{opacity:1;}"]),A=(0,m.i7)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),O=(0,m.i7)(["from{opacity:0;transform:translate(-50%,-48%) scale(0.96);}to{opacity:1;transform:translate(-50%,-50%) scale(1);}"]),_=(0,m.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},w,function(e){return e.theme.token.zIndex[200]}),E=(0,m.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]},A,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"]},O,function(e){return e.theme.token.radius["03"]}),I=m.Ay.div.withConfig({displayName:"Modalstyled__ModalInnerContainer",componentId:"sc-b7pnlx-2"})(["padding:0.75rem 1.5rem 1.5rem;"]),P=m.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}),k=m.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}),S=m.Ay.div.withConfig({displayName:"Modalstyled__VisuallyHidden",componentId:"sc-b7pnlx-5"})(["clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;"]),T=m.Ay.div.withConfig({displayName:"Modalstyled__ModalTitleWrapper",componentId:"sc-b7pnlx-6"})(["h1,h2,h3,h4,h5,h6{margin:0;}"]),N=n(24825);function L(e){return(L="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=["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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?M(Object(n),!0).forEach(function(t){var o,i,r;o=e,i=t,r=n[t],(i=function(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=L(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}(i))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r}):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 $=s.forwardRef(function(e,t){var n=e.withCloseButton,u=void 0===n||n,f=e.shouldCloseOnOutsideClick,p=e.children,m=e.onClose,y=e.title,h=e.loading,b=e.buttons,v=e.isFormModal,x=e.alignItems,j=e.shouldUseDesignSystemFont,w=e["aria-label"],A=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,D);(0,l.x)();var O=(0,s.useRef)(null);return(0,g.jsx)(d.bL,R(R({},A),{},{modal:!0,children:(0,g.jsxs)(d.ZL,{children:[(0,g.jsx)(_,{"data-testid":"modal-overlay"}),(0,g.jsxs)(E,{ref:t,$shouldUseDesignSystemFont:void 0!==j&&j,"aria-label":y?void 0:w,"aria-describedby":void 0,onPointerDownOutside:void 0===f||f?m:void 0,onEscapeKeyDown:m,onOpenAutoFocus:function(){O.current="undefined"!=typeof document?document.activeElement:null},onCloseAutoFocus:function(e){var t=O.current;null!=t&&t.isConnected&&(e.preventDefault(),t.focus())},children:[(0,g.jsx)(r.j,{condition:!y&&!w,children:(0,g.jsx)(d.hE,{asChild:!0,children:(0,g.jsx)(S,{children:"Dialog"})})}),(0,g.jsxs)(I,{children:[(0,g.jsx)(r.j,{condition:!!y||u,children:(0,g.jsxs)(P,{$withTitle:!!y,children:[(0,g.jsx)(r.j,{condition:!!y,children:(0,g.jsx)(d.hE,{asChild:!0,children:(0,g.jsx)(T,{children:(0,g.jsx)(N.h,{as:"h2",variant:"secondary",children:y})})})}),(0,g.jsx)(r.j,{condition:u,children:(0,g.jsx)(d.bm,{asChild:!0,children:(0,g.jsxs)(c.K,{onClick:m,children:[(0,g.jsx)(o.I,{size:i.y.LARGE,children:(0,g.jsx)(a.X,{"data-testid":"close-icon"})}),(0,g.jsx)(S,{children:"Close dialog"})]})})})]})}),(0,g.jsx)(k,{$alignItems:void 0===x?"left":x,children:p})]}),(0,g.jsx)(C,{buttons:b,loading:h,isSubmit:void 0!==v&&v})]})]})}))});$.displayName="Modal"},90627:(e,t,n)=>{n.d(t,{CV:()=>r,Fw:()=>l,XD:()=>u,gZ:()=>a,h$:()=>c,sf:()=>i,tk:()=>d});var o=n(8368);let i=o.Ay.form.withConfig({displayName:"PersonalLoanForm.styled__FormContent",componentId:"sc-d6f87eef-0"})(["display:flex;flex-direction:column;flex:1;gap:1.5rem;padding:1rem 0;"]),r=o.Ay.footer.withConfig({displayName:"PersonalLoanForm.styled__BottomContentWrapper",componentId:"sc-d6f87eef-1"})(["padding:32px 0 0;display:flex;flex-direction:column;gap:1.5rem;"]),l=o.Ay.div.withConfig({displayName:"PersonalLoanForm.styled__ButtonsWrapper",componentId:"sc-d6f87eef-2"})(["flex:1;display:flex;flex-direction:column;min-height:max-content;justify-content:flex-end;width:100%;> div{margin-bottom:8px;}"]),a=o.Ay.main.withConfig({displayName:"PersonalLoanForm.styled__Main",componentId:"sc-d6f87eef-3"})(["display:flex;flex-direction:column;flex:1;"]),d=o.Ay.div.withConfig({displayName:"PersonalLoanForm.styled__DisclaimerWrapper",componentId:"sc-d6f87eef-4"})(["margin-top:6px;margin-bottom:6px;@media (min-width:800px){margin-top:8px;margin-bottom:8px;}"]),s=o.Ay.div.withConfig({displayName:"PersonalLoanForm.styled__ContentContainer",componentId:"sc-d6f87eef-5"})(["overflow:auto;overflow-y:overlay;display:flex;flex-direction:column;flex:1;padding:16px 24px;"]),c=(0,o.Ay)(s).withConfig({displayName:"PersonalLoanForm.styled__StepsContainer",componentId:"sc-d6f87eef-6"})(["padding:0;overflow:visible;h2{margin-bottom:8px;}"]),u=o.Ay.div.withConfig({displayName:"PersonalLoanForm.styled__SpinnerContainer",componentId:"sc-d6f87eef-7"})(["display:flex;text-align:center;justify-content:center;padding:24px;flex:1;"])},95419:(e,t,n)=>{n.d(t,{T:()=>c});var o=n(80263),i=n(25437),r=n(43894),l=n(56455),a=n(84474),d=n(42884),s=n(90627);let c=e=>{let{text:t,disabled:n,loading:c,onPress:u,title:f,formId:p}=e,m=f||"SUBMIT APPLICATION",{isToggleEnabled:y}=(0,d.gK)();return(0,o.jsxs)(s.CV,{children:[t&&(0,o.jsx)(s.tk,{children:(0,o.jsx)(r.M,{text:t})}),(0,o.jsx)(s.Fw,{id:"personal-loan-submit-button",children:(0,o.jsx)(a.j,{condition:y,fallback:(0,o.jsx)(l.y,{loading:c,onPress:u,type:"submit",form:p,styleType:"primary",title:m,disabled:n}),children:(0,o.jsx)(i.$,{loading:c,disabled:n,onClick:u,type:"submit",form:p,size:"lg",fullWidth:!0,children:m})})})]})}},97182:(e,t,n)=>{n.d(t,{K:()=>h});var o=n(80263),i=n(92650),r=n(59697),l=n(84176),a=n(57253);let d=e=>{if("string"==typeof e)return e||void 0;if(Array.isArray(e)){let t=e.filter(e=>"string"==typeof e&&e.length>0);return t.length>0?t.join("<br/><br/>"):void 0}};var s=n(53239),c=n(71063),u=n(8368);let f=u.Ay.button.withConfig({displayName:"ApplicationFeeDisclaimer.styled__SeeDetailsButton",componentId:"sc-e9da8795-0"})(["background:none;border:none;padding:0;margin:0;text-decoration:underline;cursor:pointer;font:inherit;color:",";&:focus-visible{outline:2px solid currentColor;outline-offset:2px;}"],e=>{let{theme:t}=e;return t.token.color.text.secondary}),p=u.Ay.div.withConfig({displayName:"ApplicationFeeDisclaimer.styled__DialogBody",componentId:"sc-e9da8795-1"})(["font-size:",";"],e=>{let{theme:t}=e;return t.token.typography.fontSize["02"]}),m=u.Ay.div.withConfig({displayName:"ApplicationFeeDisclaimer.styled__DisclaimerWrapper",componentId:"sc-e9da8795-2"})(["width:100%;"]),y=(e,t)=>e.replaceAll("{{amount}}",t),h=e=>{let{fees:t,loanType:n}
1=e,[u,h]=(0,s.useState)(!1),{calloutTitle:g,calloutBody:b,dialogTitle:v,dialogBody:x}=(e=>{var t,n;let{loansConfig:o}=(0,a.W)(),i=((e,t)=>{if(!e||!t)return;let n=e[t];return null==n?void 0:n.text})(o,e);return{calloutTitle:"Application fee",dialogTitle:"Application fees",calloutBody:null!=(t=d(null==i?void 0:i.APPLICATION_FEE_CALLOUT_BODY))?t:"This application includes a one time <strong>{{amount}}</strong> non-refundable fee.",dialogBody:null!=(n=d(null==i?void 0:i.APPLICATION_FEE_DIALOG_BODY))?n:"<p>This one time, standard, {{amount}} fee is required to submit your application. It covers the processing, underwriting and other administrative costs.</p><p>This fee is non-refundable and will be collected at the time of application submission, regardless of whether or not your application is approved.</p>"}})(n),j=(e=>{if(Array.isArray(e))return e.find(e=>null!=e&&"object"==typeof e&&Number.isFinite(e.amountCents)&&e.amountCents>0)})(t);if(!j)return null;let C=(0,c.YD)(j.amountCents),w=y(b,C),A=y(x,C),O=()=>h(!1);return(0,o.jsxs)(m,{children:[(0,o.jsx)(i.P,{status:"NEUTRAL",title:g,dataTestId:"application-fee-callout",customDescription:(0,o.jsxs)("span",{children:[(0,o.jsx)(r.E,{component:"span",children:w})," ",(0,o.jsx)(f,{type:"button",onClick:()=>h(!0),"aria-haspopup":"dialog","aria-expanded":u,"data-testid":"application-fee-see-details",children:"See details"})]})}),(0,o.jsx)(l.a,{open:u,onClose:O,title:v,withCloseButton:!0,shouldCloseOnOutsideClick:!0,buttons:[{text:"OK",onClick:O}],children:(0,o.jsx)(p,{"data-testid":"application-fee-dialog-body",children:(0,o.jsx)(r.E,{children:A})})})]})}}}]);
2//# sourceMappingURL=8825-50becc1c3ff388dd.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.