1import{j as e,r as T}from"./vendor-react-BC2t6wBj.js";import{I as A,u as w,S,a as E,b as k,c as I,d as D}from"./index-DiRGAkD0.js";import{NEWS_FONT_FAMILIES as L}from"./contract-By6BDDvM.js";import{s as C,a as v}from"./markdown-Bw_IrZP0.js";import{M as P,r as O}from"./index-y4LhOjaF.js";function F(s,a){const i=s.variants.filter(r=>r.aspectRatio===a),t=s.variants.filter(r=>r.aspectRatio==="ORIGINAL"),l=[...s.variants];return(i.length?i:t.length?t:l).sort((r,c)=>r.width-c.width)}function h({media:s,preferredAspect:a="ORIGINAL",priority:i=!1,sizes:t="(max-width: 792px) calc(100vw - 2rem), 760px",creditLabel:l="Foto",className:r=""}){const c=F(s,a),n=c.at(-1);if(!n)return null;const d=`${Math.round(s.focalPoint.x*100)}% ${Math.round(s.focalPoint.y*100)}%`,o=e.jsx("img",{src:n.url,srcSet:c.map(b=>`${b.url} ${b.width}w`).join(", "),sizes:t,width:n.width,height:n.height,alt:s.altText,loading:i?"eager":"lazy",...i?{fetchpriority:"high"}:{},decoding:"async",style:{objectPosition:d}});return e.jsxs("figure",{className:`news-media ${r}`.trim(),children:[o,s.caption||s.credit?e.jsxs("figcaption",{children:[s.caption?e.jsx("span",{children:s.caption}):null,s.credit?e.jsxs("span",{className:"news-media__credit",children:[l,": ",s.credit]}):null]}):null]})}function M({href:s="",children:a,node:i,...t}){const l=v(s);if(!l)return e.jsx("span",{children:a});const r=l.startsWith("https://");return e.jsx("a",{...t,href:l,...r?{target:"_blank",rel:"noopener noreferrer nofollow"}:{},children:a})}const R={a:M,h1:({children:s})=>e.jsx("h2",{children:s}),img:()=>null};function f({markdown:s,media:a,tableLabel:i="Datentabelle",creditLabel:t="Foto"}){const l=new Map(a.map(n=>[n.key,n])),r=C(s),c={...R,table:({node:n,...d})=>e.jsx("div",{className:"news-markdown__table-scroll",role:"region","aria-label":i,tabIndex:"0",children:e.jsx("table",{...d})})};return e.jsx("div",{className:"news-markdown",children:r.map((n,d)=>{if(n.type==="media"){const o=l.get(n.key);return o?e.jsx(h,{media:o,creditLabel:t,className:"news-markdown__media"},`media-${n.key}`):null}return e.jsx(P,{remarkPlugins:[O],skipHtml:!0,urlTransform:v,components:c,children:n.value},`markdown-${d}`)})})}function B(s){return s==="FULL_BLEED"?"(max-width: 1232px) calc(100vw - 2rem), 1200px":s==="FLOAT_LEFT"||s==="FLOAT_RIGHT"?"(max-width: 760px) calc(100vw - 2rem), 360px":"(max-width: 792px) calc(100vw - 2rem), 760px"}function g({media:s,className:a="",sizes:i,creditLabel:t}){return s?e.jsx(h,{media:s,sizes:i,creditLabel:t,className:a}):null}function $({document:s,media:a,tableLabel:i,creditLabel:t,galleryLabel:l,comicLabel:r}){const c=new Map(a.map(n=>[n.key,n]));return e.jsx("div",{className:"news-content-document","data-news-document-version":s.version,children:s.blocks.map(n=>{switch(n.type){case"PROSE":return e.jsx(f,{markdown:n.markdown,media:a,tableLabel:i,creditLabel:t},n.id);case"HEADING":{const d=`h${n.level}`;return e.jsxs("header",{className:"news-content-heading",children:[n.eyebrow?e.jsx("p",{children:n.eyebrow}):null,e.jsx(d,{children:n.text})]},n.id)}case"IMAGE":return e.jsx(g,{media:c.get(n.mediaKey),sizes:B(n.layout),creditLabel:t,className:`news-content-image news-content-image--${n.layout.toLowerCase()}`},n.id);case"GALLERY":return e.jsx("section",{className:`news-content-gallery news-content-gallery--${n.columns}`,"aria-label":l,children:n.mediaKeys.map(d=>e.jsx(g,{media:c.get(d),sizes:n.columns===3?"(max-width: 760px) calc(100vw - 2rem), 240px":"(max-width: 760px) calc(100vw - 2rem), 370px",creditLabel:t},d))},n.id);case"COMIC":return e.jsx("section",{className:`news-content-comic news-content-comic--${n.columns}`,"aria-label":r,dir:n.readingDirection.toLowerCase(),children:n.mediaKeys.map((d,o)=>e.jsxs("div",{className:"news-content-comic__panel",children:[e.jsx("span",{"aria-hidden":"true",children:String(o+1).padStart(2,"0")}),e.jsx(g,{media:c.get(d),sizes:n.columns===1?"(max-width: 792px) calc(100vw - 2rem), 760px":"(max-width: 760px) calc(100vw - 2rem), 370px",creditLabel:t})]},d))},n.id);case"QUOTE":return e.jsxs("figure",{className:"news-content-quote",children:[e.jsx("blockquote",{children:n.quote}),n.attribution?e.jsxs("figcaption",{children:["â ",n.attribution]}):null]},n.id);case"CALLOUT":return e.jsxs("aside",{className:`news-content-callout news-content-callout--${n.tone.toLowerCase()}`,children:[n.title?e.jsx("strong",{children:n.title}):null,e.jsx(f,{markdown:n.markdown,media:a,tableLabel:i,creditLabel:t})]},n.id);case"STATS":return e.jsx("dl",{className:"news-content-stats",children:n.items.map(d=>e.jsxs("div",{children:[e.jsx("dt",{children:d.value}),e.jsxs("dd",{children:[e.jsx("strong",{children:d.label}),d.context?e.jsx("span",{children:d.context}):null]})]},`${d.value}-${d.label}`))},n.id);case"DIVIDER":return e.jsx("div",{className:`news-content-divider news-content-divider--${n.style.toLowerCase()}`,"aria-hidden":"true",children:n.style==="STARS"?"⦠⦠â¦":n.style==="DOTS"?"⢠⢠â¢":null},n.id);default:return null}})})}const j=new Map,x="de-DE",z="en-US",p={de:{back:"â Alle News",by:"Von",readTime:"Min. Lesezeit",updated:"Aktualisiert",takeaways:"Das Wichtigste in Kürze",disclosure:"Redaktioneller Hinweis",gallery:"Bildergalerie",comic:"Comic-Sequenz",sources:"Quellen",published:"veröffentlicht",accessed:"abgerufen",to
1pics:"Themen",skip:"Zum Inhalt",table:"Datentabelle mit horizontalem Bildlauf",photo:"Foto",indexTitle:"Was die Nacht bewegt.",indexDescription:"Geschichten, Erfahrungen und Einblicke aus der Nocstar Community, für Hosts, Artists und alle, die Events leben.",categoriesLabel:"News-Kategorien",allCategories:"Alle",articlesLabel:"Veröffentlichte Artikel",detailsLabel:"Artikeldetails",authorLabel:"Autor",categoryLabel:"Kategorie",publishedLabel:"Veröffentlicht",readTimeLabel:"Lesezeit",emptyTitle:"Noch keine Artikel veröffentlicht.",emptyBody:"Hier erscheinen bald Geschichten und Einblicke aus der Nocstar Welt.",paginationLabel:"Seitennavigation",newer:"â Neuere",older:"Ãltere â",page:"Seite",pageOf:"von",notFoundTitle:"Artikel nicht gefunden",unavailableTitle:"News gerade nicht erreichbar",notFoundBody:"Der Artikel existiert nicht oder wurde noch nicht veröffentlicht.",unavailableBody:"Die Inhalte konnten vorübergehend nicht geladen werden. Bitte versuche es gleich noch einmal.",statusBack:"Zur News-Ãbersicht"},en:{back:"â All news",by:"By",readTime:"min read",updated:"Updated",takeaways:"Key takeaways",disclosure:"Editorial note",gallery:"Image gallery",comic:"Comic sequence",sources:"Sources",published:"published",accessed:"accessed",topics:"Topics",skip:"Skip to content",table:"Data table with horizontal scrolling",photo:"Photo",indexTitle:"What moves the night.",indexDescription:"Stories, experiences, and insights from the Nocstar community, for hosts, artists, and everyone who lives for events.",categoriesLabel:"News categories",allCategories:"All",articlesLabel:"Published articles",detailsLabel:"Article details",authorLabel:"Author",categoryLabel:"Category",publishedLabel:"Published",readTimeLabel:"Read time",emptyTitle:"No articles published yet.",emptyBody:"Stories and insights from the Nocstar world will appear here soon.",paginationLabel:"Pagination",newer:"â Newer",older:"Older â",page:"Page",pageOf:"of",notFoundTitle:"Article not found",unavailableTitle:"News is currently unavailable",notFoundBody:"This article does not exist or has not been published yet.",unavailableBody:"The content could not be loaded temporarily. Please try again shortly.",statusBack:"Back to news"}};function u(s,a=x){return j.has(a)||j.set(a,new Intl.DateTimeFormat(a,{day:"2-digit",month:"long",year:"numeric",timeZone:"Europe/Berlin"})),j.get(a).format(new Date(s))}function y(s){return s.toLowerCase().startsWith("de")?p.de:p.en}function N({children:s,skipLabel:a=p.en.skip}){const i=w(S),t=w(E),l=w(k);return T.useEffect(()=>(document.documentElement.classList.add("news-page-active"),()=>{document.documentElement.classList.remove("news-page-active")}),[]),e.jsxs("div",{className:"news-site",children:[e.jsx("a",{className:"news-skip-link",href:"#news-content",children:a}),e.jsx(I,{navItems:i,showLanguageSwitcher:!1,variant:"news"}),s,e.jsx(D,{navItems:t,legalLinks:l})]})}function _({author:s,byLabel:a,compact:i=!1,linked:t=!0}){const l=e.jsxs(e.Fragment,{children:[s.profileImageUrl?e.jsx("img",{className:"news-author__avatar",src:s.profileImageUrl,alt:"",width:"48",height:"48",loading:i?"lazy":"eager",decoding:"async"}):null,e.jsxs("span",{className:"news-author__name",children:[e.jsx("span",{className:"news-author__prefix",children:a})," ",s.name]})]});return t&&s.url?e.jsx("a",{className:"news-author",href:s.url,children:l}):e.jsx("span",{className:"news-author",children:l})}function U({article:s,prominent:a=!1,locale:i=s.locale}){const t=y(i),l=a?"(max-width: 1232px) calc(100vw - 2rem), 1200px":"(max-width: 760px) calc(100vw - 2rem), (max-width: 1232px) calc((100vw - 4.5rem) / 2), 580px";return e.jsx("article",{className:`news-card${a?" news-card--featured":""}${s.hero?"":" news-card--text-only"}`,children:e.jsxs("a",{className:"news-card__link",href:s.canonicalPath,"aria-label":s.title,children:[s.hero?e.jsx(h,{media:s.hero,preferredAspect:"16:9",priority:a,sizes:l,className:"news-card__media"}):null,e.jsxs("div",{className:"news-card__body",children:[e.jsxs("div",{className:"news-card__meta",children:[e.jsx("span",{children:s.category.name}),e.jsx("time",{dateTime:s.publishedAt,children:u(s.publishedAt,i)})]}),e.jsx("span",{className:"news-card__author",children:e.jsx(_,{author:s.author,byLabel:t.by,compact:!0,linked:!1})}),e.jsx("h2",{children:s.title}),e.jsx("p",{children:s.excerpt}),e.jsxs("span",{className:"news-card__read-time",children:[s.readTimeMinutes," ",t.readTime]})]})]})})}function G({article:s,modified:a,copy:i}){return e.jsxs("aside",{className:"news-article__details","aria-label":i.detailsLabel,children:[e.jsxs("div",{className:"news-article__details-author",children:[e.jsx("span",{children:i.authorLabel}),e.jsx(_,{author:s.author,byLabel:i.by})]}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:i.categoryLabel}),e.jsx("dd",{children:s.category.name})]}),e.jsxs("div",{children:[e.jsx("dt",{children:i.publishedLabel}),e.jsx("dd",{children:e.jsx("time",{dateTime:s.publishedAt,children:u(s.publishedAt,s.locale)})})]}),e.jsxs("div",{children:[e.jsx("dt",{children:i.readTimeLabel}),e.jsxs("dd",{children:[s.readTimeMinutes," ",i.readTime]})]}),a?e.jsxs("div",{children:[e.jsx("dt",{children:i.updated}),e.jsx("dd",{children:e.jsx("time",{dateTime:s.contentUpdatedAt,children:u(s.contentUpdatedAt,s.locale)})})]}):null]})]})}function m(s,a){const i=new URLSearchParams,t={...s,...a};t.page>1&&i.set("page",String(t.page)),t.limit!==12&&i.set("limit",String(t.limit)),t.category&&i.set("category",t.category),t.tag&&i.set("tag",t.tag),typeof t.featured=="boolean"&&i.set("featured",String(t.featured));const l=i.toString();return l?`/news?${l}`:"/news"}function H({bootstrap:s}){const{list:a,categories:i,query:t}=s,{data:l,meta:r}=a,c=y(x);return e.jsx(N,{skipLabel:c.skip,children:e.jsxs("main",{id:"news-content",className:"news-index",children:[e.jsxs("header",{className:"news-index__hero",children:[e.jsx("p",{className:"news-eyebrow",children:"Nocstar News"}),e.jsx("h1",{children:c.indexTitle}),e.jsx("p",{children:c.indexDescription})]}),i.data.length?e.jsxs("nav",{className:"news-categories","aria-label":c.categoriesLabel,children:[e.jsx("a",{className:t.category?"":"is-active",href:m(t,{page:1,category:void 0}),...t.category?{}:{"aria-current":"page"},children:c.allCategories}),i.data.map(n=>e.jsxs("a",{className:t.category===n.slug?"is-active":"",href:m(t,{page:1,category:n.slug}),...t.category===n.slug?{"aria-current":"page"}:{},children:[n.name," ",e.jsx("span",{children:n.publishedCount})]},n.uid))]}):null,l.length?e.jsx("section",{className:"news-grid","aria-label":c.articlesLabel,children:l.map((n,d)=>e.jsx(U,{article:n,prominent:d===0&&n.featured,locale:x},n.uid))}):e.jsxs("section",{className:"news-empty",children:[e.jsx("h2",{children:c.emptyTitle}),e.jsx("p",{children:c.emptyBody})]}),r.totalPages>
11?e.jsxs("nav",{className:"news-pagination","aria-label":c.paginationLabel,children:[r.page>1?e.jsx("a",{href:m(t,{page:r.page-1}),children:c.newer}):e.jsx("span",{}),e.jsxs("span",{children:[c.page," ",r.page," ",c.pageOf," ",r.totalPages]}),r.page<r.totalPages?e.jsx("a",{href:m(t,{page:r.page+1}),children:c.older}):e.jsx("span",{})]}):null]})})}function K({bootstrap:s}){const a=s.article.data,i=a.contentUpdatedAt&&a.contentUpdatedAt!==a.publishedAt,t=y(a.locale),l=L[a.fontCode]??L.SPACE_GROTESK;return e.jsx(N,{skipLabel:t.skip,children:e.jsx("main",{id:"news-content",className:`news-article news-article--${a.headerStyle.toLowerCase()}`,style:{"--news-article-font":l},children:e.jsxs("article",{children:[e.jsxs("header",{className:"news-article__header",children:[e.jsx("a",{className:"news-article__back",href:"/news",children:t.back}),e.jsx("p",{className:"news-eyebrow",children:a.category.name}),e.jsx("h1",{children:a.title}),a.subtitle?e.jsx("p",{className:"news-article__subtitle",children:a.subtitle}):null,a.excerpt!==a.subtitle?e.jsx("p",{className:"news-article__lead",children:a.excerpt}):null,e.jsx(G,{article:a,modified:i,copy:t})]}),a.hero&&a.headerStyle!=="TEXT_ONLY"?e.jsx(h,{media:a.hero,preferredAspect:"16:9",priority:!0,sizes:a.headerStyle==="IMMERSIVE"?"100vw":a.headerStyle==="SPLIT"?"(max-width: 899px) calc(100vw - 2rem), (max-width: 1232px) calc((100vw - 6rem) * 0.55), 650px":"(max-width: 1232px) calc(100vw - 2rem), 1200px",creditLabel:t.photo,className:"news-article__hero"}):null,e.jsxs("div",{className:"news-article__content",children:[a.keyTakeaways.length?e.jsxs("aside",{className:"news-takeaways","aria-labelledby":"news-takeaways-title",children:[e.jsx("h2",{id:"news-takeaways-title",children:t.takeaways}),e.jsx("ul",{children:a.keyTakeaways.map(r=>e.jsx("li",{children:r},r))})]}):null,a.editorialDisclosure?e.jsxs("aside",{className:"news-disclosure","aria-label":t.disclosure,children:[e.jsxs("strong",{children:[t.disclosure,":"]})," ",a.editorialDisclosure]}):null,a.contentDocument?e.jsx($,{document:a.contentDocument,media:a.media,tableLabel:t.table,creditLabel:t.photo,galleryLabel:t.gallery,comicLabel:t.comic}):e.jsx(f,{markdown:a.bodyMarkdown,media:a.media,tableLabel:t.table,creditLabel:t.photo}),!a.contentDocument&&a.media.some(r=>r.role==="GALLERY")?e.jsx("section",{className:"news-gallery","aria-label":t.gallery,children:a.media.filter(r=>r.role==="GALLERY").map(r=>e.jsx(h,{media:r,sizes:"(max-width: 760px) calc(100vw - 2rem), 370px",creditLabel:t.photo},r.uid))}):null,a.sources.length?e.jsxs("section",{className:"news-sources","aria-labelledby":"news-sources-title",children:[e.jsx("h2",{id:"news-sources-title",children:t.sources}),e.jsx("ol",{children:[...a.sources].sort((r,c)=>r.displayOrder-c.displayOrder).map(r=>e.jsxs("li",{children:[e.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",children:r.title}),r.publisherName?e.jsxs("span",{children:[" · ",r.publisherName]}):null,r.sourcePublishedAt?e.jsxs("span",{children:[" ","· ",t.published," ",e.jsx("time",{dateTime:r.sourcePublishedAt,children:u(r.sourcePublishedAt,a.locale)})]}):null,e.jsxs("span",{children:[" ","· ",t.accessed," ",e.jsx("time",{dateTime:r.accessedAt,children:u(r.accessedAt,a.locale)})]})]},r.uid))})]}):null,a.tags.length?e.jsx("ul",{className:"news-tags","aria-label":t.topics,children:a.tags.map(r=>e.jsx("li",{children:r},r))}):null]})]})})})}function W({kind:s}){const a=s==="not-found",i=p.en;return e.jsx(N,{skipLabel:i.skip,children:e.jsxs("main",{id:"news-content",className:"news-status",children:[e.jsx("p",{className:"news-eyebrow",children:"Nocstar News"}),e.jsx("h1",{children:a?i.notFoundTitle:i.unavailableTitle}),e.jsx("p",{children:a?i.notFoundBody:i.unavailableBody}),e.jsx("a",{href:"/news",children:i.statusBack})]})})}function q({bootstrap:s}){return s.kind==="index"?e.jsx(H,{bootstrap:s}):s.kind==="article"?e.jsx(K,{bootstrap:s}):e.jsx(W,{kind:s.kind})}function J({bootstrap:s}){const a=s.kind==="article"?s.article.data.locale:s.kind==="index"?x:z,i=a.toLowerCase().startsWith("de")?"de":"en";return e.jsx(A,{initialLanguage:i,documentLanguage:a,children:e.jsx(q,{bootstrap:s})})}export{J as NewsApplication};
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.