PageSourceSearch

https://app.unlock.com/_next/static/chunks/7476-b46887c1a5b10110.js

js unlock.com collected 2026-09-28 12:39:33 UTC 28,791 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:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="32345620-fe82-4c52-a2bf-a76289b47d95",e._sentryDebugIdIdentifier="sentry-dbid-32345620-fe82-4c52-a2bf-a76289b47d95")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{4099:(e,i,t)=>{t.d(i,{J:()=>l});var l=function(e){return e.GENERIC="generic",e.CUSTOMER_PASSWORD_RESET="customer-password-reset",e.CUSTOMER_EMAIL_RESET="customer-email-reset",e}({})},29463:(e,i,t)=>{t.d(i,{O3:()=>d,l:()=>p,nw:()=>u,s3:()=>h});var l=t(37876),n=t(62530),a=t(62769),s=t(14232),r=t(91408),o=t(14786),c=t(92924),d=function(e){return e.REQUIRED="required",e.MIN="min",e.CASE="case",e.NUMBER="number",e.IS_EMAIL="is-email",e}({});let u=r.Yj().required("required").min(8,"min").matches(/^(?=.*[a-zA-Z])/,"case").matches(/^(?=.*[0-9])/,"number").test("is-email","is-email",e=>!o.JZ.test(e)),m=r.Ik().shape({password:u}),p=async e=>{try{return await m.validate(e,{abortEarly:!1}),{}}catch(e){if("ValidationError"===e.name){let i={};return e.inner.forEach(e=>{i[e.message]=!0}),i}}},h=e=>{let{onShowChange:i=null,...t}
1=e,{name:r,footer:o}=t,[d,u]=(0,s.useState)(!1);(0,s.useEffect)(()=>{i&&i(d)},[i,d]);let m=d?(0,l.jsx)(n.A,{className:"cursor-pointer text-unlock-warmgray px-1 shrink-0 h-5",onClick:()=>u(!1)}):(0,l.jsx)(a.A,{className:"cursor-pointer text-unlock-warmgray px-1 shrink-0 h-5",onClick:()=>u(!0)});return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.A,{...t,id:r,name:r,label:"Password",type:d?"text":"password",required:!0}),(0,l.jsx)("div",{className:"absolute right-4 top-0 h-14 flex items-center",children:m}),o&&(0,l.jsx)("div",{className:"mt-2 ml-4 mr-2",children:o})]})}},30011:(e,i,t)=>{t.d(i,{V:()=>r});var l=t(37876);t(14232);var n=t(15039),a=t.n(n),s=t(96963);let r=e=>{let{isActive:i=!1,address:t,onClick:n,subheader:r}=e;return(0,l.jsxs)("div",{className:a()("flex items-center rounded-full w-full bg-unlock-lavender-25 max-w-80 tablet:max-w-96",{"border border-unlock-navy cursor-default":i},{"cursor-pointer":!i}),onClick:n,children:[(0,l.jsx)("div",{id:"icon",className:a()("flex items-center justify-center rounded-full w-14 h-14 shrink-0 bg-unlock-electric-50"),children:(0,l.jsx)(s.A,{width:23,height:23,className:"stroke-unlock-navy"})}),(0,l.jsxs)("div",{className:"px-2 h-full items-center space-y-1",children:[(0,l.jsx)("p",{className:a()("truncate w-52 tablet:w-72",{"font-semibold":i,"pt-4":!r}),children:t}),(0,l.jsx)("div",{className:"flex justify-between text-unlock-navy text-sm w-52 tablet:w-72",children:r})]})]})}},41277:(e,i,t)=>{t.d(i,{pF:()=>a});var l=t(14232);let n={numeric:/\D/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g};function a(){let{length:e=6,type:i="numeric",mask:t=!1,onComplete:a,onChange:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[r,o]=(0,l.useState)(""),[c,d]=(0,l.useState)(!1),u=(0,l.useRef)(null),m=(0,l.useId)(),p=n[i]||n.numeric,h=(0,l.useCallback)(i=>{let t=i.target.value.replace(p,"").slice(0,e);o(t),null==s||s(t),t.length===e&&(null==a||a(t))},[e,p,s,a]),x=(0,l.useCallback)(()=>{var e;null==(e=u.current)||e.focus()},[]),f=(0,l.useCallback)(()=>{var e;o(""),null==(e=u.current)||e.focus()},[]),v=c?Math.min(r.length,e-1):-1,g=Array.from({length:e},(e,i)=>{let l=r[i]||"";return{char:l,display:t&&l?"•":l,active:i===v,filled:!!l}}),_=(0,l.useCallback)(e=>{let i=g[e];return["otp-slot",(null==i?void 0:i.active)?"otp-slot-active":"",(null==i?void 0:i.filled)?"otp-slot-filled":""].filter(Boolean).join(" ")},[g]);return{value:r,slots:g,inputProps:{ref:u,type:"text",className:"otp-input",id:m,value:r,maxLength:e,autoComplete:"one-time-code",inputMode:"numeric"===i?"numeric":"text",onInput:h,onChange(i){o(i.target.value.replace(p,"").slice(0,e))},onFocus:()=>d(!0),onBlur:()=>d(!1),style:{position:"absolute",opacity:0,pointerEvents:"none",width:1,height:1,overflow:"hidden",whiteSpace:"nowrap"}},slotClassName:_,focusInput:x,clear:f,inputId:m}}},62123:(e,i,t)=>{t.d(i,{e:()=>d});var l=t(37876),n=t(14232),a=t(29463),s=t(83979),r=t(48627),o=t(15039),c=t.n(o);function d(e){let[i,t]=(0,n.useState)({}),[o,{error:d}]=(0,r.Mt)(e.name);(0,n.useEffect)(()=>{(0,a.l)({password:o.value}).then(e=>{t(e)})},[o.value]);let u=!!(null==i?void 0:i[a.O3.IS_EMAIL]),m=!!o.value,p=e=>{let{passwordErrorName:t,children:n,isLast:a=!1}=e,r=null==i?void 0:i[t];return(0,l.jsxs)("span",{className:(e=>{let t=!(null==i?void 0:i[e])&&!u;return c()("inline-flex",{"text-unlock-success":t,"text-unlock-red":m&&!t})})(t),children:[n,(0,l.jsx)(()=>r?a?void 0:(0,l.jsx)("span",{children:", "}):(0,l.jsx)(s.A,{className:c()("text-unlock-success",{invisible:r}),width:20}),{})]})},h=d&&!Object.values(a.O3).includes(d);return(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)(a.s3,{...e,hideErrors:!0,footer:(0,l.jsxs)("div",{children:[h&&(0,l.jsx)("p",{className:"error-message mb-1",children:d}),(null==i?void 0:i[a.O3.IS_EMAIL])&&(0,l.jsx)("p",{className:"error-message mb-1",children:"You cannot use an email address as a password."}),(0,l.jsxs)("p",{className:"text-unlock-black text-sm font-semibold leading-6 -mr-4",children:["Your password must use:"," ",(0,l.jsxs)("span",{className:"font-normal",children:[(0,l.jsx)(p,{passwordErrorName:a.O3.MIN,children:"a minimum of 8 characters"}),(0,l.jsx)(p,{passwordErrorName:a.O3.CASE,children:"at least one letter"}),(0,l.jsx)(p,{passwordErrorName:a.O3.NUMBER,isLast:!0,children:"at least one number"})]})]})]})})})}},62530:(e,i,t)=>{t.d(i,{A:()=>n});
1var l=t(14232);let n=l.forwardRef(function(e,i){let{title:t,titleId:n,...a}=e;return l.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:i,"aria-labelledby":n},a),t?l.createElement("title",{id:n},t):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},62769:(e,i,t)=>{t.d(i,{A:()=>n});var l=t(14232);let n=l.forwardRef(function(e,i){let{title:t,titleId:n,...a}=e;return l.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:i,"aria-labelledby":n},a),t?l.createElement("title",{id:n},t):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))})},67044:(e,i,t)=>{t.d(i,{v:()=>r});var l=t(37876),n=t(14232),a=t(15039),s=t.n(a);function r(e){let{children:i,icon:t,title:a,rightSlotComponent:r,initiallyOpen:o=!0}=e,[c,d]=n.useState(o);return(0,n.useEffect)(()=>{d(o)},[o]),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:s()("flex items-center bg-unlock-soft-gray py-3 px-2 rounded-t-xl cursor-pointer",{"rounded-b-xl py-6":!c}),onClick:()=>{d(!c)},children:[!!t&&(0,l.jsx)("span",{className:"mx-2",children:t}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex-grow text-xl font-semibold text-unlock-navy pr-2 text-nowrap",children:a})}),r]}),(0,l.jsx)("div",{className:c?"block":"hidden",children:(0,l.jsx)("div",{className:"px-2 tablet:px-[16px] py-2 rounded-b-xl bg-page-background",children:i})})]})}},87880:(e,i,t)=>{t.d(i,{W:()=>er});var l=t(37876),n=t(14232),a=t(48230),s=t.n(a),r=t(89099);let o=n.forwardRef(function(e,i){let{title:t,titleId:l,...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:i,"aria-labelledby":l},a),t?n.createElement("title",{id:l},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))});var c=t(93609),d=t(18441),u=t(16331),m=t(67044),p=t(20823),h=t(1948),x=t(20191),f=t(91493),v=t(30011),g=t(58341),_=t(69086),y=t(42619);let j=e=>{let{application:i}=e,{isFetchingApplication:t}=(0,g.A)(),n=!!i.requested_investment;return!t||i.requested_investment||i.max_offer_investment?n?(0,l.jsx)("p",{children:(0,l.jsx)(_.HG,{value:i.requested_investment,thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0})}):(0,l.jsxs)("p",{children:[(0,l.jsx)(_.HG,{value:null==i?void 0:i.min_offer_investment,thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0})," - ",(0,l.jsx)(_.HG,{value:i.max_offer_investment,thousandSeparator:!0,prefix:"$",displayType:"text",decimalScale:0})]}):(0,l.jsx)("div",{className:"w-full pt-3 flex justify-center items-center",children:(0,l.jsx)(y.A,{size:"xs"})})};var w=t(68547),b=t(58315),N=t(19181),k=t(78163),E=t(39108),A=t(43360);let S=e=>{let{application:i,isCurrentApp:t=!1,specialHover:n}=e,a=(0,c.G)(e=>e.auth.userAppProfiles),[s]=(0,N.U2)(),{isOpsUser:o}=(0,h.A)(),d=(0,r.useRouter)(),{goToApplicants:u}=(0,x.B)(),m=(0,c.j)(),{persistApplicationProfile:g,getProfile:_}=(0,w.A)(),[y]=(0,N.us)(),{data:S}=(0,b.hz)(null==i?void 0:i.uuid,{skip:!i}),{clearSessionStorage:C}=(0,p.A)();if(!i)return null;let I=null==S?void 0:S.address,O=null===k.yE||void 0===k.yE?void 0:k.yE[i.application_status].label;return(null==i?void 0:i.application_state)===k.oJ.CLOSED_LOST&&((null==i?void 0:i.loss_type)===k.oi.DENIED&&(O="Application Denied"),(null==i?void 0:i.loss_type)===k.oi.WITHDRAWN&&(O="Application Withdrawn")),((null==i?void 0:i.application_state)===k.oJ.CLOSED_WON||(null==i?void 0:i.application_state)===k.oJ.PENDING_RECORDING)&&(O=(null==i?void 0:i.is_application_paid_off)?"Completed Agreement":"Active Agreement"),(0,l.jsx)(v.V,{specialHover:n,isActive:t,address:I&&(0,E.M0)(I),subheader:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:O}),(0,l.jsx)(j,{application:i})]}),onClick:async()=>
1{if(o)return;s({uuid:i.uuid,eventName:A.TrackingEvents.APPLICATION_TOGGLED,properties:{tasksVersion:i.tasks_version,application_stage:null==i?void 0:i.application_state}}),C();let e=a;if(!e.length){let i=_();i&&(e=await y({email:null==i?void 0:i.email}).unwrap())}1===(e=null==e?void 0:e.filter(e=>e.application===(null==i?void 0:i.uuid))).length?(m((0,f.wT)(e[0])),g(e[0]),await d.push("/applications/".concat(null==i?void 0:i.uuid,"/"))):(m((0,f.vU)(null==i?void 0:i.uuid)),u())}})};var C=t(79598),I=t(79422);function O(e){var i;let{isInitiallyOpen:t}=e,[n]=(0,N.U2)(),{applicationId:a,application:s,primaryApplicant:x}=(0,g.A)(),{data:f}=(0,I.df)(),{isOpsUser:v}=(0,h.A)(),_=(0,r.useRouter)(),{getProfile:y}=(0,w.A)(),j=y(),b=null==j?void 0:j.uuid,{data:E,isLoading:O}=(0,I.vD)(v&&x.profile.uuid,{skip:v&&!x.profile.uuid}),T=(0,C.qT)(),P=(0,c.j)(),{clearSessionStorage:R}=(0,p.A)();if(O)return null;let L=null==E||null==(i=E.filter(e=>e.uuid===a))?void 0:i[0],D=null==E?void 0:E.filter(e=>e.application_state!==k.oJ.CLOSED_WON&&e.application_state!==k.oJ.CLOSED_LOST),M=null==E?void 0:E.filter(e=>e.application_state===k.oJ.CLOSED_WON),Y=null==E?void 0:E.filter(e=>e.application_state===k.oJ.CLOSED_LOST);return(0,l.jsx)(m.v,{icon:(0,l.jsx)(o,{width:20,height:20,className:"text-unlock-navy"}),title:"Your Applications",initiallyOpen:t,children:(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex flex-col gap-y-4",children:[!(null==E?void 0:E.length)&&(0,l.jsx)("p",{className:"max-w-2xl",children:"You do not currently have any active applications or agreements. Click Start New Application to get started on one today."}),(0,l.jsxs)("p",{children:[null==D?void 0:D.length," Open Application",(null==D?void 0:D.length)===1?"":"s"]}),null==D?void 0:D.map(e=>(0,l.jsx)(S,{application:e,isCurrentApp:e.uuid===(null==L?void 0:L.uuid)},e.uuid)),(0,l.jsx)(u.A,{isPrimary:!0,className:"font-semibold w-fit",onClick:function(){v||(R(),P((0,d.ne)()),T({eventName:A.TrackingEvents.BUTTON_CLICKED,properties:{button_label:"Start New Application",existing_application_ID:null==s?void 0:s.external_id,page_name:A.TrackingEvents.PROFILE_PAGE,productVersion:f}}),s?(n({uuid:s.uuid,eventName:A.TrackingEvents.NEW_APPLICATION_STARTED,properties:{button_label:"Start New Application",previous_application_ID:null==s?void 0:s.external_id,page_name:A.TrackingEvents.PROFILE_PAGE,productVersion:f}}),_.push("/applications/".concat(a,"/new-application"))):_.push("/profiles/".concat(b,"/tasks")))},children:"Start New Application"}),(0,l.jsxs)("p",{children:[null==M?void 0:M.length," Active Agreement",(null==M?void 0:M.length)===1?"":"s"]}),null==M?void 0:M.map(e=>(0,l.jsx)(S,{application:e,isCurrentApp:e.uuid===(null==L?void 0:L.uuid)},e.uuid)),(0,l.jsxs)("p",{children:[null==Y?void 0:Y.length," Closed Application",(null==Y?void 0:Y.length)===1?"":"s"]}),null==Y?void 0:Y.map(e=>(0,l.jsx)(S,{application:e,isCurrentApp:e.uuid===(null==L?void 0:L.uuid)},e.uuid))]})})})}var T=t(38239),P=t(93473),R=t(82435),L=t(6012);function D(e){let{nextStep:i,method:a}=e,{loggedProfile:s,applicationId:o}=(0,g.A)(),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(""),[p,h]=(0,n.useState)(!1),x=(0,C.qT)(),[f]=(0,N.u5)(),[v]=(0,N.BX)(),[_]=(0,N.lT)(),{query:y}=(0,r.useRouter)(),{data:j}=(0,N.AW)(null==y?void 0:y.verification_code_key,{skip:!(null==y?void 0:y.verification_code_key)}),w=(0,n.useCallback)(async e=>{await f({email:null==s?void 0:s.email,verification_code:e}).unwrap(),x({uuid:o,eventName:A.TrackingEvents.SIGNUP_EMAIL_VERIFIED,properties:{email:null==s?void 0:s.email}}),a===L.Y.MAGIC_LINK&&await v({uuid:null==s?void 0:s.uuid,login_method:L.Y.MAGIC_LINK}),a===L.Y.BIOMETRICS&&await new Promise(e=>setTimeout(e,2e3)),i()},[f,null==s?void 0:s.email,null==s?void 0:s.uuid,x,o,a,i,v]);async function b(){h(!1);let e=(await Promise.resolve().then(t.bind(t,4170))).default;try{await _({email:null==s?void 0:s.email,profile_uuid:null==s?void 0:s.uuid,first_name:null==s?void 0:s.first_name,application_uuid:o,login_method:a}).unwrap(),e.success("Code resent!")}catch(i){e.warning("Failed to resend code. Please try again."),h(!0)}}async function k(e){try{await w(e)}catch(e){400===e.status&&(m("The code you entered is incorrect. Verify the code we sent you by email and try again."),x({uuid:o,eventName:A.TrackingEvents.INCORRECT_SECURITY_CODE,properties:{email:null==s?void 0:s.email}}))}}return(0,n.useEffect)(()=>{j&&e();async function e(){await w(j.verification_code)}},[j,w]),(0,n.useEffect)(()=>
1{if(!p){let e=setTimeout(()=>{h(!0)},3e4);return()=>clearTimeout(e)}},[p]),(0,l.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,l.jsx)("p",{className:"mb-4",children:"Open your email to get your 6 digit code and enter it here"}),(0,l.jsx)(R.I,{label:"6-digit verification code",hideLabel:!0,autoFocus:!0,errorText:u,className:"items-center mb-4",onChange:e=>{e.length<6&&6===c.length&&m("You must enter your 6 digit code to proceed."),d(e)},onComplete:e=>{m(""),k(e)}}),p&&(0,l.jsx)("div",{className:"flex items-center justify-center mb-4",children:(0,l.jsx)("p",{className:"underline cursor-pointer text-sm text-unlock-gray-dark",onClick:b,children:"Didn't receive the code?"})}),(0,l.jsx)(P.A,{email:null==s?void 0:s.email})]})}var M=t(62123),Y=t(48627),W=t(29463),B=t(4099);function G(e){let{nextStep:i}=e,[t]=(0,N.ZI)(),[n]=(0,N.SV)(),[a]=(0,N.U2)(),{application:s}=(0,g.A)();return(0,l.jsxs)("div",{className:"flex justify-center flex-col w-full gap-2 mt-4",children:[(0,l.jsx)("p",{children:"Please secure your profile with a password."}),(0,l.jsx)(Y.l1,{initialValues:{password:""},validate:W.l,onSubmit:async e=>{try{let{token_key:l}=await t().unwrap();await n({password:e.password,token_key:l,token_mode:B.J.CUSTOMER_PASSWORD_RESET}).unwrap(),a({uuid:null==s?void 0:s.uuid,eventName:A.TrackingEvents.PASSWORD_CREATED,properties:{page:"Profile Page"}}),i()}catch(e){throw Error("Unexpected error. Please refresh the page and try again.")}},validateOnMount:!0,children:e=>{let{isSubmitting:i,isValid:t,submitForm:n}=e;return(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center gap-1",children:[(0,l.jsx)(M.e,{label:"Password",name:"password"}),(0,l.jsx)(u.A,{isPrimary:!0,disabled:i||!t,className:"py-2",onClick:n,children:"Finish, Set Password"})]})}})]})}var U=t(18334),V=t(90249);function q(e){let{nextStep:i}=e,{registerBiometrics:t,biometricError:a}=(0,V.A)(),s=(0,n.useRef)(!1),r=(0,n.useRef)(!1),[o]=(0,N.BX)(),{loggedProfile:c}=(0,g.A)();return(0,n.useEffect)(()=>{!async function(){if(!s.current&&!r.current&&(null==c?void 0:c.email)){s.current=!0,r.current=!0;try{(await t(c.email)).verified&&(await o({uuid:null==c?void 0:c.uuid,login_method:L.Y.BIOMETRICS}),i())}catch(e){U.Cp(e,{tags:{feature:"biometrics",action:"profile_registration"},extra:{userEmail:null==c?void 0:c.email}})}finally{setTimeout(()=>{s.current=!1},1e3)}}}()},[i,c,t,o]),(0,l.jsx)("div",{children:a?(0,l.jsxs)("p",{className:"text-unlock-red font-semibold",children:["Something went wrong: ",a]}):(0,l.jsxs)("div",{className:"flex justify-center flex-col gap-4",children:[(0,l.jsx)(y.A,{}),(0,l.jsx)("p",{children:"Setting up your biometrics will allow you to log in to Unlock with your fingerprint or face ID."})]})})}var z=function(e){return e.NOT_ESCROWED="not-escrowed",e}({});let Z={uuid:"da5197dd-79cd-427c-a847-f3b57279619e",user_external_id:"20288423567630",first_name:"Guyrbush",last_name:"Threepwood",email:"[email protected]",phone:"4121231234",estimated_fico:"555",consented_to_privacy_at:"2025-04-10T21:09:30.180000Z",consented_to_credit_at:"2025-04-10T21:09:30.180000Z",consented_to_terms_at:"2025-04-10T21:09:30.180000Z",born_on:null,social_security_number:null,marital_status:null,marital_status_option:null,on_title:!0,mailing_address:{street:"8408 Pastori Way",city:"Sacramento",county:"Sacramento",state:"CA",zip_code:"95828",unit_number:null,latitude:null,longitude:null,fips_code:null,parcel_number:null,external_id:"26775702314847"},spouse_profile:null,middle_name:null,suffix:null,spouse_full_name:null,marriage_date:null,consented_to_spouse_impersonation_at:null,is_us_citizen_or_green_card_holder:null,current_property:{uuid:"943ef29d-3f35-4a08-8247-033b0a253b8c",address:{street:"8408 Pastori Way",unit_number:null,city:"Sacramento",county:"Sacramento",state:"CA",zip_code:"95828",corelogic_property_id:"__empty__",fips_code:null,parcel_number:null,latitude:null,longitude:null},property_type:null,property_usage:t(22998).QP.PRINCIPAL_RESIDENCE,aquired_on:null,aquired_price:null,title_held:null,title_vesting:null,monthly_gross_rent:null,monthly_cost_insurance_mortgage:null,monthly_cost_taxes:0,monthly_cost_insurance_hazard:null,monthly_cost_principle_interest:null,monthly_cost_hoa:null,monthly_cost_other:null,dti_escrow_status:z.NOT_ESCROWED,roof_solar_panel:null,is_lease_agreement_required:!1,estimated_debt:0,estimated_value:571300,is_hoa:null},denial_reason:null};var J=t(73845);function F(e){var i;let{isInitiallyOpen:t}=e,{loggedProfile:a,applicationId:s}=(0,g.A)(),{data:o}=(0,J.N)(),[c]=(0,N.KR)(),[d]=(0,N.lT)(),p=null==(i=(0,r.useRouter)().query)?void 0:i.method,h=null==o?void 0:o.login_method,x=p?ee.get(p):"initial",[f,v]=(0,n.use
1State)(x);async function _(e,i){await d({email:null==a?void 0:a.email,profile_uuid:null==a?void 0:a.uuid,first_name:null==a?void 0:a.first_name,application_uuid:s,login_method:e}).unwrap(),v(i)}return(0,l.jsxs)(m.v,{icon:(0,l.jsx)(T.A,{width:20,height:20,className:"text-unlock-navy"}),title:"Your Login Details",initiallyOpen:t||!!p,children:["initial"===f&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"mb-3",children:["Current login method:"," ",(0,l.jsx)("span",{className:"capitalize font-semibold",children:X.get(h)})]}),"password"===h&&(0,l.jsx)("div",{children:(0,l.jsx)(u.A,{isPrimary:!0,className:"mb-2",onClick:async()=>{try{await c().unwrap(),v("change-password")}catch(e){throw Error("Unexpected error. Please refresh the page and try again.")}},children:"Change Your Password"})}),(0,l.jsx)("p",{className:"mb-4 max-w-2xl",children:"We offer three different secure ways to login. You can choose from using a Password, receiving Secure Links or using your device Biometrics."}),(0,l.jsx)(u.A,{isSecondary:!0,onClick:()=>{v("change-method")},children:"Change Login Method"})]}),"change-method"===f&&(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,l.jsxs)("div",{className:"space-y-3 max-w-80",hidden:h===L.Y.PASSWORD,children:[(0,l.jsx)(u.A,{isPrimary:!0,className:"min-w-44",onClick:()=>_(L.Y.PASSWORD,"set-password"),children:"Use Password"}),(0,l.jsx)("p",{children:"Strong passwords are not easy to guess by anyone but yourself. We recommend using a random assortment of characters, numbers and symbols to make it difficult to guess."})]}),(0,l.jsxs)("div",{className:"space-y-3 max-w-80",hidden:h===L.Y.MAGIC_LINK,children:[(0,l.jsx)(u.A,{isPrimary:!0,className:"min-w-44",onClick:()=>_(L.Y.MAGIC_LINK,"set-magic-link"),children:"Use Secure Links"}),(0,l.jsx)("p",{children:"Secure links are sent by email to your stored address. Clicking the link logs you in."})]}),(0,l.jsxs)("div",{className:"space-y-3 max-w-80",hidden:h===L.Y.BIOMETRICS,children:[(0,l.jsx)(u.A,{isPrimary:!0,className:"min-w-44",onClick:()=>_(L.Y.BIOMETRICS,"set-biometrics"),children:"Use Biometrics"}),(0,l.jsx)("p",{children:"Use your device's security methods, like fingerprint or face recognition, to login."})]})]})}),"set-password"===f&&(0,l.jsx)(K,{setStage:v}),"set-magic-link"===f&&(0,l.jsx)(H,{setStage:v}),"set-biometrics"===f&&(0,l.jsx)($,{setStage:v}),"change-password"===f&&(0,l.jsx)(Q,{setStage:v})]})}function K(e){let[i,t]=(0,n.useState)(0);return(0,l.jsxs)("div",{className:"space-y-3 text-left",children:[0===i&&(0,l.jsx)(D,{nextStep:()=>t(1),method:L.Y.PASSWORD}),1===i&&(0,l.jsx)(G,{nextStep:()=>t(2)},"new-password"),2===i&&(0,l.jsx)("p",{className:"font-semibold",children:"Password set successfully!"}),(0,l.jsx)("button",{className:"unlock-link",onClick:()=>e.setStage("initial"),children:2===i?"Go Back":"Cancel this change"})]})}function H(e){let[i,t]=(0,n.useState)(0);return(0,l.jsxs)("div",{className:"space-y-3",children:[0===i&&(0,l.jsx)(D,{nextStep:()=>t(1),method:L.Y.MAGIC_LINK}),1===i&&(0,l.jsx)("p",{className:"font-semibold",children:"Secure links set successfully!"}),(0,l.jsx)("button",{className:"unlock-link",onClick:()=>e.setStage("initial"),children:1===i?"Go Back":"Cancel this change"})]})}function $(e){let[i,t]=(0,n.useState)(0);return(0,l.jsxs)("div",{className:"space-y-3",children:[0===i&&(0,l.jsx)(D,{nextStep:()=>t(1),method:L.Y.BIOMETRICS}),1===i&&(0,l.jsx)(q,{nextStep:()=>t(2)},"register-new-biometry"),2===i&&(0,l.jsx)("p",{className:"font-semibold",children:"Biometrics set successfully!"}),(0,l.jsx)("button",{className:"unlock-link",onClick:()=>e.setStage("initial"),children:i>0?"Go Back":"Cancel this change"})]})}function Q(e){return(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"font-semibold mb-4",children:["We have sent an email to ",null==Z?void 0:Z.email," with instructions for changing your password."]}),(0,l.jsx)("button",{className:"unlock-link",onClick:()=>e.setStage("initial"),children:"Go Back"})]})}let X=new Map([[L.Y.PASSWORD,"Password"],[L.Y.MAGIC_LINK,"Secure Link"],[L.Y.BIOMETRICS,"Biometrics"]]),ee=new Map([[L.Y.PASSWORD,"set-password"],[L.Y.MAGIC_LINK,"set-magic-link"],[L.Y.BIOMETRICS,"set-biometrics"]]);var ei=t(68100),et=t(71980),el=t(13436),en=t(92924),ea=t(40631);function es(e){let{isInitiallyOpen:i}=e,{loggedProfile:t}
1=(0,g.A)(),a=null==t?void 0:t.email,[s,r]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),{getToken:p}=(0,w.A)(),h=(0,c.j)(),{data:x}=(0,ea.$w)(null==t?void 0:t.uuid,{skip:!(null==t?void 0:t.uuid)}),f=null==x?void 0:x.phone,[v,{isLoading:_}]=(0,N.Dr)(),[j,{isLoading:b}]=(0,N.Jk)(),k=async()=>{try{await v({token:p()}).unwrap(),r(!0),h((0,et.t)("changeEmail"))}catch(e){throw Error("Unexpected error. Please refresh the page and try again.")}},E=async()=>{try{await j({token:p(),profile_uuid:null==t?void 0:t.uuid}).unwrap(),d(!0)}catch(e){throw Error("Unexpected error. Please refresh the page and try again.")}};return(0,l.jsx)(m.v,{icon:(0,l.jsx)(ei.A,{width:20,height:20,className:""}),title:"Your Contact Details",initiallyOpen:i,children:(0,l.jsx)("div",{className:"wizard-stage-grid mb-5",children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("h1",{className:"copy-md",children:"Need to change or update your contact details?"}),t&&(0,l.jsxs)("div",{children:[(0,l.jsx)(Y.l1,{initialValues:{phone:f},onSubmit:E,enableReinitialize:!0,children:e=>{let{isSubmitting:i}=e;return(0,l.jsxs)(Y.lV,{children:[(0,l.jsxs)("div",{className:"flex gap-2 items-center justify-between mt-4",children:[(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(el.P,{label:"Telephone",name:"phone",format:"(###) ###-####",mask:"_",required:!0,disabled:!0})}),(0,l.jsx)(u.A,{type:"submit",className:"w-[140px]",isPrimary:!0,disabled:i||b||o||!(null==t?void 0:t.uuid),children:i||b?(0,l.jsx)(y.A,{size:"xs"}):"Change Phone"})]}),o&&(0,l.jsxs)("div",{className:"flex flex-col items-center mt-4 gap-4",children:[(0,l.jsx)("p",{children:"We have sent an email to provide a secondary security measure and ensure your account is safe."}),(0,l.jsx)(P.A,{email:a})]})]})}}),(0,l.jsx)(Y.l1,{initialValues:{email:a},onSubmit:k,children:e=>{let{isSubmitting:i,submitForm:t}=e;return(0,l.jsxs)(Y.lV,{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 mt-4",children:[(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(en.A,{label:"Your Email Address",name:"email",type:"email",placeholder:"[email protected]",disabled:!0,required:!0})}),(0,l.jsx)(u.A,{className:"w-[140px]",isPrimary:!0,disabled:i||_||s,onClick:t,children:"Change Email"})]}),s&&(0,l.jsxs)("div",{className:"flex flex-col items-center mt-4 gap-4",children:[(0,l.jsx)("p",{className:"",children:"We have sent an email to provide a secondary security measure and ensure your account is safe."}),(0,l.jsx)(P.A,{email:a})]})]})}})]})]})})})}function er(){var e;let{loggedProfile:i,applicationId:t,profileId:n}=(0,g.A)(),a=null==(e=(0,r.useRouter)().query)?void 0:e.section,o="".concat(null==i?void 0:i.first_name," ").concat(null==i?void 0:i.last_name);return(null==i?void 0:i.uuid)?(0,l.jsxs)("div",{className:"p-3 max-w-[800px]",children:[(0,l.jsxs)("div",{className:"lg:hidden flex justify-between items-center mb-2",children:[(0,l.jsx)("h2",{className:"text-xl text-unlock-navy font-semibold",children:"Your Profile"}),(0,l.jsx)(s(),{href:t?"/applications/".concat(t,"/tasks"):"/profiles/".concat(n),children:(0,l.jsx)("p",{className:"unlock-link text-sm cursor-pointer",children:"Back to Tasks"})})]}),(0,l.jsxs)("p",{className:"mb-2 truncate overflow-hidden whitespace-nowrap text-ellipsis w-full font-semibold text-unlock-electric copy-lg",children:["Profile Name: ",o]}),(0,l.jsxs)("div",{className:"grid gap-3 grid-flow-row pb-6",children:[(0,l.jsx)(es,{isInitiallyOpen:a===L.E.CONTACT_DETAILS}),(0,l.jsx)(F,{isInitiallyOpen:a===L.E.LOGIN_DETAILS}),(0,l.jsx)(O,{isInitiallyOpen:a===L.E.YOUR_APPLICATIONS})]})]}):(0,l.jsx)("div",{className:"w-full h-full flex justify-center items-center",children:(0,l.jsx)(y.A,{})})}},96963:(e,i,t)=>{t.d(i,{A:()=>n});var l=t(14232);let n=l.forwardRef(function(e,i){let{title:t,titleId:n,...a}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":n},a),t?l.createElement("title",{id:n},t):null,l.createElement("path",{d:"M11.47 3.841a.75.75 0 0 1 1.06 0l8.69 8.69a.75.75 0 1 0 1.06-1.061l-8.689-8.69a2.25 2.25 0 0 0-3.182 0l-8.69 8.69a.75.75 0 1 0 1.061 1.06l8.69-8.689Z"}),l.createElement("path",{d:"m12 5.432 8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 0 1-.75-.75v-4.5a.75.75 0 0 0-.75-.75h-3a.75.75 0 0 0-.75.75V21a.75.75 0 0 1-.75.75H5.625a1.875 1.875 0 0 1-1.875-1.875v-6.198a2.29 2.29 0 0 0 .091-.086L12 5.432Z"}))})}}]);
2//# sourceMappingURL=7476-b46887c1a5b10110.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.