PageSourceSearch

https://velaflow.com/_next/static/chunks/pages/reset-password-84a6b317aa66ab95.js

js velaflow.com collected 2026-09-24 13:03:05 UTC 4,803 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{3645:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var r=a(37876);a(14232);var t=a(96145);let l=()=>(0,r.jsx)("div",{className:"w-full md:w-1/2 flex items-center justify-center bg-loginBackground md:min-h-screen",children:(0,r.jsx)("div",{className:"z-10 flex flex-col items-center p-4",children:(0,r.jsx)(t.Zc,{src:"/images/logo.png",alt:"Velaflow Logo",className:"h-[120px] w-[120px] md:h-[215px] md:w-[215px] mb-4"})})})},40961:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return a(49691)}])},49691:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>w});var r=a(37876),t=a(14232),l=a(96145),o=a(3645),n=a(53869),i=a(91408),d=a(81220),c=a(89099);let m=i.Ik().shape({password:i.Yj().required("Password is required").min(8,"Password must be at least 8 characters"),confirmPassword:i.Yj().required("Confirm password is required").oneOf([i.KR("password"),null],"Passwords do not match")}),p=e=>{let{email:s}=e,a=(0,c.useRouter)(),[i,p]=(0,t.useState)({password:"",confirmPassword:""}),[w,h]=(0,t.useState)(null),[u,x]=(0,t.useState)({passwordShow:!1,confirmPasswordShow:!1}),[f,j]=(0,t.useState)(""),[g,N]=(0,t.useState)(!1);(0,t.useEffect)(()=>{""!==f&&setTimeout(()=>{j(""),a.push("/login")},1e3)},[f,a]);let y=e=>{let{target:s}=e,{type:a,checked:r,name:t}=s,l="checkbox"===a?r:s.value;p({...i,[t]:l})},b=async e=>{e.preventDefault();try{await m.validate(i,{abortEarly:!1}),h({})}catch(s){let e={};s.inner?s.inner.forEach(s=>{e[s.path]=s.message}):e[s.path]=s.message,h(e);return}try{let e=new FormData;e.append("email",s),e.append("password",i.password),e.append("password_confirmation",i.confirmPassword),N(!0);let a=await (0,d.xw)(e);a.error?(h(a.message),N(!1)):j("Password changed successfully")}catch(e){N(!1),h(e.response.data.message)}},v=e=>{x({...u,[e]:!u[e]})},{password:S,confirmPassword:P}=i,k=(0,r.jsxs)("form",{onSubmit:b,autoComplete:"off",className:"mt-6 md:mt-12 space-y-4 w-full max-w-md",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.pd,{type:u.passwordShow?"text":"password",placeholder:"New password",autoComplete:"new-password",name:"password",value:S,onChange:y,className:"w-full pl-10 h-40 px-4 py-3 text-black text-12 border rounded outline-none focus:ring-2 focus:primary",prefix:(0,r.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)(l.In,{id:"password-icn",width:16,height:16,className:"inline-block"})}),suffix:(0,r.jsx)("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer",children:(0,r.jsx)(l.In,{onClick:()=>v("passwordShow"),id:u.passwordShow?"eye-cut-icn":"eye-icn",width:20,height:16})})}),(null==w?void 0:w.password)&&(0,r.jsx)("p",{className:"text-12 text-red",children:w.password})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.pd,{type:u.confirmPasswordShow?"text":"password",placeholder:"Confirm password",autoComplete:"new-password",name:"confirmPassword",value:P,onChange:y,className:"w-full pl-10 h-40 px-4 py-3 text-black text-12 border rounded outline-none focus:ring-2 focus:primary",prefix:(0,r.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)(l.In,{id:"password-icn",width:16,height:16,className:"inline-block"})}),suffix:(0,r.jsx)("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer",children:(0,r.jsx)(l.In,{onClick:()=>v("confirmPasswordShow"),id:u.confirmPasswordShow?"eye-cut-icn":"eye-icn",width:20,height:16})})}),(null==w?void 0:w.confirmPassword)&&(0,r.jsx)("p",{className:"text-12 text-red",children:w.confirmPassword})]}),(0,r.jsx)(l.$n,{type:"submit",disabled:g,className:"w-full h-40 text-14 bg-primary text-white rounded transition",children:g?(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(l.aH,{})}):"Change password"}),"string"==typeof w&&(0,r.jsx)("span",{className:"flex text-red text-12",children:w})]});return(0,r.jsx)(n.A,{leftSide:(0,r.jsx)(o.A,{}),rightSide:k,rightSideHeading:"Change password"})};function w(){let{email:e}=(0,c.useRouter)().query;return(0,r.jsx)(p,{email:e})}},53869:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var r=a(37876);a(14232);var t=a(96145);let l=e=>{let{leftSide:s,rightSide:a,rightSideHeading:l}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"min-h-screen flex flex-col md:flex-row bg-white overflow-x-hidden",children:[s,(0,r.jsx)("div",{className:"w-full md:w-1/2 mt-10 md:mt-0 flex items-center bg-white min-h-[50vh] md:min-
1h-screen",children:(0,r.jsxs)("div",{className:"w-full max-w-md px-4 md:px-8 md:ml-10",children:[(0,r.jsx)(t.DZ,{type:"h2",text:l,className:"text-3xl md:text-40 text-black font-normal mb-10 md:mb-20"}),a]})})]})})}}},e=>{e.O(0,[1408,636,6593,8792],()=>e(e.s=40961)),_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.