PageSourceSearch

https://optionsedge.ai/static/js/1141.7dd5e538.chunk.js

js optionsedge.ai collected 2026-10-05 14:17:12 UTC 6,072 bytes, 3 lines download raw bytes

1/*! For license information please see 1141.7dd5e538.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkoptionsedge_frontend=self.webpackChunkoptionsedge_frontend||[]).push([[1141],{1141:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var r=s(5043),a=s(5475),n=s(6099),l=s(2054),o=s(7719),d=s(579);const i=()=>{const[e]=(0,a.ok)(),t=e.get("token")||"",[s,i]=(0,r.useState)(""),[c,x]=(0,r.useState)(""),[b,m]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),[u,g]=(0,r.useState)(!1);return t?(0,d.jsx)("div",{className:"min-h-screen grid place-items-center p-7",style:{background:"radial-gradient(900px 420px at 18% 8%, rgba(59,130,246,.16), transparent 55%), linear-gradient(180deg,#fff 0%, #F7FAFF 100%)"},children:(0,d.jsx)("div",{className:"w-full max-w-md",children:(0,d.jsxs)("section",{className:"rounded-3xl bg-white border border-gray-200/90 shadow-[0_18px_60px_rgba(17,24,39,.12)] p-7",children:[(0,d.jsxs)(a.N_,{to:"/",className:"flex items-center gap-3 font-black tracking-tight mb-6",children:[(0,d.jsx)("img",{src:"".concat("","/images/thetara-logo.png"),alt:"Thetara",className:"w-10 h-10 object-contain rounded-xl flex-shrink-0"}),(0,d.jsx)("span",{children:"Thetara"})]}),h?(0,d.jsxs)("div",{className:"text-center py-4",children:[(0,d.jsx)("div",{className:"w-14 h-14 rounded-full bg-emerald-100 border border-emerald-200 flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(l.A,{className:"w-7 h-7 text-emerald-500","aria-hidden":!0})}),(0,d.jsx)("h2",{className:"text-xl font-bold tracking-tight mb-2",children:"Password Reset!"}),(0,d.jsx)("p",{className:"text-gray-500 font-semibold text-sm leading-relaxed mb-6",children:"Your password has been updated. You can now sign in with your new password."}),(0,d.jsx)("button",{type:"button",onClick:()=>{window.location.assign("".concat(window.location.origin,"/login"))},className:"w-full py-3 px-4 rounded-xl font-extrabold border border-transparent bg-gradient-to-br from-blue-500 to-blue-800 text-white shadow-[0_14px_34px_rgba(59,130,246,.24)] hover:-translate-y-0.5 hover:shadow-[0_18px_42px_rgba(59,130,246,.28)] transition-all",children:"Sign In"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h2",{className:"text-2xl font-bold tracking-tight m-0",children:"Set new password"}),(0,d.jsx)("p",{className:"mt-1.5 mb-0 text-gray-500 font-semibold text-sm leading-snug",children:"Choose a strong password for your account."}),b&&(0,d.jsx)("div",{className:"mt-4 p-3 rounded-xl border border-red-200/90 bg-red-50/80 text-red-900 font-bold text-sm leading-snug",children:b}),(0,d.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),m(""),s.length<6)m("Password must be at least 6 characters.");else if(s===c){g(!0);try{await n.Ay.post("/auth/reset-password",{token:t,new_password:s}),p(!0)}catch(l){var r,a;const e=l;m((null===(r=e.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.error)||e.message||"Reset failed. The link may have expired.")}finally{g(!1)}}else m("Passwords do not match.")},className:"mt-5 grid gap-3.5",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"password",className:"block font-semibold text-[13px] mb-1.5",children:"New password"}),(0,d.jsx)("input",{id:"password",type:"password",value:s,onChange:e=>{i(e.target.value),m("")},required:!0,disabled:u,placeholder:"At least 6 characters",autoFocus:!0,className:"w-full py-3 px-3 rounded-xl border border-gray-200 outline-none text-sm bg-white focus:border-blue-500/80 focus:ring-4 focus:ring-blue-500/10 transition-all"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"confirm",className:"block font-semibold text-[13px] mb-1.5",children:"Confirm password"}),(0,d.jsx)("input",{id:"confirm",type:"password",value:c,onChange:e=>{x(e.target.value),m("")},required:!0,disabled:u,placeholder:"Re-enter your password",className:"w-full py-3 px-3 rounded-xl border border-gray-200 outline-none text-sm bg-white focus:border-blue-500/80 focus:ring-4 focus:ring-blue-500/10 transition-all"})]}),s&&c&&s!==c&&(0,d.jsx)("p",{className:"text-red-500 text-xs font-semibold -mt-1",children:"Passwords do not match"}),(0,d.jsx)("button",{type:"submit",disabled:u||!s||!c,className:"w-full py-3 px-4 roun
2ded-xl font-extrabold border border-transparent bg-gradient-to-br from-blue-500 to-blue-800 text-white shadow-[0_14px_34px_rgba(59,130,246,.24)] hover:-translate-y-0.5 hover:shadow-[0_18px_42px_rgba(59,130,246,.28)] transition-all disabled:opacity-65 disabled:cursor-not-allowed disabled:transform-none",children:u?"Resetting\u2026":"Reset Password"})]})]}),(0,d.jsx)("p",{className:"mt-5 text-center text-gray-500 font-semibold text-[13px]",children:(0,d.jsx)(a.N_,{to:"/login",className:"text-blue-800 font-extrabold hover:underline",children:"Back to sign in"})})]})})}):(0,d.jsx)("div",{className:"min-h-screen grid place-items-center p-7",style:{background:"radial-gradient(900px 420px at 18% 8%, rgba(59,130,246,.16), transparent 55%), linear-gradient(180deg,#fff 0%, #F7FAFF 100%)"},children:(0,d.jsx)("div",{className:"w-full max-w-md",children:(0,d.jsxs)("section",{className:"rounded-3xl bg-white border border-gray-200/90 shadow-[0_18px_60px_rgba(17,24,39,.12)] p-7 text-center",children:[(0,d.jsx)("div",{className:"w-14 h-14 rounded-full bg-red-100 border border-red-200 flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(o.A,{className:"w-6 h-6 text-red-500","aria-hidden":!0})}),(0,d.jsx)("h2",{className:"text-xl font-bold mb-2",children:"Invalid Reset Link"}),(0,d.jsx)("p",{className:"text-gray-500 font-semibold text-sm mb-6",children:"This password reset link is missing or malformed."}),(0,d.jsx)(a.N_,{to:"/forgot-password",className:"inline-block py-3 px-6 rounded-xl font-extrabold bg-gradient-to-br from-blue-500 to-blue-800 text-white hover:-translate-y-0.5 transition-all",children:"Request a New Link"})]})})})}},2054:(e,t,s)=>{s.d(t,{A:()=>r});const r=(0,s(1212).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"}]])}}]);
3//# sourceMappingURL=1141.7dd5e538.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.