PageSourceSearch

https://o1015.ca/_next/static/chunks/pages/contact-4ee994a0c1beaf0a.js

js o1015.ca collected 2026-10-04 19:34:40 UTC 6,892 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{3328:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(6881)}])},4650:function(e,s,a){"use strict";a.d(s,{Z:function(){return l}});var n=a(5893),r=a(7536),i=a(7294),c=a(5082),t=a(4390);function l(){let{register:e,handleSubmit:s,reset:a,setValue:l,formState:{errors:d}}=(0,r.cI)(),[m,o]=(0,i.useState)(null),p=async e=>{let s=await (0,t.R)("/api/subscribe",e);o(s.message),s.success&&a()};return(0,n.jsx)("form",{onSubmit:s(p),children:(0,n.jsxs)(c.Z,{register:e,setValue:l,children:[(0,n.jsxs)("div",{className:"arsenal-input-wrapper",children:[(0,n.jsx)("input",{className:"arsenal-input",placeholder:"Email",...e("email",{required:"Ce champ est obligatoire",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Ce champ est non valide."}})}),d.email&&(0,n.jsx)("span",{className:"error-message",children:d.email.message})]}),(0,n.jsx)("div",{className:"arsenal-input-wrapper",children:(0,n.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,n.jsx)("input",{className:"arsenal-button bc-primary-2 cl-primary-4 hov-bc-primary-1",type:"submit",value:"Je m'abonne"}),!!m&&(0,n.jsx)("p",{className:"text-xs opacity-75",children:m})]})})]})})}},5082:function(e,s,a){"use strict";var n=a(5893),r=a(7294),i=a(259);s.Z=e=>{let{register:s,setValue:a,children:c}=e;return(0,r.useEffect)(()=>{s("captchaToken",{required:!0})},[s,a]),(0,n.jsxs)(i.pm,{reCaptchaKey:"6Lfce54qAAAAAPQLfSM_9zrDyLcH6Z2FdRlP2bpz",children:[c,(0,n.jsx)(i.mP,{onVerify:e=>{a("captchaToken",e)}})]})}},1909:function(e,s,a){"use strict";a.d(s,{Z:function(){return r}});var n=a(5893);function r(e){let{className:s}=e;return(0,n.jsx)("div",{className:s,children:(0,n.jsx)("div",{"data-m32-ad":!0,"data-options":'{"sizes":"[[300,250]]","dfpId":"21658289790,21814714300","dfpAdUnitPath":"'.concat("o1015",'"}')})})}},6881:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSG:function(){return x},default:function(){return j}});var n=a(5893),r=a(9996),i=a(1909),c=a(4650),t=a(7536),l=a(7294),d=a(5082),m=a(4390);function o(){let{register:e,handleSubmit:s,reset:a,setValue:r,formState:{errors:i}}=(0,t.cI)(),[c,o]=(0,l.useState)(null),p=async e=>{let s=await (0,m.R)("/api/send",{...e,template:"contact"});o(s.message),s.success&&a()};return(0,n.jsx)("form",{onSubmit:s(p),children:(0,n.jsxs)(d.Z,{register:e,setValue:r,children:[(0,n.jsxs)("div",{className:"arsenal-input-wrapper",children:[(0,n.jsx)("input",{className:"arsenal-input",placeholder:"Nom",...e("fname",{required:!0})}),i.fname&&(0,n.jsx)("span",{className:"error-message",children:"Ce champ est obligatoire"})]}),(0,n.jsxs)("div",{className:"arsenal-input-wrapper",children:[(0,n.jsx)("input",{className:"arsenal-input",placeholder:"Nom de famille",...e("lname",{required:!0})}),i.lname&&(0,n.jsx)("span",{className:"error-message",children:"Ce champ est obligatoire"})]}),(0,n.jsxs)("div",{className:"arsenal-input-wrapper",children:[(0,n.jsx)("input",{className:"arsenal-input",placeholder:"Email",...e("email",{required:"Ce champ est obligatoire",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Ce champ est non valide."}})}),i.email&&(0,n.jsx)("span",{className:"error-message",children:i.email.message})]}),(0,n.jsxs)("div",{className:"arsenal-input-wrapper",children:[(0,n.jsx)("textarea",{className:"arsenal-input",placeholder:"message",...e("message",{required:!0}),rows:10}),i.message&&(0,n.jsx)("span",{className:"error-message",children:"Ce champ est obligatoire"}),(0,n.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,n.jsx)("input",{className:"arsenal-button arsenal-button-auto bc-primary-2 cl-primary-4 hov-bc-primary-1",type:"submit",value:"Envoyer"}),!!c&&(0,n.jsx)("p",{className:"text-xs opacity-75",children:c})]})]})]})})}var p=a(9238),u=a.n(p),h=a(4155),x=!0;function j(e){let{contactData:s,settings:a,preview:t,configData:l}=e,d={title:"Nous joindre - ".concat("O"," ").concat("101,5"," ").concat("Beauce"),description:"Nous joindre - ".concat("O"," ").concat("101,5"," ").concat("Beauce")};return(0,n.jsxs)(r.Z,{preview:t,settings:a,meta:d,configData:l,children:[(0,n.jsx)("section",{className:"",children:(0,n.jsxs)("div",{className:"inner
1-wrapper px-5 py-8 md:pt-12 md:pb-16 md:flex md:space-x-24",children:[(0,n.jsx)("div",{className:"md:w-2/3 mb-5 md:mb-0",children:s&&s.map((e,s)=>(0,n.jsxs)("div",{className:"mb-8",children:[!!e.iframe_link&&(0,n.jsx)("iframe",{className:"w-full grayscale h-[350px]",src:e.iframe_link,width:"600",height:"450",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"}),(0,n.jsxs)("div",{className:"lg:flex lg:space-x-8 mt-5",children:[(0,n.jsxs)("h1",{className:"section__title leading-none w-full mb-5 lg:w-1/3  lg:mb-0",children:[(0,n.jsx)("span",{className:"text-capitalize",children:"O"})," ",(0,n.jsx)("br",{})," ",e.siteName]}),(0,n.jsxs)("div",{className:"grid md:grid-cols-2 gap-y-4 gap-x-8 w-full lg:w-2/3 text-[12px]",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:u().sanitize(e.address)}}),(0,n.jsx)("a",{href:"tel:".concat(e.phone),children:e.phone})]}),(0,n.jsxs)("div",{children:[!!e.studio&&(0,n.jsxs)("p",{className:"mb-1",children:["Ligne studio :"," ",(0,n.jsx)("a",{href:"tel:".concat(e.studio),children:e.studio})]}
1),!!e.textoSms&&(0,n.jsxs)("p",{children:["Texto / SMS :"," ",(0,n.jsx)("a",{href:"tel:".concat(e.textoSms),children:e.textoSms})]})]}),(0,n.jsxs)("div",{className:"md:col-span-2",children:[!!e.newsServices&&(0,n.jsxs)("p",{className:"mb-1",children:["Service des nouvelles :"," ",(0,n.jsx)("a",{href:"tel:".concat(e.newsServices),children:e.newsServices})]}),!!e.generalInfo&&(0,n.jsxs)("p",{children:["Informations g\xe9n\xe9rales / publicit\xe9s :"," ",(0,n.jsx)("a",{href:"tel:".concat(e.generalInfo),children:e.generalInfo})]})]})]})]})]},s))}),"TRUE"!==h.env.NEXT_PUBLIC_HIDE_NEWSLETTER&&(0,n.jsxs)("div",{className:"md:w-1/3",children:[(0,n.jsxs)("h3",{className:"section__title mb-6",children:["Abonne-toi \xe0 l'infolettre et re\xe7ois les nouvelles de"," ","O","!"]}),(0,n.jsx)(c.Z,{})]})]})}),(0,n.jsx)("section",{className:"",children:(0,n.jsxs)("div",{className:"inner-wrapper px-5 pt-8 pb-16 md:flex md:space-x-12",children:[(0,n.jsxs)("div",{className:"md:w-2/3 mb-5 md:mb-0",children:[(0,n.jsx)("h2",{className:"section__title mb-6",children:"Nous \xe9crire"}),(0,n.jsx)(o,{})]}),(0,n.jsx)("div",{className:"md:w-1/3",children:(0,n.jsx)(i.Z,{className:"mt-12 w-full px-5"})})]})})]})}},4390:function(e,s,a){"use strict";a.d(s,{R:function(){return n}});let n=async(e,s)=>{try{let a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});return await a.json()}catch(e){return{success:!1,message:"\xc9chec de l'envoi du courriel..."}}}}},function(e){e.O(0,[962,238,570,996,888,774,179],function(){return e(e.s=3328)}),_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.