https://www.sarstedt.com/_next/static/chunks/pages/[country]/user/password-reset-d14ac2e1a20e3906.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1820],{76939:(e,r,s)=>{"use strict";s.r(r),s.d(r,{__N_SSP:()=>y,default:()=>E});var t=s(37876),a=s(40575),l=s(5076),n=s(30647),i=s(51960),o=s(25407),d=s(77328),c=s.n(d),u=s(14232),m=s(52913),h=s(47497),p=s(53071),x=s.n(p),f=s(14430),w=s(95068),j=s(89099),g=s(99370),_=s(55063),v=s(26114),y=!0;function E(){let{t:e}=(0,m.A)(),{t:r}=(0,m.A)("seo"),{personalDataDisabled:s}=(0,v.e)(),[d,p]=(0,u.useState)(!1),[y,E]=(0,u.useState)(""),[S,b]=(0,u.useState)(null),[N,$]=(0,u.useState)(!1),[T,C]=(0,u.useState)(new Set),L=(0,j.useRouter)(),{fullLocale:k,language:F,country:P}=(0,f.JK)(L),R={seo:{title:r("passwordResetTitle"),description:r("passwordResetDescription"),canonicalUrl:`${(0,w.$_)()}/${F}/${(0,f.$9)(P)}/user/password-reset`,robots:{noFollow:!0,noIndex:!0}}},A=(0,w.cp)(R);if((0,u.useEffect)(()=>{s&&L.replace(`/${F}/${(0,f.$9)(P)}`)},[s,L,F,P]),s)return null;let O=r=>!r&&e("forms:errorEmailEmpty")||(0,h.DT)(r,r=>e(`forms:${r}`)),D=async e=>{e.preventDefault();let r=O(y);if(r)return void b(r);if(!S){p(!0);try{let e=await fetch("/api/password-reset",{method:"POST",body:JSON.stringify({username:y,locale:k}),headers:{"Content-Type":"application/json"}});if(e.ok)$(!0);else{let{error:r}=await e.json();throw Error(r)}}catch(e){b(e.message)}finally{p(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c(),{children:(0,t.jsx)(t.Fragment,{children:A})}),(0,t.jsx)("div",{className:x().main,children:(0,t.jsx)(a.x,{justify:"center",style:{marginTop:"2rem"},children:(0,t.jsx)(a.x.Col,{md:6,lg:5,children:(0,t.jsx)(l.t,{p:"md",shadow:"xs",children:!1===N&&(0,t.jsxs)("form",{noValidate:!0,onSubmit:D,children:[S&&(0,t.jsx)(a.x,{children:(0,t.jsx)(a.x.Col,{span:12,children:(0,t.jsx)(n.E,{color:"red",role:"alert","aria-atomic":"true","aria-live":"polite",id:"email-error",children:S})})}),(0,t.jsx)(a.x,{children:(0,t.jsxs)(a.x.Col,{span:12,children:[(0,t.jsx)(i.k,{required:!0,type:"email",label:e("forms:userNameLabel"),placeholder:e("forms:userNamePlaceholder"),value:y,maxLength:g.n.EMAIL,onChange:e=>{E(e.currentTarget.value),b(O(e.currentTarget.value))},onFocus:()=>{C(e=>new Set(e).add("email"))},onBlur:()=>{b(O(y)),setTimeout(()=>{C(e=>{let r=new Set(e);return r.delete("email"),r})},100)},error:!!S,"aria-describedby":S?"email-error":void 0,"aria-invalid":S?"true":"false"}),(0,t.jsx)("div",{id:"password-reset-email-counter",children:(0,t.jsx)(_.$,{currentLength:y.length,maxLength:g.n.EMAIL,error:S,showError:!0,isFocused:T.has("email")})})]})}),(0,t.jsx)("div",{className:"flex mt-4 items-center gap-4",children:(0,t.jsx)(o.$,{type:"submit",loading:d,disabled:!!S,children:e("forms:passwordResetLabel")})})]})||(0,t.jsx)("div",{children:e("forms:passwordResetComplete")})})})})})]})}},99044:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[country]/user/password-reset",function(){return s(76939)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=99044)),_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.