PageSourceSearch

https://www.sassy.social/assets/reset-pass-CaltHiRY.js

js sassy.social collected 2026-10-04 03:17:40 UTC 3,098 bytes, 1 lines download raw bytes

1import{a as r,j as s,G as t,h as c,A as k,i as x,k as p,y as u,I as h,z as f,E as w}from"./vendor-mui-CYq-6ego.js";import{v as I,c as M,b as O,e as R,l as E,C as g,g as F,h as N,s as B,f as L,A as G}from"./index-5sb0ZHD_.js";import{l as V}from"./lock-UYdubhah.js";import{m as W}from"./vendor-motion-BPjkBOu7.js";import"./vendor-three-B82KWFtT.js";import"./vendor-redux-CUeFAPXf.js";import"./vendor-query-C1eo258M.js";const U=()=>{const{id:j}=I(),P=M(),{mutateAsync:y,isPending:b}=O({url:"update",method:"patch"}),[S,i]=r.useState(!1),[l,v]=r.useState(!1),[d,C]=r.useState(!1),{control:m,reset:z,handleSubmit:T,formState:{errors:a}}=R({resolver:B(G),defaultValues:{password:"",confirmPassword:""}}),A=async o=>{let e=await y({...o,token:j});e!=null&&e.status?i(!0):L({text:"Something Went Wrong",error:!0})};return s.jsxs(t,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[s.jsx(t,{size:{xs:12,md:4},p:4,children:s.jsxs(W.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,ease:"easeInOut"},children:[s.jsxs(t,{size:{xs:12,md:12},mb:3,textAlign:"center",children:[s.jsx(c,{display:"flex",justifyContent:"center",marginTop:2,children:s.jsx(k,{src:E,variant:"square",sx:{width:"107px",height:"72px",borderRadius:0,"& img":{objectFit:"fill"}}})}),s.jsxs(c,{mt:2,children:[s.jsx(x,{variant:"h2",children:"Forgot Password?"}),s.jsx(x,{variant:"h6",marginTop:1,children:"Please enter your new password and confirm it in the fields below. Make sure your password is strong and secure."})]})]}),s.jsxs("form",{onSubmit:T(A),children:[s.jsx(t,{size:{xs:12,md:12},mb:2,children:s.jsx(g,{name:"password",control:m,render:({field:o})=>{var e;return s.jsx(p,{...o,className:"w-full",placeholder:"Password",variant:"standard",type:l?"text":"password",error:!!a.password,inputProps:{maxLength:25},helperText:(e=a.password)==null?void 0:e.message,slotProps:{input:{endAdornment:s.jsx(u,{position:"end",sx:{mr:1},children:s.jsx(h,{onClick:()=>v(n=>!n),edge:"end",children:l?s.jsx(f,{fontSize:"small",sx:{width:"16px",height:"16px"}}):s.jsx(w,{fontSize:"small",sx:{width:"16px",height:"16px"}})})})}}})}})}),s.jsx(t,{size:{xs:12,md:12},mb:2,children:s.jsx(g,{name:"confirmPassword",control:m,render:({field:o})=>{var e;return s.jsx(p,{...o,className:"w-full",placeholder:"Confirm Password",variant:"standard",inputProps:{maxLength:25},type:d?"text":"password",error:!!a.confirmPassword,helperText:(e=a.confirmPassword)==null?void 0:e.message,slotProps:{input:{endAdornment:s.jsx(u,{position:"end",sx:{mr:1},children:s.jsx(h,{onClick:()=>C(n=>!n),edge:"end",children:d?s.jsx(f,{fontSize:"small",sx:{width:"16px",height:"16px"}}):s.jsx(w,{fontSize:"small",sx:{width:"16px",height:"16px"}})})})}}})}})}),s.jsx(t,{mt:2,size:{sm:12,xs:12,md:12,lg:12},children:s.jsx(F,{loading:b,className:"w-full",variant:"contained",title:"Submit",type:"submit"})})]})]})}),s.jsx(N,{icon:V,handleClose:()=>{i(!1),z(),P("/login")},buttonText:"Login",title:"Your password has been reset successfully! 🎉",subTitle:"Click below to log in to your account.",open:S})]})};export{U as default};

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.