1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3189],{18913:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-pwd",function(){return t(91482)}])},91482:function(e,r,t){"use strict";t.r(r);var o=t(85893),s=t(69554),a=t.n(s),n=t(82175),i=t(41664),l=t.n(i),d=t(21442),c=t(87261),x=t(84082),p=t(48223),f=t(74231),m=t(11163),g=t.n(m),h=t(67294),u=t(91444);t(51691);var b=t(84184),j=t(2664);r.default=(0,j.$j)(e=>({locale:e.locale,translations:e.translations}),null)(function(){(0,m.useRouter)();let[e,r]=(0,h.useState)(!1),[t,s]=(0,h.useState)(!1),i=f.Ry().shape({email:f.Z_().email("Invalid email address").required("Your email is required")}),y=async e=>{try{let r=Math.floor(1e4+9e4*Math.random());localStorage.setItem("verificationCode",r.toString());let t={email:e.email,verification_code:r};console.log(JSON.stringify(t));let o=await b.Z.post("mail",t);return o.data.status?(u.Am.success(o.data.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),localStorage.setItem("userId",o.data.user_id),setTimeout(()=>{g().push("/verify-code")},3e3)):u.Am.error(o.data.message,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),o.data}catch(e){var r,t;console.error(null===(t=e.response)||void 0===t?void 0:null===(r=t.data)||void 0===r?void 0:r.message),u.Am.error("An error has occured, please try again!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}},v=(0,j.v9)(e=>e.locale.translations),k=e=>v[e]||e,C=e=>"string"==typeof e?e:Array.isArray(e)?e[0]||"":"object"==typeof e&&null!==e&&Object.values(e)[0]||"",N={formWrapper:{width:"100%",padding:"32px",backgroundColor:"#ffffff",borderRadius:"16px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",position:"relative",border:"1px solid #f1f5f9"},centerWrapper:{maxWidth:"440px",margin:"0 auto",padding:"32px",backgroundColor:"#ffffff",borderRadius:"16px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",border:"1px solid #f1f5f9"},formGroup:{marginBottom:"24px"},input:{width:"100%",padding:"14px 16px",border:"1px solid #e2e8f0",borderRadius:"8px",fontSize:"16px",transition:"all 0.2s ease",backgroundColor:"#ffffff",fontWeight:"400"},inputError:{borderColor:"#ef4444",backgroundColor:"#fef2f2"},errorMessage:{color:"#ef4444",fontSize:"14px",marginTop:"8px",marginLeft:"4px",fontWeight:"500"},button:{padding:"12px 20px",backgroundColor:"#0E8949",color:"#ffffff",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease"},buttonSecondary:{padding:"12px 20px",backgroundColor:"#f8fafc",color:"#64748b",border:"1px solid #e2e8f0",borderRadius:"8px",fontSize:"15px",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease"},buttonFull:{width:"100%",padding:"14px 16px",backgroundColor:"#0E8949",color:"#ffffff",border:"none",borderRadius:"8px",fontSize:"16px",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease"},buttonDisabled:{backgroundColor:"#cbd5e1",cursor:"not-allowed"},loadingSpinner:{display:"inline-block",width:"16px",height:"16px",border:"2px solid transparent",borderTop:"2px solid #ffffff",borderRadius:"50%",animation:"spin 1s linear infinite",marginRight:"8px"},linkText:{color:"#0E8949",textDecoration:"underline",fontWeight:"600",background:"none",border:"none",padding:0,cursor:"pointer",fontSize:"inherit"},methodCard:{padding:"20px 16px",border:"1px solid #e2e8f0",borderRadius:"12px",cursor:"pointer",transition:"all 0.2s ease",textAlign:"center",backgroundColor:"#ffffff",margin:"6px"},methodCardHover:{borderColor:"#cbd5e1",backgroundColor:"#f8fafc",transform:"translateY(-1px)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.06)"}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(p.Z,{parent:k("Home"),sub:k("Account"),subChild:k("Reset Password"),noBreadcrumb:!0,children:[(0,o.jsx)("div",{className:"jsx-7888ad0042c791ee page-content pt-150 pb-150",children:(0,o.jsx)("div",{className:"jsx-7888ad0042c791ee container",children:(0,o.jsx)("div",{className:"jsx-7888ad0042c791ee row",children:(0,o.jsxs)("div",{className:"jsx-7888ad0042c791ee col-xl-8 col-lg-10 col-md-12 m-auto",children:[!t&&!e&&(0,o.jsxs)("div",{style:N.centerWrapper,className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)("div",{style:{textAlign:"center",marginBottom:"32px"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("h1",{style:{fontSize:"28px",fontWeight:"600",color:"#1e293b",marginBottom:"8px"},className:"jsx-7888ad0042c791ee",children:k("Reset Password")}),(0,o.jsx)("p",{style:{fontSize:"15px",color:"#64748b",margin:0,lineHeight:"1.5"},className:"jsx-7888ad0042c791ee",children:k("Choose how you'd like to reset your password")})]}),(0,o.jsxs)("div",{style:{display:"flex",gap:"16px",marginBottom:"32px"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)("div",{style:N.methodCard,onClick:()=>{s(!0)},onMouseEnter:e=>{Object.assign(e.currentTarget.style,N.methodCardHover)},onMouseLeave:e=>{e.currentTarget.style.borderColor="#e2e8f0",e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.transform="none",e.currentTarget.style.boxShadow="none"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("div",{style:{marginBottom:"16
1px",display:"flex",justifyContent:"center"},className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("div",{style:{width:"48px",height:"48px",backgroundColor:"#f8fafc",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #f1f5f9"},className:"jsx-7888ad0042c791ee",children:(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#64748b",strokeWidth:"1.5",className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z",className:"jsx-7888ad0042c791ee"}),(0,o.jsx)("polyline",{points:"22,6 12,13 2,6",className:"jsx-7888ad0042c791ee"})]})})}),(0,o.jsx)("h4",{style:{fontSize:"16px",fontWeight:"600",color:"#1e293b",marginBottom:"6px"},className:"jsx-7888ad0042c791ee",children:k("Email Reset")}),(0,o.jsx)("p",{style:{fontSize:"14px",color:"#64748b",margin:0,lineHeight:"1.4"},className:"jsx-7888ad0042c791ee",children:k("Get reset instructions via email")})]}),(0,o.jsxs)("div",{style:N.methodCard,onClick:()=>{r(!0)},onMouseEnter:e=>{Object.assign(e.currentTarget.style,N.methodCardHover)},onMouseLeave:e=>{e.currentTarget.style.borderColor="#e2e8f0",e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.transform="none",e.currentTarget.style.boxShadow="none"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("div",{style:{marginBottom:"16px",display:"flex",justifyContent:"center"},className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("div",{style:{width:"48px",height:"48px",backgroundColor:"#f8fafc",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #f1f5f9"},className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#64748b",strokeWidth:"1.5",className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",className:"jsx-7888ad0042c791ee"})})})}),(0,o.jsx)("h4",{style:{fontSize:"16px",fontWeight:"600",color:"#1e293b",marginBottom:"6px"},className:"jsx-7888ad0042c791ee",children:k("Phone Support")}),(0,o.jsx)("p",{style:{fontSize:"14px",color:"#64748b",margin:0,lineHeight:"1.4"},className:"jsx-7888ad0042c791ee",children:k("Speak with our support team")})]})]}),(0,o.jsxs)("div",{style:{textAlign:"center",fontSize:"14px",color:"#6b7280"},className:"jsx-7888ad0042c791ee",children:[k("Remember your password?")," ",(0,o.jsx)(l(),{href:"/login",style:N.linkText,children:k("Back to login")})]})]}),t&&(0,o.jsxs)("div",{className:"jsx-7888ad0042c791ee row align-items-center",children:[(0,o.jsx)("div",{className:"jsx-7888ad0042c791ee col-lg-6 pr-30 d-none d-lg-block",children:(0,o.jsx)("img",{src:"assets/imgs/page/login.jpg",style:{width:"100%",height:"auto",maxHeight:"600px",objectFit:"cover"},alt:"Reset Password",className:"jsx-7888ad0042c791ee border-radius-15"})}),(0,o.jsx)("div",{className:"jsx-7888ad0042c791ee col-lg-6",children:(0,o.jsxs)("div",{style:N.formWrapper,className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)("div",{style:{textAlign:"center",marginBottom:"32px"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("h1",{style:{fontSize:"28px",fontWeight:"600",color:"#1e293b",marginBottom:"8px"},className:"jsx-7888ad0042c791ee",children:k("Reset Password")}),(0,o.jsx)("p",{style:{fontSize:"15px",color:"#64748b",margin:0,lineHeight:"1.5"},className:"jsx-7888ad0042c791ee",children:k("Enter your email to receive reset instructions")})]}),(0,o.jsx)(n.J9,{enableReinitialize:!0,initialValues:{email:""},onSubmit:async(e,r)=>{let{setSubmitting:t}=r;try{await y(e),t(!1)}catch(e){console.error(e),t(!1)}},validationSchema:i,children:e=>{let{values:r,handleChange:t,handleSubmit:a,touched:n,handleBlur:i,errors:p,isSubmitting:f}=e;return(0,o.jsxs)(d.Z,{role:"form",method:"post",onSubmit:a,children:[(0,o.jsxs)("div",{style:N.formGroup,className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)(c.Z,{style:{...N.input,...n.email&&p.email?N.inputError:{}},placeholder:k("Enter your email address"),type:"email",autoComplete:"email",value:r.email,onChange:t
1("email"),onBlur:i("email")}),n.email&&p.email&&(0,o.jsx)("div",{style:N.errorMessage,className:"jsx-7888ad0042c791ee",children:C(p.email)})]}),(0,o.jsxs)(x.Z,{type:"submit",disabled:f,style:{...N.buttonFull,...f?N.buttonDisabled:{}},onMouseEnter:e=>{f||(e.currentTarget.style.backgroundColor="#0a6b35",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(14, 137, 73, 0.3)")},onMouseLeave:e=>{f||(e.currentTarget.style.backgroundColor="#0E8949",e.currentTarget.style.transform="none",e.currentTarget.style.boxShadow="none")},children:[f&&(0,o.jsx)("div",{style:N.loadingSpinner,className:"jsx-7888ad0042c791ee"}),f?k("Sending instructions..."):k("Send Reset Instructions")]}),(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"24px",fontSize:"14px",color:"#6b7280"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)("button",{type:"button",onClick:()=>s(!1),style:{...N.linkText,fontSize:"14px"},className:"jsx-7888ad0042c791ee",children:["â ",k("Back to options")]}),(0,o.jsx)(l(),{href:"/login",style:N.linkText,children:k("Back to login")})]})]})}})]})})]}),e&&(0,o.jsxs)("div",{style:N.centerWrapper,className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)("div",{style:{textAlign:"center",marginBottom:"32px"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("div",{style:{marginBottom:"20px",display:"flex",justifyContent:"center"},className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("div",{style:{width:"64px",height:"64px",backgroundColor:"#f8fafc",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #f1f5f9"},className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#64748b",strokeWidth:"1.5",className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",className:"jsx-7888ad0042c791ee"})})})}),(0,o.jsx)("h1",{style:{fontSize:"28px",fontWeight:"600",color:"#1e293b",marginBottom:"8px"},className:"jsx-7888ad0042c791ee",children:k("Contact Support")}),(0,o.jsx)("p",{style:{fontSize:"15px",color:"#64748b",lineHeight:"1.5",maxWidth:"320px",margin:"0 auto"},className:"jsx-7888ad0042c791ee",children:k("Our team is ready to help you reset your password")})]}),(0,o.jsxs)("div",{style:{padding:"20px",backgroundColor:"#f8fafc",borderRadius:"12px",border:"1px solid #f1f5f9",marginBottom:"24px",textAlign:"center"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsx)("p",{style:{fontSize:"13px",color:"#64748b",margin:"0 0 8px 0",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.5px"},className:"jsx-7888ad0042c791ee",children:k("Support Hotline")}),(0,o.jsx)("p",{style:{fontSize:"20px",fontWeight:"600",color:"#1e293b",margin:"0 0 4px 0",fontFamily:"monospace"},className:"jsx-7888ad0042c791ee",children:"+250 786 506 040"}),(0,o.jsx)("p",{style:{fontSize:"13px",color:"#64748b",margin:0},className:"jsx-7888ad0042c791ee",children:k("Available 24/7")})]}),(0,o.jsxs)("div",{style:{display:"flex",gap:"12px",marginBottom:"20px"},className:"jsx-7888ad0042c791ee",children:[(0,o.jsxs)(x.Z,{onClick:()=>window.location.href="tel:+250786506040",style:{...N.button,flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#059669"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#0E8949"},children:[(0,o.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("path",{d:"M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z",className:"jsx-7888ad0042c791ee"})}),k("Call Now")]}),(0,o.jsxs)(x.Z,{onClick:()=>r(!1),style:{...N.buttonSecondary,flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f1f5f9",e.currentTarget.style.borderColor="#cbd5e1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f8fafc",e.currentTarget.style.borderColor="#e2e8f0"},children:[(0,o.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"jsx-7888ad0042c791ee",children:(0,o.jsx)("polyline",{points:"15,18 9,12 15,6",className:"jsx-7888ad0042c791ee"})}),k("Back")]})]}),(0,o.jsxs)("div",{style:{textAlign:"center",fontSize:"14px",color:"#64748b"},className:"jsx-7888ad0042c791ee",children:[k("Prefer email?")," ",(0,o.jsx)("button",{onClick:()=>{r(!1),s(!0)},style:N.linkText,className:"jsx-7888ad0042c791ee",children:k("Try email reset")})]})]})]})})})}),(0,o.jsx)(a(),{id:"7888ad0042c791ee",children:"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.form-control.jsx-7888ad0042c791ee:focus{border-color:#0E8949!important;-webkit-box-shadow:0 0 0 2px rgba(14,137,73,.1)!important;-moz-box-shadow:0 0 0 2px rgba(14,137,73,.1)!important;box-shadow:0 0 0 2px rgba(14,137,73,.1)!important}input.jsx-7888ad0042c791ee:focus{outline:none;border-color:#0E8949;-webkit-box-shadow:0 0 0 2px rgba(14,137,73,.1);-moz-box-shadow:0 0 0 2px rgba(14,137,73,.1);box-shadow:0 0 0 2px rgba(14,137,73,.1)}"})]})})})}},function(e){e.O(0,[260,1257,1664,6563,5576,1141,1412,2888,9774,179],function(){return e(e.s=18913)}),_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.