PageSourceSearch

https://www.connect-events.fr/_next/static/chunks/pages/reset-password/[token]-3e9c05740d6fe58e.js

js connect-events.fr collected 2026-10-02 00:03:14 UTC 3,514 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8775],{29899:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password/[token]",function(){return r(65679)}])},65679:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>g});var t=r(6029),l=r(73492),a=r(52789),o=r(1909),n=r(34245),i=r(64713),c=r(40611),d=r(65403),u=r(17325),m=r(66310),p=r(21667),x=r(81278),h=r(55729),f=r(98622),v=r(13471);let g=function(){var e;let s=(0,x.useRouter)(),{token:r}=s.query,{toast:g}=(0,n.dj)(),{isError:w,error:j}=(0,l.yN1)(r),N=(0,o.mN)({resolver:(0,a.u)(l.Y9p),defaultValues:{password:"",token:r}});(0,h.useEffect)(()=>{r&&N.reset({password:"",token:r})},[r]);let{handleSubmit:b,formState:_}=N,y=null==(e=_.errors.password)?void 0:e.message,E=(0,l.Lvx)();return(0,t.jsx)("div",{className:"mx-auto my-10 flex h-full w-fit items-center rounded-lg border-gray-50 bg-white p-4 shadow-sm",children:(0,t.jsx)(i.lV,{...N,children:(0,t.jsxs)("form",{onSubmit:b(e=>{E.mutate(e,{onSuccess:()=>{g({title:"Mot de passe modifi\xe9",description:"Le mot de passe a bien \xe9t\xe9 modifi\xe9, vous pouvez vous reconnecter"}),s.push("/reset-password/confirmation")},onError:()=>{g({title:"Erreur",description:"Une erreur est survenue"})}})}),className:"mx-auto flex w-fit flex-col items-center space-y-8 px-8 lg:min-w-192",children:[(0,t.jsx)("div",{className:"flex flex-col items-center gap-2",children:(0,t.jsx)(v.A,{src:"/images/logos/logo_connect_events_horizontale.png",alt:"logo avec nom Connect'Events",className:"static h-9 w-auto",width:880,height:200})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"text-xl font-bold text-black",children:"Mot de passe oubli\xe9"}),(0,t.jsx)("p",{className:"text-center text-sm font-normal text-black",children:"Cr\xe9ez votre nouveau mot de passe"})]}),w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:(()=>{if(!j)return"";if((0,m.F0)(j)){var e;return null==(e=j.response)?void 0:e.data.message}return j.message})()}),(0,t.jsx)(f.D,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsx)(c.W,{className:"grow",control:N.control,name:"password",label:"Mot de passe",placeholder:".............",onChange:e=>{N.setValue("password",e.target.value),N.trigger("password")},hasMessage:!1}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h3",{className:"text-sm",children:"Le mot de passe doit contenir les \xe9l\xe9ments suivants :"}),(0,t.jsx)("div",{className:"flex flex-col gap-2",children:u.H3Y.map(e=>(0,t.jsx)(p.A,{desc:e.desc,errorType:e.errorType,toDisplay:!!N.getValues().password,passwordError:y},e.errorType))})]})]}),(0,t.jsx)("div",{className:"flex w-full flex-col",children:(0,t.jsx)(d.$,{type:"submit",variant:"blue",size:"lg",className:"font-semibold",children:"Modifier mon mot de passe"})})]})]})})})}},98622:(e,s,r)=>{"use strict";r.d(s,{D:()=>n});var t=r(6029),l=r(65403),a=r(81278),o=r(55729);let n=e=>{let{redirectAfterSeconds:s=5}=e,r=(0,a.useRouter)(),[n,i]=(0,o.useState)(s);return(0,o.useEffect)(()=>{if(n<=0)return void r.push("/");let e=setInterval(()=>{i(e=>e-1)},1e3);return()=>clearInterval(e)},[n,r]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["Vous allez \xeatre redirig\xe9 dans ",n," secondes"]}),(0,t.jsx)(l.$,{variant:"blue",className:"w-full",onClick:()=>r.push("/"),children:"Retour \xe0 l'accueil"})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=29899)),_N_E=e.O()}]);
2//# sourceMappingURL=[token]-3e9c05740d6fe58e.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.