PageSourceSearch

https://lanterncredit.com/_next/static/chunks/pages/partner-redirect-e64a1b898d8c100e.js

js lanterncredit.com collected 2026-09-26 02:17:29 UTC 6,871 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2605],{95013:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return w}});var i=n(50029),t=n(64687),o=n.n(t),a=n(67294),d=n(48414),l=n(99060),c=n(65783),u=n(81522),s=n(11163),v=n.n(s),f=n(60377),p=n(30029),h=n(39292),m=n(60673),x=n(69916),b=n(68027),g=n(98464),y=n(85893),k=(0,u.Z)(function(){return{root:{display:"flex",flexDirection:"column"},cancel:{alignSelf:"flex-end",margin:"1em",cursor:"pointer"},loading:{display:"flex",justifyContent:"center"}}},{name:"MuiPartnerRedirect"}),w=function(){var e,r,n,t,u,w,Z,P=k(),j=P.root,R=P.cancel,N=P.loading,C=(0,s.useRouter)(),O=(0,a.useRef)(null),I=(0,a.useRef)(null),T=(null==C?void 0:C.query).t,E=void 0===T?5e3:T,F=null==C?void 0:null===(e=C.query)||void 0===e?void 0:e.pr,_=null==C?void 0:null===(r=C.query)||void 0===r?void 0:r.pid,D=null==C?void 0:null===(n=C.query)||void 0===n?void 0:n.pa,z=null==C?void 0:null===(t=C.query)||void 0===t?void 0:t.uid,B=null==C?void 0:null===(u=C.query)||void 0===u?void 0:u.l,S=null==C?void 0:null===(w=C.query)||void 0===w?void 0:w.u,q=decodeURIComponent(null==C?void 0:null===(Z=C.query)||void 0===Z?void 0:Z.un),U=(0,a.useCallback)(function(e){var r=setTimeout(function(){v().push(e)},Number(E));return function(){clearTimeout(r)}},[E]);return(0,a.useEffect)(function(){function e(){return(e=(0,i.Z)(o().mark(function e(){var r,n,i,t,a,d,l,c;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x.Z.log("PartnerRedirect => handlePartnerRedirect => leadId:",B),![h.ZP.PARTNERS.LENDIO,h.ZP.PARTNERS.ONDECK].includes(_)){e.next=18;break}return e.prev=2,e.next=5,m.Z.v2.submitOffer({userId:z,leadId:B,aggregator:_});case 5:r=e.sent.data.data.redirectUrl,x.Z.log("PartnerRedirect => submitOffer.v2 => redirectUrl:",r),U(r),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),x.Z.log("PartnerRedirect => submitOffer.v2 => error:",e.t0),b.Z.error("PartnerRedirect.v2.submitOffer.failure",{error:e.t0,leadId:B,partnerId:_}),U(g.Z.error.path);case 16:e.next=45;break;case 18:if(![h.ZP.PARTNERS.BIZ2CREDIT].includes(_)){e.next=43;break}return e.prev=19,e.next=22,m.Z.v2.submitOffer({userId:z,leadId:B,aggregator:_});case 22:if(l=null==(d=e.sent)?void 0:null===(n=d.data)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.redirectUrl,c=null==d?void 0:null===(t=d.data)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.token,x.Z.log("PartnerRedirect (biz2credit) => submitOffer.v2 => redirectUrl:",l),x.Z.log("PartnerRedirect (biz2credit) => submitOffer.v2 => token:",c),!(!l||!c)){e.next=29;break}throw Error("PartnerRedirect (biz2credit) lanternBackendService.v2.submitOffer failed to return redirectUrl & token");case 29:if(!(!O.current||!I.current)){e.next=31;break}throw Error("PartnerRedirect (biz2credit) unable to reference hidden form elements");case 31:O.current.setAttribute("action",l),I.current.setAttribute("value",c),O.current.submit(),e.next=41;break;case 36:e.prev=36,e.t1=e.catch(19),x.Z.log("PartnerRedirect (biz2credit) lanternBackendService.v2.submitOffer.failure",e.t1),b.Z.error("PartnerRedirect (biz2credit) lanternBackendService.v2.submitOffer.failure",{error:e.t1,leadId:B,partnerId:_}),U(g.Z.error.path);case 41:e.next=45;break;case 43:x.Z.log("PartnerRedirect => url:",S),U(S);case 45:case"end":return e.stop()}},e,null,[[2,11],[19,36]])}))).apply(this,arguments)}(S||_)&&function(){e.apply(this,arguments)}()},[z,B,_,S,U]),(0,y.jsx)(f.Z,{hideFooter:!0,hideNavigation:!0,title:"Redirecting to ".concat(D),children:(0,y.jsxs)("div",{className:j,children:[(0,y.jsx)(d.Z,{className:R,onClick:function(){v().back()},children:"Cancel"}),(0,y.jsxs)(l.Z,{maxWidth:"md",children:[(0,y.jsxs)(p.zJ,{variant:"h4",mb:2,children:["This will take you to our partner's website. You will soon be directed to"," ",(0,y.jsx)("span",{style:{textTransform:"iBusiness Funding"===D?"none":"capitalize"},children:D}),"."]}),(0,y.jsxs)(p.zJ,{mb:5,children:["You are on your way!"," ",(0,y.jsx)("span",{style:{textTransform:"iBusiness Funding"===D?"none":"capitalize"},children:D})," ","will ask you for some information in order to provide you with a decision on your ",F,"."]}
1),(0,y.jsx)("div",{className:N,children:(0,y.jsx)(c.Z,{})})]}),(0,y.jsxs)("form",{ref:O,name:"loginByTokenForm",method:"post",style:{display:"none"},children:[(0,y.jsx)("input",{ref:I,name:"token",value:"undefined"}),(0,y.jsx)("input",{name:"username",value:q})]})]})})}},60377:function(e,r,n){"use strict";n.d(r,{Z:function(){return m}}),n(67294);var i=n(2962),t=n(11163),o=n.n(t),a=n(72438),d=n(57143),l=n(43359),c=n(48414),u=n(49714),s=n(85893),v=(0,l.Z)(function(){return{container:{width:"100%",backgroundColor:"white",border:"1px solid #D9D9D9",padding:16,marginTop:10},subContainer:{margin:"auto",width:"100%",maxWidth:768,display:"flex",alignItems:"center",justifyContent:"flex-end",gap:16},icon:{verticalAlign:"middle",paddingLeft:6}}},{name:"MuiComplianceFooter"}),f=function(){var e=v(),r=e.container,n=e.subContainer,i=e.icon;return(0,s.jsx)("div",{className:r,children:(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)(c.Z,{component:"button","data-qa":"footer-privacy-policy-link",underline:"none",onClick:function(){o().push("https://www.sofi.com/online-privacy-policy/")},children:"SoFi Privacy Policies"}),(0,s.jsxs)(c.Z,{component:"button",underline:"none",onClick:function(){var e;return null===(e=window.OneTrust)||void 0===e?void 0:e.ToggleInfoDisplay()},children:[(0,s.jsx)("span",{children:"Your Privacy Options"}),(0,s.jsx)("img",{className:i,alt:"Your Privacy Options",src:u.Z.icons.privacyOptions})]})]})})},p=n(3629),h=n(11029),m=function(e){var r=e.canonicalUrl,n=e.children,o=e.hideFooter,l=e.hideLegacyFooter,c=e.hideNavigation,u=e.seoDescription,v=e.showGreySeparator,m=e.showHeader,x=e.title,b=e.withFlow,g=e.noSeo,y=void 0!==g&&g,k=e.footerDisclosures,w=e.footerDisclosuresContentful,Z=e.centerLogo,P=e.onBack,j=e.disabled,R=e.stickyMode,N=e.isCorePage,C=(0,t.useRouter)(),O=null!=r?r:(0,h.Z)(C.asPath),I=function(e){try{return new URL(e).pathname.startsWith("/lead")}catch(e){return!1}}(O);return(0,s.jsxs)(s.Fragment,{children:[void 0!==m&&m&&(0,s.jsx)(d.Z,{hideNavigation:void 0!==c&&c,withFlow:void 0!==b&&b,centerLogo:void 0!==Z&&Z,onBack:P,disabled:void 0!==j&&j,stickyMode:void 0!==R&&R}),void 0!==v&&v&&(0,s.jsx)(a.i,{}),n,I&&(0,s.jsx)(f,{}),!I&&!(void 0!==o&&o)&&(0,s.jsx)(p.Z,{disclosuresContentful:w,disclosures:w?void 0:k,hideLegacyFooter:void 0!==l&&l||void 0!==N&&N&&!!w}),(x||u||O)&&(0,s.jsx)(i.PB,{title:x,description:y?void 0:u||x,canonical:y?void 0:O,noindex:!!y||void 0,nofollow:!!y||void 0})]})}},94670:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner-redirect",function(){return n(95013)}])}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=94670)}),_N_E=e.O()}]);
2//# sourceMappingURL=partner-redirect-e64a1b898d8c100e.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.