(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[326],{887:function(t,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/artists",function(){return s(6034)}])},1851:function(t,e,s){"use strict";s.d(e,{k:function(){return o}});var n=s(5893);s(7294);var i=s(5052),r=s.n(i),l=s(2344),a=s(9583),c=s(4171);function o(t){let{src:e,className:s,Icon:i}=t;return i||(i=a.wEH),(0,n.jsxs)("div",{className:(0,c.cn)(r().image,s),children:[(0,n.jsx)("img",{src:(0,l.$G)(e),alt:""}),(0,n.jsx)(i,{})]})}},4872:function(t,e,s){"use strict";s.d(e,{b:function(){return f}});var n=s(5893),i=s(3521),r=s.n(i),l=s(1851),a=s(1664),c=s.n(a),o=s(4171),u=s(4657),d=s(8828);function m(t){let{item:e,link:s,itemToTags:i}=t,{logo:a,localized:o}=(0,u.p$)(e,{logo:!0,localized:!0}),m=i?i(e):[];return(0,n.jsx)("li",{className:r().item,children:(0,n.jsxs)(c(),{href:s(o.slug),children:[m.length>0&&(0,n.jsx)(d.$,{className:r().tags,tags:m,small:!0}),(0,n.jsx)(l.k,{src:a||"/images/logo.svg",className:r().image}),(0,n.jsx)("h3",{dangerouslySetInnerHTML:{__html:o.title}})]})})}function f(t){let{items:e,small:s,link:i,itemToTags:l}=t;return(0,n.jsx)("section",{className:(0,o.cn)(r().list,s&&r().small),children:(0,n.jsx)("ul",{children:e.map(t=>(0,n.jsx)(m,{item:t,link:i,itemToTags:l},t.id))})})}},8828:function(t,e,s){"use strict";s.d(e,{$:function(){return a}});var n=s(5893),i=s(2311),r=s.n(i),l=s(4171);function a(t){let{tags:e,className:s,small:i}=t;return(0,n.jsx)("ul",{className:(0,l.cn)(r().tags,s,i&&r().small),children:e.map((t,e)=>(0,n.jsx)("li",{className:t.highlight?r().highlight:void 0,children:t.children},e))})}},6034:function(t,e,s){"use strict";s.r(e),s.d(e,{__N_SSP:function(){return h},default:function(){return x}});var n=s(5893),i=s(8710),r=s.n(i),l=s(4872),a=s(8592),c=s(2783),o=s(7294),u=s(4849),d=s.n(u),m=s(1649),f=s(4171);function _(t,e){return(s,n)=>{var i,r;let l=(null===(i=s.localized.find(t=>t.locale===e))||void 0===i?void 0:i.title)||"",a=(null===(r=n.localized.find(t=>t.locale===e))||void 0===r?void 0:r.title)||"";return"name"===t[0]?"asc"===t[1]?l.localeCompare(a):a.localeCompare(l):"asc"===t[1]?new Date(n.created).getTime()-new Date(s.created).getTime():new Date(s.created).getTime()-new Date(n.created).getTime()}}function g(t){let{sorting:e,setSorting:s,className:i}=t,{t:r}=(0,a.Q)();return(0,n.jsxs)("div",{className:(0,f.cn)(d().sorter,i),children:[(0,n.jsxs)("span",{children:[r("Sort by"),":"]}),(0,n.jsx)("ul",{children:["name","date"].map(t=>(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:e[0]===t?d().active:"",onClick:n=>{n.preventDefault(),s([t,e[0]===t&&"asc"===e[1]?"desc":"asc"])},children:[r(t.charAt(0).toUpperCase()+t.slice(1)),e[0]===t&&("asc"===e[1]?(0,n.jsx)(m.Vmf,{}):(0,n.jsx)(m.OId,{}))]})},t))})]})}var h=!0,x=function(t){let{artists:e}=t,{t:s,locale:i}=(0,a.Q)(),[u,d]=(0,o.useState)(["name","asc"]),m=(0,o.useRef)();(0,o.useEffect)(()=>{m.current&&window.scrollTo(0,m.current)},[u]);let f=(0,n.jsx)(g,{sorting:u,setSorting:t=>{m.current=window.scrollY,d(t)},className:r().sorter});return(0,n.jsxs)("section",{className:"mw padded",children:[(0,n.jsxs)("h2",{className:r().sticky,style:{marginTop:20},children:[s("On demand"),f]}),(0,n.jsx)(l.b,{itemToTags:c.nT,link:t=>"/artist/".concat(t),items:e.filter(t=>t.fields.find(t=>"ontour"===t.field&&"true"===t.value)).sort(_(u,i))}),(0,n.jsxs)("h2",{className:r().sticky,children:[s("Co-production"),f]}),(0,n.jsx)(l.b,{itemToTags:c.nT,link:t=>"/artist/".concat(t),items:e.filter(t=>t.fields.find(t=>"coproduction"===t.field&&"true"===t.value)).sort(_(u,i))}),(0,n.jsxs)("h2",{className:r().sticky,children:[s("Past projects"),f]}),(0,n.jsx)(l.b,{itemToTags:c.nT,link:t=>"/artist/".concat(t),items:e.filter(t=>!t.fields.find(t=>"coproduction"===t.field&&"true"===t.value||"ontour"===t.field&&"true"===t.value)).sort(_(u,i)),small:!0})]})}},2344:function(t,e,s){"use strict";function n(){for(var t=arguments.length,e=Array(t),s=0;s<t;s++)e[s]=arguments[s];let n=e.join(" ");return n.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9_\-\. ]/g,"").replace(/\s+/g,"-")}function i(t){return t.startsWith("http")?t:t.replace(/contrib\//g,"https://www.collectifcoax.com/contrib/")}s.d(e,{$G:function(){return i},lV:function(){return n}})},5052:function(t){t.exports={image:"hover-image_image__FL9_R"}},4849:function(t){t.exports={sorter:"sorter_sorter__J3d2q",active:"sorter_active__7OUBL"}},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"}},2311:function(t){t.exports={tags:"tags_tags__b9ung",highlight:"tags_highlight__vXPu_",small:"tags_small__7w64U"}},8710:function(t){t.exports={sticky:"artists_sticky__BDu9p"}}},function(t){t.O(0,[774,888,179],function(){return t(t.s=887)}),_N_E=t.O()}]);