1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5125],{41129:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-password",function(){return a(94415)}])},94415:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return b}});var n=a(85893),r=a(67294),i=a(9008),t=a.n(i),l=a(11163),c=a(73016),d=a(92477),o=a(15746),u=a(4393),h=a(11486),m=a(71577),w=a(22172),x=a(7851),p=a(50259);let{Paragraph:j,Title:g,Text:f}=c.Z;var k=function(){let e=(0,r.useContext)(w.Z),[s,a]=(0,r.useState)(!1),i=(0,l.useRouter)(),[t]=d.Z.useForm(),{executeRecaptcha:k}=(0,p.xX)();async function b(s){a(!0),k("changePassword").then(async n=>{s.token=i.query.key;let r=await x.api.post("/api/auth/change-password",{...s,recaptcha:n}),t=await r.data;t.success&&(await i.push("/signin"),await e.showNotification({message:"Kamu berhasil membuat password baru!",description:"Selamat! password kamu telah diatur ulang.\nSilakan lakukan Sign In ulang.",type:"success"})),a(!1)}).catch(()=>{a(!1)})}return(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(o.Z,{xs:24,children:(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsxs)(u.Z,{style:{width:388},children:[(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(j,{children:(0,n.jsx)(g,{level:2,children:"Buat Password Baru?"})}),(0,n.jsx)(j,{children:(0,n.jsx)(f,{className:"font-extralight",children:"Silakan buat password baru kamu."})})]}),(0,n.jsxs)(d.Z,{form:t,layout:"vertical",onFinish:b,children:[(0,n.jsx)(d.Z.Item,{label:"Password",rules:[{required:!0,message:"${label} harus di isi"},{min:8,message:"${label} minimal ${min} karakter"}],name:"password",children:(0,n.jsx)(h.Z.Password,{placeholder:"********"})}),(0,n.jsx)(d.Z.Item,{label:"Ulangi Password",rules:[{required:!0,message:"${label} harus di isi"},e=>{let{getFieldValue:s}=e;return{validator:(e,a)=>a&&s("password")!==a?Promise.reject(Error("Kata sandi tidak cocok!")):Promise.resolve()}}],name:"re_password",children:(0,n.jsx)(h.Z.Password,{placeholder:"********"})}),(0,n.jsx)(d.Z.Item,{children:(0,n.jsx)(m.ZP,{type:"primary",htmlType:"submit",loading:s,block:!0,children:"Simpan"})})]})]})})})})},b=function(){return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)(t(),{children:[(0,n.jsx)("title",{children:"Change Password"}),(0,n.jsx)("meta",{name:"change password",content:"Change Password Lincah.id"})]}),(0,n.jsx)(k,{})]})}}},function(e){e.O(0,[4310,4393,9774,2888,179],function(){return e(e.s=41129)}),_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.