1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a35f4d40-fdb6-48a2-9e39-388d7364a89e",e._sentryDebugIdIdentifier="sentry-dbid-a35f4d40-fdb6-48a2-9e39-388d7364a89e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[864],{225:(e,r,s)=>{"use strict";s.d(r,{G:()=>n});var a=s(6768),t=s(8496);function n(e,r){let s=(0,t.zf)(e),n=(0,t.mn)(s)?"user_state":"operational";(0,a.$)({action:r.action,classification:n,code:s,pathname:r.pathname,phase:r.phase,severity:"user_state"===n?"warning":"error"})}},7804:(e,r,s)=>{"use strict";s.r(r),s.d(r,{__N_SSP:()=>R,default:()=>S});var a=s(6594),t=s(8246),n=s(8346),o=s(3859),i=s(7178);let d=i.forwardRef(function(e,r){let{className:s,...t}=e;return(0,a.jsx)("form",{...t,className:(0,o.cn)("flex flex-col gap-5",s),ref:r})});var l=s(4415);let u=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return r.filter(Boolean).join(" ")||void 0},c=i.forwardRef(function(e,r){let{"aria-describedby":s,"aria-invalid":t,className:n,description:d,error:l,id:c,invalid:f,label:p,trailing:w,...m}=e,v=i.useId(),h=null!=c?c:v,y=d?"".concat(h,"-description"):void 0,x=l?"".concat(h,"-error"):void 0,g=null!=m.value&&""!==m.value,b=(0,a.jsx)("input",{...m,"aria-describedby":u(s,y,x),"aria-invalid":l||f?"true":t,className:(0,o.cn)("min-h-[52px] w-full min-w-0 rounded-radius2 border-[1.5px] border-transparent bg-[#f8f8f8] px-4 py-3 text-[20px] leading-[1.4] text-main",g?"border-[#d7d7d7] bg-[rgb(var(--color-surface))]":void 0,"focus-visible:border-main focus-visible:outline-[3px] focus-visible:outline-offset-2 focus-visible:outline-green2","aria-invalid:border-[#ac9494] aria-invalid:bg-[#f4eeee] disabled:cursor-not-allowed disabled:opacity-[0.55]",w?"pr-12":void 0,n),id:h,ref:r});return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-[18px] font-medium leading-[1.4] [overflow-wrap:anywhere]",htmlFor:h,children:p}),d?(0,a.jsx)("p",{className:"m-0 text-sm leading-[1.4] text-secondary [overflow-wrap:anywhere]",id:y,children:d}):null,w?(0,a.jsxs)("div",{className:"relative min-w-0",children:[b,w]}):b,l?(0,a.jsx)("p",{className:"m-0 text-sm leading-[1.4] text-[#782c2c] [overflow-wrap:anywhere]",id:x,role:"alert",children:l}):null]})}),f=()=>(0,a.jsxs)("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-component":"EyeIcon","data-sentry-source-file":"PasswordFormField.tsx",children:[(0,a.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z","data-sentry-element":"path","data-sentry-source-file":"PasswordFormField.tsx"}),(0,a.jsx)("circle",{cx:"12",cy:"12",r:"3","data-sentry-element":"circle","data-sentry-source-file":"PasswordFormField.tsx"})]}),p=()=>(0,a.jsxs)("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-component":"EyeOffIcon","data-sentry-source-file":"PasswordFormField.tsx",children:[(0,a.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24","data-sentry-element":"path","data-sentry-source-file":"PasswordFormField.tsx"}),(0,a.jsx)("line",{x1:"1",x2:"23",y1:"1",y2:"23","data-sentry-element":"line","data-sentry-source-file":"PasswordFormField.tsx"})]}),w=i.forwardRef(function(e,r){let{disabled:s,...t}=e,[n,o]=i.useState(!1);return(0,a.jsx)(c,{...t,disabled:s,ref:r,trailing:(0,a.jsx)("button",{"aria-label":n?"Hide password":"Show password","aria-pressed":n,className:"absolute inset-y-0 right-1.5 my-auto flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-secondary transition-colors duration-150 enabled:hover:text-main focus-visible:outline-[3px] focus-visible:outline-offset-2 focus-visible:outline-green2 disabled:cursor-not-allowed",disabled:s,type:"button",onClick:()=>o(e=>!e),children:n?(0,a.jsx)(p,{}):(0,a.jsx)(f,{})}),type:n?"text":"password"})});var m=s(5040),v=s(6776),h=s(6290),y=s(225),x=s(6883),g=s(9106),b=s.n(g),j=s(9233);let k=Object.assign(e=>{let r,{previewMode:s}=e,o=(0,j.useRouter)(),u=(0,n.$)(),c=i.useId(),f=i.useId(),[p,g]=i.useState("loading"),[k,R]=i.useState(""),[S,_]=i.useState(""),[C,N]=i.useState(),[P,I]=i.useState(!1),[F,E]=i.useState(),[O,D]=i.useState(!1),[q,H]=i.useState(!1),[L,T]=i.useState(0),[W,X]=i.useState(!1),A=i.useRef(),B=i.useRef(!1),M=i.useRef(),z=i.useRef(-1),G=i.useRef(0),K=i.useRef(!1),V=i.useRef(null),Y=i.useRef(null),$=i.useCallback((e,r)=>{s||(0,y.G)(e,{action:"reset_password",pathname:o.pathname,phase:r})},[s,o.pathname]);i.useEffect(()=>{if(!o.isReady||z.current===L)return;let e=(0,h.iz)(o.query);if(!(0,h.O_)(e,"resetPassword")){z.current=L,g("invalid");return}if(!u)return;z.current=L;let r=s?(0,h.ps)():(0,h.aI)((0,x.xI)());A.current=r,M.current=e.value.oobCode,g("loading"),r.verify(e.value.oobCode).then(()=>{X(!1),g("form")}).catch(e=>{if($(e,"validate"),W)return void((0,h.XD)(e)?(A.current=void 0,M.current=void 0,g("terminal-unconfirmed")):g("unconfirmed"));(0,h.XD)(e)?(A.current=void 0,M.current=void 0,g("invalid")):g("operational-error")})},[W,u,s,$,L,o.isReady,o.query]),i.useEffect(()=>{let e=++G.current,r=A.current;if("form"===p&&r){if(K.current){K.current=!1,D(!1);return}D(!0),r.validate(k).then(r=>{e===G.current&&(E({password:k,result:r}),D(!1))}).catch(r=>{e===G.current&&($(r,"validate"),R(""),_(""),I(!1),E(void 0),D(!1),g("operational-error"))})}},[k,$,p]),i.useEffect(()=>{var e;
1!q&&C&&(null==(e=("password"===C.field?V:Y).current)||e.focus())},[C,q]);let Z=i.useCallback(()=>{A.current=void 0,M.current=void 0,N(void 0),E(void 0),R(""),_(""),I(!1),g("loading"),T(e=>e+1)},[]),J=i.useCallback(async e=>{var r,a,t,n;e.preventDefault();let o=A.current,i=M.current;if(o&&i&&!B.current&&!q&&!O){if(N(void 0),!k){N({field:"password",message:"Enter a new password."}),null==(r=V.current)||r.focus();return}if(k!==S){N({field:"confirmation",message:"Passwords donât match, please try again."}),null==(a=Y.current)||a.focus();return}if((null==F?void 0:F.password)!==k||!F.result.isValid){N({field:"password",message:"Your password does not meet all requirements."}),null==(t=V.current)||t.focus();return}B.current=!0,H(!0);try{await o.confirm(i,k),s||v.k.passwordResetCompleted("success"),R(""),_(""),I(!1),N(void 0),E(void 0),A.current=void 0,M.current=void 0,X(!1),g("success")}catch(e){$(e,"confirm"),s||v.k.passwordResetCompleted({error:e}),R(""),_(""),I(!1),E(void 0),(0,h.XD)(e)?(A.current=void 0,M.current=void 0,g("invalid")):(0,h.Rw)(e)?(K.current=!0,N({field:"password",message:"Your password does not meet all requirements."}),null==(n=V.current)||n.focus()):(X(!0),g("unconfirmed"))}finally{B.current=!1,H(!1)}}},[S,k,s,$,q,F,O]),Q=(null==F?void 0:F.password)===k?F.result.requirements:[],U=""!==S&&k!==S&&(P||S.length>=k.length),ee=(null==C?void 0:C.field)==="confirmation"?C.message:U?"Passwords donât match, please try again.":void 0;switch(p){case"invalid":r=(0,a.jsx)(t.RH,{description:t.IS,heading:"Link expired"});break;case"operational-error":r=(0,a.jsx)(t.RH,{description:"We couldnât reset your password. Check your connection and try again.",heading:"Something went wrong",children:(0,a.jsx)(l.p,{onClick:Z,children:"Try again"})});break;case"success":r=(0,a.jsx)(t.si,{heading:"Password changed successfully",message:"Open your Sesame iOS or Android app to login with your new password.",tone:"success"});break;case"unconfirmed":r=(0,a.jsx)(t.si,{heading:"Password reset status unknown",message:"We couldnât confirm whether your password was reset. Open Sesame and try your new password before retrying this reset.",tone:"error",children:(0,a.jsx)(l.p,{onClick:Z,children:"Try again"})});break;case"terminal-unconfirmed":r=(0,a.jsx)(t.si,{heading:"Password reset status unknown",message:"We couldnât confirm whether your password was reset. Open Sesame and try your new password. If it doesnât work, request a new reset email.",tone:"error"});break;case"form":r=(0,a.jsx)(t.RH,{description:"Please choose a new password for your Sesame account.",error:ee,errorId:f,focusTransitionKey:"form",heading:"Reset your password",children:(0,a.jsxs)(d,{noValidate:!0,onSubmit:J,children:[(0,a.jsx)(w,{"aria-describedby":Q.length>0?c:void 0,autoComplete:"new-password",disabled:q,error:(null==C?void 0:C.field)==="password"?C.message:void 0,invalid:void 0!==ee,label:"New password",name:"new-password",ref:V,value:k,onChange:e=>{R(e.target.value),N(void 0)}}),(0,a.jsx)(w,{"aria-describedby":ee?f:void 0,autoComplete:"new-password",disabled:q,invalid:void 0!==ee,label:"Confirm new password",name:"confirm-password",ref:Y,value:S,onBlur:()=>{""!==S&&I(!0)},onChange:e=>{_(e.target.value),N(void 0)}}),(0,a.jsx)(t.Kz,{id:c,requirements:Q}),(0,a.jsx)(m.M,{children:q?"Resetting passwordâ¦":O?"Checking passwordâ¦":""}),(0,a.jsx)(l.p,{disabled:q||O||void 0!==ee||(null==F?void 0:F.password)!==k,type:"submit",children:q?"Resetting passwordâ¦":"Reset password"})]})});break;case"loading":r=(0,a.jsx)(t.RH,{description:"Checking your linkâ¦",heading:"Reset your password"})}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b(),{"data-sentry-element":"Head","data-sentry-source-file":"reset-password.tsx",children:(0,a.jsx)("title",{children:"Reset your password | Sesame"})}),r]})},{telemetry:{mode:"auth-actions",sessionReplay:!1}});k.getLayout=t.dS;var R=!0;let S=k},8974:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/reset-password",function(){return s(7804)}])}},e=>{e.O(0,[423,317,636,593,792],()=>e(e.s=8974)),_N_E=e.O()}]);
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.