PageSourceSearch

https://lavoixmaru.ca/assets/index.lazy-plWcnDdu.js

js lavoixmaru.ca collected 2026-10-04 14:48:14 UTC 2,347 bytes, 36 lines download raw bytes

1import{u as w,t,h as o,o as f,p as y,a as $,b as j,j as s,l as n,z as b,I as P,B as v}from"./index-D-4OtoLT.js";import{u as z,t as F,z as l}from"./index-CSwnfcWX.js";import{u as I,b as S}from"./useAuthQueryClient-DNdqRcS0.js";const C=()=>{const{invalidatePassword:e}=I();return w({mutationFn:async r=>(await S(r)).data,onSuccess:e})},L=o.section`
2  height: 100vh;
3  width: 100vw;
4  display: flex;
5  flex-direction: column;
6  align-items: center;
7  justify-content: center;
8  background: ${t.colors.neutral[50]};
9`,M=o.h1`
10  font-size: ${t.fonts.size.heading3};
11  font-weight: ${t.fonts.weight.normal};
12  line-height: 24px;
13  letter-spacing: -0.4px;
14  color: ${t.colors.grey[900]};
15`,R=o.span`
16  font-size: ${t.fonts.size.body3};
17  font-weight: ${t.fonts.weight.lighter};
18  line-height: 18px;
19  letter-spacing: -0.32px;
20`,k=o.form`
21  width: 100%;
22`,A=o.div`
23  display: flex;
24  flex-direction: column;
25  align-items: center;
26  width: 80vw;
27  max-width: 500px;
28  padding: ${t.space.xl} ${t.space.xl3};
29  background-color: ${t.colors.neutral[0]};
30  border-radius: ${t.radius.md};
31  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
32`;o.span`
33  padding-left: ${t.space.xs};
34  color: #e74c3c;
35  font-size: 0.85rem;
36`;const B=e=>l.object({email:l.string().email(e("validation.emailIncorrect"))}),i=b(),E=()=>{const{t:e}=y("forgotPassword"),r=$(),a=j(),{mutateAsync:d,isPending:p}=C(),{register:g,handleSubmit:u,watch:c,formState:{errors:m}}=z({resolver:F(B(e))}),h=async x=>{try{await d({email:x.email}),a.success(e("successMessage")),r.navigate({to:"/"})}catch{a.error(e("serverError"))}};return s.jsx(L,{children:s.jsx(A,{children:s.jsxs(n,{$col:!0,$align:"center",$gap:t.space.lg,style:{width:"100%"},children:[typeof i=="string"?s.jsx("img",{src:i,alt:"Company logo",className:"logo",style:{width:"140px"}}):s.jsx(i,{style:{width:"140px"}}),s.jsxs(n,{$col:!0,$gap:t.space.xs2,style:{width:"100%"},children:[s.jsx(M,{children:e("title")}),s.jsx(R,{children:e("description")})]}),s.jsx(k,{onSubmit:u(h),children:s.jsxs(n,{$col:!0,$gap:t.space.md,children:[s.jsx(P,{type:"text",label:e("email"),hasValue:!!c("email")&&c("email")!=="",errorInfo:m.email,...g("email")}),s.jsx(v,{pendoId:"forgot-password-submit",type:"submit",variant:"primary",size:"large",text:e("reset"),isLoading:p})]})})]})})})},Q=f("/forgot-password/")({component:E});export{Q as Route};

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.