1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[327],{8104:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/inscription-newsletter",function(){return s(27)}])},4648:function(e,t,s){"use strict";var a=s(1527);s(959);var l=s(108),r=s(4151),n=s.n(r),i=s(7841),c=s.n(i);let o={backgroundColor:{primary:"bg-poisedPeach",secondary:"bg-blue",tertiary:"bg-orange"},hoverColor:{primary:"hover:bg-coral",secondary:"hover:bg-orange",tertiary:"hover:bg-poisedPeach"},textColor:{primary:"text-poisedPeach",secondary:"text-blue",tertiary:"text-orange"}},x=e=>{let{categories:t,featuredImage:s,title:r,slug:i,variant:x,isSlider:d=!0,dragging:u=!1}=e;return(0,a.jsxs)("div",{className:"flex flex-col justify-between h-[370px] mx-2 ".concat(d&&"px-8"," ").concat(!d&&"w-full lg:w-[calc((100%-48px)/4)] mb-10 mx-0"),children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)(c(),{href:"/".concat(i),className:"relative xl:w-100 xl:h-[206px] w-full h-[170px]",onClick:e=>u&&e.preventDefault(),children:[(0,a.jsx)("div",{className:"absolute w-full h-full bg-black"}),s&&(0,a.jsx)(n(),{src:s.node.sourceUrl,alt:s.node.altText,fill:!0,className:"object-cover hover:opacity-60 transition-all duration-500"})]}),(0,a.jsx)("p",{className:"font-bold ".concat(o.textColor[x]," text-xl mt-2"),children:t.edges.filter(e=>{let{node:t}=e;return"a-la-une"!==t.slug}).map(e=>{let{node:t}=e;return t.name}).join(", ")}),(0,a.jsx)("p",{className:"text-base font-bold",children:r})]}),(0,a.jsx)(l.Z,{text:"Lire l'article",link:"/".concat(i),variant:"orange",isBold:!0,className:"w-fit ".concat(o.backgroundColor[x]," ").concat(o.hoverColor[x])})]})};t.Z=x},8516:function(e,t,s){"use strict";var a=s(1527),l=s(2274);s(959);var r=s(4648),n=s(4391);let i=e=>{let{posts:t}=e;return(0,a.jsx)(l.Z,{children:(0,a.jsxs)("div",{className:"flex flex-col lg:my-24",children:[(0,a.jsx)("h2",{className:"text-coral font-bold tracking-[1px] [word-spacing:0.2em] lg:[word-spacing:0em] text-[22px] lg:text-[34px] lg:tracking-normal mb-8 lg:mb-14",children:"Les articles les plus lus"}),(0,a.jsx)("div",{className:"flex justify-between flex-wrap",children:t.map((e,t)=>{let{post:s}=e;return(0,a.jsx)(r.Z,{...s,variant:(0,n.Z)(t),isSlider:!1},s.slug)})})]})})};t.Z=i},8128:function(e,t,s){"use strict";var a=s(1527),l=s(7841),r=s.n(l),n=s(2274),i=s(6873),c=s(7206),o=s(5421),x=s(57);let d=e=>e?e.charAt(0).toUpperCase()+e.slice(1):e,u=e=>{let{title:t,variant:s="default"}=e,l=(0,i.useRouter)(),u=l.asPath,p="primary"===s?"text-coral":"text-bodyA99",m=u.split("?")[0].split("/").filter(Boolean),g=[{name:"Accueil",url:"".concat(x._O,"/")}];return m.length>1&&g.push({name:d(decodeURIComponent(m[0])),url:"".concat(x._O,"/").concat(m[0])}),g.push({name:t,url:m.length?"".concat(x._O,"/").concat(m.join("/")):"".concat(x._O,"/")}),(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(c.Z,{data:(0,o.ij)(g)}),(0,a.jsx)("p",{className:"".concat("primary"===s?"text-poisedPeach":"text-bodyA69"," text-base font-adrianna font-light mb-5"),children:(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{children:(0,a.jsx)(r(),{href:"/",className:p,children:"Accueil"})}),"\xa0\xbb\xa0",u.split("/").length>2&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:(0,a.jsx)(r(),{href:"/".concat(u.split("/")[1]),className:"".concat(p," capitalize"),children:u.split("/")[1]})}),"\xa0\xbb\xa0"]}),(0,a.jsx)("span",{"aria-current":"page",children:t})]})})]})};t.Z=u},27:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return g},default:function(){return h}});var a=s(1527),l=s(6103),r=s(2274),n=s(4151),i=s.n(n),c=s(1773),o=s(8128),x=s(8516),d=s(959),u=s(3648),p=s(3234),m=s(8564),g=!0;function h(e){let{data:t,preview:s,popularPosts:n}=e,g=(0,c.Z)(),[h,f]=(0,d.useState)(""),[b,v]=(0,d.useState)(!1),[j,y]=(0,d.useState)(void 0),N=async e=>{e.preventDefault(),h||y({isSuccess:!1,message:"Veuillez indiquer une adresse email valide."}),v(!0),y(void 0);let{response:t}=await fetch("/api/zoho/subscribe",{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify({email:h})}).then(e=>e.json()).then(e=>e).catch(()=>({response:{code:"network_error"}}));if(v(!1),!t.code){y({isSuccess:!0,message:"Un e-mail de confirmation vous a \xe9t\xe9 envoy\xe9. Veuillez cliquer sur le lien pour valider votre inscription."}),f("");return}
1switch(t.code){case"invalid_parameter":y({isSuccess:!1,message:"L'adresse email saisie est invalide."});break;case"no_email_provided":y({isSuccess:!1,message:"Veuillez indiquer une adresse email valide."});break;case"already_subscribed":y({isSuccess:!1,message:"Cette adresse e-mail est d\xe9j\xe0 inscrite \xe0 la newsletter."});break;case"too_many_requests":y({isSuccess:!1,message:"Un e-mail de confirmation vous a d\xe9j\xe0 \xe9t\xe9 envoy\xe9. Veuillez r\xe9essayer plus tard."});break;case"already_unsubscribed":y({isSuccess:!1,message:"Cette adresse s'est d\xe9sinscrite de la newsletter. Veuillez nous contacter pour vous r\xe9inscrire."});break;default:y({isSuccess:!1,message:"Une erreur est survenue. Veuillez r\xe9essayer."})}};return(0,a.jsxs)(l.Z,{preview:s,children:[(0,a.jsx)(m.Z,{title:t.page.seo.title,description:t.page.seo.metaDesc,image:t.page.featuredImage.node.sourceUrl}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)(o.Z,{title:t.page.title,variant:"default"})}),(0,a.jsxs)(r.Z,{children:[(0,a.jsx)("h1",{className:"text-[28px] text-body md:text-[52px] font-semibold my-10 leading-tight lg:my-10 lg:hidden",children:t.page.title}),(0,a.jsxs)("div",{className:"lg:flex lg:flex-row lg:w-full lg:justify-center",children:[(0,a.jsxs)("div",{className:"relative mb-10",children:[(0,a.jsx)(i(),{alt:"scotch",src:"/img/scotch1.webp",height:41,width:98,className:"mx-auto -mb-5 z-10 relative"}),(0,a.jsx)(i(),{alt:"contact-image",className:"m-auto block relative align-middle lg:align-start",src:t.page.featuredImage.node.sourceUrl,width:g?448:252,height:g?548:308}),(0,a.jsx)("p",{className:"bg-blue font-magicline text-coral pl-2 pr-4 text-[22px] lg:text-[45px] lg:pt-[13px] lg:pb-[10px] lg:px-[16px] z-10 absolute left-[25px] top-[90px] lg:top-[150px] lg:-left-[70px]",children:"\xc0 bient\xf4t"})]}),(0,a.jsx)("img",{src:"/svg/404loop.svg",alt:"thread",className:"absolute hidden lg:block -z-10 right-0 top-[250px]"}),(0,a.jsx)("img",{src:"/svg/hp-une.svg",alt:"thread",className:"absolute rotate-[9deg] w-[182px] -z-10 -left-[103px] top-[690px] lg:top-[650px] lg:left-[50px]"}),(0,a.jsxs)("div",{className:"lg:max-w-[472px] lg:ml-[50px]",children:[(0,a.jsx)("p",{className:"hidden lg:block text-body md:text-[52px] font-semibold my-10 leading-tight lg:my-10",children:"La newsletter"}),(0,a.jsx)("p",{className:"text-[16px] lg:text-[18px] mb-[35px] lg:mb-[50px]",children:"Chaque mois, on vous envoie notre s\xe9lection des meilleures adresses, marques et id\xe9es dâactivit\xe9s de Lyon."}),(0,a.jsxs)("form",{onSubmit:N,children:[(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("label",{className:"font-semibold",children:"Votre adresse e-mail pr\xe9f\xe9r\xe9e*"}),(0,a.jsx)("input",{className:"mt-[10px] px-[16px] py-[8px] lg:block border-body border rounded-[10px] w-[290px] h-[46px] drop-shadow-[0px_4px_4px_rgba(0,0,0,0.18)]",type:"email",required:!0,value:h,onChange:e=>f(e.target.value)})]}),(0,a.jsx)("p",{children:"* champ obligatoire"}),(0,a.jsxs)("button",{type:"submit",className:"flex items-center gap-2 transition my-[20px] lg:my-[50px] py-3 px-9 text-base ease font-adrianna rounded-3xl font-semibold bg-orange hover:bg-pink text-white font-semibold",children:[b&&(0,a.jsx)(u.fCD,{className:"animate-spin inline"}),"S'inscrire"]})]}),j&&(0,a.jsxs)("div",{className:"text-black text-sm flex items-center gap-1 mt-2",children:[j.isSuccess?(0,a.jsx)(p.bzc,{className:"text-lg"}):(0,a.jsx)(p.oHP,{className:"text-lg"}),(0,a.jsx)("p",{children:j.message})]})]})]})]}),(0,a.jsx)("div",{className:"mb-20 lg:mb-[150px]"}),(0,a.jsx)(r.Z,{variant:g?"default":"full",children:(0,a.jsx)(x.Z,{posts:n})}),(0,a.jsx)("div",{className:"mb-20 lg:mb-[150px]"})]})}},4391:function(e,t){"use strict";let s=e=>e%3==0?"primary":e%3==1?"secondary":e%3==2?"tertiary":void 0;t.Z=s},847:function(e,t,s){"use strict";s.d(t,{w_:function(){return c}});var a=s(959),l={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=a.createContext&&a.createContext(l),n=function(){return(n=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++)for(var l in t=arguments[s])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},i=function(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)0>t.indexOf(a[l])&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(s[a[l]]=e[a[l]]);return s};function c(e){return function(t){return a.createElement(o,n({attr:n({},e.attr)},t),function e(t){return t&&t.map(function(t,s){return a.createElement(t.tag,n({key:s},t.attr),e(t.child))})}(e.child))}}function o(e){var t=function(t){var s,l=e.attr,r=e.size,c=e.title,o=i(e,["attr","size","title"]),x=r||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),a.createElement("svg",n({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},t.attr,l,o,{className:s,style:n(n({color:e.color||t.color},t.style),e.style),height:x,width:x,xmlns:"http://www.w3.org/2000/svg"}),c&&a.createElement("title",null,c),e.children)};return void 0!==r?a.createElement(r.Consumer,null,function(e){return t(e)}):t(l)}}},function(e){e.O(0,[219,292,379,774,888,179],function(){return e(e.s=8104)}),_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.