PageSourceSearch

https://iconited.com/assets/forgot-password-CoIZJO2w.js

js iconited.com collected 2026-10-10 02:34:22 UTC 4,100 bytes, 2 lines download raw bytes

1import{w as y,a as j,u as v,r as p,j as e}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{C as N}from"./client-only-DX6BhWFv.js";import{B as m,L as w}from"./button-C-rmsvyO.js";import{u as b,I as E}from"./navigation-BVMU57in.js";import{G as P}from"./error-boundary-wmm73Qsd.js";import{u as z,g as k}from"./use-auth-mutations-DhV-tzHK.js";import{u as B,g as C,a as S,b as I,o as F,s as R,p as u,E as _}from"./user-validation-216L9Wf3.js";import"./cx-JWMrrZN5.js";import"./bundle-mjs-BWt8Cp2A.js";import"./index-BnGtwJ93.js";import"./is-react-component-CT1NlcGF.js";import"./tooltip-BIt4K4VP.js";import"./misc-abrRjE04.js";import"./trpc-tanstack-CcrFfedX.js";import"./useMutation-DZfcQAwJ.js";const c=F({email:_,name__confirm:R().optional()}),Q=({matches:a})=>[{title:`Password Recovery for ${a.find(t=>t.id==="root")?.data?.domainConfig?.name??"Iconited"}`}],T=y(function(){v();const o=b(),[r,t]=p.useState(null),[f,h]=p.useState(!1),d=z({onSuccess:()=>{h(!0)},onError:s=>{t(k(s))}}),[i,l]=B({id:"forgot-password-form",constraint:C(c),onValidate({formData:s}){return u(s,{schema:c})},shouldRevalidate:"onBlur",onSubmit(s,{formData:g}){s.preventDefault(),t(null);const n=u(g,{schema:c});n.status==="success"&&(n.value.name__confirm||d.mutate({email:n.value.email}))}}),x=d.isPending;return f?e.jsx("section",{className:"bg-primary relative min-h-screen overflow-hidden px-4 py-12 md:px-8 md:pt-24",children:e.jsxs("div",{className:"relative z-10 mx-auto flex w-full flex-col gap-8 sm:max-w-90",children:[e.jsx("div",{className:"flex flex-col items-center gap-6 text-center",children:e.jsxs("div",{className:"z-10 flex flex-col gap-2 md:gap-3",children:[e.jsx("h1",{className:"text-display-xs text-primary md:text-display-sm font-semibold",children:"Check your email"}),e.jsx("p",{className:"text-md text-tertiary self-stretch p-0",children:"We've sent you a password reset link. Check your inbox and click the link to reset your password."})]})}),e.jsx("div",{className:"z-10 flex justify-center gap-1 text-center",children:e.jsx(m,{color:"link-color",size:"md",href:o("/login"),children:"← Back to Login"})})]})}):e.jsx("section",{className:"bg-primary relative min-h-screen overflow-hidden px-4 py-12 md:px-8 md:pt-24",children:e.jsxs("div",{className:"relative z-10 mx-auto flex w-full flex-col gap-8 sm:max-w-90",children:[e.jsx("div",{className:"flex flex-col items-center gap-6 text-center",children:e.jsxs("div",{className:"z-10 flex flex-col gap-2 md:gap-3",children:[e.jsx("h1",{className:"text-display-xs text-primary md:text-display-sm font-semibold",children:"Forgot Password"}),e.jsx("p",{className:"text-md text-tertiary self-stretch p-0",children:"No worries, we'll send you reset instructions."})]})}),e.jsx(N,{fallback:e.jsx("div",{className:"flex justify-center py-10",children:e.jsx(w,{size:"xl",type:"line-simple"})}),children:()=>e.jsxs("form",{...S(i),className:"z-10 flex flex-col gap-6",children:[e.jsx("input",{type:"text",name:"name__confirm",style:{display:"none"},tabIndex:-1,autoComplete:"off"}),e.jsx("div",{className:"flex flex-col gap-5",children:e.jsx(E,{isRequired:!0,hideRequiredIndicator:!0,label:"Email",placeholder:"Enter your email",size:"md",...I(l.email,{type:"email"}),autoFocus:!0,autoComplete:"email",isInvalid:!!l.email.errors?.length,hint:l.email.errors?.join(", ")})}),i.errors?.length||r?e.jsx("div",{className:"bg-error-secondary rounded-lg px-4 py-3",children:e.jsxs("ul",{className:"flex flex-col gap-1",children:[i.errors?.map(s=>e.jsx("li",{className:"text-error-primary text-sm",children:s},s)),r&&e.jsx("li",{className:"text-error-primary text-sm",children:r})]})}):null,e.jsx("div",{className:"flex flex-col gap-4",children:e.jsx(m,{type:"submit",size:"lg",className:"w-full",isLoading:x,isDisabled:x,children:"Recover password"})})]})}),e.jsx("div",{className:"z-10 flex justify-center gap-1 text-center",children:e.jsx(m,{color:"link-color",size:"md",href:o("/login"),children:"← Back to Login"})})]})})}),X=j(function(){return e.jsx(P,{})});export{X as ErrorBoundary,T as default,Q as meta};
2//# sourceMappingURL=forgot-password-CoIZJO2w.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.