PageSourceSearch

https://cinewish-web.onrender.com/assets/ForgotPassword-DKXdU2Iq.js

js cinewish-web.onrender.com collected 2026-10-03 11:39:36 UTC 4,643 bytes, 1 lines download raw bytes

1import{a as p,r as t,j as e,A as j}from"./index-BYNP3g4A.js";const y=()=>{const m=p(),[a,u]=t.useState(""),[l,o]=t.useState(""),[n,i]=t.useState(""),[c,d]=t.useState(!1),g=async s=>{var x,h;s.preventDefault(),d(!0),o(""),i("");try{const r=await j.post("/auth/forgot-password",{email:a});o(r.data.message||"Reset link sent! Check your email.")}catch(r){i(((h=(x=r.response)==null?void 0:x.data)==null?void 0:h.message)||"Something went wrong. Please try again.")}finally{d(!1)}};return e.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gray-950 px-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-teal-500/20 to-cyan-500/20 rounded-full flex items-center justify-center mb-4 mx-auto",children:e.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-teal-400",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),e.jsx("polyline",{points:"22,6 12,13 2,6"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Forgot Password?"}),e.jsx("p",{className:"text-gray-400 text-sm",children:"No worries, we'll send you reset instructions"})]}),e.jsxs("form",{onSubmit:g,className:"bg-gray-900 border border-gray-800 rounded-xl p-6 space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Email Address"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"email",placeholder:"Enter your email",className:"w-full px-4 py-3 pl-11 bg-gray-800 border border-gray-700 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:border-teal-500 focus:ring-1 focus:ring-teal-500 transition-all",value:a,onChange:s=>u(s.target.value),required:!0}),e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),e.jsx("polyline",{points:"22,6 12,13 2,6"})]})]})]}),n&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-red-500/10 border border-red-500/30 rounded-lg",children:[e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-red-400 flex-shrink-0 mt-0.5",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),e.jsx("p",{className:"text-red-400 text-sm",children:n})]}),l&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-teal-500/10 border border-teal-500/30 rounded-lg",children:[e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-teal-400 flex-shrink-0 mt-0.5",children:[e.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),e.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),e.jsx("p",{className:"text-teal-400 text-sm",children:l})]}),e.jsx("button",{type:"submit",className:"w-full bg-gradient-to-r from-teal-500 to-cyan-500 hover:from-teal-400 hover:to-cyan-400 text-white font-semibold py-3 rounded-lg transition-all duration-300 shadow-lg shadow-teal-500/30 hover:shadow-teal-400/50 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:shadow-teal-500/30",disabled:c,children:c?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsxs("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Sending..."]}):"Send Reset Link"})]}),e.jsx("div",{className:"text-center mt-6",children:e.jsxs("button",{onClick:()=>
1m("/login"),className:"text-teal-400 hover:text-teal-300 text-sm font-medium transition-colors flex items-center gap-1 mx-auto",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),e.jsx("polyline",{points:"12 19 5 12 12 5"})]}),"Back to Login"]})})]})})};export{y 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.