PageSourceSearch

https://assets.corsematin.com/prod/_next/static/chunks/pages/contacteznous-d76ec554a265374f.js

js corsematin.com collected 2026-10-01 10:17:20 UTC 6,468 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1289],{31276:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contacteznous",function(){return s(89397)}])},89397:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return w},default:function(){return z}});var a=s(85893),o=s(67294),n=s(41664),l=s.n(n),r=s(11163),i=s(18403),c=s(86501),m=s(21581),u=s(39941),d=s(76635),f=s(47188),x=s(49089),_=s(91927),p=s(93366),h=s(87066);async function b(e){let t=await h.Z.post(p.sq,e);return 200===t.status&&!!t.data&&"Merci, votre information a &eacutet&eacute envoy&eacutee à la r&eacutedaction !"===t.data}var j=s(607),v=s(44311);s(66868);var N=s(43195),g=s(41779),y=s(82906),C=s.n(y),w=!0;function z(e){let{headerLp:t,footerLp:s,burgerLp:n,headerCitiesLp:h,ActuLp:y,headerActualitesLp:w,headerServices:z,headerPartenaires:k}=e,{user:E,userConsent:q,theme:S}=(0,u.Z)(),{utils:L}=(0,x.Z)(e=>({utils:e.utils})),Z=(0,r.useRouter)(),F=null==L?void 0:L.contentUrl,V=S===f.hd.lp?"Envoyer votre actu | La Provence":"Envoyer votre actu | Corse matin",M=S===f.hd.cm?C()["form__cm-submit-btn"]:"",[P,X]=(0,o.useState)("error"),[O,T]=(0,o.useState)(!1),J=()=>{c.default.error("Une erreur est survenue.",{className:"toast-error"})},U=()=>{c.default.success("Votre message a bien \xe9t\xe9 envoy\xe9 !",{className:"toast-success"})},[A,B]=(0,o.useState)(!1),[I,W]=(0,o.useState)({info:"",mail:"",phone:""}),[D,K]=(0,o.useState)({info:!1,mail:!1,phone:!1}),Q=(0,d.Z)(),[R,Y]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(void 0!==window.dataLayer&&Q&&!R){let e=(0,_.z)({user:E,router:Z});window.dataLayer.unshift(e),(0,g.sendDisplay)(e,Z),Y(!0)}},[E,Q]);let G=e=>{let{name:t,value:s}=e.target;W(e=>({...e,[t]:s}))},H=()=>{W({info:"",mail:"",phone:""}),T(!1)},$=async e=>{e.preventDefault();let t=!0;for(let[e,s]of Object.entries(I))0===s.length?(t=!1,K(t=>({...t,[e]:!0}))):K(t=>({...t,[e]:!1}));if(t){if("success"===P){let e={...I};F&&W(e={...e,contenu:F}),await b(e)?(U(),B(!0),H()):J()}else J()}},ee=()=>{B(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.Z,{title:V}),(0,a.jsxs)(v.Z,{headerLp:t,footerLp:s,burgerLp:n,headerCitiesLp:h,ActuLp:y,headerActualitesLp:w,headerServices:z,headerPartenaires:k,userConsent:q,children:[(0,a.jsx)("section",{"aria-label":"En-t\xeate",className:"mb-[16px] flex flex-col items-center w-7/12 mx-auto",children:(0,a.jsx)(N.X6q,{size:"3xl-black",color:"neutral-150",semantic:"h1",children:"Votre actu"})}),(0,a.jsxs)("main",{className:"mb-[16px] flex flex-col items-center w-10/12 mx-auto",children:[(0,a.jsx)("div",{className:S===f.hd.lp?C().form__lp:C().form__cm}),(0,a.jsx)(N.X6q,{size:"2xl-extrabold",color:"neutral-150",semantic:"h2",children:"Une info, un t\xe9moignage ?"})]}),(0,a.jsx)("div",{className:"flex flex-col gap-[16px] my-8 flex-1 w-full items-center ".concat("items-left"),children:(0,a.jsxs)("form",{onSubmit:$,className:"flex flex-col gap-[16px] max-w-[512px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(N.zg5,{label:"Votre info",informationMessage:"".concat(D.info?"\xc9crivez-nous votre info...":""),placeholder:"\xc9crivez-nous votre info...",name:"info",value:I.info,onChange:G,additionalClassName:"m-0",maxLength:900,required:!0}),(0,a.jsxs)("p",{className:"text-right text mt-1 ".concat(I.info.length>=900?"text-red-600":"text-gray-500"),children:[I.info.length,"/900"]})]}),(0,a.jsx)(N.hzB,{label:"Email",placeholder:"[email protected]",type:"email",name:"mail",value:I.mail,onChange:G,additionalClassName:"m-0",informationMessage:"".concat(D.mail?"Veuillez remplir le champ":""),required:!0}),(0,a.jsx)(N.hzB,{label:"T\xe9l\xe9phone",placeholder:"00 00 00 00 00",type:"phone",name:"phone",value:I.phone,onChange:G,additionalClassName:"m-0",informationMessage:"".concat(D.phone?"Veuillez remplir le champ":""),required:!0}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(N.XZJ,{additionalClassName:"mr-[10px] ".concat("mt-[-20px]"),checked:O,onChange:()=>{T(!O)},required:!0}),(0,a.jsxs)(N.xvT,{typo:"text-xs-normal",children:["J'accepte que mon mail soit utilis\xe9 pour r\xe9pondre \xe0 ma demande et j'accepte"," ",(0,a.jsx)(l(),{className:"underline",href:"/politique-de-confidentialite",children:"la politique de confidentialit\xe9"})]})]}),(0,a.jsx)(i.Nc,{className:"self-center",siteKey:p.UV,options:{theme:"light",language:"fr",size:"normal"},onError:()=>X("error"),onExpire:()=>X("expired"),onSuccess:()=>X("success")}),(0,a.jsx)(N.zxk,{className:"",iconPosition:"none",label:"Envoyer le message",size:"medium",theme:"primary",type:"submit",additionalClassName:M})]})}),(0,a.jsx)(c.Toaster,{position:"bottom-center",children:e=>(0,a.jsxs)("div",{className:"flex flex-row justify-between ".concat(e.className," ").concat("w-9/12"),children:[(0,a.jsxs)("div",{className:"flex flex-row gap-[8px]",children:["success"===e.type&&(0,a.jsx)(N.NOm,{strokeColor:"success-main"}),"error"===e.type&&(0,a.jsx)(N.WcQ,{strokeColor:"alert-main"}),(0,c.resolveValue)(e.message,e)]}),(0,a.jsx)("div",{className:"cursor-pointer",onClick:()=>c.default.remove(),children:(0,a.jsx)(N.WcQ,{strokeColor:"neutral-150"})})]})}),A?(0,a.jsx)(()=>
1(0,a.jsxs)(m.u_,{dismissible:!0,show:A,onClose:ee,size:"4xl",style:{height:"auto"},children:[(0,a.jsx)(m.u_.Header,{className:"border-none pb-0"}),(0,a.jsxs)(m.u_.Body,{className:"flex flex-col justify-center items-center m-auto",children:[(0,a.jsx)(N.X6q,{semantic:"h3",size:"lg-bold",additionalClassName:"flex justify-center !text-center !mb-[8px] ".concat(C()["form__modal-title"]),children:"Votre message a bien \xe9t\xe9 envoy\xe9 !"}),(0,a.jsxs)("p",{className:"rev-text-sm-normal text-center mb-[16px]",children:["Merci de nous avoir contact\xe9s. ",(0,a.jsx)("br",{}),"Nous reviendrons vers vous dans les plus brefs d\xe9lais."]}),(0,a.jsx)(N.zxk,{additionalClassName:"".concat(C()["form__modal-btn"]," ").concat(S===f.hd.cm?C()["form__cm-submit-btn"]:""),iconPosition:"none",label:"Revenir \xe0 l'accueil",size:"small",onClick:()=>Z.push(p.aI)})]}),(0,a.jsx)(m.u_.Footer,{className:"border-none pt-8"})]}),{}):null]})]})}},82906:function(e){e.exports={form__lp:"Form_form__lp__fCZOz",form__cm:"Form_form__cm__I1w55",form__mobile:"Form_form__mobile__tWYsk","form__cm-submit-btn":"Form_form__cm-submit-btn__MJ6gg","form__modal-title":"Form_form__modal-title__IZKAJ","form__modal-btn":"Form_form__modal-btn__oi6YZ"}}},function(e){e.O(0,[5445,6556,6815,1870,4874,9440,9935,5543,2888,9774,179],function(){return e(e.s=31276)}),_N_E=e.O()}]);

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.