1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="45641018-eecd-471a-a933-606dd872610b",e._sentryDebugIdIdentifier="sentry-dbid-45641018-eecd-471a-a933-606dd872610b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{7957:(e,r,t)=>{"use strict";t.d(r,{A:()=>E});var s=t(28888),n=t(40670),i=t(44501),a=t(14232),o=t(69241),l=t(4697),c=t(38993),d=t(80027),u=t(54896),h=t(54773),p=t(47951),x=t(45879);function m(e){return(0,x.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f=t(37876);function w(){let e=(0,s._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return w=function(){return e},e}function g(){let e=(0,s._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]);return g=function(){return e},e}function y(){let e=(0,s._)(["\n animation: "," 1.4s linear infinite;\n "]);return y=function(){return e},e}function v(){let e=(0,s._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return v=function(){return e},e}let b=["className","color","disableShrink","size","style","thickness","value","variant"],j=e=>e,A,k,N,S,P=(0,c.i7)(A||(A=j(w()))),_=(0,c.i7)(k||(k=j(g()))),C=e=>{let{classes:r,variant:t,color:s,disableShrink:n}=e,i={root:["root",t,"color".concat((0,d.A)(s))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(t)),n&&"circleDisableShrink"]};return(0,l.A)(i,m,r)},D=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[t.variant],r["color".concat((0,d.A)(t.color))]]}})(e=>{let{ownerState:r,theme:t}=e;return(0,i.A)({display:"inline-block"},"determinate"===r.variant&&{transition:t.transitions.create("transform")},"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main})},e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&(0,c.AH)(N||(N=j(y(),0)),P)}),R=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),M=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.circle,r["circle".concat((0,d.A)(t.variant))],t.disableShrink&&r.circleDisableShrink]}})(e=>{let{ownerState:r,theme:t}=e;return(0,i.A)({stroke:"currentColor"},"determinate"===r.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===r.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&!r.disableShrink&&(0,c.AH)(S||(S=j(v(),0)),_)}),E=a.forwardRef(function(e,r){let t=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:h=3.6,value:p=0,variant:x="indeterminate"}=t,m=(0,n.A)(t,b),w=(0,i.A)({},t,{color:a,disableShrink:l,size:c,thickness:h,value:p,variant:x}),g=C(w),y={},v={},j={};if("determinate"===x){let e=2*Math.PI*((44-h)/2);y.strokeDasharray=e.toFixed(3),j["aria-valuenow"]=Math.round(p),y.strokeDashoffset="".concat(((100-p)/100*e).toFixed(3),"px"),v.transform="rotate(-90deg)"}return(0,f.jsx)(D,(0,i.A)({className:(0,o.A)(g.root,s),style:(0,i.A)({width:c,height:c},v,d),ownerState:w,ref:r,role:"progressbar"},j,m,{children:(0,f.jsx)(R,{className:g.svg,ownerState:w,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,f.jsx)(M,{className:g.circle,style:y,ownerState:w,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))})},19472:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>x});var s=t(37876),n=t(14232),i=t(79143),a=t(52158),o=t(64410),l=t(7957),c=t(89099),d=t(77328),u=t.n(d),h=t(54587),p=t.n(h);let x=()=>{let{resettoken:e,email:r}
1=(0,c.useRouter)().query,[t,d]=(0,n.useState)(!1),[h,x]=(0,n.useState)(""),[m,f]=(0,n.useState)(""),[w,g]=(0,n.useState)({new:"",renew:""}),y=w.new,v=w.renew,[b,j]=(0,n.useState)(!1),A=()=>j(e=>!e),[k,N]=(0,n.useState)(!1),S=()=>N(e=>!e),P=async t=>{t.preventDefault(),d(!0),x(""),f("");let s=new FormData;s.append("email",r),s.append("resetpassword",w.new);try{let r=await fetch("api/reset-password",{method:"POST",headers:{Authorization:"Bearer ".concat(e)},body:s}),t=await r.json();r.ok?(d(!1),x(t.message),f("")):(d(!1),x(""),f(t.error||"Failed to send message"))}catch(e){console.error("Error:",e)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u(),{children:(0,s.jsx)("title",{children:"Reset Password"})}),(0,s.jsx)("div",{className:"main blue-bg min-h-screen flex items-center",children:(0,s.jsxs)(i.A,{className:"m-auto br-20 white-bg pb-5",fixed:!0,style:{width:"680px"},children:[(0,s.jsx)("div",{className:"pt-5 pb-0",style:{display:"inline-flex",position:"relative",width:"100%",justifyContent:"center"},children:(0,s.jsx)("a",{href:"/",passHref:!0,children:(0,s.jsx)(p(),{src:"/logo.png",className:"m-auto",width:250,height:42,alt:"Logo"})})}),(0,s.jsx)(a.A,{children:(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsxs)("div",{className:"section",children:[(0,s.jsx)(o.Ay,{className:"section-header flex justify-center items-center",children:(0,s.jsx)(o.Ay,{item:!0,xs:12,children:(0,s.jsx)("p",{children:"Reset Password"})})}),(0,s.jsx)("form",{onSubmit:P,children:(0,s.jsxs)(o.Ay,{container:!0,className:"section-body",spacing:2,children:[(0,s.jsx)(o.Ay,{item:!0,xs:12,sm:12,children:(0,s.jsxs)("div",{className:"flex flex-col relative",children:[(0,s.jsx)("label",{children:"New Password:"}),(0,s.jsx)("input",{type:b?"text":"password",id:"password",placeholder:" ",required:!0,value:w.new,className:"input",style:{paddingRight:"50px"},onChange:e=>g({...w,new:e.currentTarget.value})}),b?(0,s.jsx)(p(),{src:"/HidePassword.svg",alt:"eye",width:20,height:20,style:{position:"absolute",right:"20px",top:"35px",cursor:"pointer"},onClick:A}):(0,s.jsx)(p(),{src:"/ShowPassword.svg",alt:"eye",width:20,height:20,style:{position:"absolute",right:"20px",top:"35px",cursor:"pointer"},onClick:A})]})}),(0,s.jsx)(o.Ay,{item:!0,xs:12,sm:12,children:(0,s.jsxs)("div",{className:"flex flex-col relative",children:[(0,s.jsx)("label",{children:"Confirm Password:"}),(0,s.jsx)("input",{type:k?"text":"password",id:"password",placeholder:" ",required:!0,value:w.renew,className:"input",style:{paddingRight:"50px"},onChange:e=>g({...w,renew:e.currentTarget.value})}),k?(0,s.jsx)(p(),{src:"/HidePassword.svg",alt:"eye",width:20,height:20,style:{position:"absolute",right:"20px",top:"35px",cursor:"pointer"},onClick:S}):(0,s.jsx)(p(),{src:"/ShowPassword.svg",alt:"eye",width:20,height:20,style:{position:"absolute",right:"20px",top:"35px",cursor:"pointer"},onClick:S})]})}),(0,s.jsx)(o.Ay,{item:!0,xs:12,sm:12,textAlign:"left",children:""!==w.new&&""!==w.renew&&y===v==!1?(0,s.jsx)("div",{className:"passwrd-height",children:(0,s.jsxs)("span",{className:"password-strength",children:[" ","Password Mismatch"," "]})}):(""==w.new&&w.renew,"")}),(0,s.jsxs)(o.Ay,{item:!0,xs:12,sm:12,textAlign:"center",children:[t?(0,s.jsx)("div",{className:"mt-5 m-auto mb-5",children:(0,s.jsx)(l.A,{})}):(0,s.jsx)("button",{className:"btn mt-5 m-auto mb-5",type:"submit",disabled:""==w.new||""==w.renew,children:"Save"}),h&&(0,s.jsx)("div",{style:{color:"green",textAlign:"center",width:"320px",margin:"0 auto"},children:h}),m&&(0,s.jsx)("div",{style:{color:"red",textAlign:"center",width:"320px",margin:"0 auto"},children:"Failed to send message"===m?"This link has expired.":m})]})]})})]})})})]})})]})}},28888:(e,r,t)=>{"use strict";function s(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}t.d(r,{_:()=>s})},52158:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var s=t(14232),n=t(99659),i=t(37876);let a=function(e){let{children:r,defer:t=!1,fallback:a=null}=e,[o,l]=s.useState(!1);return(0,n.A)(()=>{t||l(!0)},[t]),s.useEffect(()=>{t&&l(!0)},[t]),(0,i.jsx)(s.Fragment,{children:o?r:a})}},89456:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/password-reset",function(){return t(19472)}])}},e=>{var r=r=>e(e.s=r);e.O(0,[9277,4587,4410,636,6593,8792],()=>r(89456)),_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.