(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[612],{2445:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/label/[[...slug]]",function(){return n(9693)}])},4230:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var l=n(1163),i=n(8592),r=n(2783);let a=(e,t)=>(0,r.lx)(e,t)||e.localized[0];function s(e){var t;let{query:n,push:r}=(0,l.useRouter)(),{locale:s}=(0,i.Q)(),c=Array.isArray(n.slug)&&n.slug[0]?null===(t=e.find(e=>a(e,s).slug.replace(/-+/g,"-")===n.slug[0].replace(/-+/g,"-")))||void 0===t?void 0:t.id:void 0;return{active:c,push:r,findSlug:t=>{let n=null;if("number"==typeof t){let i=e.find(e=>e.id===t);if(i){var l;n=(null===(l=a(i,s))||void 0===l?void 0:l.slug)||null}}return n}}}},1851:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var l=n(5893);n(7294);var i=n(5052),r=n.n(i),a=n(2344),s=n(9583),c=n(4171);function o(e){let{src:t,className:n,Icon:i}=e;return i||(i=s.wEH),(0,l.jsxs)("div",{className:(0,c.cn)(r().image,n),children:[(0,l.jsx)("img",{src:(0,a.$G)(t),alt:""}),(0,l.jsx)(i,{})]})}},333:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var l=n(5893),i=n(7294),r=n(4171),a=n(3399),s=n.n(a),c=n(1851),o=n(9583),u=n(1664),d=n.n(u),f=n(2537);function m(e){let{items:t,className:n,active:a,onActiveUpdate:u,withTitle:m,titleClassName:p}=e,[h,x]=(0,i.useState)(a||null),[_,g]=(0,i.useState)(6);(0,i.useEffect)(()=>{window.addEventListener("resize",e=>{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 b=Array.from({length:Math.ceil(t.length/_)},(e,n)=>t.slice(n*_,n*_+_));return(0,l.jsx)("section",{className:(0,r.cn)(s().list,n),children:b.map((e,t)=>{let n=null!==h&&e.find(e=>e.id===h);return(0,l.jsxs)("div",{className:s().group,children:[(0,l.jsx)("ul",{className:"mw padded",style:{gridTemplateColumns:"repeat(".concat(_,", 1fr)")},children:e.map(e=>{let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.k,{src:e.logo||"/images/logo.svg",Icon:h===e.id?o.iFH:o.wEH,className:(0,r.cn)(s().image,h===e.id&&"is-active")}),m&&e.title&&(0,l.jsx)("span",{className:(0,r.cn)(s().title,p),children:e.title})]});return(0,l.jsx)("li",{className:(0,r.cn)(s().item),children:e.link?(0,l.jsx)(d(),{href:e.link,children:t}):(0,l.jsx)("button",{onClick:()=>{let t=h===e.id?null:e.id;x(t),u&&u(t)},children:t})},e.id)})}),n&&(0,l.jsx)("div",{className:s().content,children:"string"==typeof n.body?(0,l.jsx)("div",{className:"mw padded",children:(0,l.jsx)(f.H,{text:n.body})}):(0,l.jsx)("div",{className:"section",children:n.body})})]},t)})})}},568:function(e,t,n){"use strict";n.d(t,{Q:function(){return p}});var l=n(5893),i=n(9850),r=n.n(i);function a(e){let{videoId:t}=e;return(0,l.jsx)("iframe",{id:"ytplayer",width:"750px",height:"440px",style:{margin:"20px"},src:"https://www.youtube.com/embed/".concat(t,"?autoplay=1"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}var s=n(7294),c=n(4480),o=n(7436),u=n(6922),d=n(1174);let f=e=>(0,u.S)(d.GN.playlist,{params:{playlistId:e}});var m=n(34);function p(e){let{playlistId:t}=e,[n,i]=(0,s.useState)(),u=(0,c.Zl)(o.h);return(0,s.useEffect)(()=>{f(t).then(e=>i(e))},[t]),console.log(n),n?(0,l.jsx)("ul",{className:r().playlist,children:n.map(e=>(0,l.jsx)("li",{className:r().item,children:(0,l.jsx)("button",{onClick:()=>u((0,l.jsx)(a,{videoId:e.videoId})),children:(0,l.jsx)("img",{src:e.thumbnail,alt:""})})},e.videoId))}):(0,l.jsx)(m.a,{})}},2537:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var l=n(5893),i=n(7294),r=n(18),a=n.n(r),s=n(3935),c=n(568);function o(e){let{text:t}=e,n=(0,i.useRef)(null),[r,o]=(0,i.useState)([]);return(0,i.useEffect)(()=>{var e;let t=Array.from((null===(e=n.current)||void 0===e?void 0:e.querySelectorAll("[data-playlistId]"))||[]);o(t)},[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:a().text,ref:n,dangerouslySetInnerHTML:{__html:t||""}}),r.map(e=>s.createPortal((0,l.jsx)(c.Q,{playlistId:e.getAttribute("data-playlistId")}),e.getElementsByClassName("playlist-content")[0]))]})}},9693:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return f},default:function(){return m}});var l=n(5893),i=n(4469),r=n.n(i),a=n(4230),s=n(4657),c=n(8592),o=n(333),u=n(2537);function d(e){let{id:t,url:n,children:i}=e;return(0,l.jsx)("iframe",{className:"bandcamp-iframe",style:{border:0,width:"100%",height:472},src:"https://bandcamp.com/EmbeddedPlayer/album=".concat(t,"/size=large/bgcol=ffffff/linkcol=ff99cb/tracklist=true/artwork=small/transparent=true/"),seamless:!0,children:(0,l.jsxs)("a",{href:n,children:["$",i]})})}var f=!0,m=function(e){let{labelEntries:t,configuration:n}=e,{t:i}=(0,c.Q)(),{active:f,findSlug:m,push:p}=(0,a.r)(t),h=(0,s.mx)(t||[],{logo:!0,localized:!0,fields:!0});return(0,l.jsxs)("section",{className:"section",children:[(0,l.jsx)("h1",{className:"mw padded",children:i("Label")}),n.bandcamp&&(0,l.jsx)("p",{className:[r().intro,"mw padded"].join(" "),dangerouslySetInnerHTML:{__html:i("Find our full catalogue on Coax Records").replace("Coax Records",'<a href="'.concat(n.bandcamp,'" target="_blank">Coax Records</a>'))}}),(0,l.jsx)(o.s,{active:f,onActiveUpdate:e=>{let t=m(e);p(t?"/label/".concat(t):"/label",void 0,{shallow:!0})},items:h.map(e=>{var t,n;let a=e.localized.body||"";return(null===(t=e.fields)||void 0===t?void 0:t.bandcampUrl)&&(a+="<br/><a class=".concat(r().buy,' href="').concat(e.fields.bandcampUrl,'" target="_blank">').concat(i("Buy / Listen"),"</a>")),{id:e.id,title:e.localized.title,logo:e.logo,body:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.H,{text:a}),(null===(n=e.fields)||void 0===n?void 0:n.bandcampId)&&(0,l.jsx)(d,{id:e.fields.bandcampId,url:e.fields.bandcampUrl})]})}})})]})}},2344:function(e,t,n){"use strict";function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let l=t.join(" ");return l.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 l}})},5052:function(e){e.exports={image:"hover-image_image__FL9_R"}},3399:function(e){e.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(e){e.exports={playlist:"youtube-list_playlist__Kw5og",item:"youtube-list_item__hNn3N"}},18:function(e){e.exports={text:"rich-text_text__3JyQS"}},4469:function(e){e.exports={buy:"label_buy__ZM6EL",intro:"label_intro__es3Ww"}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=2445)}),_N_E=e.O()}]);