1import{_ as P}from"./Breadcrumbs.00dd5cb6.js";import{_ as T}from"./Reflex-Table.41fcd604.js";import{d as B,b as M,a8 as N,w as V,r as G,o as Y,R as q,n as z,g as A,C as I,v as n,h as _,G as y,F as u,s as w,m as C,i as D,k as S,z as K,q as R,l as j,K as H}from"./entry.34849272.js";import{u as J}from"./useEvents.f7af403f.js";import"./Reflex-Tag.b7abcc79.js";const O={class:"page-stage events"},Q={class:"page-content events"},U={class:"content-blok table"},W={class:"table-container"},X={key:0,class:"headline"},Z=B({__name:"EventsPage",props:{blok:{}},async setup($){let r,m;const{pageConfig:o}=M(),{globalConfig:E}=N(),{sortedEvents:L}=([r,m]=V(()=>J()),r=await r,m(),r);let c=G([]);const b=()=>{c.value=[],L.forEach(e=>{var g,h,p,f,v,k;const s=new Date(e.date),a=e.date_to?new Date(e.date_to):void 0,d=new Date;let i;if(a&&a>s){let x=s.getFullYear()!==a.getFullYear(),F=s.getMonth()!==a.getMonth();i=s.toLocaleDateString((g=o.value)==null?void 0:g.html_lang,{year:x?"numeric":void 0,month:F?"long":void 0,day:"2-digit"})+" - "+a.toLocaleDateString((h=o.value)==null?void 0:h.html_lang,{year:"numeric",month:"long",day:"2-digit"})}else i=s.toLocaleDateString((p=o.value)==null?void 0:p.html_lang,{year:"numeric",month:"long",day:"2-digit"});let t="";e.hall_number&&e.hall_number!==""&&((f=o.value)!=null&&f.events_hall_label&&(t+=o.value.events_hall_label+": "),t+=e.hall_number),e.stand_number&&e.stand_number!==""&&(t!==""&&(t+=", "),(v=o.value)!=null&&v.events_stand_label&&(t+=o.value.events_stand_label+": "),t+=e.stand_number);let l={headline:i,content:e.location,location:t!==""?t:void 0,subheadline:e.name,link:e.link,linkLabel:(k=o.value)==null?void 0:k.events_link_label};a&&a>=d&&c.value.push(l)})};return Y(()=>{b()}),q(()=>E.value,()=>{z(()=>b())}),(e,s)=>{const a=A("StoryblokComponent"),d=P,i=T,t=I("editable");return n(),_(u,null,[y((n(),_("div",O,[(n(!0),_(u,null,w(e.blok.stage,l=>(n(),C(a,{key:l._uid,blok:l},null,8,["blok"]))),128)),D(d)])),[[t,e.blok]]),y((n(),_("div",Q,[S("div",U,[S("div",W,[e.blok.headline?(n(),_("h2",X,K(e.blok.headline),1)):R("",!0),D(i,{rows:j(c)},null,8,["rows"])])]),(n(!0),_(u,null,w(e.blok.body,l=>(n(),C(a,{key:l._uid,blok:l},null,8,["blok"]))),128))])),[[t,e.blok]])],64)}}});const le=H(Z,[["__scopeId","data-v-181b0df7"]]);export{le as default};
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.