PageSourceSearch

https://enterprisegreece.gov.gr/_nuxt/SK9d97W0.js

js enterprisegreece.gov.gr collected 2026-10-02 04:10:41 UTC 3,909 bytes, 1 lines download raw bytes

1import{d as y,c as D,a as b,o as r,f as d,F as V,B as T,v as M,x as k,g as x,y as $,h as s,i as C,J as B,r as p,t as A,C as W,L as E,H as S}from"./tP_neK1T.js";import{s as z}from"./DjxsCAPF.js";import{u as H}from"./B6_m7RZ8.js";import{h as Y}from"./C5S46NFB.js";const N="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%200C11.0218%200%207.20644%201.58035%204.3934%204.3934C1.58035%207.20644%200%2011.0218%200%2015C0%2018.9782%201.58035%2022.7936%204.3934%2025.6066C7.20644%2028.4196%2011.0218%2030%2015%2030C18.9782%2030%2022.7936%2028.4196%2025.6066%2025.6066C28.4196%2022.7936%2030%2018.9782%2030%2015C30%2011.0218%2028.4196%207.20644%2025.6066%204.3934C22.7936%201.58035%2018.9782%200%2015%200ZM23.9286%2016.7857H16.7857V23.9286H13.2143V16.7857H6.07143V13.2143H13.2143V6.07143H16.7857V13.2143H23.9286V16.7857Z'%20fill='white'/%3e%3c/svg%3e",O={class:"border-t border-t-white pt-10 space-y-10"},Z={class:"text-base leading-6 font-bold text-white"},j=["innerHTML"],F=y({__name:"CalendarEvents",props:["ids"],setup(v){const f=v,i=C(),l=D(()=>f.ids),m=b(),{data:_,status:g}=H(`${i.public.apiBase}/wp-json/wp/v2/events`,{query:{acf_format:"standard","_fields[]":["id","title","url","link","slug","acf.date_from","acf.date_to"],"include[]":l,per_page:100,lang:m.locale.value}},"$IkiQlWJwQ0"),u=n=>{try{return new Date(n).toLocaleDateString(m.locale.value,{year:"numeric",month:"numeric",day:"numeric"})}catch{return""}};return(n,c)=>{const e=B;return r(),d("div",O,[(r(!0),d(V,null,T(s(_),o=>(r(),d("div",{key:o.id,class:"space-y-2"},[M("div",Z,k(u(new Date(o.acf.date_from))),1),x(e,{to:o.link,class:"flex justify-between items-start"},{default:$(()=>[M("div",{class:"text-2xl leading-8 font-bold text-orange-bright",innerHTML:("sanitizeTitle"in n?n.sanitizeTitle:s(z))(o.title.rendered)},null,8,j),c[0]||(c[0]=M("img",{src:N},null,-1))]),_:2},1032,["to"])]))),128))])}}}),I={class:"w-[34.25rem] max-w-full bg-blue-cobalt calendar p-5 lg:p-13 rounded-2.5xl space-y-5 lg:space-y-10"},q={key:1,class:"border-t border-t-white pt-10 text-2xl leading-8 font-bold text-white"},J=y({__name:"Calendar",setup(v){const f=p({title:"MMMM YYYY",weekdays:"WW",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),i=p();i.value=Y().startOf("month").format("YYYY-MM-DD");const l=p();l.value=Y().endOf("month").format("YYYY-MM-DD");const m=([t])=>{const a=Y(t.id).startOf("month").format("YYYY-MM-DD"),h=Y(t.id).endOf("month").format("YYYY-MM-DD");i.value=a,l.value=h},_=C(),g=b(),{data:u,status:n}=H(`${_.public.apiBase}/wp-json/wp/v2/events`,{query:{acf_format:"standard","_fields[]":["id","title","acf.date_from","acf.date_to"],date_from:i,date_to:l,per_page:100,lang:g.locale.value}},"$VZTL69gRzv"),c=D(()=>{let t=[];return u.value instanceof Array&&n.value==="success"&&(t=u.value.map(a=>({dates:[{start:new Date(a.acf.date_from),end:new Date(a.acf.date_to)}],key:a.id,content:a.title.rendered}))),e.value&&t.push({dates:e.value.date,highlight:!0}),t}),e=p(),o=t=>{var a;((a=e.value)==null?void 0:a.id)===t.id?e.value=null:e.value=t},w=D(()=>e.value?e.value.attributes.map(t=>t.key):[]);return(t,a)=>{const h=A("VCalendar"),L=F;return r(),d("div",I,[x(h,{transparent:"",borderless:"","trim-weeks":"","title-position":"left",masks:s(f),"first-day-of-week":2,"onUpdate:pages":m,onDayclick:o,attributes:s(c)},null,8,["masks","attributes"]),s(e)&&s(w).length?(r(),W(L,{key:0,ids:s(w)},null,8,["ids"])):s(e)?(r(),d("div",q,k(t.$t("no_events")),1)):E("",!0)])}}}),G=S(J,[["__scopeId","data-v-b784369a"]]);export{G as _};

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.