1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7324],{14352:(e,r,t)=>{"use strict";t.d(r,{s:()=>d});var s=t(44033),n=t(28613),i=t(36893),a=t(34751),o=t(37146);function l(e,r){[...r].reverse().forEach(t=>{let s=e.getVariant(t);s&&(0,i.U)(e,s),e.variantChildren&&e.variantChildren.forEach(e=>{l(e,r)})})}function c(){let e=!1,r=new Set,t={subscribe:e=>(r.add(e),()=>void r.delete(e)),start(t,s){(0,o.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let n=[];return r.forEach(e=>{n.push((0,a._)(e,t,{transitionOverride:s}))}),Promise.all(n)},set:t=>((0,o.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),r.forEach(e=>{var r,s;r=e,Array.isArray(s=t)?l(r,s):"string"==typeof s?l(r,[s]):(0,i.U)(r,s)})),stop(){r.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,t.stop()})};return t}let d=function(){let e=(0,s.M)(c);return(0,n.E)(e.mount,[]),e}},39318:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSG:()=>N,default:()=>k});var s=t(6029),n=t(55729),i=t(78128),a=t(51595),o=t(65160),l=t(88239),c=t(36689),d=t(52251),u=t(69018),m=t(40561),f=t(1909),h=t(58655),p=t(45269),g=t(80200),w=t(51183),_=t(85828),j=t(87798),x=t(65062),E=t(49052);function v({onSubmitted:e,status:r,resetPasswordError:t}){let{register:n,handleSubmit:i,formState:{errors:o}}=(0,f.mN)({mode:"onSubmit"}),l=(0,a.c)("reset-password"),d=(0,a.c)("forms"),u=n("email",{pattern:{value:x.k0.Email.EMAIL_VALIDATION_REGEX,message:d("error-pattern",{label:l("email-label")})}});return(0,s.jsxs)(h.M,{onSubmit:e?i(e):void 0,children:[(0,s.jsx)(p.K,{message:(0,E.f1)(o,["email"],r,t)}),(0,s.jsx)(c.S,{size:"smaller",children:(0,s.jsx)(g.K,{children:(0,s.jsx)(w.j,{label:l("email-label"),validationStatus:(0,E.wK)(o,"email"),message:o.email?.message,...u})})}),(0,s.jsx)(_.c,{children:(0,s.jsx)(j.$,{type:"primary",submit:!0,disabled:"loading"===r,children:l("reset-password-button")})})]})}var b=t(46128);function y({onResetPasswordSubmitted:e,resetPasswordError:r,status:t="idle"}){let n=(0,a.c)("reset-password");return(0,s.jsxs)(o.v,{children:[(0,s.jsx)(l.M,{children:n("reset-password-title")}),"success"===t?(0,s.jsxs)(c.S,{size:"larger",children:[(0,s.jsx)(d.f,{children:n("reset-password-success")}),(0,s.jsx)(d.f,{children:(0,s.jsx)(b.E,{href:"/login",children:n("back-login")})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.S,{size:"larger",children:(0,s.jsx)(d.f,{children:n("instructions")})}),(0,s.jsx)(u.f,{children:(0,s.jsx)(c.S,{size:"medium",children:(0,s.jsx)(m.X,{isLoading:"loading"===t,children:(0,s.jsx)(v,{onSubmitted:e,resetPasswordError:r,status:t})})})})]})]})}var S=t(21820),C=t(16766),N=!0;function k(){let e=(0,i.aq)(),r=(0,a.c)("reset-password"),[t,o]=(0,n.useState)("idle"),[l,c]=(0,n.useState)(""),d=async({email:t})=>{o("loading");try{await e.users.resetPassword(t),o("success"),(0,S.r_)(t)}catch(e){o("error"),(0,C.T)(e)?c(r("connection-required-error")):c(r("reset-password-error"))}};return(0,s.jsx)("main",{children:(0,s.jsx)(y,{onResetPasswordSubmitted:d,status:t,resetPasswordError:l})})}},49052:(e,r,t)=>{"use strict";function s(e,r,t){return!e||void 0===r||e[t]||r}function n(e,r,t,n){return e[r]&&s(t,n,r)?"error":"none"}function i(e){return r=>n(e.errors,r,e.touchedFields,e.isSubmitted)}function a(e,r,t,s){if(e)for(let t of r){let r=e[t];if(r&&r.message)return r.message}return"error"===t&&s||null}function o(e,r){let t=e.errors[r];if(t?.message&&s(e.touchedFields,e.isSubmitted,r))return"string"==typeof t.message?t.message:void 0}t.d(r,{FV:()=>i,f1:()=>a,hG:()=>o,wK:()=>n})},51183:(e,r,t)=>{"use strict";t.d(r,{j:()=>i});var s=t(55729),n=t(7378);let i=s.forwardRef(function(e,r){return s.createElement(n.k,{ref:r,...e,type:"email"})})},65160:(e,r,t)=>{"use strict";t.d(r,{v:()=>i});var s=t(55729);let n=t(79945).Ay.div.withConfig({displayName:"horizontal-center__StyledHorizontalCenterContainer",componentId:"p-ui__sc-qagqdh-0"})(["display:flex;align-items:center;flex-direction:column;text-align:center;"]);function i({children:e}){return s.createElement(n,null,e)}},66449:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/reset-password",function(){return t(39318)}])},69018:(e,r,t)=>{"use strict";t.d(r,{f:()=>i});var s=t(55729);let n=t(79945).Ay.div.withConfig({displayName:"content-width__StyledContentWidthContainer",componentId:"p-ui__sc-1sloijk-0"})(["width:100%;max-width:34.3rem;margin:0 auto;"]);function i({children:e}){return s.createElement(n,null,e)}},85828:(e,r,t)=>{"use strict";t.d(r,{c:()=>i});var s=t(55729);let n=t(79945).Ay.div.withConfig({displayName:"form-button__StyledFormButtonSpacing",componentId:"p-ui__sc-1t7j46j-0"})(["margin-top:6.4rem;"]);function i({children:e}){return s.createElement(n,null,e)}}},e=>{e.O(0,[1909,2005,636,6593,8792],()=>e(e.s=66449)),_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.