PageSourceSearch

https://mycurriculummate.com.au/static/js/4971.4faf5f27.chunk.js

js mycurriculummate.com.au collected 2026-09-24 14:09:40 UTC 1,968 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[4971],{4971(e,s,a){a.r(s),a.d(s,{default:()=>x});var r=a(5043),n=a(5621),d=a(4980),l=a(3974),i=a(3390),t=a(2264),o=a(556),c=a(1140),u=a(6328),m=a(2024),p=a(5469),h=a(579);const x=()=>{const{user:e}=(0,l.As)(),s=(0,n.Zp)(),[a,x]=(0,r.useState)(!1),[j,v]=(0,r.useState)({username:(null===e||void 0===e?void 0:e.email)||"",password:""}),w=e=>{v({...j,[e.target.name]:e.target.value})};return(0,h.jsxs)("div",{className:"container mx-auto py-8 px-4 max-w-2xl",children:[(0,h.jsxs)(i.$,{variant:"ghost",className:"mb-4 text-muted-foreground hover:text-foreground",onClick:()=>s("/admin"),children:[(0,h.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Back to Admin CRM"]}),(0,h.jsxs)(c.Zp,{children:[(0,h.jsxs)(c.aR,{children:[(0,h.jsx)(c.ZB,{children:"Admin Settings"}),(0,h.jsx)(c.BT,{children:"Update your admin login credentials"})]}),(0,h.jsx)(c.Wu,{children:(0,h.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),x(!0);try{await d.A.put(`${l.nC}/admin/me`,j),u.oR.success("Admin profile updated successfully"),v(e=>({...e,password:""}))}catch(r){var s,a;u.oR.error((null===(s=r.response)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.detail)||"Failed to update profile")}finally{x(!1)}},className:"space-y-4",children:[(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(o.J,{htmlFor:"username",children:"Username / Email"}),(0,h.jsx)(t.p,{id:"username",name:"username",value:j.username,onChange:w,required:!0})]}),(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(o.J,{htmlFor:"password",children:"New Password"}),(0,h.jsx)(t.p,{id:"password",name:"password",type:"password",placeholder:"Leave blank to keep current password",value:j.password,onChange:w})]}),(0,h.jsxs)(i.$,{type:"submit",disabled:a,children:[a?(0,h.jsx)(m.A,{className:"w-4 h-4 animate-spin mr-2"}):null,"Update Credentials"]})]})})]})]})}}}]);
2//# sourceMappingURL=4971.4faf5f27.chunk.js.map

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.