1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9769],{99769:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=n(85893),i=n(35970),o=n.n(i),c=n(11163),s=n(67294),l=n(48281),u=n(78293),a=n(96519),f=function(t){var e=t.title,n=t.text,i=t.image,o=t.children,c=n&&(0,l.G)({input:n,totalWords:60});return(0,r.jsxs)("div",{children:[i&&(0,r.jsx)(u.Z,{src:i}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:e}),(0,r.jsx)("br",{}),c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{text:c}),(0,r.jsx)("br",{})]}),o]})]})},d=function(t){var e=t.post,n=e.content.pieces.find((function(t){return t.image&&t.image.filename||t.image})),i=n&&n.image&&(n.image.filename||n.image);return(0,r.jsx)(f,{title:e.name,image:i,text:null})},p=n(29815),g=n(55890),h=function(t){var e=t.post;if("undefined"===typeof e.content.sections)return(0,r.jsx)(r.Fragment,{});var n=e.content.sections.filter((function(t){return t.text})),i=n&&n[0]&&n[0].text||{content:[]},o=e.content.description.content&&i.content?[{type:"paragraph",content:[]}]:[],c={type:"doc",content:(0,p.Z)(e.content.description.content||[]).concat((0,p.Z)(o),(0,p.Z)(i.content||[]))};return(0,r.jsx)(f,{title:e.name,image:null,text:c,children:(0,r.jsx)(g.Z,{serie:e.content.series[0],types:e.content.type,note:null,location_extern:null})})},x=function(t){var e=t.post,n="";return e.content.pieces[0]&&e.content.pieces[0].image&&(n=e.content.pieces[0].image.filename||e.content.pieces[0].image),(0,r.jsx)(f,{title:e.name,image:n,text:e.content.text})},m=function(t){var e=t.post;return(0,r.jsx)(f,{title:e.name,image:e.content.pieces&&e.content.pieces[0]?e.content.pieces[0].image:"",text:null})},v=function(t){var e=t.post;return(0,r.jsx)(f,{title:e.name,image:e.content.image,text:e.content.text})},j=n(76883),y=n(17006),_=n(1708),R={groundFloor:y.ZI[0].label,showroom:y.ZI[1].label,fassade:y.ZI[2].label,billboard:y.ZI[3].label},k=function(t){var e=t.post,n="";e.content.image&&e.content.image.filename?n=e.content.image.filename:e.content.slideshow[0]&&e.content.slideshow[0].image&&(n=e.content.slideshow[0].image.filename);var i=e.content.location[0],o=(0,c.useRouter)().query.language.toString(),s=!(e.content.info&&e.content.info.content&&e.content.info.content[0]&&e.content.info.content[0].content),l=!(e.content.sections&&e.content.sections[0]&&e.content.sections[0].text&&e.content.sections[0].text.content),u=s||l?[]:[{type:"paragraph",content:[]}],a={type:"doc",content:(0,p.Z)(s?[]:e.content.info.content).concat((0,p.Z)(u),(0,p.Z)(l?[]:e.content.sections[0].text.content))};return(0,r.jsx)(f,{title:e.name,image:n,text:a,children:i&&(0,r.jsx)(_.Z,{input:R[i][o]})})},b=n(69910),A=n(9516),E=15,Z=function(t){var e={};t.forEach((function(t){var n=t.fullSlug.split("/")[2];"synchronisiert"===n&&(n=t.fullSlug.split("/")[3]),e[n]?e[n].push(t):e[n]=[t]}));var n=[];return e.ausstellungen&&e.ausstellungen.forEach((function(t){return n.push(t)})),e.publikationen&&e.publikationen.forEach((function(t){return n.push(t)})),e["video-forum"]&&e["video-forum"].forEach((function(t){return n.push(t)})),e.artothek&&e.artothek.forEach((function(t){return n.push(t)})),e.editionen&&e.editionen.forEach((function(t){return n.push(t)})),e.diskurs&&e.diskurs.forEach((function(t){return n.push(t)})),n},w=function(t){var e=t.article,n=(0,c.useRouter)().query.language.toString(),i=e.fullSlug.split("/")[2];"synchronisiert"===i&&(i=e.fullSlug.split("/")[3]);var o=(0,r.jsx)(r.Fragment,{});"ausstellungen"===i?o=(0,r.jsx)(k,{post:e}):"publikationen"===i?o=(0,r.jsx)(v,{post:e}):"editionen"===i?o=(0,r.jsx)(x,{post:e}):"diskurs"===i?o=(0,r.jsx)(h,{post:e}):"artothek"===i?o=(0,r.jsx)(d,{post:e}):"video-forum"===i?o=(0,r.jsx)(m,{post:e}):console.error("Related Article type not found ",i);var s=(0,A.K)({url:e.fullSlug});return(0,r.jsxs)("div",{children:[o,(0,r.jsx)(j.Z,{input:b.tF.link.label[n],href:s})]})},S=function(t){var e=t.articles;if(!e||"undefined"===typeof e||0===e.length)return(0,r.jsx)(r.Fragment,{});var n=(0,c.useRouter)().query.language.toString(),i=(0,s.useState)({articles:Z(e)})[0],l=(0,s.useState)([!1,!1]),u=l[0],a=l[1],f="",d=(0,s.useRef)(),p=(0,s.useRef)(),g=function(){var t=p.current.getBoundingClientRect().left;p.current&&d.current&&p.current.offsetWidth>d.current.offsetWidth&&a([t>215,t===E])},h=function(){var t=p.current.getBoundingClientRect().left;if(p.current&&d.current&&p.current.offsetWidth>d.current.offsetWidth){var e=t<E,n=p.current.offsetWidth+t+E>window.innerWidth+20;a([e,n])}};(0,s.useEffect)((function(){return g(),window.addEventListener("resize",g),d.current.addEventListener("scroll",h),function(){window.removeEventListener("resize",g),d.current&&d.current.removeEventListener("scroll",h)}}),[]);var x=function(t){p.current.querySelectorAll(".".concat(o().article)).forEac
1h((function(e){var n=e.getBoundingClientRect().left;"right"===t&&n>=E&&n<=e.getBoundingClientRect().width+30&&(d.current.scrollLeft+=n-E),"left"===t&&n<0&&n>-e.getBoundingClientRect().width-E&&(d.current.scrollLeft+=n-E)}))};return(0,r.jsxs)("div",{className:o().related,children:[(0,r.jsx)("h3",{children:b.tF.title.label[n]}),(0,r.jsxs)("div",{className:o().scrollButtons,children:[u[0]&&(0,r.jsx)("div",{className:o().scrollLeft,onClick:function(){return x("left")},dangerouslySetInnerHTML:{__html:"← Back"}}),u[1]&&(0,r.jsx)("div",{className:o().scrollRight,onClick:function(){return x("right")},dangerouslySetInnerHTML:{__html:"More →"}})]}),(0,r.jsx)("div",{className:o().container,ref:d,children:(0,r.jsx)("div",{className:o().wrapper,ref:p,children:i.articles.map((function(t,e){var n=t.fullSlug.split("/")[2];"synchronisiert"===n&&(n=t.fullSlug.split("/")[3]);var i=n!==f;return f=n,(0,r.jsxs)("div",{className:o().article,children:[(0,r.jsxs)("div",{className:o().type,children:[i?(0,r.jsx)("h3",{children:n.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1,t.length)})).join("-")}):(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]}),(0,r.jsx)(w,{article:t})]},e)}))})})]})}},48281:function(t,e,n){"use strict";n.d(e,{G:function(){return i},Q:function(){return o}});var r=n(29815),i=function(t){var e=t.input,n=t.totalWords,r=0,i=function(t){var e=t.input;if(r>=n)return{};if("undefined"!==typeof e&&e){if(e&&"string"===typeof e.text)if(r>n)e.text="";else if(r+e.text.split(" ").length>=n){var o=Math.abs(n-r);e.text="".concat(e.text.split(" ").slice(0,o).join(" ")," [\u2026]"),r=n}else r+=e.text.split(" ").length;else Array.isArray(e)?e.map((function(t){i(t)})):Array.isArray(e.content)?e.content=e.content.map((function(t){return i({input:t})})):"undefined"!==typeof e.text&&Array.isArray(e.text.content)&&(e.text.content=e.text.content.map((function(t){return i({input:t})})));return e}},o=i({input:e});return"undefined"===typeof o?{}:("undefined"!==typeof o.content&&(o.content=o.content.filter((function(t){return 0!==Object.keys(t).length})),o.content=o.content.map((function(t){return t.content&&(t.content=t.content.filter((function(t){return 0!==Object.keys(t).length||0!==t.length}))),t}))),o)},o=function(t){var e,n,o,c=t.item,s=t.totalWords,l=("undefined"!==typeof c.content.description&&c.content.description?null===(e=c.content.description)||void 0===e?void 0:e.content:[{}]).filter((function(t){return t.content&&t.content[0]||t.text})),u=(null===(n=c.content.sections[0])||void 0===n||null===(o=n.text)||void 0===o?void 0:o.content)||[];return i({input:{content:(0,r.Z)(l).concat([l?{type:"paragraph"}:null],(0,r.Z)(u)),type:"doc"},totalWords:s})}},9516:function(t,e,n){"use strict";n.d(e,{K:function(){return i},m:function(){return o}});var r=n(11163),i=function(t){var e=t.url,n=e.split("/"),i=(0,r.useRouter)().query.language.toString();if(n&&n.includes("page"))return"/".concat(i,"/").concat(n[n.length-1]);if(n&&n.includes("posts")){if(!n||!n.includes("synchronisiert"))return"/".concat(i,"/").concat(n[n.length-2],"/").concat(n[n.length-1]);var o=n[3];if(o.match("artothek")){var c=n.splice(3,n.length).filter((function(t){return"artists"!==t})).join("/");return"/".concat(i,"/").concat(c)}if("video-forum"===o){var s=n.splice(3,n.length).join("/").replace("/artists/","/");return"/".concat(i,"/").concat(s)}console.warn("Post type is not recognized!",o)}return e},o=function(t){var e=t.link,n=e.cached_url;return"story"===e.linktype?i({url:n}):n}},35970:function(t){t.exports={related:"RelatedArticles_related__gQ7Mc",container:"RelatedArticles_container__xrG3v",wrapper:"RelatedArticles_wrapper__fPWFO",articleGroup:"RelatedArticles_articleGroup__ZbeqS",article:"RelatedArticles_article__GR1Su",scrollButtons:"RelatedArticles_scrollButtons__c1Brp",scrollLeft:"RelatedArticles_scrollLeft___WYhu",scrollRight:"RelatedArticles_scrollRight__o_4Wa",type:"RelatedArticles_type__i9noa",imagePLACEHOLDER:"RelatedArticles_imagePLACEHOLDER__znTZz"}}}]);
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.