1"use strict";(self.uniqueWebpackInstance1790206371878=self.uniqueWebpackInstance1790206371878||[]).push([[7449],{59793:function(e,t,n){var a=n(96540),i=n(91398),r=n(80856),o=n(88836);t.A=({className:e="",disabled:t=!1}={})=>{const n=(0,o.Zp)();return a.createElement(i.HuiButton,{className:e||"hui-margin-bottom-24",color:"primary",disabled:t,onClick:()=>n(r.HA.Settings),size:"large",testId:"back-to-settings",type:"button",variant:"text",width:"full"},"Back to Settings")}},96798:function(e,t,n){n.d(t,{A:function(){return o}}),n(69085);var a=n(96540);const i=["alignment","children","className","testId","variant"];function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r.apply(null,arguments)}let o=function(e){return e[e.Center=0]="Center",e[e.Left=1]="Left",e}({});t.h=e=>{let{alignment:t,children:n,className:l="",testId:u="page-header",variant:s="default"}=e,c=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,i);const d=t===o.Center?"hui-subheader-lg:scale hui-margin-top-40 hui-margin-bottom-32 hui-margin-top-64:md hui-margin-bottom-48:md hui-text-align-center":"hui-subheader-lg hui-margin-bottom-16 hui-margin-bottom-8:md",m=a.createElement("h1",r({className:`${d} hui-font-weight-semi-bold hui-text-action-primary ${l}`,"data-testid":u,id:"page-header"},c),n);return"top"===s?a.createElement("div",{className:"max-width-568 hui-border-radius-10 hui-margin-horizontal-auto"},a.createElement("div",r({"aria-live":"assertive",className:"hui-padding-24 hui-padding-horizontal-0:md hui-padding-vertical-40:md"},c),m)):m}},51434:function(e,t,n){n(3362),n(62953);var a=n(13739),i=n(95195),r=n(21409),o=n(36095),l=n(96025),u=n(18981);t.A=()=>{const e=(0,o.F)(),{email:t}=(0,l.N)(),{factors:n}=(0,u.o)(),s=(0,a.useErrorToast)({logPrefix:"profile:factor-add-totp"}),[c]=(0,i.EA9)({context:{skipErrorHandling:!0,useFederatedGraph:!0}});return{addTotp:async a=>{try{var i;let r=null==n||null===(i=n.totp)||void 0===i?void 0:i.pending.ids[0];if(!r){var o;const n=await c({variables:{input:{label:a||t,subjectId:e}}});if(null===(o=n.data)||void 0===o||null===(o=o.subjectAddTotpFactor)||void 0===o||!o.authenticationFactorId)throw new Error("Failed to add TOTP factor");r=n.data.subjectAddTotpFactor.authenticationFactorId}return r}catch(e){if((0,r.QL)(e))return void s({error:e,handled:!0,logLevel:"warn",toastMessage:r.oy});s({error:e,toastMessage:"Unable to add security verification. Please try again or contact support if the problem persists."})}}}}},40175:function(e,t,n){var a=n(96540),i=n(13739),r=n(92237);n.d(t,["r",0,e=>{const{domain:t}=(0,i.usePartnerConfig)();(0,a.useEffect)((()=>{if(!(0,r.qV)(t))return document.title=`${e} | Human Interest`,()=>{document.title="Log in to your Human Interest account | Human Interest"}}),[t,e])}])},91182:function(e,t,n){n(62953);var a=n(58884),i=n(96540);t.A=()=>{const[e,t]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{a.authManager.needsReauth()?a.authManager.redirectIfReauthRequired():t(!1)}),[]),{loading:e}}},18981:function(e,t,n){n.d(t,{o:function(){return l}}),n(26910),n(62953);var a=n(95195),i=n(36095),r=n(96540);const o=e=>{const t={};return[...e||[]].sort(((e,t)=>e.id.localeCompare(t.id))).forEach((e=>{var n,i,r,o,l,u;t[e.type]||(t[e.type]={all:{ids:[],options:[]},pending:{ids:[],options:[]},verified:{ids:[],options:[]}}),null===(n=t[e.type])||void 0===n||n.all.ids.push(e.id),null===(i=t[e.type])||void 0===i||i.all.options.push(e),e.status===a.Uv5.pending_verification?(null===(r=t[e.type])||void 0===r||r.pending.ids.push(e.id),null===(o=t[e.type])||void 0===o||o.pending.options.push(e)):(null===(l=t[e.type])||void 0===l||l.verified.ids.push(e.id),null===(u=t[e.type])||void 0===u||u.verified.options.push(e))})),t};function l(){const e=(0,i.F)(),[t,n]=(0,r.useState)(null),{data:l,loading:u}=(0,a.u2F)({context:{useFederatedGraph:!0},fetchPolicy:"cache-and-network",skip:!e,variables:{subjectId:e}});return(0,r.useEffect)((()=>{l&&n(o(l.subject.authenticationFactors))}),[l]),{factors:t,loading:u,subject:null==l?void 0:l.subject,subjectId:e}}},87449:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var a=n(21886),i=n(40175),r=n(18981),o=n(96540),l=n(18586),u=(n(3362),n(62953),n(13739)),s=n(96798),c=n(95195),d=n(91398),m=n(88836),p=n(80856);const h=({codes:e,onClose:t})=>o.createElement(d.HuiDialog,{onClose:t,testId:"dialog-totp-backup-codes"},o.createElement(d.HuiDialogHeader,null,"Recovery Codes"),o.createElement(d.HuiDialogBody,null,"Please save the following codes in a safe place. You will need them if you lose access to your MFA device.",o.createElement("div",{className:"hui-row hui-row-gutter hui-margin-top-16 hui-margin-bottom-24"},e.map((e=>o.createElement("div",{className:"hui-col-12 hui-col-6:md hui-flex hui-flex-align-center hui-flex-justify-center","data-testid":"totp-backup-code",key:e},o.createElement("div",{className:"hui-text-compact hui-text-gray-10 hui-font-weight-bold"},e)))))),o.createElement(d.HuiDialogFooter,null,o.createElement(d.HuiButton,{onClick:t,testId:"btn-totp-backup-codes-close",type:"button"},"Continue")));var f=n(45145),g=n(87583);const v=({url:e,width:t=150})=>{const n=(0,o.useRef)(null);return(0,o.useEffect)((()=>{e&&n.current&&g.toCanvas(n.current,e,{width:t})}),[e]),e?o.createElement("canvas",{"data-testid":"qr-code",id:"qr-canvas",ref:n}):null};var y=n(59793),b=n(76916),E=n(69296),I=n(45619),A=()=>{const{formState:e,setError:t}=(0,I.xW)(),n=(0,f.jv)();return(0,u.useFormFieldErrors)({setError:t}),o.createElement(o.Fragment,null,o.createElement(E.A,{autoFocus:!1}),o.createElement(d.HuiButton,{className:"hui-margin-top-32",isLoading:e.isSubmitting,size:"large",testId:"btn-totp-verify",type:"submit",width:"full"},"Continue"),n?o.createElement(o.Fragment,null,o.createElement(b.A,{className:"hui-margin-top-24 hui-margin-bottom-12"}),o.createElement(d.HuiButton,{color:"primary",disabled:e.isSubmitting,onClick:async()=>{(0,m.oo)(p.HA.FactorAddSms,{query:n})},testId:"use-sms",variant:"text",width:"full"},"Text me a code")):o.createElement(y.A,{className:"hui-margin-top-24 hui-margin-bottom-0",disabled:e.isSubmitting}))},F=({factor:e,subjectId:t})=>{const n=u.UUIDTypeFactory.parseIfValid(e.id),[i,r]=(0,o.useState)([]),l=(0,m.Zp)(),{hideAppToast:g,showAppToast:y}=(0,u.useAppToast)(),{data:b,loading:E}=(0,c.hUz)({context:{useFederatedGraph:!0},skip:!n,variables:{authenticationFactorId:n,subjectId:t}}),[I]=(0,c._iJ)({context:{useFederatedGraph:!0}});return e?E?o.createElement(a.a,null):o.createElement("div",{className:"hui-flex hui-padding-top-72 hui-flex-justify-center","data-testid":"profile-factor-verify-paper"},o.createElement(u.Paper,{className:"hui-padding-top-72 max-width-568 hui-margin-horizontal-auto"},o.createElement(s.h,{alignment:s.A.Left},"Set up an authenticator app"),o.createElement("ol",{className:"hui-margin-top-16 hui-padding-left-16 hui-text-compact"},o.createElement("li",null,o.createElement("span",null,"Install a verification app such as Google Authenticator, Duo Mobile, or Authy app on your mobile device via an app store."),o.createElement(d.HuiDivider,{className:"hui-margin-vertical-32 margin-left--16"})),o.createElement("li",null,o.createElement("span",null,"Using your authenticator app to scan this QR code:"),o.createElement("div",{className:"hui-margin-top-16 hui-flex hui-flex-all-centered hui-flex-column"}
1,o.createElement(v,{url:null==b?void 0:b.subjectTotpQrCode,width:150}),(null==b?void 0:b.subjectTotpQrCode)&&o.createElement(u.ExternalLink,{className:"hui-margin-top-16 hui-font-weight-600","data-testid":"link-qr-code",href:null==b?void 0:b.subjectTotpQrCode},o.createElement("span",null,"Or click this link"))),o.createElement(d.HuiDivider,{className:"hui-margin-vertical-32 margin-left--16"})),o.createElement("li",null,"Enter the 6 digit code from your authenticator app to complete activating MFA.")),o.createElement(d.HuiForm,{onSubmit:async({challengeCode:e})=>{var a;g();const{data:i}=await I({variables:{input:{authenticationFactorId:n,challengeCode:e,subjectId:t}}});var o;null!=i&&null!==(a=i.subjectVerifyTotpFactor)&&void 0!==a&&null!==(a=a.backupCodes)&&void 0!==a&&a.length?r(null==i||null===(o=i.subjectVerifyTotpFactor)||void 0===o?void 0:o.backupCodes):(y({message:"You have successfully added an authenticator app."}),(0,f.gA)({navigate:l,url:p.HA.Settings}))},validationMode:"onSubmit"},o.createElement(A,null)),i.length>0&&o.createElement(h,{codes:i,onClose:()=>(0,f.gA)({navigate:l,url:p.HA.Settings})}))):null},w=n(51434),x=({sendCodeInstance:e})=>{const{formState:t,setError:n}=(0,I.xW)(),{ResendCodeButton:a}=e;(0,u.useFormFieldErrors)({setError:n});const i=(0,f.jv)(),{addTotp:r}=(0,w.A)();return o.createElement(o.Fragment,null,o.createElement(E.A,null),o.createElement(a,null),o.createElement(d.HuiButton,{className:"hui-margin-top-32",isLoading:t.isSubmitting,size:"large",testId:"btn-mfa-continue",type:"submit",width:"full"},"Continue"),i?o.createElement(o.Fragment,null,o.createElement(b.A,{className:"hui-margin-top-24 hui-margin-bottom-12"}),o.createElement(d.HuiButton,{color:"primary",disabled:t.isSubmitting,onClick:async()=>{const e=await r();(0,m.oo)((0,u.generatePath)(p.HA.FactorVerify,{factorId:e}),{query:i})},testId:"use-authenticator",variant:"text",width:"full"},"Use authenticator app")):o.createElement(y.A,{className:"hui-margin-top-24 hui-margin-bottom-0",disabled:t.isSubmitting}))},C=({factor:e,sendCodeInstance:t,subjectId:n})=>{(0,i.r)("Verify SMS MFA");const r=u.UUIDTypeFactory.parseIfValid(e.id),{hideAppToast:l,showAppToast:h}=(0,u.useAppToast)(),{sendingCodeOnPageLoad:g}=t,[v]=(0,c._iJ)({context:{useFederatedGraph:!0}});return e?g?o.createElement(a.a,null):o.createElement("div",{className:"hui-flex hui-padding-top-72 hui-flex-justify-center"},o.createElement(u.Paper,{className:"hui-padding-top-72 max-width-568 hui-margin-horizontal-auto"},o.createElement(s.h,{alignment:s.A.Left},"Verify via SMS"),o.createElement("p",{className:"hui-margin-bottom-32"},o.createElement("span",null,"A one time code has been sent to your phone number ending in "),o.createElement("span",{className:"hui-font-weight-700"},e.config.phoneNumber.slice(-4)),o.createElement("span",null,". Please enter your code to continue.")),o.createElement(d.HuiForm,{onSubmit:async({challengeCode:e})=>{l(),await v({variables:{input:{authenticationFactorId:r,challengeCode:e,subjectId:n}}}),h({message:"You have successfully verified your phone number."}),(0,f.gA)({navigate:m.oo,url:p.HA.Settings})},validationMode:"onSubmit"},o.createElement(x,{sendCodeInstance:t})))):null},S=n(58884),j=({sendCodeInstance:e})=>{const{ResendCodeButton:t}=e,{formState:n,setError:a}=(0,I.xW)();return(0,u.useFormFieldErrors)({setError:a}),o.createElement(o.Fragment,null,o.createElement(E.A,null),o.createElement(t,null),o.createElement(d.HuiButton,{className:"hui-margin-vertical-24",isLoading:n.isSubmitting,size:"large",testId:"btn-totp-verify",type:"submit",width:"full"},"Verify"),o.createElement(y.A,{disabled:n.isSubmitting}))},N=({factor:e,sendCodeInstance:t,subjectId:n})=>{const a=(0,m.Zp)(),{hideAppToast:i,showAppToast:r}=(0,u.useAppToast)(),[l]=(0,c._iJ)({context:{useFederatedGraph:!0}});return e?o.createElement("div",{className:"hui-flex hui-padding-top-72 hui-flex-justify-center"},o.createElement(u.Paper,{className:"hui-padding-top-72 max-width-568 hui-margin-horizontal-auto"},o.createElement(s.h,{alignment:s.A.Left},"Verify recovery email"),o.createElement("p",{className:"hui-margin-top-16 hui-margin-bottom-32"},"We've sent a one-time password (OTP) code to your recovery email address. Please enter the code below to verify access to this email address."),o.createElement(d.HuiForm,{onSubmit:async({challengeCode:t})=>{i(),await l({variables:{input:{authenticationFactorId:e.id,challengeCode:t,subjectId:n}}}),r({message:"You have successfully verified your recovery email."}),(0,f.gA)({navigate:a,url:p.HA.Settings})},validationMode:"onSubmit"},o.createElement(j,{sendCodeInstance:t})))):null},T=n(84127),H=n(91182),P=n(9211),k=({sendCodeInstance:e})=>{const{formState:t,setError:n}=(0,I.xW)();(0,u.useFormFieldErrors)({setError:n});const{ResendCodeButton:a}=e;return o.createElement(o.Fragment,null,o.createElement(E.A,null),o.createElement(a,null),o.createElement(d.HuiButton,{className:"hui-margin-vertical-24",isLoading:t.isSubmitting,size:"large",testId:"btn-totp-verify",type:"submit",width:"full"},"Verify"),o.createElement(y.A,{disabled:t.isSubmitting}))},L=n(21409),O=({factor:e,sendCodeInstance:t,subjectId:n})=>
1{const a=(0,m.Zp)(),{hideAppToast:i,showAppToast:r}=(0,u.useAppToast)(),l=(0,u.useErrorToast)({logPrefix:"Verify Provisional Primary Email"}),[h]=(0,c.KOu)({context:{skipErrorHandling:!0,useFederatedGraph:!0}});return e?o.createElement("div",{className:"hui-flex hui-padding-top-72 hui-flex-justify-center"},o.createElement(u.Paper,{className:"hui-padding-top-72 max-width-568 hui-margin-horizontal-auto"},o.createElement(s.h,{alignment:s.A.Left},"Verify your new primary email"),o.createElement("p",{className:"hui-margin-top-16 hui-margin-bottom-32"},"We've sent a one-time password (OTP) code to your new primary email address. Please enter the code below to verify access to this email address."),o.createElement(d.HuiForm,{onSubmit:async({challengeCode:t})=>{i();try{await h({variables:{input:{authenticationFactorId:u.UUIDTypeFactory.parse(e.id),challengeCode:t,subjectId:n}}}),r({message:"You have successfully verified your new primary email."}),(0,f.gA)({navigate:a,url:p.HA.Settings})}catch(e){if((0,L.QL)(e))return void r({level:"error",message:L.oy});if(e instanceof P.K4){const t={};for(const n of e.graphQLErrors){var o,s;if("BAD_USER_INPUT"!==(0,u.getErrorCode)(n)||!(0,u.isUserInputError)(n))continue;const e=null!==(o=null===(s=n.extensions)||void 0===s?void 0:s.fields)&&void 0!==o?o:{};for(const[n,a]of Object.entries(e)){const e=L.j1[a];e&&(t[n]=(0,u.reactNodeToString)(e))}}if(Object.keys(t).length>0)return void window.dispatchEvent(new CustomEvent("FORM_FIELD_ERRORS",{detail:t}))}l({error:e,toastMessage:"Unable to verify email. Please try again or contact support if the problem persists."})}},validationMode:"onSubmit"},o.createElement(k,{sendCodeInstance:t})))):null},W=(0,S.withAuth)((({factorId:e})=>{(0,i.r)("Verify MFA");const{loading:t}=(0,H.A)(),{loading:n,subject:u,subjectId:s}=(0,r.o)(),c=(0,S.useRecaptcha)({action:S.RecaptchaAuthAction.otp_challenge}),d=(0,l.zI)(e,null==u?void 0:u.authenticationFactors),m=(0,l.xl)(e,null==u?void 0:u.authenticationFactors),p=(0,l.XP)(e,null==u?void 0:u.authenticationFactors),h=(0,l.xn)(e,null==u?void 0:u.authenticationFactors),f=d||m||p||h,g=(0,T.A)({factor:f,recaptchaInstance:c});return!n&&!t&&u&&s&&!g.sendingCodeOnPageLoad&&(p||m||d||h)?d?o.createElement(N,{factor:d,sendCodeInstance:g,subjectId:s}):m?o.createElement(C,{factor:m,sendCodeInstance:g,subjectId:s}):p?o.createElement(F,{factor:p,subjectId:s}):h?o.createElement(O,{factor:h,sendCodeInstance:g,subjectId:s}):null:o.createElement(a.a,null)}))},18586:function(e,t,n){n.d(t,{DL:function(){return c},Gq:function(){return p},Kz:function(){return f},QK:function(){return r},S3:function(){return o},W$:function(){return v},XP:function(){return m},aB:function(){return d},jE:function(){return u},rL:function(){return g},xl:function(){return h},xn:function(){return l},zI:function(){return s}}),n(26910),n(38781);var a=n(95195),i=n(58884);function r(e){return null==e?void 0:e.find((e=>e.type===a.W1o.primary_email&&e.status!==a.Uv5.provisioning))}function o(e){return null==e?void 0:e.find((e=>e.type===a.W1o.primary_email&&e.status===a.Uv5.provisioning))}function l(e,t){return null==t?void 0:t.find((t=>t.type===a.W1o.primary_email&&t.status===a.Uv5.provisioning&&t.id===e.toString()))}function u(e){return null==e?void 0:e.find((e=>e.type===a.W1o.recovery_email))}function s(e,t){return(t||[]).find((t=>t.type===a.W1o.recovery_email&&t.id===e))}function c(e){return null==e?void 0:e.find((e=>e.type===a.W1o.password))}function d(e){return(e||[]).filter((e=>e.type===a.W1o.totp)).sort(((e,t)=>e.id>t.id?1:-1))}function m(e,t){return(t||[]).find((t=>t.type===a.W1o.totp&&t.id===e))}function p(e){return(e||[]).filter((e=>e.type===a.W1o.sms)).sort(((e,t)=>e.id>t.id?1:-1))}function h(e,t){return(t||[]).find((t=>t.type===a.W1o.sms&&t.id===e))}function f(e){return(e||[]).filter((e=>e.type===a.W1o.federated_login)).sort(((e,t)=>e.id>t.id?1:-1))}function g(e,t){return(t||[]).find((t=>t.type===a.W1o.federated_login&&t.id===e))}function v(e,t){const n=e.find((e=>e.id===t));switch(null==n?void 0:n.type){case i.AuthenticationFactorType.primary_email:case i.AuthenticationFactorType.recovery_email:case i.AuthenticationFactorType.sms:return!0;default:return!1}}},92237:function(e,t,n){n(27495),n(25440);const a=null!=="app.humaninterest.com"?"app.humaninterest.com":"",i=e=>e.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/\/+$/,""),r=i(a);n.d(t,["AT",0,i,"le",0,()=>window.location.hostname,"qV",0,e=>!(!e||!r)&&i(e)!==r,"zx",0,a])}}]);
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.