1/*! For license information please see 9516.95ebb79d.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkstudent_management_app=self.webpackChunkstudent_management_app||[]).push([[9516],{15243:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},47288:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},55551:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},61056:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},71057:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},76591:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},79516:(e,s,t)=>{t.r(s),t.d(s,{default:()=>g});var a=t(9950),r=t(73814),l=t(90067),n=t(56600),i=t(47288),d=t(15243),o=t(71057),c=t(76591),x=t(92555),m=t(55551),h=t(61056),u=t(44414);const p="block w-full rounded-lg border border-gray-300 bg-white py-2.5 pl-11 pr-11 text-sm text-gray-900 placeholder-gray-400 shadow-sm transition focus:border-blue-500 focus:ring-2 focus:ring-blue-500/40 focus:outline-none",g=()=>{const[e]=(0,r.ok)(),s=(0,r.Zp)(),t=e.get("oobCode"),[g,y]=(0,a.useState)("verifying"),[f,b]=(0,a.useState)(""),[w,j]=(0,a.useState)(""),[N,v]=(0,a.useState)(""),[k,A]=(0,a.useState)(!1),[C,S]=(0,a.useState)(""),[M,q]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t?(0,l.RE)(n.j2,t).then(e=>{b(e),y("ready")}).catch(()=>y("invalid")):y("invalid")},[t]);return(0,u.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 via-blue-50/40 to-indigo-50 flex flex-col",children:[(0,u.jsx)("div",{className:"flex items-center justify-between px-6 sm:px-10 h-16",children:(0,u.jsxs)("button",{onClick:()=>s("/"),className:"flex items-center gap-2.5",children:[(0,u.jsx)("div",{className:"flex items-center justify-center w-9 h-9 rounded-lg bg-gradient-to-br from-blue-700 to-indigo-800 text-white",children:(0,u.jsx)("span",{className:"text-sm font-extrabold",children:"HC"})}),(0,u.jsx)("span",{className:"text-lg font-bold bg-gradient-to-r from-blue-700 to-indigo-700 bg-clip-text text-transparent",children:"Huduma CNA"})]})}),(0,u.jsx)("div",{className:"flex-1 flex items-center justify-center px-4 py-10",children:(0,u.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl shadow-xl border border-gray-100 p-8 sm:p-10",children:["verifying"===g&&(0,u.jsxs)("div",{className:"py-10 flex flex-col items-center text-gray-500",children:[(0,u.jsx)(i.A,{className:"w-7 h-7 animate-spin text-blue-500 mb-3"}),(0,u.jsx)("p",{className:"text-sm",children:"Verifying your reset link\u2026"})]}),"invalid"===g&&(0,u.jsxs)("div",{className:"text-center",children:[(0,u.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-red-100 mb-4",children:(0,u.jsx)(d.A,{className:"h-6 w-6 text-red-600"})}),(0,u.jsx)("h1",{className:"text-xl font-bold text-gray-900",children:"Link expired or invalid"}),(0,u.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"This password reset link is no longer valid. Reset links expire for your security \u2014 please request a fresh one."}),(0,u.jsx)("button",{onClick:()=>s("/login"),className:"mt-6 w-full rounded-lg bg-gradient-to-r from-blue-700 to-indigo-700 px-4 py-2.5 text-sm font-semibold text-white hover:from-blue-800 hover:to-indigo-800 transition",children:"Request a new link"})]}),"done"===g&&(0,u.jsxs)("div",{className:"text-center",children:[(0,u.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100 mb-4",children:(0,u.jsx)(o.A,{className:"h-6 w-6 text-green-600"})}),(0,u.jsx)("h1",{className:"text-xl font-bold text-gray-900",children:"Password updated"}),(0,u.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Your password has been changed successfully. You can now sign in with your new password."}),(0,u.jsx)("button",{onClick:()=>
2s("/login"),className:"mt-6 w-full rounded-lg bg-gradient-to-r from-blue-700 to-indigo-700 px-4 py-2.5 text-sm font-semibold text-white hover:from-blue-800 hover:to-indigo-800 transition",children:"Continue to sign in"})]}),"ready"===g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"mb-6",children:[(0,u.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-blue-50 px-3 py-1 text-[11px] font-semibold uppercase tracking-wide text-blue-700 ring-1 ring-blue-100",children:[(0,u.jsx)(c.A,{className:"w-3 h-3"})," Set a new password"]}),(0,u.jsx)("h1",{className:"mt-4 text-2xl font-bold text-gray-900",children:"Choose a new password"}),f&&(0,u.jsxs)("p",{className:"mt-1.5 text-sm text-gray-500",children:["for ",(0,u.jsx)("span",{className:"font-medium text-gray-700",children:f})]})]}),C&&(0,u.jsx)("div",{className:"mb-5 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:C}),(0,u.jsxs)("form",{className:"space-y-5",onSubmit:async e=>{if(e.preventDefault(),S(""),w.length<8)S("Password must be at least 8 characters.");else if(w===N){q(!0);try{await(0,l.R4)(n.j2,t,w),y("done")}catch(s){S("This link is invalid or has expired. Please request a new password reset.")}finally{q(!1)}}else S("Passwords do not match.")},children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("label",{htmlFor:"new-password",className:"block text-sm font-medium text-gray-700 mb-1.5",children:"New password"}),(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)(c.A,{className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,u.jsx)("input",{id:"new-password",type:k?"text":"password",autoComplete:"new-password",required:!0,value:w,onChange:e=>j(e.target.value),placeholder:"At least 8 characters",className:p}),(0,u.jsx)("button",{type:"button",onClick:()=>A(e=>!e),tabIndex:-1,className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600","aria-label":k?"Hide password":"Show password",children:k?(0,u.jsx)(x.A,{className:"w-4 h-4"}):(0,u.jsx)(m.A,{className:"w-4 h-4"})})]})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)("label",{htmlFor:"confirm-password",className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Confirm password"}),(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)(c.A,{className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,u.jsx)("input",{id:"confirm-password",type:k?"text":"password",autoComplete:"new-password",required:!0,value:N,onChange:e=>v(e.target.value),placeholder:"Re-enter your password",className:p})]})]}),(0,u.jsx)("button",{type:"submit",disabled:M,className:"w-full flex items-center justify-center gap-2 rounded-lg bg-gradient-to-r from-blue-700 to-indigo-700 px-4 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:from-blue-800 hover:to-indigo-800 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed",children:M?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.A,{className:"w-4 h-4 animate-spin"})," Updating\u2026"]}):"Update password"})]})]})]})}),(0,u.jsxs)("div",{className:"pb-8 flex items-center justify-center gap-1.5 text-xs text-gray-400",children:[(0,u.jsx)(h.A,{className:"w-3.5 h-3.5 text-green-500"}),(0,u.jsx)("span",{children:"Secured & encrypted \xb7 Caregiver Training & Huduma Center"})]})]})}},92555:(e,s,t)=>{t.d(s,{A:()=>a});const a=(0,t(7101).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])}}]);
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.