(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(9638)}])},1851:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var s=n(5893);n(7294);var i=n(5052),a=n.n(i),r=n(2344),l=n(9583),o=n(4171);function c(e){let{src:t,className:n,Icon:i}=e;return i||(i=l.wEH),(0,s.jsxs)("div",{className:(0,o.cn)(a().image,n),children:[(0,s.jsx)("img",{src:(0,r.$G)(t),alt:""}),(0,s.jsx)(i,{})]})}},8142:function(e,t,n){"use strict";n.d(t,{XB:function(){return f},jf:function(){return h},lA:function(){return g}});var s=n(5893),i=n(9035),a=n.n(i),r=n(9090),l=n(2344),o=n(4171),c=n(4657),u=n(8227),d=n(4696),m=n(7294);function _(e){var t;let{item:n}=e,{logo:i,localized:r,fields:o,dates:u,t:d}=(0,c.p$)(n,{logo:!0,localized:!0,fields:!0,dates:!0}),m=(null===(t=u[0])||void 0===t?void 0:t.date)||new Date,_=d("Short Month "+m.getMonth());return(0,s.jsxs)("li",{className:a().item,children:[(0,s.jsx)("div",{className:a().image,children:(0,s.jsx)("img",{src:(0,l.$G)(i||"/images/logo.svg"),alt:""})}),(0,s.jsxs)("a",{className:a().date,href:o.link,target:"_blank",children:[(0,s.jsx)("span",{className:a().day,suppressHydrationWarning:!0,children:m.getDate()}),(0,s.jsx)("span",{className:a().month,suppressHydrationWarning:!0,children:_}),(0,s.jsx)("span",{className:a().year,suppressHydrationWarning:!0,children:m.getFullYear()})]}),(0,s.jsxs)("a",{className:a().content,href:o.link,children:[(0,s.jsx)("h3",{dangerouslySetInnerHTML:{__html:null==r?void 0:r.title}}),(null==o?void 0:o.location)&&(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:o.location}})]}),(null==o?void 0:o.link)&&(0,s.jsx)("a",{className:a().more,href:o.link,target:"_blank",children:d("Infos")})]},n.id)}function g(e){let{items:t,className:n,noReverse:i}=e,r=i?t:t.reverse();return(0,s.jsx)("section",{className:(0,o.cn)(a().list,n),children:(0,s.jsx)("ul",{children:r.map(e=>(0,s.jsx)(_,{item:e},e.id))})})}function f(e){let{content:t,className:n}=e,[i,r]=(0,m.useState)(6);return(0,s.jsx)(d.E,{className:(0,o.cn)(n,a().list),ItemComponent:_,items:t.sort((e,t)=>{var n,s;let i=new Date((null===(n=e.dates[0])||void 0===n?void 0:n.date)||0),a=new Date((null===(s=t.dates[0])||void 0===s?void 0:s.date)||0);return i.getTime()-a.getTime()}).slice(0,i),maxItems:t.length,onSeeMore:()=>{r(i+6)}})}function h(e){let{content:t,className:n,endDate:i,limit:l=6}=e;return(0,s.jsx)(r.A,{className:(0,o.cn)(a().list,n),ItemComponent:_,items:t.content,maxPage:t.pages-1,fetchPage:e=>(0,u.pb)({end:i,type:"event",limit:l,offset:e*l})})}},9090:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var s=n(5893),i=n(7294),a=n(4696);function r(e){let{items:t,fetchPage:n,maxPage:r,...l}=e,[o,c]=(0,i.useState)(t),[u,d]=(0,i.useState)(0),[m,_]=(0,i.useState)(r||0),[g,f]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{if(g){f(!1);return}n(u).then(e=>{c([...o,...e.content]),_(e.pages-1)})},[u]),(0,s.jsx)(a.E,{items:o,...l,onSeeMore:()=>d(u+1),maxItems:u!==m?void 0:o.length})}},4696:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var s=n(5893),i=n(6346),a=n.n(i),r=n(6965);function l(e){let{seeMoreButtonLabel:t="See more",tagName:n="ul",ItemComponent:i,items:l,onSeeMore:o,className:c,maxItems:u}=e;return(0,s.jsxs)("section",{className:c,children:[(0,s.jsx)(n,{children:l.map((e,t)=>(0,s.jsx)(i,{item:e},t))}),(!u||l.length<u)&&(0,s.jsx)(r.z,{className:a().button,onClick:o,tone:r.R.Outlined,children:t})]})}},9638:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w},default:function(){return S}});var s=n(5893),i=n(9442),a=n.n(i),r=n(1707),l=n.n(r),o=n(9090),c=n(1664),u=n.n(c),d=n(8592),m=n(9583),_=n(4171),g=n(1851),f=n(8227),h=n(4657);function x(e){let{item:t}=e,{logo:n,localized:i}=(0,h.p$)(t,{logo:!0,localized:!0});return(0,s.jsx)("li",{className:l().item,children:(0,s.jsxs)(u(),{href:"/article/".concat(i.slug),children:[(0,s.jsx)(g.k,{src:n||"/images/logo.svg",className:l().image}),(0,s.jsxs)("div",{className:l().content,children:[(0,s.jsx)("h3",{dangerouslySetInnerHTML:{__html:i.title}}),(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:i.description||""}})]}),(0,s.jsx)(m.wEH,{})]})},t.id)}function p(e){let{response:t}=e,{t:n}=(0,d.Q)();return(0,s.jsx)(o.A,{className:(0,_.cn)(l().list,"section"),ItemComponent:x,items:t.content,maxPage:t.pages-1,fetchPage:e=>(0,f.i6)({limit:6,offset:6*e,type:"article"}),seeMoreButtonLabel:n("Previous articles")})}var j=n(8142),v=n(3822),N=n(6893),w=!0,S=function(e){let{articles:t,agenda:n}=e,{locale:i}=(0,d.Q)();return(0,s.jsxs)("div",{className:a().home,children:[(0,s.jsx)(v.Cf,{className:a().slider,maxSlides:1,moveSlides:1,infinite:!0,overflow:!1,auto:4e3,pager:!0,prev:(0,s.jsx)(N.aiR,{}),next:(0,s.jsx)(N.O3L,{}),children:t.content.map(e=>{let t=(0,h.Oz)(e,{cover:!0,localized:!0},i);return(0,s.jsxs)(u(),{href:"/article/".concat(t.localized.slug),children:[(0,s.jsx)("img",{src:t.cover||"",alt:""}),(0,s.jsx)("h2",{children:t.localized.title})]},t.id)})}),(0,s.jsxs)("main",{className:"mw padded",children:[(0,s.jsx)(p,{response:t}),(0,s.jsx)(j.XB,{className:a().agenda,content:n})]})]})}},2344:function(e,t,n){"use strict";function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let s=t.join(" ");return s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9_\-\. ]/g,"").replace(/\s+/g,"-")}function i(e){return e.startsWith("http")?e:e.replace(/contrib\//g,"https://www.collectifcoax.com/contrib/")}n.d(t,{$G:function(){return i},lV:function(){return s}})},5052:function(e){e.exports={image:"hover-image_image__FL9_R"}},9035:function(e){e.exports={list:"agenda-list_list__wbOfB",item:"agenda-list_item__wxMpW",content:"agenda-list_content__jpIoV",date:"agenda-list_date__TzS3n",more:"agenda-list_more__m5doz",day:"agenda-list_day__YjCaM",month:"agenda-list_month__xwy6r",year:"agenda-list_year__DXNeS",image:"agenda-list_image__Go7RD"}},1707:function(e){e.exports={list:"news-list_list__9sxrJ",item:"news-list_item__dheLu",content:"news-list_content__NW0IA",image:"news-list_image__iFNYL"}},6346:function(e){e.exports={button:"see-more-list_button__iuRSN"}},9442:function(e){e.exports={home:"articles_home__lHPuK",agenda:"articles_agenda__ITt4u",slider:"articles_slider__wVC7r"}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=8312)}),_N_E=e.O()}]);