(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[623],{2052:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/archives",function(){return n(4934)}])},1851:function(t,e,n){"use strict";n.d(e,{k:function(){return c}});var i=n(5893);n(7294);var s=n(5052),l=n.n(s),a=n(2344),r=n(9583),o=n(4171);function c(t){let{src:e,className:n,Icon:s}=t;return s||(s=r.wEH),(0,i.jsxs)("div",{className:(0,o.cn)(l().image,n),children:[(0,i.jsx)("img",{src:(0,a.$G)(e),alt:""}),(0,i.jsx)(s,{})]})}},8142:function(t,e,n){"use strict";n.d(e,{XB:function(){return _},jf:function(){return f},lA:function(){return g}});var i=n(5893),s=n(9035),l=n.n(s),a=n(9090),r=n(2344),o=n(4171),c=n(4657),u=n(8227),d=n(4696),m=n(7294);function h(t){var e;let{item:n}=t,{logo:s,localized:a,fields:o,dates:u,t:d}=(0,c.p$)(n,{logo:!0,localized:!0,fields:!0,dates:!0}),m=(null===(e=u[0])||void 0===e?void 0:e.date)||new Date,h=d("Short Month "+m.getMonth());return(0,i.jsxs)("li",{className:l().item,children:[(0,i.jsx)("div",{className:l().image,children:(0,i.jsx)("img",{src:(0,r.$G)(s||"/images/logo.svg"),alt:""})}),(0,i.jsxs)("a",{className:l().date,href:o.link,target:"_blank",children:[(0,i.jsx)("span",{className:l().day,suppressHydrationWarning:!0,children:m.getDate()}),(0,i.jsx)("span",{className:l().month,suppressHydrationWarning:!0,children:h}),(0,i.jsx)("span",{className:l().year,suppressHydrationWarning:!0,children:m.getFullYear()})]}),(0,i.jsxs)("a",{className:l().content,href:o.link,children:[(0,i.jsx)("h3",{dangerouslySetInnerHTML:{__html:null==a?void 0:a.title}}),(null==o?void 0:o.location)&&(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:o.location}})]}),(null==o?void 0:o.link)&&(0,i.jsx)("a",{className:l().more,href:o.link,target:"_blank",children:d("Infos")})]},n.id)}function g(t){let{items:e,className:n,noReverse:s}=t,a=s?e:e.reverse();return(0,i.jsx)("section",{className:(0,o.cn)(l().list,n),children:(0,i.jsx)("ul",{children:a.map(t=>(0,i.jsx)(h,{item:t},t.id))})})}function _(t){let{content:e,className:n}=t,[s,a]=(0,m.useState)(6);return(0,i.jsx)(d.E,{className:(0,o.cn)(n,l().list),ItemComponent:h,items:e.sort((t,e)=>{var n,i;let s=new Date((null===(n=t.dates[0])||void 0===n?void 0:n.date)||0),l=new Date((null===(i=e.dates[0])||void 0===i?void 0:i.date)||0);return s.getTime()-l.getTime()}).slice(0,s),maxItems:e.length,onSeeMore:()=>{a(s+6)}})}function f(t){let{content:e,className:n,endDate:s,limit:r=6}=t;return(0,i.jsx)(a.A,{className:(0,o.cn)(l().list,n),ItemComponent:h,items:e.content,maxPage:e.pages-1,fetchPage:t=>(0,u.pb)({end:s,type:"event",limit:r,offset:t*r})})}},9090:function(t,e,n){"use strict";n.d(e,{A:function(){return a}});var i=n(5893),s=n(7294),l=n(4696);function a(t){let{items:e,fetchPage:n,maxPage:a,...r}=t,[o,c]=(0,s.useState)(e),[u,d]=(0,s.useState)(0),[m,h]=(0,s.useState)(a||0),[g,_]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{if(g){_(!1);return}n(u).then(t=>{c([...o,...t.content]),h(t.pages-1)})},[u]),(0,i.jsx)(l.E,{items:o,...r,onSeeMore:()=>d(u+1),maxItems:u!==m?void 0:o.length})}},4696:function(t,e,n){"use strict";n.d(e,{E:function(){return r}});var i=n(5893),s=n(6346),l=n.n(s),a=n(6965);function r(t){let{seeMoreButtonLabel:e="See more",tagName:n="ul",ItemComponent:s,items:r,onSeeMore:o,className:c,maxItems:u}=t;return(0,i.jsxs)("section",{className:c,children:[(0,i.jsx)(n,{children:r.map((t,e)=>(0,i.jsx)(s,{item:t},e))}),(!u||r.length<u)&&(0,i.jsx)(a.z,{className:l().button,onClick:o,tone:a.R.Outlined,children:e})]})}},333:function(t,e,n){"use strict";n.d(e,{s:function(){return h}});var i=n(5893),s=n(7294),l=n(4171),a=n(3399),r=n.n(a),o=n(1851),c=n(9583),u=n(1664),d=n.n(u),m=n(2537);function h(t){let{items:e,className:n,active:a,onActiveUpdate:u,withTitle:h,titleClassName:g}=t,[_,f]=(0,s.useState)(a||null),[x,p]=(0,s.useState)(6);(0,s.useEffect)(()=>{window.addEventListener("resize",t=>{p(Math.max(Math.min(5,Math.floor(window.innerWidth/200)),2))}),p(Math.max(Math.min(5,Math.floor(window.innerWidth/200)),2))},[]);let j=Array.from({length:Math.ceil(e.length/x)},(t,n)=>e.slice(n*x,n*x+x));return(0,i.jsx)("section",{className:(0,l.cn)(r().list,n),children:j.map((t,e)=>{let n=null!==_&&t.find(t=>t.id===_);return(0,i.jsxs)("div",{className:r().group,children:[(0,i.jsx)("ul",{className:"mw padded",style:{gridTemplateColumns:"repeat(".concat(x,", 1fr)")},children:t.map(t=>{let e=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.k,{src:t.logo||"/images/logo.svg",Icon:_===t.id?c.iFH:c.wEH,className:(0,l.cn)(r().image,_===t.id&&"is-active")}),h&&t.title&&(0,i.jsx)("span",{className:(0,l.cn)(r().title,g),children:t.title})]});return(0,i.jsx)("li",{className:(0,l.cn)(r().item),children:t.link?(0,i.jsx)(d(),{href:t.link,children:e}):(0,i.jsx)("button",{onClick:()=>{let e=_===t.id?null:t.id;f(e),u&&u(e)},children:e})},t.id)})}),n&&(0,i.jsx)("div",{className:r().content,children:"string"==typeof n.body?(0,i.jsx)("div",{className:"mw padded",children:(0,i.jsx)(m.H,{text:n.body})}):(0,i.jsx)("div",{className:"section",children:n.body})})]},e)})})}},4872:function(t,e,n){"use strict";n.d(e,{b:function(){return h}});var i=n(5893),s=n(3521),l=n.n(s),a=n(1851),r=n(1664),o=n.n(r),c=n(4171),u=n(4657),d=n(8828);function m(t){let{item:e,link:n,itemToTags:s}=t,{logo:r,localized:c}=(0,u.p$)(e,{logo:!0,localized:!0}),m=s?s(e):[];return(0,i.jsx)("li",{className:l().item,children:(0,i.jsxs)(o(),{href:n(c.slug),children:[m.length>0&&(0,i.jsx)(d.$,{className:l().tags,tags:m,small:!0}),(0,i.jsx)(a.k,{src:r||"/images/logo.svg",className:l().image}),(0,i.jsx)("h3",{dangerouslySetInnerHTML:{__html:c.title}})]})})}function h(t){let{items:e,small:n,link:s,itemToTags:a}=t;return(0,i.jsx)("section",{className:(0,c.cn)(l().list,n&&l().small),children:(0,i.jsx)("ul",{children:e.map(t=>(0,i.jsx)(m,{item:t,link:s,itemToTags:a},t.id))})})}},568:function(t,e,n){"use strict";n.d(e,{Q:function(){return g}});var i=n(5893),s=n(9850),l=n.n(s);function a(t){let{videoId:e}=t;return(0,i.jsx)("iframe",{id:"ytplayer",width:"750px",height:"440px",style:{margin:"20px"},src:"https://www.youtube.com/embed/".concat(e,"?autoplay=1"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}var r=n(7294),o=n(4480),c=n(7436),u=n(6922),d=n(1174);let m=t=>(0,u.S)(d.GN.playlist,{params:{playlistId:t}});var h=n(34);function g(t){let{playlistId:e}=t,[n,s]=(0,r.useState)(),u=(0,o.Zl)(c.h);return(0,r.useEffect)(()=>{m(e).then(t=>s(t))},[e]),console.log(n),n?(0,i.jsx)("ul",{className:l().playlist,children:n.map(t=>(0,i.jsx)("li",{className:l().item,children:(0,i.jsx)("button",{onClick:()=>u((0,i.jsx)(a,{videoId:t.videoId})),children:(0,i.jsx)("img",{src:t.thumbnail,alt:""})})},t.videoId))}):(0,i.jsx)(h.a,{})}},2537:function(t,e,n){"use strict";n.d(e,{H:function(){return c}});var i=n(5893),s=n(7294),l=n(18),a=n.n(l),r=n(3935),o=n(568);function c(t){let{text:e}=t,n=(0,s.useRef)(null),[l,c]=(0,s.useState)([]);return(0,s.useEffect)(()=>{var t;let e=Array.from((null===(t=n.current)||void 0===t?void 0:t.querySelectorAll("[data-playlistId]"))||[]);c(e)},[e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a().text,ref:n,dangerouslySetInnerHTML:{__html:e||""}}),l.map(t=>r.createPortal((0,i.jsx)(o.Q,{playlistId:t.getAttribute("data-playlistId")}),t.getElementsByClassName("playlist-content")[0]))]})}},8828:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});var i=n(5893),s=n(2311),l=n.n(s),a=n(4171);function r(t){let{tags:e,className:n,small:s}=t;return(0,i.jsx)("ul",{className:(0,a.cn)(l().tags,n,s&&l().small),children:e.map((t,e)=>(0,i.jsx)("li",{className:t.highlight?l().highlight:void 0,children:t.children},e))})}},4934:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return h},default:function(){return g}});var i=n(5893),s=n(333),l=n(8142),a=n(4872),r=n(8320),o=n.n(r),c=n(4657);function u(t){let{items:e}=t,n=(0,c.mx)(e||[],{logo:!0,localized:!0});return(0,i.jsx)(s.s,{items:n.map(t=>({id:t.id,title:t.localized.title,logo:t.logo,body:t.localized.body})),className:o().list})}var d=n(8592),m=n(2783),h=!0,g=function(t){var e,n;let{agenda:r,artists:o,archives:c,configuration:h}=t,{t:g}=(0,d.Q)();return(0,i.jsxs)("section",{children:[(0,i.jsx)("h1",{className:"mw padded",children:"Archives"}),(0,i.jsx)(s.s,{withTitle:!0,items:[{id:0,title:g("Agenda"),logo:null===(e=h.assets.find(t=>"logo-archive-agenda"===t.type))||void 0===e?void 0:e.asset.url,body:(0,i.jsx)(l.jf,{content:r,endDate:new Date,limit:20})},{id:1,title:g("Catalog"),logo:null===(n=h.assets.find(t=>"logo-archive-catalog"===t.type))||void 0===n?void 0:n.asset.url,body:(0,i.jsx)(a.b,{link:t=>"/artist/".concat(t),itemToTags:m.nT,items:o.filter(t=>!t.fields.find(t=>"ontour"===t.field&&"true"===t.value)&&!t.fields.find(t=>"coproduction"===t.field&&"true"===t.value)),small:!0})}]}),(0,i.jsx)(u,{items:c})]})}},2344:function(t,e,n){"use strict";function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let i=e.join(" ");return i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9_\-\. ]/g,"").replace(/\s+/g,"-")}function s(t){return t.startsWith("http")?t:t.replace(/contrib\//g,"https://www.collectifcoax.com/contrib/")}n.d(e,{$G:function(){return s},lV:function(){return i}})},5052:function(t){t.exports={image:"hover-image_image__FL9_R"}},9035:function(t){t.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"}},8320:function(t){t.exports={list:"archive-list_list__DvEZn",item:"archive-list_item__zlun_"}},6346:function(t){t.exports={button:"see-more-list_button__iuRSN"}},3399:function(t){t.exports={list:"square-list-with-content_list__s5BDp",group:"square-list-with-content_group__UM8bq",item:"square-list-with-content_item__QfcH4",title:"square-list-with-content_title__nB4wn",content:"square-list-with-content_content__PCim1"}},3521:function(t){t.exports={list:"square-list_list__ojbAD",small:"square-list_small__AlR4t",item:"square-list_item__8RSl8",tags:"square-list_tags__YOJFq"}},9850:function(t){t.exports={playlist:"youtube-list_playlist__Kw5og",item:"youtube-list_item__hNn3N"}},18:function(t){t.exports={text:"rich-text_text__3JyQS"}},2311:function(t){t.exports={tags:"tags_tags__b9ung",highlight:"tags_highlight__vXPu_",small:"tags_small__7w64U"}}},function(t){t.O(0,[774,888,179],function(){return t(t.s=2052)}),_N_E=t.O()}]);