PageSourceSearch

https://refinance.freedomcu.org/_next/static/chunks/2705.390137a1d0851af4.js

js freedomcu.org collected 2026-09-25 00:01:16 UTC 32,353 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2705],{14205:(e,t,r)=>{r.d(t,{FD:()=>a,NM:()=>o,nR:()=>i,nw:()=>n});let i=(e,t,r)=>(t-r)/100*e,a=(e,t)=>{let r=0;return e&&e.forEach(e=>{e.balanceTransfer&&(r+=i(e.previousUnpaidBalance,e.apr,t.apr))}),r},n=(e,t)=>t&&0!==t.length?t.reduce((t,r)=>t+i(r.previousUnpaidBalance,r.apr,e.apr),0):0,o=e=>{let t=0;return e&&e.forEach(e=>{let r=e.balanceTransfer;r&&(t+=r.amount)}),t}},19226:(e,t,r)=>{r.d(t,{O:()=>a,K:()=>s});var i=r(53239);let a=(0,i.createContext)({});var n=r(80263),o=r(85234),d=r(57253);let s=()=>{let{text:e}=(0,d.W)(),{isModalOpen:t,toggleModal:r}=(0,i.useContext)(a),s=e.PARTNER_LONG_NAME;return(0,n.jsx)(o.a,{isOpen:t,title:"Chance of Approval",onCloseClick:r,children:(0,n.jsxs)("div",{style:{maxWidth:"512px"},children:[(0,n.jsxs)("p",{children:["The chance of approval shown is determined based on the information you've provided, the data gathered from your soft pull credit file, and on whether you meet ",s," underwriting criteria for this product."]}),(0,n.jsxs)("p",{children:['For example, you may not be approved because you don\'t meet the "ability to pay standard" after ',s," ","verifies your income and employment. You may be asked to provide more information during the verification process."]}),(0,n.jsx)("p",{children:"Knowing your chance of approval may help you narrow down your choices."})]})})}},30467:(e,t,r)=>{r.d(t,{C:()=>a});var i=r(57253);let a=()=>{var e,t;let{features:r}=(0,i.W)(),a=null==(t=window)||null==(e=t.localStorage)?void 0:e.getItem("overrides.balance_transfer");return a?"true"===a:r.ENABLE_BALANCE_TRANSFER}},31814:(e,t,r)=>{r.d(t,{m:()=>s});var i=r(86917),a=r(97722),n=r(80263),o=r(45540),d=r(14070);let s=e=>(0,n.jsx)(d.I,(0,a._)((0,i._)({},e),{children:(0,n.jsx)(o.R,{})}))},36648:(e,t,r)=>{r.d(t,{S:()=>s});var i=r(86917),a=r(97722),n=r(80263),o=r(94506),d=r(14070);let s=e=>(0,n.jsx)(d.I,(0,a._)((0,i._)({},e),{children:(0,n.jsx)(o.J,{})}))},36669:(e,t,r)=>{r.d(t,{Q:()=>a});var i=r(97870);let a=e=>e===i.ie.PRE_QUALIFIED||e===i.ie.PRE_APPROVED},48589:(e,t,r)=>{r.r(t),r.d(t,{CreditCardOffers:()=>eZ});var i=r(86917),a=r(80263),n=r(67380),o=r(47365),d=r(59046),s=r(46771),l=r(79445),c=r(66329),p=r(39196),h=r(42884),u=r(35613),f=r(82198),m=r(32406),x=r(62617),g=r(7711),y=r(73598),C=r(57253),b=r(82898),w=r(82643),j=r(64413),v=r(86281),_=r(53239),A=r(37034),I=r(62502),E=r(97870),B=r(98282),N=r(36669),O=r(94411),D=r(96672),k=r(5960),T=r(57440),R=r(30467),S=r(19226),$=r(43894),z=r(66963),L=r(8368);let U=L.Ay.div.withConfig({displayName:"CreditCardOffersDisclaimer.styled__Wrapper",componentId:"sc-aa22168b-0"})(["margin:0;padding:24px;border-bottom:reset;width:100%;@media screen and (min-width:510px){padding:",";border-bottom:",";margin-bottom:16px;}"],e=>e.$enableGlowUp?"20px 0 0":"24px 0 20px",e=>e.$withBorder?"1px solid #cccccc":""),P=L.Ay.div.withConfig({displayName:"CreditCardOffersDisclaimer.styled__SkeletonContainer",componentId:"sc-aa22168b-1"})(["display:flex;flex-direction:column;row-gap:0.5rem;height:30px;"]),F=e=>{let{isLoadingCreditCardOffers:t,offersDisclaimer:r,$enableGlowUp:i}=e;return(0,a.jsx)(U,{$withBorder:!i&&!t,$enableGlowUp:i,children:t?(0,a.jsx)(W,{}):(0,a.jsx)($.M,{text:r,alignCenter:i})})};function W(){return(0,a.jsxs)(P,{children:[(0,a.jsx)(z.E,{variant:"rect"}),(0,a.jsx)(z.E,{variant:"rect"})]})}let G=L.Ay.div.withConfig({displayName:"CreditCardOfferBoxPreQualified.styled__Box",componentId:"sc-9c824c29-0"})(["background-color:",";display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:",";height:78px;border-radius:",";@media screen and (max-width:488px){border-radius:0;}p{margin:0;font-weight:",";span{font-weight:bold;}}"],e=>e.theme.token.color.gray["100"],e=>e.$enableGlowUp?"none":e.theme.foundations.elevation.z1,e=>e.$enableGlowUp?"0.5rem":"8px",e=>e.theme.foundations.typography.fontWeight.normal),Q=L.Ay.div.withConfig({displayName:"CreditCardOfferBoxPreQualified.styled__BoxText",componentId:"sc-9c824c29-1"})(["display:flex;flex-direction:row;justify-content:space-around;align-items:center;@media screen and (min-width:375px){font-size:1.25rem;}img{padding-right:9px;}"]),H=L.Ay.button.withConfig({displayName:"CreditCardOfferBoxPreQualified.styled__ApprovalOddsButton",componentId:"sc-9c824c29-2"})(["background:none;border:none;padding:0;text-decoration:underline;font-style:normal;font-weight:bold;font-size:",";line-height:14px;color:",";margin-top:8px;
1cursor:pointer;"],e=>e.theme.foundations.typography.fontSize.xs,e=>e.theme.token.color.blue[700]),M=e=>{let{numberCreditCards:t}=e;return(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{children:"Not pre qualified for"})," ",t," credit card",1!==t&&"s"]})},V=e=>{let{numberCreditCards:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/assets/icons/check-circle-black.svg",alt:"check-circle-icon"}),(0,a.jsxs)("p",{children:["Pre qualified for"," ",(0,a.jsxs)("span",{children:[t," credit card",1!==t&&"s"]})]})]})},q=e=>{let{isPreQualified:t,numberCreditCards:r,$enableGlowUp:i}=e,{toggleModal:n}=(0,_.useContext)(S.O);return(0,a.jsxs)(G,{$enableGlowUp:i,children:[(0,a.jsx)(Q,{children:t?(0,a.jsx)(V,{numberCreditCards:r}):(0,a.jsx)(M,{numberCreditCards:r})}),(0,a.jsx)(H,{type:"button",onClick:n,children:"What does this mean?"})]})};var K=r(22737),Y=r(30482),J=r(37473),X=r(14205),Z=r(35083),ee=r(94389);let et=L.Ay.div.withConfig({displayName:"ApprovalBanner.styled__Container",componentId:"sc-235b4646-0"})(["display:flex;font-size:",";width:100%;height:100%;background-color:",";border-radius:7px 7px 0 0;color:",";padding:16px;position:relative;border:solid 2px #fff;"],e=>e.theme.foundations.typography.fontSize.xs,e=>e.$isPreQualified?"rgba(0, 128, 0, 0.05)":"rgba(0, 0, 0, 0.05)",e=>e.$isPreQualified?e.theme.foundations.colors.success:e.theme.foundations.colors.black70),er=L.Ay.div.withConfig({displayName:"ApprovalBanner.styled__TitleWrapper",componentId:"sc-235b4646-1"})(["text-align:center;width:100%;p{margin:0;}"]),ei=L.Ay.p.withConfig({displayName:"ApprovalBanner.styled__PreQualifiedTitle",componentId:"sc-235b4646-2"})(["text-transform:uppercase;font-weight:",";"],e=>e.theme.foundations.typography.fontWeight.bold),ea=L.Ay.div.withConfig({displayName:"ApprovalBanner.styled__IconWrapper",componentId:"sc-235b4646-3"})(["position:absolute;right:24px;"]),en=e=>{let{isPreQualified:t}=e;return t?(0,a.jsx)(eo,{}):(0,a.jsx)(ed,{})},eo=()=>(0,a.jsxs)(et,{$isPreQualified:!0,children:[(0,a.jsxs)(er,{children:[(0,a.jsx)(ei,{children:"High chances of approval"}),(0,a.jsx)("p",{children:"At rates shown below"})]}),(0,a.jsx)(ea,{children:(0,a.jsx)("img",{src:"/assets/icons/check-circle.svg",alt:"check-icon"})})]}),ed=()=>(0,a.jsx)(et,{$isPreQualified:!1,children:(0,a.jsxs)(er,{children:[(0,a.jsx)(ei,{children:"Low chances of approval"}),(0,a.jsx)("p",{children:"Rates may vary"})]})});var es=r(36648),el=r(31814),ec=r(70565);let ep=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__Padding",componentId:"sc-300654f2-0"})(["padding:1rem 1rem 0;"]),eh=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__Container",componentId:"sc-300654f2-1"})(["display:flex;align-items:center;justify-content:space-between;font-size:",";width:100%;height:100%;background-color:",";border-radius:8px;color:",";padding:0.5rem;position:relative;"],e=>e.theme.foundations.typography.fontSize.xs,e=>e.$bgColor,e=>e.$color),eu=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__BadgeText",componentId:"sc-300654f2-2"})(["width:100%;font-size:",";p{margin:0;}"],e=>e.theme.foundations.typography.fontSize.sm),ef=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__IconContainer",componentId:"sc-300654f2-3"})(["padding-right:1rem;"]),em=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__IconCircle",componentId:"sc-300654f2-4"})(["height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:100%;background-color:",";"],e=>e.$color),ex=L.Ay.div.withConfig({displayName:"ChanceOfApprovalBadge.styled__ApprovalChanceButton",componentId:"sc-300654f2-5"})(["text-decoration:none;display:flex;align-items:center;color:inherit;cursor:pointer;"]),eg=e=>{let{approvalChance:t,isPreQualified:r}=e,i=function(e){let{approvalChance:t,isPreQualified:r}=e;if("NOT_ENOUGH_INFORMATION"!==t){if(t)return t;if(!0===r)return"HIGH";if(!1===r)return"LOW"}}({approvalChance:t,isPreQualified:r});if(!i)return null;switch(i){case"HIGH":return(0,a.jsx)(eC,{});case"MEDIUM":return(0,a.jsx)(eb,{});case"LOW":return(0,a.jsx)(ew,{});default:return null}},ey=e=>{let{children:t,color:r,bgColor:i}=e,{toggleModal:n}=(0,_.useContext)(S.O);return(0,a.jsx)(ep,{children:(0,a.jsxs)(eh,{$color:r,$bgColor:i,children:[t,(0,a.jsx)(ex,{onClick:n,children:(0,a.jsx)(el.m,{weight:"bold",size:"sm"})})]})})},eC=()=>(0,a.jsxs)(ey,{color:"#084908",bgColor:"#DEF7DE",children:[(0,a.jsx)(ef,{children:(0,a.jsx)(em,{$color:"#084908",children:(0,a.jsx)(es.S,{weight:"bold",color:"#DEF7DE",size:"sm"})})}),(0,a.jsxs)(eu,{children:["Your chance of approval is ",(0,a.jsx)("strong",{children:"excellent"}),"."]})]}),eb=()=>(0,a.jsxs)(ey,{color:"black",bgColor:"white",children:[(0,a.jsx)(ef,{children:(0,a.jsx)(em,{$color:"#424242",children:(0,a.jsx)(es.S,{weight:"bold",color:"white",size:"sm"})})}),(0,a.jsxs)(eu,{children:["Your chance of approval is ",(0,a.jsx)("strong",{children:"moderate"}),"."]})]}),ew=()=>(0,a.jsxs)(ey,{color:"#401212",bgColor:"#FAE6E6",children:[(0,a.jsx)(ef,{children:(0,a.jsx)(em,{$color:"#D63333",children:(0,a.jsx)(ec.i,{color:"white",size:"sm"})})}),(0,a.jsxs)(eu,{children:["Caution: your chance of approval is ",(0,a.jsx)("strong",{children:"poor"}),"."]})]}),ej=L.Ay.h1.withConfig({displayName:"CreditCardHeader.styled__Title",componentId:"sc-a788a79f-0"})(["font-size:",";font-weight:",";margin:0 0 8px;padding-top:16px;"],e=>e.theme.foundations.typography.fontSize.md,e=>e.theme.foundations.typography.fontWeight.bold),ev=L.Ay.p.withConfig({displayName:"CreditCardHeader.styled__Subtitle",componentId:"sc-a788a79f-1"})(["margin:0 0 20px;padding:0 16px;font-size:",";line-height:24px;"],e=>e.theme.foundations.typography.fontSize.base),e_=e=>
1{let{tileName:t,shortDescription:r}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(ej,{children:[t," ",(0,a.jsx)("br",{})," Credit Card"]}),(0,a.jsx)(ev,{children:r})]})};var eA=r(8572);let eI=L.Ay.div.withConfig({displayName:"CreditCardOffer.styled__Container",componentId:"sc-45709a67-0"})(["display:flex;flex-direction:column;max-width:30.5rem;background:#fff;box-shadow:",";border:",";border-radius:",";"],e=>e.$enableGlowUp?"none":"0 1px 3px rgba(0, 0, 0, 0.12),\n    0 1px 1px rgba(0, 0, 0, 0.14),\n    0 2px 1px rgba(0, 0, 0, 0.2)",e=>e.$enableGlowUp?"1px solid #e7e7e7":"none",e=>e.$enableGlowUp?"0.5rem":"0.25rem"),eE=L.Ay.div.withConfig({displayName:"CreditCardOffer.styled__CenterContainer",componentId:"sc-45709a67-1"})(["display:flex;flex-direction:column;text-align:center;align-items:center;padding-bottom:1rem;"]),eB=(0,L.Ay)(eA.E).withConfig({displayName:"CreditCardOffer.styled__CustomDivider",componentId:"sc-45709a67-2"})(["margin:0;border:0;border-top:1px solid rgba(0,0,0,0.12);"]),eN=L.Ay.div.withConfig({displayName:"CreditCardOffer.styled__ButtonWrapper",componentId:"sc-45709a67-3"})(["display:flex;width:100%;flex:1;align-items:center;justify-content:center;padding:1rem 1rem 0;flex-wrap:wrap;button{margin-bottom:1rem;}"]),eO=L.Ay.div.withConfig({displayName:"CreditCardOffer.styled__ListGroupBalanceWrapper",componentId:"sc-45709a67-4"})(["div{color:",";font-weight:bold;font-weight:",";}"],e=>e.theme.foundations.colors.success,e=>e.theme.foundations.typography.fontWeight.bold);var eD=r(7293),ek=r(71165);let eT=e=>{let{list:t}=e;return(0,a.jsx)(eD.X,{children:t.map(e=>{let t="".concat(e.title,"-").concat(e.value);return e.isBalance?(0,a.jsx)(eO,{children:(0,a.jsx)(ek.c,{title:e.title,value:e.value})},t):(0,a.jsx)(ek.c,{title:e.title,value:e.value},t)})})},eR=e=>{let{creditCardOffer:t,creditCardsLoans:r,hidePrequalifiedBoxInformation:i,$enableGlowUp:n}=e,o=(0,w.Y)(),{partnerAlias:d}=(0,C.W)(),s=(0,R.C)(),{value:l}=(0,h.si)(),{sendPageViewEventWithSnakeCaseParams:c}=(0,k.b)(),[p,f]=(0,_.useState)(!1),x=!i,g=(0,N.Q)(t.approvalType),y=x&&(n||l),b=x&&!n&&!l;(0,_.useEffect)(()=>{t&&!p&&(c({eventName:u.P.CREDIT_CARD_VIEWED,propertiesParams:{ccName:t.creditCardName,apr:t.apr,chancesOfApproval:t.approvalChance,preQualified:g,uiVersion:m.p8.V1}}),f(!0))},[t,p,c]);let j=(0,X.nw)(t,r),v=(0,Z.vv)(j/100,0,0),A=t.promotionGrid.filter(e=>e.showOnCollapsed).sort((e,t)=>e.order-t.order).map(e=>({title:e.name,value:e.value,isBalance:!1}));return Number(j)>0&&s&&A.push({title:"Balance Transfer",value:"Save up to ".concat(v),isBalance:!0}),(0,a.jsxs)(eI,{"data-testid":"credit-card-details",$enableGlowUp:n,children:[b&&(0,a.jsx)(en,{isPreQualified:g}),(0,a.jsxs)(eE,{children:[(0,a.jsx)(e_,{shortDescription:t.shortDe
1scription,tileName:t.creditCardName}),(0,a.jsx)(J._,{maxWidth:200,maxHeight:200,alt:t.creditCardName,imageFile:t.creditCardImage})]}),(0,a.jsx)(eT,{list:A}),(0,a.jsx)(K.j,{condition:!n,children:(0,a.jsx)(eB,{})}),y&&(0,a.jsx)(eg,{approvalChance:t.approvalChance,isPreQualified:g}),(0,a.jsxs)(eN,{children:[s&&r&&(0,a.jsx)(Y.$n,{type:"button",variant:"outlined",onClick:()=>(ee.g.trackEvent(u.P.APPLY_WITH_BALANCE_TRANSFER_CLICKED,{partnerAlias:d,type:"click"}),o.push(B.t.CREDIT_CARDS_BALANCE_TRANSFERS,{query:{offerId:t.id,productType:E.ch.CREDIT_CARD}})),"data-testid":"credit-card-submit",fullWidth:!0,children:"Apply with balance transfer"}),(0,a.jsx)(Y.$n,{type:"button",onClick:()=>o.push(B.t.CREDIT_CARDS_DETAILS,{query:{offerId:t.id,productType:E.ch.CREDIT_CARD}}),"data-testid":"credit-card-submit",fullWidth:!0,children:"Apply"})]})]})},eS=L.Ay.ul.withConfig({displayName:"CreditCardOfferList.styled__List",componentId:"sc-369cfbeb-0"})(["list-style:none;padding:0;margin:0;display:flex;flex-direction:column;li{margin:auto;}"]),e$=e=>{let{creditCardOffers:t,creditCardsLoans:r,hidePrequalifiedBoxInformation:i,$enableGlowUp:n}=e;return(0,a.jsx)(eS,{"data-testid":"credit-card-offer-list",children:t.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(eR,{creditCardOffer:e,creditCardsLoans:r,hidePrequalifiedBoxInformation:i,$enableGlowUp:n})},e.id))})},ez=L.Ay.div.withConfig({displayName:"CreditCardOfferSection.styled__Wrapper",componentId:"sc-46707178-0"})(["ul{padding-top:",";li{margin:8px 0;}}"],e=>e.$noPaddingTop?"0px":"16px"),eL=L.Ay.div.withConfig({displayName:"CreditCardOfferSection.styled__Session",componentId:"sc-46707178-1"})(["",""],e=>e.$paddingBottonLastChildOnly?(0,L.AH)(["&:last-child{padding-bottom:2rem;}"]):(0,L.AH)(["padding-bottom:2rem;"])),eU=e=>{let{creditCards:t,creditCardsLoans:r,isPreQualified:i,hidePrequalifiedBoxInformation:n,$enableGlowUp:o}=e;return(0,a.jsxs)(eL,{$paddingBottonLastChildOnly:n,"data-testid":"section-".concat(i?"":"not-","pre-qualified"),children:[!n&&(0,a.jsx)(q,{isPreQualified:i,numberCreditCards:t.length,$enableGlowUp:o}),(0,a.jsx)(ez,{$noPaddingTop:n,children:(0,a.jsx)(e$,{creditCardOffers:t,creditCardsLoans:r,hidePrequalifiedBoxInformation:n,$enableGlowUp:o})})]})};var eP=r(23940),eF=r.n(eP),eW=r(59946);let eG=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__Wrapper",componentId:"sc-b1d7f77b-0"})(["padding-bottom:2.5rem;"]),eQ=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__Banner",componentId:"sc-b1d7f77b-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:",";box-shadow:",";height:78px;border-radius:8px;row-gap:0.5rem;@media screen and (max-width:488px){border-radius:0;}"],e=>e.theme.foundations.colors.white,e=>e.theme.foundations.elevation.z1),eH=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__Card",componentId:"sc-b1d7f77b-2"})(["display:flex;flex-direction:column;margin-top:1rem;margin-inline:1rem;max-width:30.5rem;background:",";border:",";box-shadow:",";border-radius:",";@media ","{margin-inline:revert;}"],e=>e.theme.foundations.colors.white,e=>e.$enableGlowUp?"1px solid #e7e7e7":"none",e=>e.$enableGlowUp?"none":"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px rgba(0, 0, 0, 0.2)",e=>e.$enableGlowUp?"0.5rem":"0.25rem",(0,eW.P)({from:"md"})),eM=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__CardHeader",componentId:"sc-b1d7f77b-3"})(["display:flex;flex-direction:column;align-items:center;row-gap:0.5rem;padding:1rem;font-size:",";background-color:",";color:",";border-top-left-radius:7px;border-top-right-radius:7px;border-width:1px;border-style:solid;border-color:",";"],e=>e.theme.foundations.typography.fontSize.xs,e=>e.theme.foundations.colors.grey,e=>e.theme.foundations.colors.black70,e=>e.theme.foundations.colors.white),eV=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__CardContent",componentId:"sc-b1d7f77b-4"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem;row-gap:0.5rem;"]),eq=L.Ay.div.withConfig({displayName:"CreditCardOffersListSkeleton.styled__CardDescription",componentId:"sc-b1d7f77b-5"})(["width:100%;padding:0.5rem 0;display:flex;flex-direction:column;row-gap:0.5rem;"]),eK=e=>{let{numberOfCards:t,testId:r,hideCardHeader:i,$enableGlowUp:n}=e;return(0,a.jsxs)(eG,{"data-testid":r,children:[(0,a.jsx)(eJ,{}),eF()(t).map((e,t)=>(0,a.jsx)(eY,{hideCardHeader:i,$enableGlowUp:n},t))]})};function eY(e){let{hideCardHeader:t,$enableGlowUp:r}=e;return(0,a.jsxs)(eH,{$enableGlowUp:r,children:[t?null:(0,a.jsxs)(eM,{children:[(0,a.jsx)(z.E,{variant:"rect",height:9,style:{maxWidth:"170px"}}),(0,a.jsx)(z.E,{variant:"rect",height:9,style:{maxWidth:"120px"}})]}),(0,a.jsxs)(eV,{children:[(0,a.jsx)(z.E,{variant:"rect",height:"1rem",style:{maxWidth:"18rem"}}),(0,a.jsx)(z.E,{variant:"rect",height:"1rem",style:{maxWidth:"8rem"}}),(0,a.jsxs)(eq,{children:[(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem"}),(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem"}),(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem"})]}),(0,a.jsx)(z.E,{variant:"rect",width:200,height:126,style:{borderRadius:8}}),(0,a.jsxs)(eq,{children:[(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem"}),(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem"})]}),(0,a.jsx)(z.E,{variant:"rect",height:40,style:{borderRadius:8}})]})]})}function eJ(){return(0,a.jsxs)(eQ,{children:[(0,a.jsx)(z.E,{variant:"rect",height:"1rem",style:{maxWidth:"17.375rem"}}),(0,a.jsx)(z.E,{variant:"rect",height:"0.75rem",style:{maxWidth:"7.5rem"}})]})}var eX=r(10303);let eZ=()=>{var e,t;let{useTelemetryTags:r}=(0,v.Jr)();
1r((0,n.createTags)().platform("APPLICANT_PORTAL").lineOfBusiness("LOANS").product("LOAN_APPLICATION").feature("NEW_CREDIT_CARD").tags);let $=(0,b.F)(),{offers:z,loading:L,getCreditCardOffers:U,isFetched:P}=(0,y.p)(),{creditCardsLoans:W,loadingBalance:G}=(()=>{let{accessToken:e}=(0,j.useCustomer)(),[t,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(!1),n=(0,R.C)(),o=(0,_.useCallback)(async()=>{n&&(a(!0),await T.u.syncLiabilityData(e),r(await T.u.getCreditCardLoans(e)),a(!1))},[e,n]);return(0,_.useEffect)(()=>{o()},[]),{getCreditCardLoans:o,loadingBalance:i,creditCardsLoans:t}})(),{loansConfig:Q,features:H}=(0,C.W)(),M=H.HIDE_PREQUALIFIED_BOX_INFORMATION_CREDIT_CARD,V=(0,w.Y)(),{coApplicantId:q,originModule:K}=(0,I.le)(),{hasCoApplicantIdAndCoApplicantIsEnabledForProduct:Y,fetchCoApplicantSummary:J,coApplicantSummary:X}=(0,g.I)(),Z=null==(e=Q[E.WW[E.ch.CREDIT_CARD]])?void 0:e.text,ee=null==Z?void 0:Z.OFFERS_DISCLAIMER,{customer:et,accessToken:er}=(0,j.useCustomer)(),[ei,ea]=(0,_.useState)(!0),[en,eo]=(0,_.useState)(!1),ed=Y(E.ch.CREDIT_CARD),[es,el]=(0,_.useState)(!1),{sendPageViewEventWithSnakeCaseParams:ec,sendButtonClickEventWithSnakeCaseParams:ep}=(0,k.b)(),[eh,eu]=(0,_.useState)(!1),{sendFormStarted:ef}=(0,D.X)(),em=null==(t=(0,f.RB)())?void 0:t.id,{loanProductSelected:ex}=(0,j.useCustomer)(),{isToggleEnabled:eg}=(0,h.gK)();(0,_.useEffect)(()=>{eh||(ef({loanType:E.Cg.CREDIT_CARD,isRefinance:!1,accessToken:er,originModule:K,accountOpeningApplicationId:em,productName:$}),eu(!0))},[ef,eh,eu,er,K,em,$]),(0,_.useEffect)(()=>{P&&!en&&(ec({eventName:u.P.CREDIT_CARD_LIST_VIEWED,propertiesParams:{numberCardsViewed:z.length,uiVersion:m.p8.V1}}),eo(!0))},[P,L,z.length,en,ec,ef]),(0,_.useEffect)(()=>{!async function(){ed?(await J(),await U(null==et?void 0:et.coApplicantId)):await U(),(0,A.flushSync)(()=>{ea(!1)})}()},[]),(0,_.useEffect)(()=>{ei||U(ed&&q?q:void 0)},[q]),(0,_.useEffect)(()=>{(0,p.Ap)(p.YD.CreditCardOffers)},[]),(0,_.useEffect)(()=>{if(ex&&z.length>0&&!L){let e=z.find(e=>e.details.productReferenceCode===ex||e.details.loansPQCreditCardName===ex);e&&V.replace(B.t.CREDIT_CARDS_DETAILS,{query:{offerId:e.id,productType:E.ch.CREDIT_CARD}})}},[ex,z,L,V]);let ey=(e,t)=>e.filter(t).map(e=>{var t;return(0,i._)({id:e.id,apr:e.apr,limit:e.limit,approvalChance:null==(t=e.details)?void 0:t.approvalChance,approvalType:e.approvalType},e.details)}),eC=(0,_.useMemo)(()=>z.filter(e=>!(0,x.k)(e)),[z]),eb=(0,_.useMemo)(()=>ey(eC,e=>(0,N.Q)(e.approvalType)),[eC]),ew=(0,_.useMemo)(()=>ey(eC,e=>!(0,N.Q)(e.approvalType)),[eC]),ej=0===z.length||L||G,ev=(0,s.p)({from:s.d.CREDIT_CARD});return(0,a.jsxs)(S.O.Provider,{value:{isModalOpen:es,toggleModal:()=>{el(!es)}},children:[(0,a.jsx)(S.K,{}),(0,a.jsxs)(l.zQ,{enableGlowUp:eg,children:[(0,a.jsx)(l.Vs,{children:(0,a.jsx)(eX.i0,{children:(0,a.jsx)(d.u,{hideMenu:eg})})}),(0,a.jsx)(l.IS,{$colored:!eg,children:(0,a.jsx)(c.g,{small:eg,$enableUiGlowUp:eg,onBack:()=>{ep({eventName:u.P.CREDIT_CARD_LIST_BACK_BUTTON_CLICKED,propertiesParams:{uiVersion:m.p8.V1}}),V.back()},colored:!eg,onClose:()=>V.push(B.t.MAIN),showCloseButton:eg,children:"Select a Credit Card"})}),(0,a.jsx)(l.UC,{wrapContent:!1,children:(0,a.jsx)(eX.VS,{$whiteBackground:ei,children:ei?(0,a.jsx)(o.v,{stateMessage:o.R.FINDING_THE_BEST_OFFERS}):(0,a.jsxs)(eX.mc,{children:[(0,a.jsx)(F,{isLoadingCreditCardOffers:ej,offersDisclaimer:ee,$enableGlowUp:eg}),(0,a.jsx)(e0,{creditCardsOffersPreQualified:eb,creditCardsLoans:W,hidePrequalifiedBoxInformation:M,$enableGlowUp:eg,isLoading:ej}),(0,a.jsx)(O.d,{withPaddingOnSmallScreen:!0,withMarginBottom:!0,withWhiteBackground:!0,coApplicantSummary:X,onAddCoApplicant:ev,productType:E.ch.CREDIT_CARD,$enableGlowUp:eg}),(0,a.jsx)(e1,{creditCardsOffersNotPreQualified:ew,creditCardsLoans:W,hidePrequalifiedBoxInformation:M,isLoading:ej,$enableGlowUp:eg})]})})})]})]})};function e0(e){let{creditCardsOffersPreQualified:t,creditCardsLoans:r,hidePrequalifiedBoxInformation:i,isLoading:n,$enableGlowUp:o}=e;return n?(0,a.jsx)(eK,{testId:"preQualifiedCreditCardOffersSkeleton",numberOfCards:2,hideCardHeader:i,$enableGlowUp:o}
1):0===t.length?null:(0,a.jsx)(eU,{creditCards:t,creditCardsLoans:r,isPreQualified:!0,hidePrequalifiedBoxInformation:i,$enableGlowUp:o})}function e1(e){let{creditCardsOffersNotPreQualified:t,creditCardsLoans:r,hidePrequalifiedBoxInformation:i,isLoading:n,$enableGlowUp:o}=e;return n?(0,a.jsx)(eK,{testId:"notPreQualifiedCreditCardOffersSkeleton",numberOfCards:1,hideCardHeader:i,$enableGlowUp:o}):0===t.length?null:(0,a.jsx)(eU,{creditCards:t,creditCardsLoans:r,isPreQualified:!1,hidePrequalifiedBoxInformation:i,$enableGlowUp:o})}},49242:(e,t,r)=>{r.d(t,{_:()=>C});var i=r(86917),a=r(97722),n=r(25722),o=r(80263),d=r(40175),s=r(49454),l=r(42884),c=r(60605),p=r(8368);let h=(0,p.i7)(["from{opacity:0;}to{opacity:1;}"]),u=(0,p.i7)(["from{opacity:1;}to{opacity:0;}"]),f=(0,p.i7)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),m=(0,p.i7)(["from{transform:translateY(0);}to{transform:translateY(100%);}"]),x=(0,p.Ay)(s.hJ).withConfig({displayName:"Drawer.styled__DrawerOverlay",componentId:"sc-334682af-0"})(["background-color:rgba(0,0,0,0.5);position:fixed;inset:0;animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;z-index:",";&[data-state='closed']{animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;}"],h,e=>e.theme.foundations.zIndex.modal,u),g=(0,p.Ay)(s.UC).withConfig({displayName:"Drawer.styled__DrawerContent",componentId:"sc-334682af-1"})(["position:fixed;left:0;bottom:0;width:100%;max-height:85vh;background-color:",";border-top-left-radius:1rem;border-top-right-radius:1rem;box-shadow:0 8px 10px -5px rgba(0,0,0,0.2),0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12);animation:"," 225ms cubic-bezier(0,0,0.2,1) 0ms;z-index:",";&[data-state='closed']{animation:"," 190ms cubic-bezier(0,0,0.2,1) 0ms;}@media (min-width:48rem){max-width:",";max-height:fit-content;margin:auto;inset:0;border-radius:1rem;&[data-state='closed']{animation:none;}}"],e=>e.theme.foundations.colors.white,f,e=>e.theme.foundations.zIndex.modal,m,e=>e.$maxWidth?"".concat(e.$maxWidth,"rem"):"23.4375rem"),y=(0,p.Ay)(s.bm).withConfig({displayName:"Drawer.styled__DrawerCloseButton",componentId:"sc-334682af-2"})(["display:flex;align-items:center;justify-content:center;position:absolute;top:1rem;right:1rem;border:none;background-color:transparent;min-width:2.75rem;min-height:2.75rem;cursor:pointer;padding:0;transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:",";&:hover{background-color:",";}"],e=>e.theme.foundations.radius.circle,e=>e.theme.foundations.colors.black10),C=e=>{var{open:t,onClose:r,children:p,maxWidth:h,title:u="Drawer",description:f,preventClickOutside:m}=e,C=(0,n._)(e,["open","onClose","children","maxWidth","title","description","preventClickOutside"]);let{isToggleEnabled:b}=(0,l.li)(),w=m?void 0:r;return(0,o.jsx)(s.bL,{open:t,children:(0,o.jsxs)(s.ZL,{children:[(0,o.jsx)(x,{}),(0,o.jsxs)(g,(0,a._)((0,i._)({$maxWidth:h,onPointerDownOutside:w,onEscapeKeyDown:r},C),{children:[(0,o.jsx)(s.hE,{asChild:!0,children:(0,o.jsx)(d.s,{children:u})}),f?(0,o.jsx)(s.VY,{asChild:!0,children:(0,o.jsx)(d.s,{children:f})}):(0,o.jsx)(s.VY,{"aria-hidden":!0,asChild:!0,children:(0,o.jsx)(d.s,{})}),p,(0,o.jsxs)(y,{onClick:r,children:[(0,o.jsx)(c.u,{weight:b?"regular":"bold"}),(0,o.jsx)(d.s,{children:"Close Drawer"})]})]}))]})})}},57440:(e,t,r)=>{r.d(t,{u:()=>n});var i=r(92972),a=r(23096);let n={async getCreditCardOffers(e,t){let r=await a.FU.post("/offers",e,{headers:{Authorization:"Bearer ".concat(t)}});if(200===r.status)return r.data},async getCreditCardLoans(e,t){let r=await a.FU.get("/loans?types[]=CREDIT_CARD",{headers:{Authorization:"Bearer ".concat(e)},signal:t}).catch(e=>e);return r.status===i.t.OK?r.data.loans:null},async getBalanceTransfers(e,t,r){let n=await a.FU.get("/balance-transfers?offerId=".concat(e),{headers:{Authorization:"Bearer ".concat(t)},signal:r});if(n.status===i.t.OK)return n.data},async addBalanceTransfer(e,t,r,n,o){let d=await a.FU.post("/balance-transfers",{offerId:e,creditCardId:t,amount:r},{headers:{Authorization:"Bearer ".concat(n)},signal:o});if(d.status===i.t.CREATED)return d.data}
1,async updateBalanceTransfer(e,t,r,i){let n=await a.FU.put("/balance-transfers",{offerId:e,creditCardId:t,amount:r},{headers:{Authorization:"Bearer ".concat(i)}});if(200===n.status)return n.data},async deleteBalanceTransfer(e,t,r){let i=await a.FU.delete("/balance-transfers?offerId=".concat(e,"&creditCardId=").concat(t),{headers:{Authorization:"Bearer ".concat(r)}});if(200===i.status)return i.data},async syncLiabilityData(e){try{await a.FU.post("/credit-card/sync-liability",{},{headers:{Authorization:"Bearer ".concat(e)}})}catch(e){return}},async getAuthorizedUsers(e,t,r){let n="/refi-pipeline/".concat(e,"/offers/").concat(t,"/authorized-users"),o=await a.FU.get(n,{headers:{Authorization:"Bearer ".concat(r)}});if(o.status===i.t.OK)return o.data;throw Error("Failed to fetch authorized users")},async createAuthorizedUser(e,t,r,i){let n="/refi-pipeline/".concat(e,"/offers/").concat(t,"/authorized-users");return(await a.FU.post(n,{profile:r},{headers:{Authorization:"Bearer ".concat(i)}})).data},async editAuthorizedUser(e,t,r,n,o){let d="/refi-pipeline/".concat(e,"/offers/").concat(t,"/authorized-users/").concat(r),s=await a.FU.put(d,{profile:n},{headers:{Authorization:"Bearer ".concat(o)}});if(s.status===i.t.OK)return s.data;throw Error("Failed to edit authorized user")},async getAuthorizedUserById(e,t,r,n){let o="/refi-pipeline/".concat(e,"/offers/").concat(t,"/authorized-users/").concat(r),d=await a.FU.get(o,{headers:{Authorization:"Bearer ".concat(n)}});if(d.status===i.t.OK)return d.data;throw Error("Failed to fetch authorized user")},async updateAuthorizedUserSelection(e,t,r,n,o){let d="/refi-pipeline/".concat(e,"/offers/").concat(t,"/authorized-users/").concat(r,"/selection"),s=await a.FU.patch(d,{selected:n},{headers:{Authorization:"Bearer ".concat(o)}});if(s.status===i.t.OK)return s.data;throw Error("Failed to update authorized user selection")},async updateOfferRequestedCreditLimit(e,t,r,n){let o="/refi-pipeline/".concat(e,"/offers/").concat(t,"/requested-credit-limit");if((await a.FU.patch(o,{requestedCreditLimit:r},{headers:{Authorization:"Bearer ".concat(n)}})).status!==i.t.OK)throw Error("Failed to update requested credit limit")}}},62617:(e,t,r)=>{r.d(t,{k:()=>i});let i=e=>{var t;return(null==(t=e.details)?void 0:t.isLimitIncrease)===!0}},66963:(e,t,r)=>{r.d(t,{E:()=>p,C:()=>h});var i=r(86917),a=r(80263),n=r(8368);let o=(0,n.i7)(["0%{background-position:200% 0;}100%{background-position:-200% 0;}"]),d=(0,n.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;"],o),s=e=>"number"==typeof e?"".concat(e,"px"):"string"==typeof e?e:"100%",l=n.Ay.div.withConfig({displayName:"Skeleton.styled__Rect",componentId:"sc-1698c82-0"})([""," width:",";height:",";border-radius:",";"],d,e=>{let{$width:t}=e;return s(t)},e=>{let{$height:t}=e;return s(t)},e=>{let{theme:t}=e;return t.foundations.radius.lg}),c=n.Ay.div.withConfig({displayName:"Skeleton.styled__Circle",componentId:"sc-1698c82-1"})([""," width:",";height:",";border-radius:50%;"],d,e=>{let{$size:t}=e;return s(t)},e=>{let{$size:t}=e;return s(t)});function p(e){let{variant:t,size:r,height:i,width:n,style:o}=e;return"circle"===t?(0,a.jsx)(c,{role:"presentation","data-testid":"circle-skeleton",$size:r,style:o}):(0,a.jsx)(l,{role:"presentation","data-testid":"rect-skeleton",$height:i,$width:n,style:o})}let h=e=>{let{amount:t,skeletonProps:r,keyPrefix:a}=e;return Array.from({length:t},(e,t)=>{let n=a?"".concat(a,"-skeleton-").concat(t):"skeleton-".concat(t);return(0,i._)({key:n},r)})}},79445:(e,t,r)=>{r.d(t,{UC:()=>m,f4:()=>f,zQ:()=>x,Vs:()=>h,IS:()=>u});var i=r(80263),a=r(15488),n=r(84796),o=r(96400),d=r(58677),s=r(8368);let l=s.Ay.section.withConfig({displayName:"LayoutB.styled__HighlightStyle",componentId:"sc-754e9cee-0"})(["background:",";grid-area:highlight;"],e=>
1e.theme.colors.colorfulBackground),c=s.Ay.div.withConfig({displayName:"LayoutB.styled__ScreenLayoutBStyled",componentId:"sc-754e9cee-1"})(["background:",";min-height:100%;width:100%;display:grid;grid-template-rows:auto auto auto 1fr;grid-template-areas:'topBar' 'topNavigation' 'highlight' 'content';"],e=>e.$enableGlowUp?e.theme.foundations.colors.white:e.theme.foundations.colors.grey),p=s.Ay.main.withConfig({displayName:"LayoutB.styled__ContentStyled",componentId:"sc-754e9cee-2"})(["overflow-x:hidden;grid-area:content;",""],e=>e.$fullHeight&&"height: 100%;"),h=e=>{let{children:t}=e;return(0,i.jsx)(o.w,{"data-testid":"LayoutB-TopBar",children:t})},u=e=>{let{$showBehindModal:t,$colored:r,children:a}=e,d=(0,n.v)({disableHysteresis:!0,threshold:0});return(0,i.jsx)(o.v,{"data-testid":"LayoutB-TopNavigation",$showElevation:!!d,$showBehindModal:t,$colored:r,children:a})},f=e=>{let{children:t,"aria-label":r="Featured content"}=e;return(0,i.jsx)(l,{"data-testid":"LayoutB-Highlight","aria-label":r,children:t})},m=e=>{let{wrapContent:t=!0,maxWidth:r,children:a}=e;return(0,i.jsx)(p,{as:"main",id:"main-content","data-testid":"LayoutB-Content",$fullHeight:!t,children:t?(0,i.jsx)(d.t,{$maxWidth:r,children:a}):a})},x=e=>{let{children:t,enableGlowUp:r}=e;return(0,i.jsx)(a.V,{children:(0,i.jsx)(c,{id:"layout-b",$enableGlowUp:r,children:t})})}},98666:(e,t,r)=>{r.d(t,{u:()=>l});
1var i=r(86917),a=r(97722),n=r(25722),o=r(80263),d=r(57844),s=r(14070);let l=e=>{var{size:t}=e,r=(0,n._)(e,["size"]);return(0,o.jsx)(s.I,(0,a._)((0,i._)({size:t},r),{children:(0,o.jsx)(d.v,{})}))}}}]);
2//# sourceMappingURL=2705.390137a1d0851af4.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.