PageSourceSearch

https://www.thestudyias.com/_next/static/chunks/2301.bc06a284c866c9b0.js

js thestudyias.com collected 2026-10-01 14:59:36 UTC 1,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2301],{2301:function(e,s,a){a.r(s);var t=a(57437),r=a(2265),n=a(56462),l=a(68289),i=a(28784);s.default=()=>{let{id:e}=(0,i.UO)(),s=(0,i.s0)(),[a,o]=(0,r.useState)(null),[d,c]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[h,f]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&w()},[e]);let w=async()=>{try{let s=await (0,l.GA)(e);s&&s.responseObject&&o(s.responseObject)}catch(e){console.error(e)}},p=async a=>{if(a.preventDefault(),!d)return alert("Enter new password");if(d!==u)return alert("Passwords do not match");try{f(!0),await (0,l.$P)(e,d),alert("Password reset successfully"),s("/admin/users")}catch(e){console.error(e),alert(e?.message||"Failed to reset password")}finally{f(!1)}};return(0,t.jsx)(n.Z,{title:"Reset Password",children:(0,t.jsxs)("div",{className:"admin-form",style:{maxWidth:520},children:[(0,t.jsxs)("div",{style:{marginBottom:12},children:[(0,t.jsx)("b",{children:"Reset password for:"})," ",a?a.full_name||a.name||a.email:e]}),(0,t.jsxs)("form",{onSubmit:p,children:[(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsx)("label",{children:"New Password"}),(0,t.jsx)("input",{name:"password",value:d,onChange:e=>c(e.target.value),type:"password",required:!0})]}),(0,t.jsxs)("div",{className:"form-row",children:[(0,t.jsx)("label",{children:"Confirm Password"}),(0,t.jsx)("input",{name:"confirm",value:u,onChange:e=>m(e.target.value),type:"password",required:!0})]}),(0,t.jsxs)("div",{style:{marginTop:12},children:[(0,t.jsx)("button",{type:"submit",className:"create-blog-btn",disabled:h,children:h?"Saving...":"Reset Password"}),(0,t.jsx)("button",{type:"button",className:"link-btn",style:{marginLeft:12},onClick:()=>s("/admin/users"),children:"Cancel"})]})]})]})})}}}]);

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.