PageSourceSearch

https://iptvofficial.website/assets/reset-password-CnRL3L1z.js

js iptvofficial.website collected 2026-10-09 22:02:24 UTC 3,074 bytes, 1 lines download raw bytes

1import{u as v,f as k,r as t,s as u,j as e,L as P,P as m}from"./index-iUA9kkOh.js";import{t as S}from"./index-D3a3v6_b.js";import{c as L}from"./auth-redirect-B37GNjDF.js";import{K as p}from"./key-round-TJJvhf8a.js";import{L as x}from"./loader-circle-CrVAMlod.js";function D(){const s=v(),f=k(),[h,b]=t.useState(!1),[w,g]=t.useState(!1),[n,j]=t.useState(""),[c,N]=t.useState(""),[l,d]=t.useState(!1),[i,o]=t.useState(null);t.useEffect(()=>{(async()=>{await L();const{data:a}=await u.auth.getSession();g(!!a.session),b(!0)})()},[]);const y=async a=>{if(a.preventDefault(),o(null),n.length<6){o(s("Password must be at least 6 characters"));return}if(n!==c){o(s("Passwords do not match"));return}d(!0);try{const{error:r}=await u.auth.updateUser({password:n});if(r)throw r;S.success(s("Password updated")),f({to:"/account/affiliate"})}catch(r){o(r instanceof Error?r.message:s("Could not update password"))}finally{d(!1)}};return e.jsx(P,{children:e.jsx("div",{className:"min-h-[80vh] grid place-items-center px-4 pt-28 pb-12",children:e.jsxs("div",{className:"glass-liquid rounded-3xl p-8 w-full max-w-md 
1space-y-5",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto mb-4 h-14 w-14 rounded-2xl grid place-items-center",style:{background:"linear-gradient(180deg, #E6FF66, var(--brand))"},children:e.jsx(p,{className:"h-6 w-6 text-black"})}),e.jsx("h1",{className:"text-2xl font-black uppercase",children:s("New password")})]}),h?w?e.jsxs("form",{onSubmit:y,className:"space-y-5",children:[e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"block text-xs font-bold uppercase tracking-wider mb-2 text-muted-foreground",children:s("New password")}),e.jsx(m,{value:n,onChange:a=>j(a.target.value),required:!0,minLength:6,className:"w-full rounded-2xl bg-black/40 border border-white/10 px-4 py-3 text-white focus:outline-none focus:border-[#D4FF00]"})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"block text-xs font-bold uppercase tracking-wider mb-2 text-muted-foreground",children:s("Confirm password")}),e.jsx(m,{value:c,onChange:a=>N(a.target.value),required:!0,minLength:6,className:"w-full rounded-2xl bg-black/40 border border-white/10 px-4 py-3 text-white focus:outline-none focus:border-[#D4FF00]"})]}),i&&e.jsx("div",{className:"rounded-xl px-4 py-3 text-sm",style:{background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.4)",color:"#fca5a5"},children:i}),e.jsxs("button",{type:"submit",disabled:l,className:"btn-primary w-full inline-flex items-center justify-center gap-2 rounded-2xl px-7 py-4 font-black uppercase disabled:opacity-60",children:[l?e.jsx(x,{className:"h-4 w-4 animate-spin"}):e.jsx(p,{className:"h-4 w-4"}),s(l?"Saving...":"Update password")]})]}):e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:s("This reset link is invalid or has expired. Please request a new one.")}):e.jsx("div",{className:"grid place-items-center py-8",children:e.jsx(x,{className:"h-6 w-6 animate-spin text-muted-foreground"})})]})})})}export{D as component};

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.