1import{_ as $,a as w}from"./D6SiLBhx.js";import{_ as E}from"./BS97Atg7.js";import{f as S,g as q}from"./C677hslQ.js";import{z as H,k as l,ad as P,M as r,P as k,X as y,L as p,V as t,u as n,N as m,Z as o,Q as c,R as z,O as I,Y as M,a0 as b}from"./CrQeYvpp.js";import"./b59VrHHm.js";import"./BJ_W4llo.js";const O={class:"grid grid-cols-2 gap-15 lg:grid-cols-3"},Q={class:"col-span-2"},R={key:0,class:"mb-2 text-gray-500 sm:mb-3"},T={class:"mb-2 flex flex-wrap items-start gap-5 md:gap-8"},X={class:"font-semibold"},Y=["datetime"],Z={key:0,class:"px-2"},j=["datetime"],A={key:1},F={class:"typo-h-5 text-gray-500"},G={class:"max-lg:col-span-2"},te=H({__name:"Event",props:{page:{}},setup(D){const a=D,{t:C,locale:B,locales:L}=S(),_=l(()=>f(a.page.date_start)),g=l(()=>f(a.page.date)),N=l(()=>[{link:a.page.link_external,link_text:C("more")},...a.page.links]),u=l(()=>{var e;return a.page.publisher?a.page.publisher.title:(e=a.page.site_attributes.find(s=>s.key==="title"))==null?void 0:e.value});function f(e){if(!e)return;const s=new Date(e);if(!s)return;const i=L.value.find(d=>d.code===B.value);return s.toLocaleDateString((i==null?void 0:i.language)||"de-CH",{year:"numeric",month:"long",day:"numeric"})}return(e,s)=>{const i=$,d=E,h=w,V=q,v=P("editor-target");return r(),k(V,null,{default:y(()=>[p(i),t("div",O,[t("div",Q,[n(u)?(r(),m("p",R,o(n(u)),1)):c("",!0),t("div",T,[t("div",X,[t("time",{datetime:e.page.date_start},o(n(_)),9,Y),n(_)&&n(g)?(r(),m("span",Z,"-")):c("",!0),t("time",{datetime:e.page.date},o(n(g)),9,j),e.page.time_slot?(r(),m("p",A,o(e.page.time_slot),1)):c("",!0)]),t("div",null,[t("h4",F,o(e.$t("location_of_event")),1),e.page.event_location||e.page.event_location_link?(r(),k(z(e.page.event_location_link?"a":"p"),I({key:0},e.page.event_location_link?{href:e.page.event_location_link,target:"_blank"}:null,{class:["text-gray-500",{"transition-colors duration-300 hover:text-red-500":e.page.event_location_link}]}),{default:y(()=>[M(o(e.page.event_location),1)]),_:1},16,["class"])):c("",!0)])]),p(d,{data:{heading:e.page.heading,text:e.page.text,image:e.page.image,copyright:e.page.copyright,links:n(N),player_id_3q:e.page.player_id_3q}},null,8,["data"]),b(p(h,{components:e.page.main_components},null,8,["components"]),[[v,"main_components"]])]),t("div",G,[b(p(h,{class:"space-y-7",components:e.page.sidebar_components},null,8,["components"]),[[v,"sidebar_components"]])])])]),_:1})}}});
1export{te as default}; 2//# sourceMappingURL=CgX_fNsT.js.map
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.