PageSourceSearch

https://app.unlock.com/_next/static/chunks/pages/profiles/[profileId]-887962a1ad07a538.js

js unlock.com collected 2026-09-28 12:39:14 UTC 18,102 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d1fdc42-8d37-4b94-a74c-15b892d04e62",e._sentryDebugIdIdentifier="sentry-dbid-9d1fdc42-8d37-4b94-a74c-15b892d04e62")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4993],{32716:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>D});var n=r(37876),s=r(14232),a=r(61413),o=r(86600),i=r(60101),l=r(15039),c=r.n(l),u=r(48627),d=r(4917),m=r.n(d),p=r(89099),f=r(69086),x=r(31777),h=r(72001),v=r(20823),g=r(47431),y=r(93609),j=r(18441),b=r(16331),w=r(46063),N=r(81380),_=r(68547),k=r(45194),A=r(15693),E=r(58566),T=r(40631),C=r(19181),S=r(22998),I=r(6452),R=r(14786),F=r(43360),P=r(43172);let U=e=>"".concat("unlock:avm:valuation:").concat(e);function O(){var e,t,r,a,o,l,d,O,D,L,H,V;let[M,q]=(0,s.useState)(!0),[G,K]=(0,s.useState)(!0),[W,z]=(0,s.useState)(!1),[B,X]=(0,s.useState)(!1),[Q,Z]=(0,s.use
1State)(!1),[$,Y]=(0,s.useState)(!1),{replace:J}=(0,p.useRouter)(),{validUnlockStatesAbbreviation:ee,invalidZipCodesByState:et}=(0,A.A)(),[er,en]=(0,s.useState)(75e3),[es,ea]=(0,s.useState)(175e3),[eo,ei]=(0,s.useState)(null),{clearSessionStorage:el}=(0,v.A)(),[ec,eu]=(0,s.useState)(null),[ed,em]=(0,s.useState)(!1),{getProfile:ep}=(0,_.A)(),ef=(0,x.wA)(),[ex]=(0,E.L6)(),[eh]=(0,k.B)(),[ev]=(0,C.U2)(),eg=(0,s.useRef)(!1),ey=null==ec?void 0:ec.estimated_value,ej=null==ec?void 0:ec.estimated_debt,eb=(0,y.G)(e=>e.ui.signUpWelcomeBack),ew=ep(),eN=null==ew?void 0:ew.uuid,{data:e_,isLoading:ek}=(0,T.$w)(eN,{skip:!eN}),eA=(null==e_?void 0:e_.estimated_fico)||"600",eE=null==e_||null==(e=e_.current_property)?void 0:e.address,eT=null!=(H=null==e_||null==(t=e_.current_property)?void 0:t.property_type)?H:"single-family-detached",eC=null!=(V=null==e_||null==(r=e_.current_property)?void 0:r.property_usage)?V:"principal-residence",eS=(null==e_||null==(a=e_.current_property)?void 0:a.estimated_value)||2e5,eI=null==e_?void 0:e_.denial_reason,eR=!ek&&!G&&!!(null==e_||null==(l=e_.current_property)||null==(o=l.address)?void 0:o.street)&&(ec||eS),eF=e=>{en((null==e?void 0:e.max_value)||0),ea((null==e?void 0:e.minimumHomeValue)||175e3),em(!!(null==e?void 0:e.max_value))};(0,s.useEffect)(()=>{!ek&&(ei(eS),!e_||(null==e_?void 0:e_.current_property)||q(!1))},[ek,e_,eS]),(0,s.useEffect)(()=>{!ek&&(null==e_?void 0:e_.current_property)&&!eg.current&&eE&&eE.street&&eN&&(eg.current=!0,(async()=>{let e=[null==eE?void 0:eE.street,null==eE?void 0:eE.unit_number,null==eE?void 0:eE.zip_code].map(e=>(null!=e?e:"").toString().trim().toLowerCase()).join("|"),t=function(e,t){if(!e)return null;let r=(0,P.d)();if(!r)return null;let n=r.getItem(U(e));if(!(null==n?void 0:n.valuation))return null;let s=Date.now()-n.savedAt>=6048e5,a=n.addressKey!==t;return s||a?(r.removeItem(U(e)),null):n.valuation}(eN,e);if(t)return eu(t);let r={street:eE.street,unit_number:eE.unit_number,city:eE.city,zip_code:eE.zip_code,state:eE.state},n=await eh(r);eu(n),function(e,t,r){if(!e||!r)return;let n=(0,P.d)();n&&n.setItem(U(e),{savedAt:Date.now(),addressKey:t,valuation:r})}(eN,e,n)})(),K(!1))},[eE,eh,ek,null==e_?void 0:e_.current_property,eN]),(0,s.useEffect)(()=>{!ek&&M&&!G&&eR&&ex({estimated_value:ey||eS,estimated_debt:ej||eS/2,address:eE,estimated_fico:eA,property_type:eT,property_usage:eC}).then(e=>{let{data:t,error:r}=e;eF(null!=t?t:(0,E.ht)(r)),q(!1)})},[ex,ek,M,G]);let eP=!!e_&&!(null==e_||null==(O=e_.current_property)||null==(d=O.address)?void 0:d.street),eU=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{eP&&!eU.current&&(eU.current=!0,el(),ef((0,j.kq)(!0)))},[eP,ef,el]),(0,s.useEffect)(()=>{ef((0,j.q2)(!1))},[ef]),eb||eP)return(0,n.jsx)(N.A,{newApp:!0});if(ek||M)return(0,n.jsx)(w.x,{});async function eO(e){let{estimated_value:t,estimated_debt:r}=e,{data:n,error:s}=await ex({estimated_value:t,estimated_debt:r,address:eE,estimated_fico:eA,property_type:eT,property_usage:eC}),a=null!=n?n:(0,E.ht)(s);a&&(eF(a),ei(t))}let eD=m()(eO,350),eL=ey||(null==e_||null==(D=e_.current_property)?void 0:D.estimated_value),eH=!!eE.state&&!ee.has(eE.state),eV=!!eE.state&&(null==(L=et[eE.state])?void 0:L.includes(eE.zip_code)),eM=!eH&&eL<S.ZW,eq=!eH&&eL>S.t7,eG=!eH&&!eV&&!eM&&!eq&&!!eE.street,eK=eG&&!!ec&&[I.X.HOME_VALUE_TOO_LOW,I.X.HOME_VALUE_TOO_HIGH].includes(eI),eW=eG&&eI===I.X.STATE_NOT_SUPPORTED,ez=Math.min(2e5,ey||2e5);return(0,n.jsxs)("div",{className:"max-w-[800px] px-3 space-y-4",children:[(0,n.jsxs)("div",{className:"py-3",children:[(0,n.jsx)(g.A,{property:null==e_?void 0:e_.current_property,validations:{isUnsupportedState:eH,isLowHomeValue:eM,isHighHomeValue:eq,validNow:eG,homeValueValidNow:eK,stateValidNow:eW,validUnknownReason:eG&&!eK&&!eW,isInvalidZipCode:eV}}),!!eG&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(b.A,{isPrimary:!0,type:"button",className:"w-[200px]",onClick:()=>J("/profiles/".concat(eN,"/tasks")),children:"Apply Now"})})})]}),(0,n.jsx)(u.l1,{enableReinitialize:!0,initialValues:{estimated_value:eS,estimated_debt:eS/2},onSubmit:R.rr,children:e=>{let{values:t}=e;return(0,n.jsxs)(u.lV,{role:"form",children:[(0,n.jsxs)("fieldset",{onChange:e=>{let{name:r,value:n}=e.target;eD({...t,[r]:n})},children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"h2",children:"Learn how our agreement works"}),(0,n.jsx)("div",{className:"mb-2",children:"Use this calculator to understand the relationship between your home value and outstanding debt, and how they influence the offer we can make."}),(0,n.jsxs)("div",{className:"text-center flex justify-center font-semibold",children:["Est. value of your home",(0,n.jsx)(i.A,{width:20,className:"stroke-unlock-electric ml-1 cursor-pointer",onClick:()=>{z(!W),ev({eventName:F.TrackingEvents.FAQ_CLICKED,properties:{page:"Prospect Home Page",referredFrom:"",text_clicked:"Est. value of your home info icon"}})}})]}),W&&(0,n.jsxs)("div",{className:"text-xs pb-2",children:["Using your address, we ran an automated valuation model (AVM) to provide us with a broad estimate of your property's value. This estimated value is not the final value and provides you with a starting point to use to better understand how much money we may be able to provide you. After you have qualified and apply for an agreement, we will obtain one or more appraisals, broker price opinions or additional AVMs during the underwriting of your application. Whenever we obtain an appraisal or broker price opinion, Unlock Technologies engages a third-party appraiser or broker to provide a valuation report on your home. This person will always be a neutral service provider, representing neither you or us. Objectivity and accuracy of the appraisal and inspection process is fundamental to the Unlock Agreement."," ",(0,n.jsx)("span",{className:"underline cursor-pointer text-unlock-electric",onClick:()=>{z(!1)},children:"Close"})]})]}),(0,n.jsxs)("div",{className:"mx-3",children:[(0,n.jsx)(h.A,{name:"estimated_value",min:ez,max:S.t7,step:100,valueClassName:"text-[24px]",markValue:null!=ey?ey:void 0,markValueLabel:"(AVM Value)"}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center flex justify-center font-semibold mt-2",children:["Est. remaining mortgage",(0,n.jsx)(i.A,{width:20,className:"stroke-unlock-electric ml-1 cursor-pointer",onClick:()=>{X(!B),ev({eventName:F.TrackingEvents.FAQ_CLICKED,properties:{page:"Prospect Home Page",referredFrom:"",text_clicked:"Est. remaining mortgage info icon"}})}})]}),B&&(0,n.jsxs)("div",{className:"text-[12px] pb-2",children:["We use your estimated remaining mortgage to determine how much money we can offer you. If you have a high mortgage debt relative to your home value, you may 
1not qualify for an agreement. Use this slider to help you understand the relationship between your mortgage debt, the minimum home value you need to have to receive an offer, and the amount of a potential offer."," ",(0,n.jsx)("span",{className:"underline cursor-pointer text-unlock-electric",onClick:()=>{X(!1)},children:"Close"})]})]}),(0,n.jsx)(h.A,{name:"estimated_debt",min:0,max:eo,step:100,valueClassName:"text-[24px]"})]})]}),(0,n.jsx)("br",{}),(0,n.jsxs)("div",{className:"flex justify-between mx-3 items-center",children:[(0,n.jsxs)("span",{className:"text-unlock-navy font-semibold flex items-center",children:["Min. Home Value",(0,n.jsx)(i.A,{width:20,className:"stroke-unlock-electric cursor-pointer ml-1",onClick:()=>{Z(!Q),ev({eventName:F.TrackingEvents.FAQ_CLICKED,properties:{page:"Prospect Home Page",referredFrom:"",text_clicked:"Min. Home Value info icon"}})}})]}),(0,n.jsx)("span",{className:"text-[24px]",children:(0,n.jsx)(f.HG,{value:es,thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0,className:c()("justify-center flex",{"text-unlock-success":ed})})})]}),Q&&(0,n.jsxs)("div",{className:"text-[12px] mx-3 pb-3",children:["The minimum home value is the lowest estimated value your home can be based on a mortgage debt of"," ",(0,n.jsx)(f.HG,{thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0,suffix:"K",value:Math.floor(t.estimated_debt/1e3)}),". This is an estimated value and does not constitute an offer will be available for this estimated value."," ",(0,n.jsx)("span",{className:"underline cursor-pointer text-unlock-electric",onClick:()=>{Z(!1)},children:"Close"})]}),(0,n.jsxs)("div",{className:"flex justify-between mx-3 items-center",children:[(0,n.jsxs)("span",{className:"text-unlock-navy font-semibold flex items-center",children:["Max. Offer Amount",(0,n.jsx)(i.A,{width:20,className:"stroke-unlock-electric cursor-pointer ml-1",onClick:()=>{ev({eventName:F.TrackingEvents.FAQ_CLICKED,properties:{page:"Prospect Home Page",referredFrom:"",text_clicked:"Max. Offer Amount info icon"}}),Y(!$)}})]}),(0,n.jsx)("span",{className:"text-[24px] text-center",children:(0,n.jsx)(f.HG,{value:er,thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0,className:c()("justify-center flex",{"text-unlock-success":ed,"text-unlock-warmgray":!ed})})})]}),$&&(0,n.jsxs)("div",{className:"text-[12px] mx-3 pb-3",children:["Based on the estimated home value and your estimated mortgage debt, this is the maximum amount of money we would be able to provide to you. This is an estimated value and does not constitute an offer."," ",(0,n.jsx)("span",{className:"underline cursor-pointer text-unlock-electric",onClick:()=>{Y(!1)},children:"Close"})]}),(0,n.jsx)("div",{className:"text-[12px] text-center pb-2",children:"Disclaimer: Use of this calculator does not constitute an offer."})]})}})]})}let D=()=>(0,n.jsx)(o.A,{children:(0,n.jsx)(a.n,{featureName:"Prospects",children:(0,n.jsx)(O,{})})})},60101:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14232);let s=n.forwardRef(function(e,t){let{title:r,titleId:s,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},a),r?n.createElement("title",{id:s},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))})},61413:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(37876),s=r(18334),a=r(14232);class o extends a.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){s.Cp(e,{tags:{feature:this.props.featureName},extra:{componentStack:t.componentStack}})}render(){return this.state.hasError?void 0!==this.props.fallback?this.props.fallback:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center p-8 text-center","data-testid":"feature-error-boundary-fallback",children:[(0,n.jsx)("p",{className:"text-lg font-semibold",children:"Something went wrong."}),(0,n.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Please refresh the page. If the problem persists, contact support."})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}},65633:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profiles/[profileId]",function(){return r(32716)}])},79263:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,gx:()=>l});var n=r(37876),s=r(14232),a=r(45105),o=r.n(a),i=r(20823);let l=()=>{let e=e=>{let t=document.querySelectorAll(e);
1return t.forEach(e=>{try{e.remove()}catch(t){e.parentNode&&e.parentNode.removeChild(e)}}),t.length};e('script[src*="trustedform"]'),e('script[id*="trustedform"]');let t=['input[name*="TrustedForm"]','input[id*="TrustedForm"]','input[name*="trustedform"]','input[id*="trustedform"]','input[name="xxTrustedFormCertUrl"]','input[name="xxTrustedFormToken"]','input[name="xxTrustedFormPingUrl"]','input[id="xxTrustedFormCertUrl"]','input[id="xxTrustedFormToken"]','input[id="xxTrustedFormPingUrl"]'];t.forEach(t=>e(t));{let e=window;Object.keys(e).forEach(t=>{if(t.startsWith("tf")||t.toLowerCase().includes("trustedform"))try{delete e[t]}catch(r){try{e[t]=void 0}catch(e){}}})}e('form[data-tf-bound="true"]'),setTimeout(()=>{t.forEach(t=>e(t))},1e3)},c=()=>{let e=(0,s.useRef)(!1),{persistValue:t}=(0,i.A)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{src:"".concat(window.location.protocol,"//api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&use_tagged_consent=true&l=").concat(Date.now()).concat(Math.random()),strategy:"afterInteractive",onLoad:()=>{e.current=!0;let r=setInterval(()=>{let e=function(){let e=document.querySelector('input[name="xxTrustedFormCertUrl"]');return null==e?void 0:e.value}();e&&(t("trusted_form_cert_url",e),clearInterval(r))},500)}}),(0,n.jsx)("noscript",{children:(0,n.jsx)("img",{src:"https://api.trustedform.com/ns.gif",alt:""})})]})}},83085:(e,t,r)=>{"use strict";r.d(t,{S:()=>d,V:()=>u});var n=r(37876),s=r(14232),a=r(16331),o=r(89099),i=r(93609),l=r(18441),c=r(22124);function u(){let e=(0,i.j)();return(0,s.useEffect)(()=>{e((0,l.NP)(!0))},[e]),(0,n.jsx)(c.A,{children:(0,n.jsx)(d,{})})}function d(e){let t=(0,o.useRouter)(),{customMessage:r,onRetry:s}=e;return(0,n.jsxs)("div",{className:"lg:max-w-[500px] mx-auto p-3 flex flex-col justify-center items-center",children:[r&&(0,n.jsx)("div",{className:"font-semibold text-2xl text-unlock-red mt-20 mb-8 text-center",children:r}),!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"font-semibold text-2xl text-unlock-red mt-20",children:"Sorry, there has been an error"}),(0,n.jsx)("div",{className:"unlock-body mt-4 text-center",children:"The development team has been notified. You could try what you were doing again, reload this window or send us feedback describing what you were doing when the error occurred."})]}),(0,n.jsx)("div",{className:"my-4",children:(0,n.jsx)(a.A,{isPrimary:!0,onClick:()=>{null==s||s(),t.reload()},children:"Try again"})})]})}},86600:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(37876),s=r(14232),a=r(89099),o=r(93609),i=r(18441),l=r(20823),c=r(1948),u=r(79598),d=r(79422),m=r(19181),p=r(94160),f=r(43360),x=r(7434),h=r(96614),v=r(97652);function g(){let e=function(){let[e]=(0,m.U2)(),{data:t}=(0,d.df)(),r=(0,a.useRouter)(),{reset:n}=(0,u.Ay)(),s=(0,u.qT)(),{isOpsUser:x}=(0,c.A)(),{clearSessionStorage:h}=(0,l.A)(),v=(0,o.j)(),g=r.query.profileId,y=async()=>{await e({eventName:f.TrackingEvents.USER_LOGGED_OUT,properties:{method:"User Initiated"}}),n(),await r.push("/logout")},j=async()=>{if(r.pathname===p.h.PROSPECT_TASKS)return;let n={button_label:"Start New Application",page_name:(0,f.getNavPageName)(r.pathname),productVersion:t};h(),v((0,i.de)()),s({eventName:f.TrackingEvents.BUTTON_CLICKED,properties:n}),e({eventName:f.TrackingEvents.NEW_APPLICATION_STARTED,properties:n}),await r.push("/profiles/".concat(g,"/tasks"))};return g?{dashboardRoute:"/profiles/".concat(g),documentsRoute:"/profiles/".concat(g,"/documents"),resourcesRoute:"/profiles/".concat(g,"/resources"),profileRoute:"/profiles/".concat(g,"/profile"),showStartNewApplication:!x,onStartNewApplication:j,onLogout:y,isError:!1}:{dashboardRoute:"",documentsRoute:"",resourcesRoute:"",profileRoute:"",showStartNewApplication:!1,onStartNewApplication:async()=>{},onLogout:y,isError:!0}}();if(e.isError)return null;let t=e.showStartNewApplication&&(0,n.jsx)(v.Z,{onClick:e.onStartNewApplication});return(0,n.jsxs)("div",{className:"flex flex-col lg:justify-between bg-white mobile:shadow lg:bg-transparent w-full mobile:!p-0 p-2 lg:h-full",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(h.A,{route:e.dashboardRoute,title:"Dashboard",Icon:(0,n.jsx)("i",{className:"text-action-900 fa-light fa-house"})}),(0,n.jsx)(h.A,{route:e.documentsRoute,title:"Documents",Icon:(0,n.jsx)("i",{className:"text-action-900 fa-file-lines fa-light"})}),(0,n.jsx)(h.A,{route:e.resourcesRoute,title:"Resources",Icon:(0,n.jsx)("i",{className:"text-action-900 fa-light fa-book-open"})}),(0,n.jsx)("div",{className:"lg:hidden",children:(0,n.jsx)(h.A,{route:e.profileRoute,title:"Your Profile",Icon:(0,n.jsx)("i",{className:"text-action-900 fa-sharp fa-light fa-circle-user"})})})]}),(0,n.jsxs)("div",{className:"lg:hidden flex flex-col gap-2 p-3",children:[t,(0,n.jsx)(x.z,{onClick:e.onLogout})]}),e.showStartNewApplication&&(0,n.jsx)("div",{className:"hidden lg:block -mx-2 px-2 pb-3 border-b",children:t})]})}let y=()=>{let e=(0,o.G)(e=>e.ui.isNavOpen),t=(0,a.useRouter)(),r=(0,o.j)();return(0,s.useEffect)(()=>{function e(){r((0,i.IJ)())}return t.events.on("routeChangeStart",e),()=>{t.events.off("routeChangeStart",e)}},[r,t.events]),e&&(0,n.jsx)(g,{})};var j=r(80949),b=r(73241);function w(e){let{children:t,...r}=e;return(0,n.jsx)(j.F,{children:(0,n.jsx)(b.n,{...r,desktopNav:(0,n.jsx)(g,{}),mobileNav:(0,n.jsx)(y,{}),logoRedirectTo:"marketing",customHeaderTitle:"No active applications",children:t})})}}},e=>{e.O(0,[1120,9857,1946,3440,8153,1334,2391,7026,1095,2896,7917,5066,4951,5681,8414,1588,7635,1380,636,6593,8792],()=>e(e.s=65633)),_N_E=e.O()}]);
2//# sourceMappingURL=[profileId]-887962a1ad07a538.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.