PageSourceSearch

https://www.connect-events.fr/_next/static/chunks/pages/desabonnement-email-0b71949e0e82da52.js

js connect-events.fr collected 2026-10-02 00:02:41 UTC 2,389 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6794],{3278:(e,s,r)=>{"use strict";r.r(s),r.d(s,{EmailUnsubscribe:()=>h,default:()=>b});var a=r(6029),l=r(73492),t=r(34245),n=r(21053),o=r(64713),i=r(58718),u=r(44072),m=r(65403),d=r(52789),c=r(66310),f=r(81278),x=r(55729),p=r(1909);function h(){var e;let{toast:s}=(0,t.dj)(),r=(0,f.useRouter)(),{mutate:h,isPending:b}=(0,l.QQy)(),v=(0,p.mN)({resolver:(0,d.u)(l.JDH),defaultValues:l.Tto}),{handleSubmit:j,control:N,setValue:_,formState:{errors:w}}=v;return(0,x.useEffect)(()=>{"string"==typeof r.query.mail&&_("email",r.query.mail)},[r.query.mail,_]),(0,a.jsx)("main",{className:"b flex size-full grow flex-col items-center justify-center gap-4 p-4",children:(0,a.jsxs)(n.Zp,{className:"w-full max-w-md rounded-md p-6",children:[(0,a.jsxs)("div",{className:"mb-6 text-center",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold",children:"D\xe9sabonnement email"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Entrez votre adresse email pour vous d\xe9sabonner de nos communications"})]}),(0,a.jsx)(o.lV,{...v,children:(0,a.jsxs)("form",{onSubmit:j(e=>{h({emails:[e.email],isFromWebApp:!0,reason:e.reason},{onSuccess:()=>{s({title:"D\xe9sabonnement r\xe9ussi",description:"Votre adresse email a \xe9t\xe9 ajout\xe9e \xe0 la liste de refus"}),r.push("/")},onError:e=>{var r;if((0,c.F0)(e)&&(null==(r=e.response)?void 0:r.status)===400)return void s({title:"Erreur",description:"Adresse email invalide"});s({title:"Une erreur est survenue"})}})}),className:"flex flex-col gap-4",children:[(0,a.jsx)(i.Z,{label:"Adresse email",name:"email",type:"email",placeholder:"[email protected]",control:N,required:!0}),(0,a.jsx)(u.h,{label:"Raison du d\xe9sabonnement (optionnel)",name:"reason",placeholder:"Pourquoi souhaitez-vous vous d\xe9sabonner ?",control:N,rows:3,maxLength:500,hasMessage:!0}),(null==(e=w.root)?void 0:e.message)?(0,a.jsx)("p",{className:"mx-auto w-fit text-sm text-destructive",children:w.root.message}):null,(0,a.jsx)(m.$,{type:"submit",variant:"destructive-filled",className:"font-semibold",isLoading:b,children:"Se d\xe9sabonner"})]})})]})})}let b=h},21589:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/desabonnement-email",function(){return r(3278)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=21589)),_N_E=e.O()}]);
2//# sourceMappingURL=desabonnement-email-0b71949e0e82da52.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.