1import{j as e,r,m as a}from"./vendor-motion-CU2HU3v2.js";import{u as h,L as d,b,s as y}from"./index-C9nefGHk.js";import{s as g}from"./scrollIntoViewOnFocus-g8Xpq7Q1.js";import{A as j}from"./arrow-left-Dtd9znkG.js";import{M as w}from"./mail-DA8LVaIW.js";import{A as N}from"./arrow-right-DJ6T-MKa.js";import"./vendor-react-sVBMIrlz.js";import"./vendor-supabase-D0PyPwN3.js";import"./app-i18n-BFxqgYLk.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"2026-10-02T13:04:35Z-8ea303d"};var s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c147d069-2d4f-4a65-8b8b-8d6c86095d7d",t._sentryDebugIdIdentifier="sentry-dbid-c147d069-2d4f-4a65-8b8b-8d6c86095d7d")}catch{}})();const v="/icons/coach-icon.png",I="https://coach.futureproof.work";function z(){return e.jsx(S,{})}function S(){const{t}=h(),[s,n]=r.useState(""),[o,l]=r.useState(!1),[m,p]=r.useState(!1),[u,c]=r.useState(""),x=async i=>{i.preventDefault(),l(!0),c("");const{error:f}=await y.auth.resetPasswordForEmail(s.trim().toLowerCase(),{redirectTo:I});if(f){c(t("auth.genericError")),l(!1);return}p(!0),l(!1)};return e.jsx("div",{className:"h-[var(--app-height)] overflow-y-auto bg-white",children:e.jsx("div",{className:"flex min-h-full flex-col items-center justify-center px-6 py-8",children:e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"flex w-full max-w-sm flex-col items-center",children:[e.jsxs(d,{to:"/login",className:"mb-8 flex items-center gap-2 self-start font-pulse-body text-sm text-pulse-neutral-1 transition-colors hover:text-pulse-primary",children:[e.jsx(j,{size:18,className:"rtl:-scale-x-100"}),e.jsx("span",{children:t("auth.backToSignIn")})]}),e.jsx("div",{className:"mb-6 flex h-20 w-20 items-center justify-center rounded-2xl border border-pulse-neutral-light-1 bg-white p-3",children:e.jsx("img",{src:v,alt:t("app.logoAlt"),className:"h-full w-full object-contain"})}),m?e.jsxs(a.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4},className:"text-center",children:[e.jsx("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-pulse-success/10",children:e.jsx(b,{size:28,className:"text-pulse-success"})}),e.jsx("h2",{className:"mb-3 font-pulse-ext text-[24px] font-medium leading-[1.15] tracking-tight text-pulse-primary",children:t("auth.emailSent")}
1),e.jsx("p",{className:"mb-8 font-pulse-body text-xs leading-[1.24] text-pulse-neutral-1",children:t("auth.resetInbox",{email:s})}),e.jsx(d,{to:"/login",className:"font-pulse-body text-sm text-pulse-primary underline underline-offset-4 transition-colors hover:text-pulse-neutral-1",children:t("auth.backToSignIn")})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mb-1 font-pulse-ext text-[24px] font-medium leading-[1.15] tracking-tight text-pulse-primary",children:t("auth.resetPassword")}),e.jsx("p",{className:"mb-8 text-center font-pulse-body text-xs leading-[1.24] text-pulse-neutral-1",children:t("auth.resetPasswordHelp")}),e.jsxs("form",{onSubmit:x,className:"w-full",children:[e.jsxs("div",{className:"relative mb-4",children:[e.jsx("div",{className:"absolute start-4 top-1/2 -translate-y-1/2",children:e.jsx(w,{size:18,className:"text-pulse-neutral"})}),e.jsx("input",{type:"email",inputMode:"email",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",autoComplete:"username",value:s,onChange:i=>n(i.target.value),onFocus:g,placeholder:t("auth.emailAddressPlaceholder"),"aria-label":t("auth.emailAddressPlaceholder"),required:!0,className:"h-12 w-full rounded-xl border border-pulse-neutral-light-1 bg-white px-4 ps-11 font-pulse-body text-sm text-pulse-primary transition-colors placeholder:text-pulse-neutral focus:border-pulse-primary focus:outline-none"})]}),u&&e.jsx(a.p,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-4 text-center font-pulse-body text-sm text-pulse-error",children:u}),e.jsx(a.button,{type:"submit",disabled:o,className:"flex h-12 w-full items-center justify-center gap-2 rounded-full bg-pulse-primary font-pulse-ext text-[11px] font-medium leading-[14px] tracking-[-0.11px] text-white transition-colors hover:bg-pulse-neutral-1 disabled:opacity-40",children:o?e.jsx(a.div,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},className:"h-5 w-5 rounded-full border-2 border-white/30 border-t-white"}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t("auth.sendResetLink")}),e.jsx(N,{size:18,className:"rtl:-scale-x-100"})]})})]})]}),e.jsx("p",{className:"mt-12 text-center font-pulse-ext text-[9px] font-medium uppercase tracking-[0.54px] text-pulse-neutral",children:t("auth.authorizedOnly")})]})})})}export{z 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.