PageSourceSearch

https://www.intotheopen.eu/_next/static/chunks/pages/[slug]-badf1b21d494cbc8.js

js intotheopen.eu collected 2026-09-30 10:03:40 UTC 15,158 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[219],{5332:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]",function(){return n(2863)}])},2863:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return h},default:function(){return _slug_}});var r=n(5893),s=n(7294),l=n(3634),c=n(1163),i=n(4933),o=n(5491);function EventItem(e){let{content:t,color1:n,color2:s,currentEvent:l,setCurrentEvent:i,currentFestival:a,setCurrentFestival:u,linkList:d,index:m}=e,{locale:v}=(0,c.useRouter)(),f={en:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],de:["So","Mo","Di","Mi","Do","Fr","Sa"]};return(0,r.jsx)("article",{className:"event event--event-list event--".concat(m),style:{color:n},id:t.slug,children:(0,r.jsx)("nav",{className:"event__event-nav",children:(0,r.jsx)("li",{style:{borderTop:"solid 0px",color:n},className:"events__event",children:(0,r.jsx)("article",{className:"event__items",children:(0,r.jsx)(o.Z,{event:t,color1:n,color2:s,type:"event",currentEvent:l,setCurrentEvent:i,currentFestival:a,setCurrentFestival:u,parentSlug:"",day:(e=>{let t=e.split("-"),n=new Date(t[0],t[1]-1,t[2].split(" ")[0]);return f[v][n.getDay()]})(t.content.starting_date),date:(e=>{let t=e.split("-");return"".concat(t[2].split(" ")[0],".").concat(t[1],".").concat(t[0].replace("20",""))})(t.content.starting_date),time:""!==t.content.starting_time?t.content.starting_time:t.content.starting_date.split(" ")[1],offset:(e=>{let t=e.split("-"),n=new Date(t[0],t[1]-1,t[2].split(" ")[0]),r=-(n.getTimezoneOffset()/60);return Number(r)})(t.content.starting_date),singleItem:!0,linkList:d})})})})})}var a=n(6579);function EventList(e){let{events:t,currentEvent:n,currentFestival:l,setCurrentEvent:i,setCurrentFestival:o,eventFilters:u,tags:d,linkList:m}=e,[v,f]=(0,s.useState)(t),{locale:g}=(0,c.useRouter)(),returnTags=e=>{let t=e.content.starting_date.split("-")[0];return[...e.content.type,...e.content.genres,...e.content.place,...e.content.category,t]};(0,s.useEffect)(()=>{let e=[];for(let t=0;t<5;t++)for(let n=0;n<u[t].content.length;n++)!0===u[t].content[n].selected&&e.push(u[t].content[n]);if(0===e.length)f(t);else{let n=[];for(let r=0;r<t.length;r++){let s={...t[r]};if(s.content.single_displayed){let t=!1,r=returnTags(s);for(let n=0;n<r.length;n++)for(let s=0;s<e.length;s++)e[s].id===r[n].uuid&&(t=!0),e[s].name===r[n]&&(t=!0);!0===t&&n.push(s)}else{let t=[];for(let n=0;n<s.content.events.length;n++){let r=!1,l={...s.content.events[n]},c=returnTags(l);for(let t=0;t<c.length;t++)for(let n=0;n<e.length;n++)e[n].id===c[t]&&(r=!0),e[n].name===c[t]&&(r=!0);!0===r&&t.push(l)}if(t.length>0){let e={...s};e.content.events=t,n.push(e)}}}f(n)}},[u,t]);let isFuture=e=>{if(!e)return!0;{let t=e.split("-"),n=new Date(t[0],t[1]-1,t[2].split(" ")[0],t[2].split(" ")[1].split(":")[0],t[2].split(" ")[1].split(":")[1]),r=Date.now();return n.getTime()>r}};return(0,r.jsxs)("div",{className:"content content--events",children:[[...v.filter(e=>!0===isFuture(e.content.finishing_date||e.content.ending_time))].reverse().map((e,t)=>{var s,c,u,v;return e.content.single_displayed?(0,r.jsx)(EventItem,{content:e,color1:(null===(u=e.content.color_1)||void 0===u?void 0:u.color)||"black",color2:(null===(v=e.content.color_2)||void 0===v?void 0:v.color)||"#7e7e7e",type:"event",festival:e,currentEvent:n,currentFestival:l,setCurrentEvent:i,setCurrentFestival:o,linkList:m,index:t},"event--".concat(t)):(0,r.jsx)(a.Z,{content:e.content.events,color1:(null===(s=e.content.color_1)||void 0===s?void 0:s.color)||"black",color2:(null===(c=e.content.color_2)||void 0===c?void 0:c.color)||"#7e7e7e",festival:e,currentEvent:n,currentFestival:l,setCurrentEvent:i,setCurrentFestival:o,tags:d,linkList:m,index:t,festivalIsFuture:!0},"festival--".concat(t))}),v.length>0?(0,r.jsx)("div",{className:"events__banner",children:{en:"Past Events",de:"Vergangene Veranstaltungen"}[g]}):(0,r.jsx)("div",{className:"events__empty",children:(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:{en:"The filters you have selected don't match any event.<br/>Please try selecting other filters.",de:"Die von Ihnen ausgew\xe4hlten Filter stimmen mit keinem Ereignis \xfcberein.<br/>Bitte versuchen Sie, andere Filter auszuw\xe4hlen."}[g]}})}),v.filter(e=>!1===isFuture(e.content.finishing_date||e.content.ending_time)).map((e,t)=>e.content.single_displayed?(0,r.jsx)(EventItem,{content:e,color1:e.content.color_1.color||"black",color2:e.content.color_2.color||"#7e7e7e",type:"event",festival:e,currentEvent:n,currentFestival:l,setCurrentEvent:i,setCurrentFestival:o,linkList:m},"event--".concat(t)):(0,r.jsx)(a.Z,{content:e.content.events,color1:e.content.color_1.color,color2:e.content.color_2.color,festival:e,currentEvent:n,currentFestival:l,setCurrentEvent:i,setCurrentFestival:o,tags:d,linkList:m,festivalIsFuture:!1},"festival--".concat(t)))]})}var u=n(2841),d=n.n(u),m=n(3375);function EventFilters(e){let{eventFilters:t,setEventFilters:n}=e,changeSelection=(e,r,s)=>{let l=[...t];l[r].content[s].selected=!e.selected,n(l)},clearAll=()=>{let e=[...t];for(let t=0;t<e.length;t++)for(let n=0;n<e[t].content.length;n++)e[t].content[n].selected=!1;n([...e])},{locale:l}=(0,c.useRouter)(),[i,o]=d()(0),[a,u,v]=d()(!1),f=(0,s.useRef)(),g=(0,s.useRef)(),h=(0,s.useRef)(),adaptHeight=()=>{g.current&&clearTimeout(g.current),h.current&&clearTimeout(h.current),f.current&&(g.current=setTimeout(()=>{f.current&&(o(0),h.current=setTimeout(()=>
1o(f.current.scrollHeight),10))},100))};(0,s.useEffect)(()=>(adaptHeight(),window.addEventListener("resize",adaptHeight),()=>window.removeEventListener("resize",adaptHeight)),[f]);let[_,p]=d()([]);return(0,s.useEffect)(()=>{console.log("eventFilters",t);let e=[];for(let n=0;n<5;n++)for(let r=0;r<t[n].content.length;r++)!0===t[n].content[r].selected&&e.push(t[n].content[r]);p([...e])},[t]),(0,r.jsxs)("div",{className:"filters ".concat(a?"filters--open":"filters--closed"),onClick:()=>u(e=>!e),children:[(0,r.jsx)("h3",{children:{en:"Filters",de:"Filter"}[l]}),(0,r.jsx)("div",{className:"filters__selected",children:_.map((e,t)=>(0,r.jsx)("li",{className:"filters__list__items",children:e.name},"eventfiltersselected--".concat(t)))}),(0,r.jsx)("ul",{style:{height:a?"".concat(i,"px"):0},ref:f,className:"filters__wrapper",children:t.map((e,t)=>(0,r.jsxs)("li",{className:"filters__list",children:[(0,r.jsx)("h4",{children:e.nameSing}),(0,r.jsx)("ul",{className:"filters__list__items",children:e.content.map((e,n)=>(0,r.jsx)("li",{className:"filters__list__items ".concat(e.selected?"filters__list__items--selected":""),onClick:r=>{r.stopPropagation(),changeSelection(e,t,n)},children:e.name},"eventfilters--".concat(t,"--").concat(n)))})]},"eventfilters--".concat(t)))}),(0,r.jsx)("button",{onClick:e=>{e.stopPropagation(),clearAll()},children:"Clear all"}),(0,r.jsx)("button",{className:"filters__close",onClick:e=>{e.stopPropagation(),u(!1)},children:(0,r.jsx)(m.Z,{text:"",color:"black"})})]})}var v=n(7964),f=n(9601),g=n(5614);function ArtistItem(e){let{artist:t,color1:n,color2:l,currentArtist:i,setCurrentArtist:o,linkList:a,open:u}=e,m=(0,c.useRouter)(),[h,_]=d()(0),[p,x,j]=d()(!1),y=(0,s.useRef)(),k=(0,s.useRef)(),E=(0,s.useRef)(),adaptHeight=()=>{k.current&&clearTimeout(k.current),E.current&&clearTimeout(E.current),p?(_("fit-content"),E.current=setTimeout(()=>_("".concat(y.current.scrollHeight,"px")),1e3)):y.current&&(k.current=setTimeout(()=>{y.current&&(_(0),E.current=setTimeout(()=>_("".concat(y.current.scrollHeight,"px")),100))},100))};(0,s.useEffect)(()=>{adaptHeight(),window.addEventListener("resize",adaptHeight)},[y]);let openSection=e=>{if(!u){if(!0===e){o(t.slug);let e="".concat("de"===m.locale?"de/":"","artists"),n={artist:t.slug};m.push({pathname:e,query:n},void 0,{shallow:!0})}else{o("");let e="".concat("de"===m.locale?"de/":"","artists");m.push({pathname:e,query:{}},void 0,{shallow:!0}),x(!1)}}};(0,s.useEffect)(()=>{u?x(!0):i===t.slug?x(!0):x(!1)},[i]);let[N,w]=d()(!1);return(0,r.jsx)("article",{className:"artist__item ".concat(p?"artist--section--open":"artist--section--closed"),onClick:()=>openSection(!0),id:t.slug,children:(0,r.jsxs)("div",{className:"artist__info",children:[!u&&(0,r.jsx)("div",{className:"artist__close--hover",onClick:e=>{e.stopPropagation(),openSection(!1)},onMouseOver:()=>w(!0),onMouseOut:()=>w(!1)}),(0,r.jsxs)("h2",{children:[t.content.first_name," ",t.content.name,(0,r.jsx)("span",{children:t.content.role})]}),p&&!u&&(0,r.jsx)("button",{className:"artist__info__close",children:(0,r.jsx)(g.Z,{text:"",color:"black",isHovered:N})}),(0,r.jsxs)("div",{className:"artist__content",ref:y,style:{height:u?"fit-content":p?"".concat(h):0},children:[(0,r.jsx)("div",{className:"content__image",children:t.content.media.map((e,t)=>(0,r.jsx)(f.Z,{content:e,color1:n,color2:l},"media--".concat(t)))}),(0,r.jsx)("div",{className:"content__text",children:(0,r.jsx)(v.Z,{text:t.content.text,color:l,linkList:a})})]})]})})}function ArtistGroup(e){let{artist:t,color1:n,color2:l,currentArtist:i,setCurrentArtist:o,linkList:a}=e,u=(0,c.useRouter)(),[m,h]=d()(0),[_,p,x]=d()(!1),j=(0,s.useRef)(),y=(0,s.useRef)(),k=(0,s.useRef)(),adaptHeight=()=>{y.current&&clearTimeout(y.current),k.current&&clearTimeout(k.current),_?(h("fit-content"),k.current=setTimeout(()=>h("".concat(j.current.scrollHeight,"px")),1e3)):j.current&&(y.current=setTimeout(()=>{j.current&&(h(0),k.current=setTimeout(()=>h("".concat(j.current.scrollHeight,"px")),100))},100))};(0,s.useEffect)(()=>(adaptHeight(),window.addEventListener("resize",adaptHeight),()=>window.removeEventListener("resize",adaptHeight)),[j]);let openSection=e=>{if(!0===e){o(t.slug);let e="".concat("de"===u.locale?"de/":"","artists"),n={artist:t.slug};u.push({pathname:e,query:n},void 0,{shallow:!0})}else{o("");let e="".concat("de"===u.locale?"de/":"","artists");u.push({pathname:e,query:{}},void 0,{shallow:!0}),p(!1)}};(0,s.useEffect)(()=>{i===t.slug?p(!0):p(!1)},[i]);let[E,N]=d()(!1);return(0,r.jsx)("article",{className:"artist__item ".concat(_?"artist--section--open":"artist--section--closed"),onClick:()=>openSection(!0),id:t.slug,children:(0,r.jsxs)("div",{className:"artist__info",children:[(0,r.jsx)("div",{className:"artist__close--hover",onClick:e=>{e.stopPropagation(),openSection(!1)},onMouseOver:()=>N(!0),onMouseOut:()=>N(!1)}),(0,r.jsxs)("h2",{children:[t.content.name,(0,r.jsx)("span",{children:t.content.role})]}),_&&(0,r.jsx)("button",{className:"artist__info__close",children:(0,r.jsx)(g.Z,{text:"",color:"black",isHovered:E})}),(0,r.jsxs)("div",{className:"artist__content",ref:j,style:{height:_?"".concat(m):0},children:[t.content.media.length>0&&(0,r.jsx)("div",{className:"content__image",children:t.content.media.map((e,t)=>(0,r.jsx)(f.Z,{content:e,color1:n,color2:l},"media--".concat(t)))}),(0,r.jsx)("div",{className:"content__text content__text--group ".concat(0===t.content.media.length?"content__text--group--big":""),children:(0,r.jsx)(v.Z,{text:t.content.text,color:l,linkList:a})}),(0,r.jsx)("div",{className:"artist__members",children:t.content.artist_list.map((e,t)=>(0,r.jsx)(ArtistItem,{artist:{content:e},color1:"black",color2:"grey",currentArtist:e,setCurrentArtist:()=>{},linkList:a,open:!0},"artist--".concat(t)))})]})]})})}function ArtistList(e){let{artists:t,currentArtist:n,setCurrentArtist:s,linkList:l}=e;return(0,r.jsxs)("div",{className:"content content--artists",children:[t.sort((e,t)=>
1e.content.name.localeCompare(t.content.name)).filter(e=>!0===e.content.pinned).map((e,t)=>e.content.artist_list?(0,r.jsx)(ArtistGroup,{artist:e,color1:"black",color2:"grey",currentArtist:n,setCurrentArtist:s,linkList:l},"artist-pinned--".concat(t)):(0,r.jsx)(ArtistItem,{artist:e,color1:"black",color2:"grey",currentArtist:n,setCurrentArtist:s,linkList:l},"artist-pinned--".concat(t))),t.sort((e,t)=>e.content.name.localeCompare(t.content.name)).filter(e=>!1===e.content.pinned).map((e,t)=>e.content.artist_list?(0,r.jsx)(ArtistGroup,{artist:e,color1:"black",color2:"grey",currentArtist:n,setCurrentArtist:s,linkList:l},"artist-pinned--".concat(t)):(0,r.jsx)(ArtistItem,{artist:e,color1:"black",color2:"grey",currentArtist:n,setCurrentArtist:s,linkList:l},"artist-pinned--".concat(t)))]})}var h=!0,_slug_=e=>{var t;let{content:n,headerContent:o,footerContent:a,collaborators:u,eventList:m,festivalList:v,tags:f,slugBase:g,linkList:h}=e,_=(0,c.useRouter)(),[p,x]=d()(null),[j,y]=d()(null),[k,E]=d()(null),[N,w,T]=d()([]),[F,b,C]=d()(!0);(0,s.useEffect)(()=>{x(_.query.event),y(_.query.artist),E(_.query.festival)},[_]),(0,s.useEffect)(()=>{(_.query.event||_.query.festival)&&C.current&&(_.query.event?setTimeout(()=>{document.querySelector("#".concat(_.query.event))&&document.querySelector("#".concat(_.query.event)).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500):_.query.festival&&setTimeout(()=>{document.querySelector("#".concat(_.query.festival))&&document.querySelector("#".concat(_.query.festival)).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500)),_.query.artist&&C.current&&_.query.artist&&setTimeout(()=>{document.querySelector("#".concat(_.query.artist))&&document.querySelector("#".concat(_.query.artist)).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500)},[_]),(0,s.useEffect)(()=>{b(!0)},[g]);let createAllFilters=()=>{let e=[{namePlur:"years",nameSing:"year",content:[]},{namePlur:"types",nameSing:"type",content:[]},{namePlur:"genres",nameSing:"genre",content:[]},{namePlur:"places",nameSing:"place",content:[]},{namePlur:"categories",nameSing:"category",content:[]}];for(let t=0;t<f.length;t++){let n=null;for(let r=0;r<5;r++)e[r].namePlur===f[t].full_slug.split("/")["en"===_.locale?2:1]&&(n=r);e[n].content.push({name:f[t].content.name,selected:!1,id:f[t].uuid})}w([...e])};(0,s.useEffect)(()=>{f.length>0&&0===T.current.length&&createAllFilters()},[f]);let S=n.content.title,[L,q]=d()();(0,s.useEffect)(()=>{if(m&&v){let e=[...m,...v];q(e.sort((e,t)=>returnTime(t.content.starting_date)-returnTime(e.content.starting_date)))}},[m,v]);let returnTime=e=>{if(!e)return 0;{let t=e.split("-"),n=new Date(t[0],t[1]-1,t[2].split(" ")[0]);return n.getTime()}};return(0,r.jsxs)(l.Z,{pageTitle:S,description:(null===(t=n.content)||void 0===t?void 0:t.description)||n.description,keywords:n.keywords,navList:o.content.links,logo:o.content.logo,footerContent:a,linkList:h,logo_hover:o.content.logo_hover,seoImage:o.content.seo_image,children:[(0,r.jsx)(i.Z,{content:n.content.content,color1:"black",color2:"#7E7E7E",linkList:h}),"events"===n.slug&&0!==N.length&&h.FestivalItems.items.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(EventList,{events:L,currentEvent:p,currentFestival:k,setCurrentEvent:x,setCurrentFestival:E,eventFilters:N,tags:f,linkList:h}),(0,r.jsx)(EventFilters,{eventFilters:N,setEventFilters:w})]}),"artists"===n.slug&&(0,r.jsx)(ArtistList,{currentArtist:j,setCurrentArtist:y,artists:u,linkList:h}),"donation"===n.slug&&(0,r.jsx)("iframe",{src:"https://spenden.twingle.de/ins-offene-kulturprojekte-der-zukunft-e-v/ins-offene/tw6525ad599fd2c/page",className:"donation__iframe",lang:_.locale})]})}}},function(e){e.O(0,[19,634,933,774,888,179],function(){return e(e.s=5332)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.