1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[396],{5239:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/agenda",function(){return l(6937)}])},2989:function(e,t,l){"use strict";var s=l(1527),a=l(2274);l(959);var n=l(4648),r=l(4391);let i=e=>{let{posts:t}=e;return(0,s.jsx)(a.Z,{children:(0,s.jsxs)("div",{className:"flex flex-col my-16 lg:my-24",children:[(0,s.jsx)("h2",{className:"text-coral font-bold text-[22px] lg:text-[30px] mb-8",children:"Les articles les plus lus"}),(0,s.jsx)("div",{className:"flex justify-start gap-x-4 flex-wrap",children:t.map((e,t)=>{let{post:l}=e;return(0,s.jsx)(n.Z,{...l,variant:(0,r.Z)(t),isSlider:!1},l.slug)})})]})})};t.Z=i},4648:function(e,t,l){"use strict";var s=l(1527);l(959);var a=l(108),n=l(4151),r=l.n(n),i=l(7841),c=l.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"}},d=e=>{let{categories:t,featuredImage:l,title:n,slug:i,variant:d,isSlider:x=!0,dragging:u=!1}=e;return(0,s.jsxs)("div",{className:"flex flex-col justify-between h-[370px] mx-2 ".concat(x&&"px-8"," ").concat(!x&&"w-full lg:w-[calc((100%-48px)/4)] mb-10 mx-0"),children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)(c(),{href:"/".concat(i),className:"relative xl:w-100 xl:h-[206px] w-full h-[170px]",onClick:e=>u&&e.preventDefault(),children:[(0,s.jsx)("div",{className:"absolute w-full h-full bg-black"}),l&&(0,s.jsx)(r(),{src:l.node.sourceUrl,alt:l.node.altText,fill:!0,className:"object-cover hover:opacity-60 transition-all duration-500"})]}),(0,s.jsx)("p",{className:"font-bold ".concat(o.textColor[d]," 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,s.jsx)("p",{className:"text-base font-bold",children:n})]}),(0,s.jsx)(a.Z,{text:"Lire l'article",link:"/".concat(i),variant:"orange",isBold:!0,className:"w-fit ".concat(o.backgroundColor[d]," ").concat(o.hoverColor[d])})]})};t.Z=d},8128:function(e,t,l){"use strict";var s=l(1527),a=l(7841),n=l.n(a),r=l(2274),i=l(6873),c=l(7206),o=l(5421),d=l(57);let x=e=>e?e.charAt(0).toUpperCase()+e.slice(1):e,u=e=>{let{title:t,variant:l="default"}=e,a=(0,i.useRouter)(),u=a.asPath,h="primary"===l?"text-coral":"text-bodyA99",m=u.split("?")[0].split("/").filter(Boolean),p=[{name:"Accueil",url:"".concat(d._O,"/")}];return m.length>1&&p.push({name:x(decodeURIComponent(m[0])),url:"".concat(d._O,"/").concat(m[0])}),p.push({name:t,url:m.length?"".concat(d._O,"/").concat(m.join("/")):"".concat(d._O,"/")}),(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(c.Z,{data:(0,o.ij)(p)}),(0,s.jsx)("p",{className:"".concat("primary"===l?"text-poisedPeach":"text-bodyA69"," text-base font-adrianna font-light mb-5"),children:(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:(0,s.jsx)(n(),{href:"/",className:h,children:"Accueil"})}),"\xa0\xbb\xa0",u.split("/").length>2&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:(0,s.jsx)(n(),{href:"/".concat(u.split("/")[1]),className:"".concat(h," capitalize"),children:u.split("/")[1]})}),"\xa0\xbb\xa0"]}),(0,s.jsx)("span",{"aria-current":"page",children:t})]})})]})};t.Z=u},2763:function(e,t,l){"use strict";var s=l(1527),a=l(959),n=l(7575),r=l(2274),i=l(108),c=l(1773),o=l(1721),d=l(7841),x=l.n(d),u=l(961),h=l(7309),m=l(2972),p=l(6709),f=l(7208),g=l(1481),v=l(5018);let j=e=>{if(e instanceof Date){let t=new Date(e.getFullYear(),e.getMonth()+1);return new Intl.DateTimeFormat("fr-FR",{month:"long"}).format(t)}},b=e=>{if(e instanceof Date){let t=new Date(e.getFullYear(),e.getMonth()-1);return new Intl.DateTimeFormat("fr-FR",{month:"long"}).format(t)}},y=(e,t)=>{let l=(0,u.Z)(e,"d LLLL yyyy",new Date,{locale:h.Z}),s=t.filter(e=>"multiple"===e.eventsFields.dateType).some(e=>e.eventsFields.dates.some(e=>{let{date:t}=e,s=(0,u.Z)(t,"dd/MM/yyyy",new Date);return(0,p.Z)(l,s)}));return!!s||t.filter(e=>"range"===e.eventsFields.dateType).some(e=>{let{startDate:t,endDate:s}=e.eventsFields.dateRange,a=(0,u.Z)(t,"dd/MM/yyyy",new Date),n=(0,u.Z)(s,"dd/MM/yyyy",new Date);return(0,f.Z)(l,(0,v.Z)(a,-1))&&(0,g.Z)(l,(0,v.Z)(n,1))})},N=(e,t)=>{let l=t.filter(e=>"multiple"===e.eventsFields.dateType).filter(t=>t.eventsFields.dates.find(t=>{let{date:l}=t,s=(0,u.Z)(l,"dd/MM/yyyy",new Date);return(0,p.Z)(e,s)})),s=t.filter(e=>"range"===e.eventsFields.dateType).filter(t=>{let{startDate:l,endDate:s}=t.eventsFields.dateRange,a=(0,u.Z)(l,"dd/MM/yyyy",new Date),n=(0,u.Z)(s,"dd/MM/yyyy",new Date);return(0,f.Z)(e,(0,v.Z)(a,-1))&&(0,g.Z)(e,(0,v.Z)(n,1))});return[...l,...s]}
1,Z=e=>{let{data:t,isHomepage:l=!0}=e,d=(0,c.Z)(),u=a.createRef(),p=a.useRef(null),f=new Date,[g,v]=(0,a.useState)(f),[Z,w]=(0,a.useState)([]),[L,_]=(0,a.useState)(f),[P,F]=(0,a.useState)(b(f)),[D,k]=(0,a.useState)(j(f)),M=e=>{let{activeStartDate:t}=e;_(t)};(0,a.useEffect)(()=>{k(j(L)),F(b(L))},[L]),(0,a.useEffect)(()=>{let e=document.querySelectorAll(".react-calendar__month-view__days abbr");e.forEach(e=>{y(e.ariaLabel,t)&&e.classList.add("has-event")})},[t,L]);let T=a.useRef(!1);return(0,a.useEffect)(()=>{if(w(N(g,t)),T.current&&!d&&l&&p.current){let e=p.current.offsetTop;window.scrollTo({top:e-200,behavior:"smooth"})}},[g,t,d,l]),(0,s.jsxs)(r.Z,{variant:"full",children:[(0,s.jsxs)("div",{className:" ".concat(l&&"bg-blue lg:after:w-1/2 lg:after:block lg:after:absolute lg:after:left-0 lg:after:h-[350%] lg:after:-z-20 lg:after:bg-lightPink"," relative -z-10"),children:[l&&(0,s.jsx)("div",{className:"w-full -z-10 bg-blue h-[300px] lg:h-[500px] top-0 block absolute left-0 overflow-hidden",children:d&&(0,s.jsx)("img",{src:"/svg/hpthread1.svg",alt:"hpthread1",className:"right-0 absolute top-0"})}),(0,s.jsx)("div",{className:"p-3 lg:pb-14",children:l?(0,s.jsxs)(r.Z,{children:[(0,s.jsxs)("div",{className:"mt-6 lg:mt-20 relative",children:[d&&(0,s.jsx)("img",{src:"/svg/hpsvg1.svg",alt:"hpsvg1",className:"absolute -top-16 -left-10 h-[50px]"}),(0,s.jsx)("h2",{className:"text-[28px] lg:text-[80px] font-semibold text-poisedPeach",children:"Agenda"})]}),(0,s.jsx)("p",{className:"text-white mt-6 lg:text-[24px] lg:mt-10 lg:mb-14",children:"Les \xe9v\xe9nements \xe0 ne pas manquer"}),d&&(0,s.jsx)(i.Z,{text:"Tous les \xe9v\xe9nements",link:"/agenda",variant:"poisedPeach"})]}):(0,s.jsx)(r.Z,{children:(0,s.jsx)("h1",{className:"text-body lg:mt-8 text-[28px] lg:text-[51px] lg:leading-4 ",children:"Agenda : les \xe9v\xe9nements \xe0 ne pas manquer \xe0 Lyon"})})})]}),(0,s.jsx)(r.Z,{children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row lg:pb-10 md:justify-between",children:[(0,s.jsx)("div",{id:"custom-event-agenda",ref:p,className:"mb-8 m-2 lg:m-0 md:mb-0 lg:w-[50%] md:w-7/12 relative ".concat(d&&!l&&o.Pi.pink),children:(0,s.jsx)(n.ZP,{onChange:e=>{T.current=!0,v(e)},value:g,locale:"fr-FR",next2Label:null,nextLabel:"".concat(D," >"),prevLabel:"< ".concat(P),prev2Label:null,onActiveStartDateChange:M,ref:u})}),(0,s.jsxs)("div",{className:"m-2 lg:m-0 relative bg-white p-3 px-8 lg:px-12 border border-lightPoisedPeach flex flex-col pb-6 ".concat({true:"lg:w-[50%]",false:"lg:w-[46%]"}[l.toString()]," md:w-5/12 md:pb-0 ").concat(d&&!l&&o.Pi.blue),children:[(0,s.jsxs)("h3",{className:"text-center text-[20px] my-6 mt-12 font-semibold",children:["\xc9v\xe9nement(s) du"," ",(0,m.Z)(g,"d LLLL",{locale:h.Z})]}),0===Z.length?(0,s.jsx)("p",{className:"border-t-2 border-t-lightPink flex flex-col gap-2 py-6 pl-4 hover:bg-orange hover:text-white transition-all duration-300",children:"Aucun \xe9v\xe9nement"}):Z.map((e,t)=>(0,s.jsxs)(x(),{href:"/agenda/".concat(e.slug),className:"border-t-2 border-t-lightPink flex flex-col gap-2 py-6 pl-4 hover:bg-orange hover:text-white transition-all duration-300",children:[(0,s.jsx)("h4",{className:"font-semibold",children:e.title}),(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:e.eventsFields.eventPlace}})]},e.slug))]})]})}),!d&&(0,s.jsx)("div",{className:"flex w-full justify-center mt-10",children:(0,s.jsx)(i.Z,{text:"Tous les \xe9v\xe9nements",link:"/agenda",variant:"poisedPeach",isBold:!0})})]})};t.Z=Z},6937:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return f},default:function(){return g}});var s=l(1527),a=l(2989),n=l(8128),r=l(2274),i=l(2763),c=l(6103),o=l(8564),d=l(7206),x=l(7841),u=l.n(x),h=l(3079),m=l(5421);let p=e=>{let{events:t}=e;return(null==t?void 0:t.length)?(0,s.jsx)("section",{"aria-labelledby":"prochains-evenements",children:(0,s.jsxs)(r.Z,{children:[(0,s.jsx)("h2",{id:"prochains-evenements",className:"text-[22px] md:text-[32px] font-bold mt-10 mb-6",children:"Prochains \xe9v\xe9nements \xe0 Lyon"}),(0,s.jsx)("ul",{className:"flex flex-col divide-y divide-lightPink",children:t.map(e=>{var t,l,a;let n=(0,m.t2)(e),r=(0,h.Z)(null==e?void 0:null===(t=e.eventsFields)||void 0===t?void 0:t.eventPlace);return(0,s.jsxs)("li",{className:"py-5",children:[(0,s.jsx)(u(),{href:"/agenda/".concat(e.slug),className:"group",children:(0,s.jsx)("h3",{className:"text-[18px] md:text-[22px] font-semibold group-hover:text-coral",children:e.title})}),(0,s.jsxs)("dl",{className:"mt-2 text-sm text-bodyA99 flex flex-col gap-1",children:[(null==e?void 0:null===(l=e.eventsFields)||void 0===l?void 0:l.displayDate)&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("dt",{className:"font-semibold",children:"Date"}),(0,s.jsx)("dd",{children:(0,s.jsx)("time",{dateTime:n||void 0,children:e.eventsFields.displayDate})})]}),r&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("dt",{className:"font-semibold",children:"Lieu"}),(0,s.jsx)("dd",{children:r})]}),(null==e?void 0:null===(a=e.eventsFields)||void 0===a?void 0:a.price)&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("dt",{className:"font-semibold",children:"Prix"}),(0,s.jsx)("dd",{children:e.eventsFields.price})]})]})]},e.slug)})})]})}):null};l(959);var f=!0;function g(e){let{agendaData:t,popularPosts:l,upcomingEvents:x}=e;return t?(0,s.jsxs)(c.Z,{preview:!1,children:[(0,s.jsx)(o.Z,{title:"Agenda des sorties \xe0 Lyon ⢠Inside Lyon",description:"L'agenda des \xe9v\xe9nements \xe0 ne pas manquer \xe0 Lyon : concerts, expositions, festivals, sorties et bons plans, mis \xe0 jour r\xe9guli\xe8rement par Inside Lyon."}),(0,s.jsx)(d.Z,{data:(0,m.uM)(x)}),(0,s.jsx)("div",{className:"lg:mt-20",children:(0,s.jsx)(r.Z,{children:(0,s.jsx)(n.Z,{title:"Agenda",variant:"default"})})}),(0,s.jsx)(i.Z,{data:t.events.nodes,isHomepage:!1}),(0,s.jsx)(p,{events:x}),(0,s.jsx)(a.Z,{posts:l})]}):null}},4391:function(e,t){"use strict";let l=e=>e%3==0?"primary":e%3==1?"secondary":e%3==2?"tertiary":void 0;t.Z=l}},function(e){e.O(0,[219,292,607,379,774,888,179],function(){return e(e.s=5239)}),_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.