1import{i as ge,Q as me,g as he}from"../chunks/query.2ePqFaAT.js";import{R as be}from"../chunks/session.OMnltgrD.js";import{s as ve,f as A,a as V,e as U,P as we,g as P,d as v,c as B,j as y,v as w,i as N,I as te,o as ye,l as le,h as E,m as ie,n as re,H as Se,y as ke,z as Ae,w as Pe,Q as Re}from"../chunks/scheduler.pCRCfw-d.js";import{S as Te,i as Ce,a as b,t as S,c as M,g as Q,b as G,d as K,m as J,h as se,e as X}from"../chunks/index.2QoJ7a-7.js";import{g as Ee}from"../chunks/globals.0cDDIVm6.js";import{e as ae}from"../chunks/each.FUq8KcnQ.js";import{p as Ie}from"../chunks/stores.5LWYbcso.js";import{T as ze,P as De,a as Ve}from"../chunks/PressEntry.dWt8HJ75.js";import{s as Be}from"../chunks/screenSize.store.IgZaEStW.js";import{f as ne}from"../chunks/index.4SEkkEx-.js";const Ne={name:"Presspage",kind:"HoudiniQuery",hash:"832eba875b1506a82504048cff0e8d2080c4caca3ba99adb7320dd9166e51efa",raw:`query Presspage { 2 Presspage { 3 headline 4 subline 5 pressArticles { 6 pressArticle { 7 date 8 title 9 magazine 10 content 11 link 12 images { 13 image { 14 url 15 alt 16 downloadVersion { 17 url 18 filename 19 id 20 } 21 id 22 } 23 id 24 } 25 } 26 id 27 } 28 } 29} 30`,rootType:"Query",selection:{fields:{Presspage:{type:"Presspage",keyRaw:"Presspage",nullable:!0,selection:{fields:{headline:{type:"String",keyRaw:"headline",nullable:!0,visible:!0},subline:{type:"String",keyRaw:"subline",nullable:!0,visible:!0},pressArticles:{type:"Presspage_PressArticles",keyRaw:"pressArticles",nullable:!0,selection:{fields:{pressArticle:{type:"Presspage_PressArticles_PressArticle",keyRaw:"pressArticle",nullable:!0,selection:{fields:{date:{type:"DateTime",keyRaw:"date",nullable:!0,visible:!0},title:{type:"String",keyRaw:"title",nullable:!0,visible:!0},magazine:{type:"String",keyRaw:"magazine",nullable:!0,visible:!0},content:{type:"JSON",keyRaw:"content",nullable:!0,visible:!0},link:{type:"String",keyRaw:"link",nullable:!0,visible:!0},images:{type:"Presspage_PressArticles_PressArticle_Images",keyRaw:"images",nullable:!0,selection:{fields:{image:{type:"PressAsset",keyRaw:"image",nullable:!0,selection:{fields:{url:{type:"String",keyRaw:"url",nullable:!0,visible:!0},alt:{type:"String",keyRaw:"alt",nullable:!0,visible:!0},downloadVersion:{type:"PressDownloadAsset",keyRaw:"downloadVersion",nullable:!0,selection:{fields:{url:{type:"String",keyRaw:"url",nullable:!0,visible:!0},filename:{type:"String",keyRaw:"filename",nullable:!0,visible:!0},id:{type:"String",keyRaw:"id",visible:!0,nullable:!0}}},visible:!0},id:{type:"String",keyRaw:"id",visible:!0,nullable:!0}}},visible:!0},id:{type:"String",keyRaw:"id",visible:!0,nullable:!0}}},visible:!0}}},visible:!0},id:{type:"String",keyRaw:"id",visible:!0,nullable:!0}}},visible:!0}}},visible:!0}}},pluginData:{"houdini-svelte":{}},policy:"CacheOrNetwork",partial:!1};class Oe extends me{constructor(){super({artifact:Ne,storeName:"PresspageStore",variables:!1})}}async function je(e){await ge();const l=new Oe;return await l.fetch(e),{Presspage:l}}const He=!0;async function Me(e){const l=new be(e);he();const r=[],t={};t.Presspage={},r.push(je({variables:t.Presspage,event:e,blocking:void 0}));let s={};try{s=Object.assign({},...await Promise.all(r))}catch(i){throw i}return{...l.returnValue,...s}}const $e=Object.freeze(Object.defineProperty({__proto__:null,load:Me,prerender:He},Symbol.toStringTag,{value:"Module"})),{document:q}=Ee;function oe(e,l,r){const t=e.slice();return t[22]=l[r].pressArticle,t[24]=r,t}function ue(e){let l,r,t,s,i,a,o,n,h,p,T,O,R,g=e[4]&&ce(e),k=ae(e[0]),d=[];for(let u=0;u<k.length;u+=1)d[u]=de(oe(e,k,u));const F=u=>S(d[u],1,1,()=>{d[u]=null});let m=e[1]!==-1&&_e(e);return{c(){l=A("div"),r=A("h1"),t=le(e[6]),s=V(),i=A("h2"),a=le(e[5]),o=V(),n=A("div"),h=A("div"),p=A("div"),g&&g.c(),T=V();for(let u=0;u<d.length;u+=1)d[u].c();O=V(),m&&m.c(),this.h()},l(u){l=P(u,"DIV",{class:!0});var c=E(l);r=P(c,"H1",{class:!0});var f=E(r);t=ie(f,e[6]),f.forEach(v),s=B(c),i=P(c,"H2",{class:!0});var I=E(i);a=ie(I,e[5]),I.forEach(v),o=B(c),n=P(c,"DIV",{class:!0});var C=E(n);h=P(C,"DIV",{class:!0});var L=E(h);p=P(L,"DIV",{class:!0});var D=E(p);g&&g.l(D),T=B(D);for(let j=0;j<d.length;j+=1)d[j].l(D);
30D.forEach(v),L.forEach(v),O=B(C),m&&m.l(C),C.forEach(v),c.forEach(v),this.h()},h(){y(r,"class","text-3xl sm:text-4xl font-bold text-center"),y(i,"class","text-2xl text-center"),y(p,"class","flex flex-row snap-mandatory 2xl:flex-col xl:max-h-[60vh] 2xl:min-h-[50rem] mr-auto basis-1/3 gap-6 p-11 bg-gradient-to-br from-primary-pink-300/50 via-primary-blue-300/25 to-primary-yellow-300/25 rounded-3xl overflow-auto"),y(h,"class","relative 2xl:overflow-auto 2xl:min-w-fit"),y(n,"class","flex flex-col 2xl:flex-row pt-11 gap-2 2xl:gap-24 w-full h-fit"),y(l,"class","flex flex-col h-full p-1 2xl:p-11 justify-center items-center gap-2 w-full")},m(u,c){N(u,l,c),w(l,r),w(r,t),w(l,s),w(l,i),w(i,a),w(l,o),w(l,n),w(n,h),w(h,p),g&&g.m(p,null),w(p,T);for(let f=0;f<d.length;f+=1)d[f]&&d[f].m(p,null);w(n,O),m&&m.m(n,null),R=!0},p(u,c){if((!R||c&64)&&re(t,u[6]),(!R||c&32)&&re(a,u[5]),u[4]?g?(g.p(u,c),c&16&&b(g,1)):(g=ce(u),g.c(),b(g,1),g.m(p,T)):g&&(Q(),S(g,1,1,()=>{g=null}),M()),c&1795){k=ae(u[0]);let f;for(f=0;f<k.length;f+=1){const I=oe(u,k,f);d[f]?(d[f].p(I,c),b(d[f],1)):(d[f]=de(I),d[f].c(),b(d[f],1),d[f].m(p,null))}for(Q(),f=k.length;f<d.length;f+=1)F(f);M()}u[1]!==-1?m?(m.p(u,c),c&2&&b(m,1)):(m=_e(u),m.c(),b(m,1),m.m(n,null)):m&&(Q(),S(m,1,1,()=>{m=null}),M())},i(u){if(!R){b(g);for(let c=0;c<k.length;c+=1)b(d[c]);b(m),R=!0}},o(u){S(g),d=d.filter(Boolean);for(let c=0;c<d.length;c+=1)S(d[c]);S(m),R=!1},d(u){u&&v(l),g&&g.d(),Se(d,u),m&&m.d()}}}function ce(e){let l,r,t="Autoscroll zu Bericht",s,i,a,o;return i=new ze({props:{width:"36px",height:"20px",initialToggleState:e[3]}}),i.$on("toggled",e[11]),{c(){l=A("div"),r=A("div"),r.textContent=t,s=V(),G(i.$$.fragment),this.h()},l(n){l=P(n,"DIV",{class:!0});var h=E(l);r=P(h,"DIV",{"data-svelte-h":!0}),ke(r)!=="svelte-1jr2dy8"&&(r.textContent=t),s=B(h),K(i.$$.fragment,h),h.forEach(v),this.h()},h(){y(l,"class","ml-auto absolute top-2 gap-2 h-min flex flex-row items-center justify-cernter pr-4")},m(n,h){N(n,l,h),w(l,r),w(l,s),J(i,l,null),o=!0},p(n,h){const p={};h&8&&(p.initialToggleState=n[3]),i.$set(p)},i(n){o||(b(i.$$.fragment,n),n&&Ae(()=>{o&&(a||(a=se(l,ne,{},!0)),a.run(1))}),o=!0)},o(n){S(i.$$.fragment,n),n&&(a||(a=se(l,ne,{},!1)),a.run(0)),o=!1},d(n){n&&v(l),X(i),n&&a&&a.end()}}}function fe(e){let l,r;return l=new Ve({props:{selected:e[1]===e[24],index:e[24],magazineTitle:e[22].magazine,date:e[22].date.toLocaleDateString(W,e[8]),articleTitle:e[22].title,articlePreview:pe(e[22].content),underlineColor:e[9][e[24]%3]}}),l.$on("selected",e[16]),{c(){G(l.$$.fragment)},l(t){K(l.$$.fragment,t)},m(t,s){J(l,t,s),r=!0},p(t,s){const i={};s&2&&(i.selected=t[1]===t[24]),s&1&&(i.magazineTitle=t[22].magazine),s&1&&(i.date=t[22].date.toLocaleDateString(W,t[8])),s&1&&(i.articleTitle=t[22].title),s&1&&(i.articlePreview=pe(t[22].content)),l.$set(i)},i(t){r||(b(l.$$.fragment,t),r=!0)},o(t){S(l.$$.fragment,t),r=!1},d(t){X(l,t)}}}function de(e){let l,r,t=e[22].magazine&&e[22].date&&e[22].title&&e[22].content&&fe(e);return{c(){t&&t.c(),l=U()},l(s){t&&t.l(s),l=U()},m(s,i){t&&t.m(s,i),N(s,l,i),r=!0},p(s,i){s[22].magazine&&s[22].date&&s[22].title&&s[22].content?t?(t.p(s,i),i&1&&b(t,1)):(t=fe(s),t.c(),b(t,1),t.m(l.parentNode,l)):t&&(Q(),S(t,1,1,()=>{t=null}),M())},i(s){r||(b(t),r=!0)},o(s){S(t),r=!1},d(s){s&&v(l),t&&t.d(s)}}}function _e(e){let l,r,t,s;return r=new De({props:{articleId:e[0][e[1]].id,title:e[0][e[1]].pressArticle.magazine,date:e[0][e[1]].pressArticle.date.toLocaleDateString(W,e[8]),articleTitle:e[0][e[1]].pressArticle.title,articleContent:e[0][e[1]].pressArticle.content,images:e[0][e[1]].pressArticle.images,underlineColor:e[9][e[1]%3],hideArticleUnderline:e[2]}}),{c(){l=A("div"),G(r.$$.fragment),this.h()},l(i){l=P(i,"DIV",{id:!0,class:!0});var a=E(l);K(r.$$.fragment,a),a.forEach(v),this.h()},h(){y(l,"id",t=e[1].toString()),y(l,"class","w-full overflow-x-hidden")},m(i,a){N(i,l,a),J(r,l,null),s=!0},p(i,a){const o={};a&3&&(o.articleId=i[0][i[1]].id),a&3&&(o.title=i[0][i[1]].pressArticle.magazine),a&3&&(o.date=i[0][i[1]].pressArticle.date.toLocaleDateString(W,i[8])),a&3&&(o.articleTitle=i[0][i[1]].pressArticle.title),a&3&&(o.articleContent=i[0][i[1]].pressArticle.content),a&3&&(o.images=i[0][i[1]].pressArticle.images),a&2&&(
30o.underlineColor=i[9][i[1]%3]),a&4&&(o.hideArticleUnderline=i[2]),r.$set(o),(!s||a&2&&t!==(t=i[1].toString()))&&y(l,"id",t)},i(i){s||(b(r.$$.fragment,i),s=!0)},o(i){S(r.$$.fragment,i),s=!1},d(i){i&&v(l),X(r)}}}function Qe(e){let l,r,t,s,i,a=e[0]&&ue(e);return{c(){l=A("meta"),r=A("meta"),t=V(),a&&a.c(),s=U(),this.h()},l(o){const n=we("svelte-u7h77n",q.head);l=P(n,"META",{name:!0,content:!0}),r=P(n,"META",{name:!0,content:!0}),n.forEach(v),t=B(o),a&&a.l(o),s=U(),this.h()},h(){q.title="Presse | bobiennale",y(l,"name","title"),y(l,"content","bobiennale | Pressemeldungen"),y(r,"name","description"),y(r,"content","Kulturfestival in Bochum für die Presse")},m(o,n){w(q.head,l),w(q.head,r),N(o,t,n),a&&a.m(o,n),N(o,s,n),i=!0},p(o,[n]){o[0]?a?(a.p(o,n),n&1&&b(a,1)):(a=ue(o),a.c(),b(a,1),a.m(s.parentNode,s)):a&&(Q(),S(a,1,1,()=>{a=null}),M())},i(o){i||(b(a),i=!0)},o(o){S(a),i=!1},d(o){o&&(v(t),v(s)),v(l),v(r),a&&a.d(o)}}}const W="de-DE";function pe(e){var i;(e==null?void 0:e.length)>0&&e[0]&&((i=e[0].children)==null?void 0:i.length)>0&&e[0].children[0]&&e[0].children[0].text?e=e[0].children[0].text:(e="",console.log("------------------------------------ PREVIEW CONTENT IS MISSING ---------------------------------"),console.log("____________________________________ CHECK RICHTEXT CONTENT PREVIEW GENERATOR ___________________________________"));let l=5;const r=27;let t="";const s=e.split(" ");for(let a=0;a<s.length&&a<l;a++){let o=t;t=t.concat(a===0?s[a]:` ${s[a]}`),t.length-1>r&&(t=o,l=l--),a+1===l&&a+1<s.length&&(t=t.concat("..."))}return t}function Le(e,l,r){let t,s,i,a,o,n,h,p,T=Pe,O=()=>(T(),T=Re(t,_=>r(14,p=_)),t),R;te(e,Ie,_=>r(19,h=_)),te(e,Be,_=>r(15,R=_)),e.$$.on_destroy.push(()=>T());let{data:g}=l,k;const d={day:"numeric",month:"long",year:"numeric"};let F=["#e899bf","#66ABB2","#F2B500"],m=0,u,c=!1,f;function I(_){if(!i||!n)return;let H;const z=document.getElementById(_);z&&(H=z==null?void 0:z.getBoundingClientRect(),window.scrollTo({behavior:"smooth",top:H.top-document.body.getBoundingClientRect().top-40}))}function C(_){m!==_&&(u&&clearTimeout(u),r(1,m=_),r(2,c=!0),u=setTimeout(()=>{r(2,c=!1),I(_.toString())},200))}function L(_){n=_.detail.toggled,localStorage.setItem("pressShouldScroll",n!==void 0?n.toString():f.toString())}function D(){for(let _=0;_<s.length;_++)if(k===s[_].id){C(_);break}}ye(()=>{r(13,k=h.url.searchParams.get("article")),localStorage.getItem("pressShouldScroll")==="false"?r(3,f=!1):(localStorage.getItem("pressShouldScroll"),r(3,f=!0))});const j=_=>{C(_.detail.index)};return e.$$set=_=>{"data"in _&&r(12,g=_.data)},e.$$.update=()=>{var _,H,z,Y,Z,$;e.$$.dirty&4096&&O(r(7,{Presspage:t}=g,t)),e.$$.dirty&16384&&r(0,s=(H=(_=p==null?void 0:p.data)==null?void 0:_.Presspage)==null?void 0:H.pressArticles),e.$$.dirty&32768&&r(4,i=R==="mobile"),e.$$.dirty&1&&s&&s.sort((x,ee)=>{if(!(!x.pressArticle.date||!ee.pressArticle.date))return ee.pressArticle.date.getTime()-x.pressArticle.date.getTime()}),e.$$.dirty&8193&&k&&s&&D(),e.$$.dirty&16384&&r(6,a=(Y=(z=p==null?void 0:p.data)==null?void 0:z.Presspage)==null?void 0:Y.headline),e.$$.dirty&16384&&r(5,o=($=(Z=p==null?void 0:p.data)==null?void 0:Z.Presspage)==null?void 0:$.subline)},n=!0,[s,m,c,f,i,o,a,t,d,F,C,L,g,k,p,R,j]}class xe extends Te{constructor(l){super(),Ce(this,l,Le,Qe,ve,{data:12})}}export{xe as component,$e as universal};
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.