(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[361],{1645:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/media",function(){return i(1858)}])},1851:function(t,e,i){"use strict";i.d(e,{k:function(){return o}});var n=i(5893);i(7294);var l=i(5052),s=i.n(l),r=i(2344),a=i(9583),c=i(4171);function o(t){let{src:e,className:i,Icon:l}=t;return l||(l=a.wEH),(0,n.jsxs)("div",{className:(0,c.cn)(s().image,i),children:[(0,n.jsx)("img",{src:(0,r.$G)(e),alt:""}),(0,n.jsx)(l,{})]})}},333:function(t,e,i){"use strict";i.d(e,{s:function(){return f}});var n=i(5893),l=i(7294),s=i(4171),r=i(3399),a=i.n(r),c=i(1851),o=i(9583),u=i(1664),d=i.n(u),m=i(2537);function f(t){let{items:e,className:i,active:r,onActiveUpdate:u,withTitle:f,titleClassName:h}=t,[p,x]=(0,l.useState)(r||null),[_,g]=(0,l.useState)(6);(0,l.useEffect)(()=>{window.addEventListener("resize",t=>{g(Math.max(Math.min(5,Math.floor(window.innerWidth/200)),2))}),g(Math.max(Math.min(5,Math.floor(window.innerWidth/200)),2))},[]);let w=Array.from({length:Math.ceil(e.length/_)},(t,i)=>e.slice(i*_,i*_+_));return(0,n.jsx)("section",{className:(0,s.cn)(a().list,i),children:w.map((t,e)=>{let i=null!==p&&t.find(t=>t.id===p);return(0,n.jsxs)("div",{className:a().group,children:[(0,n.jsx)("ul",{className:"mw padded",style:{gridTemplateColumns:"repeat(".concat(_,", 1fr)")},children:t.map(t=>{let e=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.k,{src:t.logo||"/images/logo.svg",Icon:p===t.id?o.iFH:o.wEH,className:(0,s.cn)(a().image,p===t.id&&"is-active")}),f&&t.title&&(0,n.jsx)("span",{className:(0,s.cn)(a().title,h),children:t.title})]});return(0,n.jsx)("li",{className:(0,s.cn)(a().item),children:t.link?(0,n.jsx)(d(),{href:t.link,children:e}):(0,n.jsx)("button",{onClick:()=>{let e=p===t.id?null:t.id;x(e),u&&u(e)},children:e})},t.id)})}),i&&(0,n.jsx)("div",{className:a().content,children:"string"==typeof i.body?(0,n.jsx)("div",{className:"mw padded",children:(0,n.jsx)(m.H,{text:i.body})}):(0,n.jsx)("div",{className:"section",children:i.body})})]},e)})})}},568:function(t,e,i){"use strict";i.d(e,{Q:function(){return h}});var n=i(5893),l=i(9850),s=i.n(l);function r(t){let{videoId:e}=t;return(0,n.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 a=i(7294),c=i(4480),o=i(7436),u=i(6922),d=i(1174);let m=t=>(0,u.S)(d.GN.playlist,{params:{playlistId:t}});var f=i(34);function h(t){let{playlistId:e}=t,[i,l]=(0,a.useState)(),u=(0,c.Zl)(o.h);return(0,a.useEffect)(()=>{m(e).then(t=>l(t))},[e]),console.log(i),i?(0,n.jsx)("ul",{className:s().playlist,children:i.map(t=>(0,n.jsx)("li",{className:s().item,children:(0,n.jsx)("button",{onClick:()=>u((0,n.jsx)(r,{videoId:t.videoId})),children:(0,n.jsx)("img",{src:t.thumbnail,alt:""})})},t.videoId))}):(0,n.jsx)(f.a,{})}},2537:function(t,e,i){"use strict";i.d(e,{H:function(){return o}});var n=i(5893),l=i(7294),s=i(18),r=i.n(s),a=i(3935),c=i(568);function o(t){let{text:e}=t,i=(0,l.useRef)(null),[s,o]=(0,l.useState)([]);return(0,l.useEffect)(()=>{var t;let e=Array.from((null===(t=i.current)||void 0===t?void 0:t.querySelectorAll("[data-playlistId]"))||[]);o(e)},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:r().text,ref:i,dangerouslySetInnerHTML:{__html:e||""}}),s.map(t=>a.createPortal((0,n.jsx)(c.Q,{playlistId:t.getAttribute("data-playlistId")}),t.getElementsByClassName("playlist-content")[0]))]})}},1858:function(t,e,i){"use strict";i.r(e),i.d(e,{__N_SSP:function(){return u},default:function(){return d}});var n=i(5893),l=i(1574),s=i.n(l),r=i(333),a=i(4657);function c(t){let{className:e,items:i}=t,l=(0,a.mx)(i||[],{logo:!0,localized:!0,fields:!0});return(0,n.jsx)(r.s,{withTitle:!0,titleClassName:s().title,items:l.map(t=>({id:t.id,title:t.localized.title,logo:t.logo,body:t.localized.body,link:t.fields.link})),className:e})}var o=i(8592),u=!0,d=function(t){let{medias:e}=t,i=e.filter(t=>t.fields.find(t=>"category"===t.field&&"video"===t.value)),l=e.filter(t=>t.fields.find(t=>"category"===t.field&&"audio"===t.value)),{t:s}=(0,o.Q)();return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mw padded",style:{paddingTop:20},children:s("Videos")}),(0,n.jsx)(c,{items:i}),(0,n.jsx)("h2",{className:"mw padded",children:s("Audio")}),(0,n.jsx)(c,{items:l})]})}},2344:function(t,e,i){"use strict";function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let n=e.join(" ");return n.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9_\-\. ]/g,"").replace(/\s+/g,"-")}function l(t){return t.startsWith("http")?t:t.replace(/contrib\//g,"https://www.collectifcoax.com/contrib/")}i.d(e,{$G:function(){return l},lV:function(){return n}})},5052:function(t){t.exports={image:"hover-image_image__FL9_R"}},1574:function(t){t.exports={title:"media-list_title__KVUaY"}},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"}},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"}}},function(t){t.O(0,[774,888,179],function(){return t(t.s=1645)}),_N_E=t.O()}]);