PageSourceSearch

https://mycurriculummate.com.au/static/js/5869.6af3fa33.chunk.js

js mycurriculummate.com.au collected 2026-10-02 00:43:33 UTC 10,337 bytes, 3 lines download raw bytes

1/*! For license information please see 5869.6af3fa33.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[5869],{91140(e,s,a){a.d(s,{BT:()=>i,Wu:()=>o,ZB:()=>c,Zp:()=>n,aR:()=>d,wL:()=>m});var t=a(65043),r=a(99766),l=a(70579);const n=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...t})});n.displayName="Card";const d=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",a),...t})});d.displayName="CardHeader";const c=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",a),...t})});c.displayName="CardTitle";const i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",a),...t})});i.displayName="CardDescription";const o=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",a),...t})});o.displayName="CardContent";const m=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,l.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",a),...t})});m.displayName="CardFooter"},92264(e,s,a){a.d(s,{p:()=>n});var t=a(65043),r=a(99766),l=a(70579);const n=t.forwardRef((e,s)=>{let{className:a,type:t,...n}=e;return(0,l.jsx)("input",{type:t,className:(0,r.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:s,...n})});n.displayName="Input"},59938(e,s,a){a.d(s,{J:()=>i});var t=a(65043),r=a(65131),l=a(10917),n=a(99766),d=a(70579);const c=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=t.forwardRef((e,s)=>{let{className:a,...t}=e;return(0,d.jsx)(r.b,{ref:s,className:(0,n.cn)(c(),a),...t})});i.displayName=r.b.displayName},15869(e,s,a){a.r(s),a.d(s,{default:()=>j});var t=a(65043),r=a(45621),l=a(13390),n=a(92264),d=a(59938),c=a(91140),i=a(56328),o=a(82054),m=a(76245),x=a(22024),u=a(65469),f=a(94651),p=a(35087),h=a(65727),w=a(4980),y=a(73824),N=a(70579);const j=()=>{const e=(0,r.Zp)(),[s]=(0,r.ok)(),a=s.get("token"),[j,g]=(0,t.useState)(""),[b,v]=(0,t.useState)(""),[k,A]=(0,t.useState)(!1),[R,C]=(0,t.useState)(!1),[P,S]=(0,t.useState)(!0),[M,B]=(0,t.useState)(!1),[L,Z]=(0,t.useState)(""),[$,T]=(0,t.useState)(!1),[q,z]=(0,t.useState)("");(0,t.useEffect)(()=>{(async()=>{if(!a)return z("No reset token provided. Please request a new password reset link."),void S(!1);try{const e=await w.A.get(`${y.nC}/auth/verify-reset-token/${a}`);B(!0),Z(e.data.email)}catch(t){var e,s;z((null===(e=t.response)||void 0===e||null===(s=e.data)||void 0===s?void 0:s.detail)||"Invalid or expired reset link. Please request a new one.")}finally{S(!1)}})()},[a]);return P?(0,N.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4 py-12",children:(0,N.jsx)(c.Zp,{className:"w-full max-w-md",children:(0,N.jsxs)(c.Wu,{className:"flex flex-col items-center justify-center py-12",children:[(0,N.jsx)(x.A,{className:"w-8 h-8 animate-spin text-primary mb-4"}),(0,N.jsx)("p",{className:"text-muted-foreground",children:"Verifying reset link..."})]})})}):M?$?(0,N.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4 py-12",children:(0,N.jsxs)(c.Zp,{className:"w-full max-w-md","data-testid":"reset-password-success",children:[(0,N.jsxs)(c.aR,{className:"text-center",children:[(0,N.jsx)("div",{className:"mx-auto w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,N.jsx)(o.A,{className:"w-6 h-6 text-green-600"})}),(0,N.jsx)(c.ZB,{className:"text-2xl font-bold text-primary",children:"Password Reset!"}),(0,N.jsx)(c.BT,{className:"mt-2",children:"Your password has been successfully reset. You can now sign in with your new password."})]}),(0,N.jsx)(c.wL,{children:(0,N.jsx)(l.$,{className:"w-full",onClick:()=>e("/login"),"data-testid":"go-to-login-btn",children:"Sign In Now"})})]})}):(0,N.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8",children:(0,N.jsxs)(c.Zp,{className:"w-full max-w-md","data-testid":"reset-password-form",children:[(0,N.jsxs)(c.aR,{className:"text-center",children:[(0,N.jsx)("div",{className:"mx-auto w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:(0,N.jsx)(h.A,{className:"w-6 h-6 text-primary"})}),(0,N.jsx)(c.ZB,{className:"text-2xl font-bold text-primary",children:"Reset Password"}),(0,N.jsxs)(c.BT,{children:["Enter a new password for ",(0,N.jsx)("strong",{children:L})]})]}),(0,N.jsx)(c.Wu,{children:(0,N.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),j.length<6)i.oR.error("Password must be at least 6 characters long");else if(j===b){C(!0);try{await w.A.post(`${y.nC}/auth/reset-password`,{token:a,new_password:j}),T(!0),i.oR.success("Password reset successfully!")}catch(r){var s,t;i.oR.error((null===(s=r.response)||void 0===s||null===(t=s.data)||void 0===t?void 0:t.detail)||"Failed to reset password. Please try again.")}finally{C(!1)}}else i.oR.error("Passwords do not match")},className:"space-y-4",children:[(0,N.jsxs)("div",{className:"space-y-2",children:[(0,N.jsx)(d.J,{htmlFor:"password",children:"New Password"}),(0,N.jsxs)("div",{className:"relative",children:[(0,N.jsx)(n.p,{id:"password",type:k?"text":"password",placeholder:"Enter new password",value:j,onChange:e=>g(e.target.value),required:!0,minLength:6,"data-testid":"new-password-input"}),(0,N.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700",onClick:()=>A(!k),children:k?(0,N.jsx)(f.A,{className:"w-4 h-4"}):(0,N.jsx)(p.A,{className:"w-4 h-4"})})]}),(0,N.jsx)("p",{className:"text-xs text-muted-foreground",children:"Must be at least 6 characters"})]}),(0,N.jsxs)("div",{className:"space-y-2",children:[(0,N.jsx)(d.J,{htmlFor:"confirmPassword",children:"Confirm Password"}),(0,N.jsx)(n.p,{id:"confirmPassword",type:k?"text":"password",placeholder:"Confirm new password",value:b,onChange:e=>v(e.target.value),required:!0,"data-testid":"confirm-password-input"}),b&&j!==b&&(0,N.jsx)("p",{className:"text-xs text-red-500",children:"Passwords do not match"})]}),(0,N.jsx)(l.$,{type:"submit",className:"w-full",disabled:R||j!==b||j.length<6,"data-testid":"reset-password-submit-btn",children:R?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Resetting..."]}):"Reset Password"})]})}),(0,N.jsx)(c.wL,{className:"text-center",children:(0,N.jsx)("div",{className:"text-xs text-muted-foreground w-full",children:(0,N.jsx)(r.N_,{to:"/login",className:"hover:underline",children:"Back to Sign In"})})})]})}):(0,N.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4 py-12",children:(0,N.jsxs)(c.Zp,{className:"w-full max-w-md","data-testid":"reset-password-error",children:[(0,N.jsxs)(c.aR,{className:"text-center",children:[(0,N.jsx)("div",{className:"mx-auto w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-4",children:(0,N.jsx)(m.A,{className:"w-6 h-6 text-red-600"})}),(0,N.jsx)(c.ZB,{className:"text-2xl font-bold text-red-600",children:"Link Expired"}),(0,N.jsx)(c.BT,{className:"mt-2",children:q})]}),(0,N.jsxs)(c.wL,{className:"flex flex-col space-y-3",children:[(0,N.jsx)(r.N_,{to:"/forgot-password",className:"w-full",children:(0,N.jsx)(l.$,{className:"w-full","data-testid":"request-new-link-btn",children:"Request New Reset Link"})}),(0,N.jsx)(r.N_,{to:"/login",className:"w-full",children:(0,N.jsxs)(l.$,{variant:"ghost",className:"w-full",children:[(0,N.jsx)(u.A,{className:"w-4 h-4 mr-2"}),"Back to Sign In"]})})]})]})})}},65469(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},82054(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},76245(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},94651(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("eye-off",[["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"}]])},35087(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).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"}]])},22024(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},65727(e,s,a){a.d(s,{A:()=>t});
2const t=(0,a(77784).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"}]])},65131(e,s,a){a.d(s,{b:()=>c});var t=a(65043),r=(a(97950),a(16851)),l=a(70579),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{const a=(0,r.TL)(`Primitive.${s}`),n=t.forwardRef((e,t)=>{const{asChild:r,...n}=e,d=r?a:s;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(d,{...n,ref:t})});return n.displayName=`Primitive.${s}`,{...e,[s]:n}},{});var d=t.forwardRef((e,s)=>(0,l.jsx)(n.label,{...e,ref:s,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));d.displayName="Label";var c=d}}]);
3//# sourceMappingURL=5869.6af3fa33.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.