1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1143],{22533:(e,s,a)=>{"use strict";a.d(s,{A:()=>d});var r=a(75038);a(76430);var o=a(43746),t=a.n(o);let n={blue:t().blue,green:t().green,red:t().red,yellow:t().yellow,orange:t().orange},d=({color:e,header:s,content:a,list:o})=>{let d=e?n[e]:"";return(0,r.jsxs)("div",{className:`${t().message} ${d}`,children:[s&&(0,r.jsx)("div",{className:t().header,children:s}),a&&(0,r.jsx)("p",{className:t().content,children:a}),o&&(0,r.jsx)("ul",{children:o.map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})}},43746:e=>{e.exports={message:"message_message__OOkpZ",header:"message_header__2aitY",content:"message_content__5g5XJ",red:"message_red__gfBEF",green:"message_green__tGO0d",blue:"message_blue__aA_ek",orange:"message_orange__QRQVf",yellow:"message_yellow__zwm8o"}},45226:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>m,default:()=>p});var r=a(75038),o=a(76430),t=a(98381),n=a(36601),d=a(56771),l=a(34719),i=a(69133),c=a(49435),_=a(68835),u=a(22533),h=a(89926),g=a.n(h);let w="Password reset failed. This is usually because you used this email token before or it has expired. Please request another password reset email.";var m=!0;let p=({uid:e,token:s})=>{let a=(0,t.useRouter)(),[h,m]=(0,o.useState)(!1),[p,x]=(0,o.useState)(""),[f,b]=(0,o.useState)(""),[j,A]=(0,o.useState)("");return(0,o.useEffect)(()=>f&&f.length<8?x("Password is too short."):j&&f!==j?x("Passwords do not match."):void x(""),[f,j]),(0,r.jsxs)(l.A,{title:"Password Reset",robots:"noindex",noAds:!0,children:[(0,r.jsxs)("div",{className:g().branding,children:[(0,r.jsx)(c.A,{alt:"Archidekt basic logo",src:"/images/archidekt_basic.svg",height:100}),"Password reset"]}),(0,r.jsxs)("form",{className:g().form,onSubmit:r=>{r.preventDefault(),m(!0),n.A.post("/api/rest-auth/password/reset/confirm/",{uid:e,token:s,new_password1:f,new_password2:j},void 0,!0).then(e=>{if(!e.detail)return x(w);x("success"),setTimeout(()=>a.push("/login"),5e3)}).catch(e=>{x(e.new_password2[0]||w)}).catch(()=>x(w)).finally(()=>m(!1))},children:[(0,r.jsx)(d.A,{header:"New Password",name:"username",type:"password",placeholder:"Password",onChange:b,focusOnMount:!0}),(0,r.jsx)(d.A,{header:"Confirm Password",name:"password",type:"password",placeholder:"Password again",onChange:A}),(0,r.jsx)(_.A,{disabled:h,type:"submit",color:"green",children:h?(0,r.jsxs)("span",{className:g().loading,children:[(0,r.jsx)(i.A,{size:"xSmall"}),"Resetting password"]}):"Reset password"}),"success"===p&&(0,r.jsx)(u.A,{color:"green",header:"Success",content:p}),p&&"success"!==p&&(0,r.jsx)(u.A,{color:"red",header:"Error",content:p})]})]})}},77634:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/passwordReset/[...serializedData]",function(){return a(45226)}])},89926:e=>{e.exports={form:"passwordReset_form__CrVHO",loading:"passwordReset_loading__JA6Vp",branding:"passwordReset_branding__I9WEO"}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=77634)),_N_E=e.O()}]); 2//# sourceMappingURL=[...serializedData]-cae060763ad24552.js.map
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.