1import{_ as k}from"./DSgtGwva.js";import b from"./CPlI_u3E.js";import{_ as z}from"./d6j_Zibv.js";import{_ as N}from"./Rf0OVu0j.js";import{_ as B}from"./DpxdqmU2.js";import{_ as D}from"./337atbIS.js";import{n as C}from"./DXCo9w_9.js";import{e as g,o as t,c as i,a as s,b as n,d as u,t as _,h as y,w as L,i as v,F as c,r as h,f as T}from"./CxfkTsMZ.js";import{u as $}from"./BbBv2DJj.js";import{u as E}from"./CJPaHQq2.js";import{q}from"./CeehC2PP.js";import"./z4P8Yf4K.js";import"./lFQbjToB.js";import"./BsQBRbyB.js";const A={class:"relative"},S={class:"relative container-padding mx-auto px-6 sm:px-12 mb-24 sm:w-fit"},V={class:"rounded-lg max-w-4xl px-6 py-8 bg-white border-4 border-charcoal-light shadow-edge shadow-green-dark hyphens-auto"},F={class:"flex flex-wrap gap-x-6 gap-y-2 text-lg mb-4"},G=["id"],H=g({__name:"NewsEntry",props:{news:{type:Object,required:!0},linkTitle:{type:Boolean,default:!1}},setup(e){const o=[{size:"lg",position:"-right-8 top-[20%]"},{size:"xs",position:"left-8 top-[50%]"},{size:"sm",position:"right-16 bottom-[10%]"},{size:"xs",position:"right-[30%] bottom-[0%]"}],m=[{size:"md",position:"-left-4 bottom-[5%]"}];return(x,f)=>{const a=b,d=z,p=N,w=B,r=D;return t(),i("div",A,[s("div",S,[s("div",V,[s("div",F,[s("div",null,[n(a,{name:"mdi:calendar",class:"align-text-top"}),u(" "+_(new Date(e.news.date).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"})),1)]),s("div",null,[n(a,{name:"mdi:account",class:"align-text-top"}),u(" Author: "+_(e.news.author),1)])]),s("h3",{class:"mb-2",id:e.news.stem.slice(5)},[e.linkTitle?(t(),y(d,{key:0,to:v(C)(e.news.date,e.news.title),class:"no-underline hover:no-underline text-inherit hover:text-inherit"},{default:L(()=>[u(_(e.news.title),1)]),_:1},8,["to"])):(t(),i(c,{key:1},[u(_(e.news.title),1)],64))],8,G),n(p,{value:e.news},null,8,["value"]),n(w,{news:e.news,max:4,"show-more":"",class:"mt-4"},null,8,["news"])]),(t(),i(c,null,h(m,l=>n(r,{position:l.position,size:l.size,rotation:"45",color:"orange"},null,8,["position","size"])),64))]),(t(),i(c,null,h(o,l=>n(r,{position:l.position,size:l.size,rotation:"45",color:"orange"},null,8,["position","size"])),64))])}}}),ee=g({__name:"index",async setup(e){let o,m;$({title:"News",description:"Latest ECMTB 2026 news, updates, and announcements."});const{data:x}=([o,m]=T(()=>E("news",()=>q("news").all())),o=await o,m(),o),f=x.value.sort((a,d)=>new Date(d.date).getTime()-new Date(a.date).getTime());return(a,d)=>{const p=k,w=H;return t(),i(c,null,[n(p,{heading:"News","max-width":"max-w-4xl"}),(t(!0),i(c,null,h(v(f),r=>(t(),y(w,{key:r.id,news:r,"link-title":!0},null,8,["news"]))),128))],64)}}});export{ee 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.