1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5673],{15013:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var r=s(6029),i=s(73492),n=s(34245),a=s(13471),l=s(98622),c=s(66310),o=s(81278),u=s(55729);let d=function(){let{invitationId:e}=(0,o.useRouter)().query,{toast:t}=(0,n.dj)(),[s,d]=(0,u.useState)(!1),[f,p]=(0,u.useState)(null),{mutate:h,isPending:m}=(0,i.DvY)();return(0,u.useEffect)(()=>{e&&h(e,{onSuccess:()=>{d(!0),t({title:"Participation refus\xe9e",description:"Votre refus de participation a bien \xe9t\xe9 enregistr\xe9"})},onError:e=>{var s;let r=(0,c.F0)(e)?null==(s=e.response)?void 0:s.data.message:e instanceof Error?e.message:"Une erreur s'est produite";p(r),t({title:"Erreur",description:r})}})},[e,h,t]),(0,r.jsxs)("div",{className:"mx-auto my-10 flex h-full w-fit flex-col items-center rounded-lg border-gray-50 bg-white p-4 shadow-sm",children:[(0,r.jsx)("div",{className:"flex flex-col items-center gap-2",children:(0,r.jsx)(a.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,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-1",children:[m&&"Traitement de votre refus en cours...",s&&"Votre participation a bien \xe9t\xe9 refus\xe9e",f&&(0,r.jsx)("div",{className:"text-red-600",children:f})]}),(s||f)&&(0,r.jsx)(l.D,{})]})}},22969:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/refuse-participation/[invitationId]",function(){return s(15013)}])},98622:(e,t,s)=>{"use strict";s.d(t,{D:()=>l});var r=s(6029),i=s(65403),n=s(81278),a=s(55729);let l=e=>{let{redirectAfterSeconds:t=5}=e,s=(0,n.useRouter)(),[l,c]=(0,a.useState)(t);return(0,a.useEffect)(()=>{if(l<=0)return void s.push("/");let e=setInterval(()=>{c(e=>e-1)},1e3);return()=>clearInterval(e)},[l,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:["Vous allez \xeatre redirig\xe9 dans ",l," secondes"]}),(0,r.jsx)(i.$,{variant:"blue",className:"w-full",onClick:()=>s.push("/"),children:"Retour \xe0 l'accueil"})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=22969)),_N_E=e.O()}]); 2//# sourceMappingURL=[invitationId]-9bc7cc9009ccee7e.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.