1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aeaa5462-79d5-4607-b139-f2c40d2386c2",e._sentryDebugIdIdentifier="sentry-dbid-aeaa5462-79d5-4607-b139-f2c40d2386c2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6804],{19114:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(16614),o=r(77290);function a(e,{avoidStrictMode:t=!1,useEffectFn:r=o.useEffect}={}){let s=(0,o.useRef)(e),i=(0,o.useRef)(t),l=(0,o.useRef)(null);s.current=e,i.current=t,r(()=>(l.current&&clearTimeout(l.current),()=>{let{ENVIRONMENT:e}=(0,n.E)();i.current&&"production"!==e?l.current=window.setTimeout(()=>{s.current()},0):s.current()}),[])}},52081:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=12},65934:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/confirm-reset-password",function(){return r(94277)}])},71899:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(86818),o=r(50602),a=r(77290);let s=e=>a.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.457 13.0357L0.957031 1.03571L2.04206 0L13.5421 12L12.457 13.0357Z",fill:"currentColor"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9327 9.31404C13.7518 8.53459 14.4058 7.58334 14.837 6.51807C13.6502 3.58624 10.7759 1.51807 7.41848 1.51807C6.81909 1.51807 6.2351 1.58398 5.67335 1.70897L6.93954 3.03545C7.09769 3.02393 7.25741 3.01807 7.41848 3.01807C9.92413 3.01807 12.1016 4.43623 13.1867 6.51807C12.8528 7.15858 12.4156 7.73628 11.8972 8.22917L12.9327 9.31404ZM5.21489 3.40109C3.67289 3.9566 2.4005 5.07871 1.65029 6.51807C2.73537 8.59991 4.91283 10.0181 7.41848 10.0181C8.61053 10.0181 9.72829 9.69709 10.6895 9.13639L11.7487 10.246C10.5006 11.0509 9.01408 11.5181 7.41848 11.5181C4.06111 11.5181 1.18677 9.4499 0 6.51807C0.768641 4.6192 2.24518 3.08263 4.10236 2.23558L5.21489 3.40109Z",fill:"currentColor"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4139 6.67528C10.4166 6.62321 10.418 6.5708 10.418 6.51807C10.418 4.86121 9.07482 3.51807 7.41797 3.51807C7.41206 3.51807 7.40616 3.51808 7.40027 3.51812L10.4139 6.67528ZM5.78657 4C4.96283 4.53478 4.41797 5.46279 4.41797 6.51807C4.41797 8.17492 5.76111 9.51807 7.41797 9.51807C8.42324 9.51807 9.31302 9.02362 9.85739 8.26466L8.78352 7.13965C8.54725 7.65787 8.02468 8.01807 7.41797 8.01807C6.58954 8.01807 5.91797 7.34649 5.91797 6.51807C5.91797 5.88664 6.30812 5.34633 6.86051 5.12507L5.78657 4Z",fill:"currentColor"}));var i=r(91549),l=r(98822),d=r(87975),c=r(44884);let u=e=>{let t,r,d,c,u=(0,o.c)(11),[h,w]=(0,a.useState)(!1);u[0]!==h?(t=()=>w(!h),u[0]=h,u[1]=t):t=u[1],u[2]!==h?(r=h?(0,n.jsx)(s,{}):(0,n.jsx)(i.A,{}),u[2]=h,u[3]=r):r=u[3],u[4]!==t||u[5]!==r?(d=(0,n.jsx)(m,{onClick:t,type:"button",children:r}),u[4]=t,u[5]=r,u[6]=d):d=u[6];let p=h?"text":"password";return u[7]!==e||u[8]!==d||u[9]!==p?(c=(0,n.jsx)(l.k,{endAdornment:d,name:"password",placeholder:"Password",type:p,variant:"auth",...e}),u[7]=e,u[8]=d,u[9]=p,u[10]=c):c=u[10],c},m=c.I4.button.withConfig({componentId:"sc-4d3fe067-0"})(["background:none;border:none;outline:none;cursor:pointer;height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;&:focus{outline:3px solid ",";}"],d.Vg["color-border-primary"])},91549:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(77290);let o=e=>n.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.65029 6.51807C2.73537 8.59991 4.91283 10.0181 7.41848 10.0181C9.92414 10.0181 12.1016 8.59991 13.1867 6.51807C12.1016 4.43623 9.92413 3.01807 7.41848 3.01807C4.91283 3.01807 2.73537 4.43623 1.65029 6.51807ZM14.837 6.51807C13.6502 3.58624 10.7759 1.51807 7.41848 1.51807C4.06111 1.51807 1.18677 3.58624 0 6.51807C1.18677 9.4499 4.06111 11.5181 7.41848 11.5181C10.7759 11.5181 13.6502 9.4499 14.837 6.51807Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.41797 8.01807C8.2464 8.01807 8.91797 7.34649 8.91797 6.51807C8.91797 5.68964 8.2464 5.01807 7.41797 5.01807C6.58954 5.01807 5.9
11797 5.68964 5.91797 6.51807C5.91797 7.34649 6.58954 8.01807 7.41797 8.01807ZM7.41797 9.51807C9.07482 9.51807 10.418 8.17492 10.418 6.51807C10.418 4.86121 9.07482 3.51807 7.41797 3.51807C5.76111 3.51807 4.41797 4.86121 4.41797 6.51807C4.41797 8.17492 5.76111 9.51807 7.41797 9.51807Z",fill:"currentColor"}))},94277:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>K});var n=r(86818),o=r(50602),a=r(1200),s=r(19114),i=r(49868),l=r(99170),d=r(98822),c=r(87975),u=r(34268),m=r(32512),h=r(76482),w=r(58696),p=r(93152),C=r(77290),f=r(69409),g=r(44884),v=r(79605),x=r(78872),b=r(60239),y=r(68552),j=r(74233),E=r(52081),A=r(73043),R=r(63108),_=r(63916),k=r(97791),S=r(60870),T=r(90759);async function P(e){return await (await (0,k.Oh)()).v2(S.O.getAuthApiRoutes().forgottenPasswordConfirm,{method:"post",headers:{"x-csrf-token":await T.Z.getCSFRToken()},body:e})}var I=r(39570),L=r(71899),Z=r(34661),M=r(68877),N=r(59260);let O="6LcJVtkoAAAAAM3IDIVgCyreEUNZEXdYoI0cClZT";if(!O)throw Error("RECAPTCHA_SITE_KEY is not defined");let q=g.I4.a.withConfig({componentId:"sc-96440aa8-0"})(["",""],e=>e.disabled?(0,g.AH)(["color:"," !important;cursor:not-allowed !important;"],c.Vg["color-text-placeholder"]):(0,g.AH)(["color:",";cursor:pointer;&:hover{text-decoration:underline;}"],c.Vg["color-app-primary-text"])),D=null,V=()=>{let e,t,r=(0,a.rd)(),c=C.createRef(),{login:g}=(0,A.Ay)(e=>(0,m.Up)(e,["login"]),x.x),k=((t=(0,o.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(e={mutationFn:P},t[0]=e):e=t[0],(0,_.n)(e)),[S]=(0,C.useState)(()=>new URLSearchParams(window.location.search).get("email")||""),T=(0,w.Wx)({initialValues:{email:S,confirmationCode:"",password:"",confirmPassword:""},validateOnBlur:!1,validateOnChange:!1,validationSchema:(0,v.Ik)({confirmationCode:(0,v.Yj)().required("Paste confirmation code you've received in the email"),password:(0,v.Yj)().min(E.A,`New password should be at least ${E.A} characters`).required("New password is required."),email:(0,v.Yj)().email().required(),confirmPassword:(0,v.Yj)().oneOf([(0,v.KR)("password")],"Passwords must match").required("Confirm your new password")}),onSubmit:async(e,t)=>{t.setSubmitting(!0);try{await k.mutateAsync(e),(0,j.oR)({content:"Password reset successfully."});try{await g(e.email,e.password),await r.push(b.GJ.home)}catch{await r.push("/signin")}}catch(e){t.setFieldError("email",e instanceof Error&&(0,y.N$)(e.message)?e.message.detail:"Something went wrong. Please try again.")}finally{t.setSubmitting(!1)}}}),V=(0,R.z)(),F=!!V.submittedAt,Y=F?void 0:async()=>{let e=u.Wd?"vercel-preview":await c.current?.executeAsync()??null;T.values.email?V.mutate({email:T.values.email,recaptcha:e||""},{onSuccess:()=>{(0,j.oR)({id:"resend-code-repeated",content:"Code has been resent. Please check your inbox."})},onSettled:()=>{D=window.setTimeout(V.reset,1e4)}}):(0,j.oR)({content:"Missing email address"})};return(0,s.i)(()=>{D&&clearTimeout(D)}),(0,n.jsx)(l.FK.Default,{children:(0,n.jsxs)(N.d,{children:[(0,n.jsx)(M.A,{}),(0,n.jsx)(N.w,{children:(0,n.jsxs)(I.T.Form,{as:p.P.form,onSubmit:T.handleSubmit,children:[(0,n.jsx)(I.T.Title,{children:"Confirm resetting your password"}),(0,n.jsxs)(i.s,{direction:"column",gap:10,children:[(!S||T.errors.email)&&(0,n.jsx)(d.k,{name:"email",onChange:T.handleChange,placeholder:"Email address",type:"email",value:T.values.email,variant:"auth"}),(0,n.jsx)(d.k,{name:"confirmationCode",onChange:T.handleChange,placeholder:"Code",type:"text",value:T.values.confirmationCode,variant:"auth"}),(0,n.jsxs)(I.T.Text,{children:["Didn't get a code? ",(0,n.jsx)(q,{disabled:F,onClick:Y,children:"Click to resend."})]})]}),(0,n.jsxs)(i.s,{direction:"column",gap:10,children:[(0,n.jsx)(L.f,{autoComplete:"new-password",name:"password",onChange:T.handleChange,placeholder:"Enter new password",value:T.values.password}),(0,n.jsx)(L.f,{autoComplete:"new-password",name:"confirmPassword",onChange:T.handleChange,placeholder:"Confirm new password",value:T.values.confirmPassword}),Object.values(T.errors).length>0&&(0,n.jsx)(Z.K,{children:Object.values(T.errors)[0]}),(0,n.jsx)(I.T.Button,{isLoading:T.isSubmitting,type:"submit",children:"Set new password"})]}),(0,n.jsx)(h.s6,{children:(0,n.jsx)(f.A,{ref:c,sitekey:O,size:"invisible"})})]})})]})})};var F=r(6806),Y=r(58803);let B=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.bV,{...Y.$}),(0,n.jsx)(V,{})]}),t[0]=e):e=t[0],e};B.authRequirements={requiresAuth:!1};let K=B}},e=>{e.O(0,[8136,8696,1986,6781,6593,636,8792],()=>e(e.s=65934)),_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.