PageSourceSearch

https://apply.eaglecu.org/_next/static/chunks/9879-e5d1598dcafec535.js

js eaglecu.org collected 2026-10-01 16:18:49 UTC 9,684 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9879],{3010:(e,r,o)=>{o.d(r,{M:()=>i});var t=o(53239),n=o(5393);let i=()=>{let e=(0,n.Y0)(),r=(0,n.le)();return{showAnimation:(0,t.useCallback)(()=>{e({type:"LOAN_SUBMISSION_ANIMATION",payload:{showAnimation:!0}})},[e]),hideAnimation:(0,t.useCallback)(()=>{e({type:"LOAN_SUBMISSION_ANIMATION",payload:{showAnimation:!1}})},[e]),shouldShowAnimation:r.showLoanSubmissionAnimation}}},13920:(e,r,o)=>{o.d(r,{H:()=>c});var t=o(78576),n=o(3479),i=o(23096),a=o(48259);let c={queryKey:e=>{let{customerId:r,opportunityType:o}=e;return["/opportunities",r,o]},queryFn:async(e,r)=>await l.getOpportunities(e,r)},l={async getOpportunities(e,r){try{if(r){let o=new URLSearchParams;o.set("customerId",e.customerId),o.set("loanOpportunityType",e.loanOpportunityType),e.refresh&&o.set("refresh","true"),e.coApplicantId&&o.set("coApplicantId",e.coApplicantId);let n="".concat(r,"?").concat(o.toString()),i=await t.A.get(n,{withCredentials:!0});if(200===i.status)return i.data;return null}let o=A(e),n={Authorization:"Bearer ".concat(e.accessToken)},a=await i.FU.get(o,{headers:n});if(200===a.status)return a.data;return null}catch(e){if((0,n.F0)(e)){var o;let r=null==(o=e.response)?void 0:o.data;if(r&&"object"==typeof r&&"creditReportErrorCode"in r)return{lendingOpportunities:r.lendingOpportunities||[],refinanceOpportunities:r.refinanceOpportunities||[],creditReportErrorCode:r.creditReportErrorCode};let t=(0,a.Pd)(e);if(t.code&&"UNABLE_TO_GET_API_ERROR"!==t.code)return{lendingOpportunities:[],refinanceOpportunities:[],creditReportErrorCode:t.code}}return null}}},A=e=>{let r=new URLSearchParams;return r.set("loanOpportunityType",e.loanOpportunityType),e.refresh&&r.set("refresh","true"),e.coApplicantId&&r.set("coApplicantId",e.coApplicantId),"/refi-pipeline/".concat(e.partnerId,"/customers/").concat(e.customerId,"/loans/opportunities?").concat(r.toString())}},17186:(e,r,o)=>{o.d(r,{w:()=>l});var t=o(54366),n=o(13920),i=o(98824),a=o(42845);let c=async(e,r,o)=>{try{await Promise.resolve(e.removeQueries({queryKey:r}))}catch(e){(0,t.Qw)(Error(o,{cause:e}))}},l=async(e,r)=>{let o=[{queryKey:[a.O],errorMessage:"Error removing best offers cache"},{queryKey:n.H.queryKey({customerId:r,opportunityType:i.u3.NEW}),errorMessage:"Error removing new opportunities cache"},{queryKey:n.H.queryKey({customerId:r,opportunityType:i.u3.REFINANCE}),errorMessage:"Error removing refinance opportunities cache"}];await Promise.all(o.map(async r=>{let{queryKey:o,errorMessage:t}=r;return c(e,o,t)}))}},26379:(e,r,o)=>{o.d(r,{T:()=>n});var t=o(53239);function n(){return{getPath:(0,t.useCallback)(async(e,r)=>e+function(e){let r=new URL(window.location.origin);return Object.entries(e).forEach(e=>{let[o,t]=e;r.searchParams.append(o,t)}),r}(r).search,[])}}},34067:(e,r,o)=>{o.d(r,{g:()=>n});var t=o(57253);let n=()=>{let e=(0,t.W)();return null==e?void 0:e.membershipConfig}},42845:(e,r,o)=>{o.d(r,{O:()=>c,d:()=>l});var t=o(31901),n=o(87763),i=o(59413),a=o(64413);let c="GET /offers/best",l=function(){let{enabled:e=!1,refresh:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{accessToken:o,customer:{id:l}}=(0,a.useCustomer)();return(0,t.I)({queryFn:async()=>await i.Y.getBestOffers(o,r),queryKey:[c,r,l],refetchOnWindowFocus:!1,staleTime:n.$m,enabled:e,retry:!1})}},89879:(e,r,o)=>{o.d(r,{A:()=>N});var t=o(32144),n=o(86349),i=o(51615),a=o(53239),c=o(97870),l=o(61791),A=o(90822),d=o(64413),u=o(16894),p=o(17186),E=o(4290),s=o(26379),O=o(3010),I=o(82643),L=o(98282);let N=()=>{let[e,r]=(0,a.useState)(null),[o,N]=(0,a.useState)(!1),_=(0,A.f)(),{customer:f,accessToken:R}=(0,d.useCustomer)(),T=null==f?void 0:f.id,{redirectToPreSubmissionPage:S,mustRedirectToPreSubmissionPage:C}=(0,u.f)(),P={isLoanFirstEnabled:_,customerId:T,token:R,redirectToPreSubmissionPage:S},{isExactDuplicateDialogOpen:m,openExactDuplicateDialog:y,closeExactDuplicateDialog:h,shouldDisplayExactDuplicateDialog:w}=(0,n.E)(),{isSimilarApplicationModalOpen:D,openSimilarApplicationModal:g,closeSimilarApplicationModal:U,shouldDisplaySimilarApplicationModal:M}=(0,l.r)(),{redirectNewPersonalLoan:H,onNewPersonalLoanError:F}=(e=>{let{customerId:r,redirectToPreSubmissionPage:o}=e,t=(0,I.Y)(),n=(0,O.M)(),{getPath:i}=(0,s.T)(),a=async(e,o,a)=>{let c=await i(e,{customerId:r,productType:o,dealId:a});n.showAnimation(),t.push(c)};return{redirectNewPersonalLoan:e=>{var r;o({offerId:e.offerId,loanPurpose:null==(r=e.customData)?void 0:r.loanPurpose,productType:c.ch.PERSONAL_NEW})},onNewPersonalLoanError:()=>{a(L.t.PERSONAL_SUBMITTED,c.ch.PERSONAL_NEW)}}})(P),{redirectNewAutoLoan:v,onNewAutoLoanError:b}=(e=>{let{customerId:r,redirectToPreSubmissionPage:o}=e,t=(0,I.Y)(),n=(0,O.M)(),{getPath:i}=(0,s.T)(),a=async(e,o,a)=>{let c=await i(e,{customerId:r,productType:o,dealId:a});n.showAnimation(),t.push(c)};return{redirectNewAutoLoan:e=>{o({offerId:e.offerId,productType:c.ch.AUTO_NEW})},onNewAutoLoanError:()=>{a(L.t.PURCHASE_SUBMITTED,c.ch.AUTO_NEW)}}})(P),{redirectToPreSubmissionCreditCard:k,onCreditCardError:W}=(e=>{let{redirectToPreSubmissionPage:r}=e,o=(0,E.Q)();return{redirectToPreSubmissionCreditCard:e=>{r({offerId:e.offerId,productType:c.ch.CREDIT_CARD})},onCreditCardError:e=>{o(e,{replace:!0,endScreen:!0})}}})(P),{redirectToPreSubmissionRefiPersonal:Y,onPersonalRefiError:Q}=(e=>{let{redirectToPreSubmissionPage:r}=e,o=(0,E.Q)();return{redirectToPreSubmissionRefiPersonal:e=>{r({offerId:e.offerId,productType:c.ch.PERSONAL_REFI})},onPersonalRefiError:e=>{o(e,{replace:!0,endScreen:!0})}}})(P),{redirectToPreSubmissionRefiAuto:V,onRefiAutoError:B}=(e=>{let{redirectToPreSubmissionPage:r}=e,o=(0,E.Q)();return{redirectToPreSubmissionRefiAuto:e=>{r({offerId:e.offerId,productType:c.ch.AUTO_REFI})},onRefiAutoError:e=>{o(e,{replace:!0,endScreen:!0})}}})(P),{redirectToPreSubmissionHeloc:q,onHelocError:K}=(e=>{let{redirectToPreSubmissionPage:r}=e,o=(0,E.Q)(),{loanTypeSelected:t}=(0,d.useCustomer)();return{redirectToPreSubmissionHeloc:e=>{r({productType:t,offerId:e.offerId})},onHelocError:e=>{o(e,{replace:!0,endScreen:!0})}}})(P),{goToNextStepFeatureChaining:j}=(0,i.h)(),G=(0,t.jE)();function z(e,t,n){return async i=>{if(!o)try{N(!0);let{redirectTo:r}=await e(i);await (0,p.w)(G,T),await r()}catch(o){var a,c;if(r(o),C(o))return void t(i);let e=null==o||null==(c=o.response)||null==(a=c.data)?void 0:a.code;if(w(e))return void y();if(M(e))return void g();n(o)}finally{N(!1)}}}return{error:e,closeExactDuplicateDialog:h,isExactDuplicateDialogOpen:m,closeSimilarApplicationModal:U,isSimilarApplicationModalOpen:D,isSubmittingLoan:o,submitNewPersonalLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.PERSONAL_NEW,formLoanType:e.formLoanType,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),H,F),submitHelocLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.HELOC,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),q,K),submitNewAutoLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.AUTO_NEW,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),v,b),submitCreditCardLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.CREDIT_CARD,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),k,W),submitAutoRefinanceLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.AUTO_REFI,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),V,B),submitPersonalRefinanceLoan:z(async e=>j({offerId:e.offerId,productType:c.ch.PERSONAL_REFI,allowSimilar:e.allowSimilar,coApplicantId:e.coApplicantId,customData:e.customData,engineApplicationId:e.engineApplicationId,fraudCheckId:e.fraudCheckId,originModule:e.originModule}),Y,Q)}}},90822:(e,r,o)=>{o.d(r,{f:()=>n});var t=o(34067);let n=()=>{let e=(0,t.g)();return!!(null==e?void 0:e.loanFirstEnabled)}},98824:(e,r,o)=>{o.d(r,{Fj:()=>i,TF:()=>t,ie:()=>n,n3:()=>a,u3:()=>c});let t={AIRCRAFT_LOAN:"AIRCRAFT_LOAN",ATV_UTV_LOAN:"ATV_UTV_LOAN",AUTO_LOAN:"AUTO_LOAN",BOAT_LOAN:"BOAT_LOAN",CREDIT_CARD:"CREDIT_CARD",HOLIDAY_LOAN:"HOLIDAY_LOAN",HOME_EQUITY_LINE_OF_CREDIT:"HOME_EQUITY_LINE_OF_CREDIT",HOME_EQUITY_LOAN:"HOME_EQUITY_LOAN",PERSONAL_WATERCRAFT_LOAN:"PERSONAL_WATERCRAFT_LOAN",MOTORCYCLE_LOAN:"MOTORCYCLE_LOAN",PERSONAL_LINE_OF_CREDIT:"PERSONAL_LINE_OF_CREDIT",PERSONAL_LOAN:"PERSONAL_LOAN",PERSONAL_PLATINUM_LOAN:"PERSONAL_PLATINUM_LOAN",PERSONAL_2_LOAN:"PERSONAL_2_LOAN",PERSONAL_3_LOAN:"PERSONAL_3_LOAN",PERSONAL_4_LOAN:"PERSONAL_4_LOAN",RECREATIONAL_VEHICLE_LOAN:"RECREATIONAL_VEHICLE_LOAN",SECURED_PERSONAL_LINE_OF_CREDIT:"SECURED_PERSONAL_LINE_OF_CREDIT",SECURED_PERSONAL_LOAN:"SECURED_PERSONAL_LOAN",SNOWMOBILE_LOAN:"SNOWMOBILE_LOAN",VEHICLE:"VEHICLE",OTHER:"OTHER"},n={PRE_APPROVED:"PRE_APPROVED",PRE_QUALIFIED:"PRE_QUALIFIED",SKIPPED:"SKIPPED"},i={AUTO:"AUTO",PERSONAL:"PERSONAL",PERSONAL_PLATINUM:"PERSONAL_PLATINUM",PERSONAL_2:"PERSONAL_2",PERSONAL_3:"PERSONAL_3",PERSONAL_4:"PERSONAL_4",HOLIDAY:"HOLIDAY",CREDIT_CARD:"CREDIT_CARD",HELOC:"HELOC",HELOAN:"HELOAN",VEHICLE:"VEHICLE",PERSONAL_LOC:"PERSONAL_LOC"},a={AUTO:"AUTO",PERSONAL:"PERSONAL"},c={NEW:"NEW",REFINANCE:"REFINANCE"}}}]);
2//# sourceMappingURL=9879-e5d1598dcafec535.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.