1import{j as C,q as b,o as n,c as u,b as a,w as o,m as h,y as w,a as c,H as k,t as v,n as s,d as L,z as V,P as O,e as F,L as R,g as q,r as g,l as j,I as D,J as I,M as z}from"./entry.e1271797.js";import{_ as J}from"./SectionHeading.vue.a58bf843.js";import{_ as A}from"./Button.9030097d.js";import{f as m,p as B}from"./index.b9f4dcd2.js";const G={class:"flex flex-wrap justify-between pt-8 md:flex-nowrap"},K={class:"flex flex-wrap text-15 md:flex-nowrap"},Q=c("span",{class:"mx-2"},"|",-1),U=c("span",{class:"mx-2"},"|",-1),W=C({__name:"EventsListItem",props:{title:Object,subtitle:Object,start:String,end:String,place:Object,uid:String,image:Object,isPast:Boolean},setup(t){const l=t,d=b(()=>m(B(l.start),"d. M. yyyy")),f=b(()=>m(B(l.start),"H:mm")),p=b(()=>m(B(l.end),"H:mm"));return(P,_)=>{const r=V,y=O,x=F,i=A;return n(),u("div",{class:k([{"border-b":t.isPast},"border-white/20 pb-10"])},[a(x,{to:`udalost/${t.uid}`},{default:o(()=>[t.isPast?w("",!0):(n(),h(r,{key:0,field:t.image,class:"w-full"},null,8,["field"])),c("div",G,[c("div",null,[a(y,{field:t.subtitle,class:"text-15 text-green"},null,8,["field"]),a(x,{to:`udalost/${t.uid}`,class:"block pb-3 pt-2"},{default:o(()=>[a(y,{field:t.title,class:k(["font-light tracking-wide",[t.isPast?"text-25 md:text-35":"text-28 md:text-50"]])},null,8,["field","class"])]),_:1},8,["to"]),c("div",K,[c("span",null,v(s(d)),1),Q,c("span",null,v(s(f))+" - "+v(s(p)),1),U,a(y,{field:t.place},null,8,["field"])])]),a(x,{to:`udalost/${t.uid}`,class:k([{"self-end":t.isPast},"mt-6 flex w-full justify-center md:mt-0 md:block md:w-auto "])},{default:o(()=>[a(i,{size:t.isPast?"small":"big",class:"mt-6 md:mt-0"},{default:o(()=>[L("DETAIL")]),_:1},8,["size"])]),_:1},8,["to","class"])])]),_:1},8,["to"])],2)}}}),X=["data-slice-type","data-slice-variation"],Y={key:0,class:"flex flex-wrap md:flex-nowrap"},Z={key:1,class:"mt-32 flex flex-wrap"},tt={class:"w-full md:ml-4 md:w-11/16 xl:ml-0"},it=C({__name:"index",props:R(),setup(t){const l=q(),d=g(1),f=g([]),p=g(!1),P=g(!0),{data:_}=j("futureEvents",()=>l.client.getAllByType("event",{filters:[l.filter.dateAfter("my.event.end",m(new Date,"yyyy-MM-dd"))]})),{data:r}=j("pastEvents",()=>l.client.getByType("event",{filters:[l.filter.dateBefore("my.event.end",m(new Date,"yyyy-MM-dd"))],pageSize:3,page:d.value})),y=()=>{p.value=!0,l.client.getByType("event",{filters:[l.filter.dateBefore("my.event.end",m(new Date,"yyyy-MM-dd"))],pageSize:3,page:d.value}).then(i=>{f.value=[...f.value,...i.results],i.next_page||(P.value=!1)}).finally(()=>p.value=!1)},x=()=>{d.value=d.value+1,y()};return(i,et)=>{var $,S,M;const E=O,N=J,T=W,H=A;return n(),u("section",{"data-slice-type":i.slice.slice_type,"data-slice-variation":i.slice.variation,class:"mt-[75px] pt-[75px] md:mt-[125px] md:pt-[125px]",id:"aktualne"},[s(_)&&s(_).length?(n(),u("div",Y,[a(N,{"has-star":""},{default:o(()=>[a(E,{field:i.slice.primary.currenteventstitle},null,8,["field"])]),_:1}),(n(!0),u(D,null,I(s(_),e=>(n(),h(T,z({key:e.id,uid:e.uid},e.data,{class:"w-full md:w-11/16"}),null,16,["uid"]))),128))])):w("",!0),($=s(r))!=null&&$.results&&s(r).results.length?(n(),u("div",Z,[a(N,{class:"pt-8"},{default:o(()=>[a(E,{field:i.slice.primary.pasteventstitle},null,8,["field"])]),_:1}),c("div",tt,[(n(!0),u(D,null,I([...(S=s(r))==null?void 0:S.results,...s(f)],e=>(n(),h(T,z({key:e==null?void 0:e.id,uid:e==null?void 0:e.uid},e==null?void 0:e.data,{"is-past":!0}),null,16,["uid"]))),128)),(M=s(r))!=null&&M.next_page&&s(P)?(n(),h(H,{key:0,class:"mt-14",onClick:x},{default:o(()=>[L(v(s(p)?"NaÄÃtám...":"NaÄÃst dalÅ¡Ã"),1)]),_:1})):w("",!0)])])):w("",!0)],8,X)}}});export{it 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.