1import{_ as V}from"./DAESzTPN.js";import{N as z}from"./UKaUsett.js";import{_ as T}from"./Bh6tErse.js";import{_ as U}from"./Fw9xHg9y.js";import{Q as j,aY as S,aZ as O,a5 as P,am as q,K as M,J as G,ax as F,h as Q,ap as l,aq as e,as as d,a3 as s,aD as C,ar as o,ay as n,az as u,aA as g,aG as m,aF as E,a4 as y,a_ as Y,B as H,a$ as J,ao as a}from"./X2xg9DNx.js";import{u as K}from"./i3t6A1my.js";import{u as W}from"./BRrfJlJx.js";import"./CZvogT32.js";import"./DaT-yT0k.js";import"./BudOepd9.js";import"./Xvs-Chep.js";const w=S??O;function Z(L){const _=j()?.locale.value??"en";return{getNames:()=>w.getNames(_),getName:b=>w.getName(b,_),getCode:b=>w.getAlpha2Code(b,_)||void 0,getAlpha2Codes:()=>w.getAlpha2Codes()}}const X={class:"section"},ee={class:"single-event"},te={class:"single-event__media aspect-square relative h-single-event-cover mb-0 md:aspect-video xl:aspect-auto"},se={class:"absolute inset-0 bg-gray-700"},le={class:"absolute inset-0"},ae={class:"container flex flex-col h-full py-8 lg:py-10 xl:py-12"},oe={class:"flex-1"},ne={class:"hidden md:block mb-2"},re={class:"breadcrumbs flex list-none text-sm text-white opacity-75 -mx-1 mb-0"},ie={class:"block truncate mb-0 px-1"},ce={class:"block truncate mb-0 px-1"},de={class:"block truncate mb-0 px-1"},ue={class:"single-event__header xl:w-2/3 mb-4"},_e={key:0,class:"single-event__categories font-semibold text-xs tracking-wider uppercase"},me={class:"text-primary"},he={class:"single-event__title text-3xl lg:text-4xl xl:text-6xl text-white my-3"},pe={key:1,class:"single-event__intro text-white opacity-75 mb-0"},be={class:"container py-8 lg:py-10 xl:py-14"},xe={class:"flex flex-wrap xl:flex-row-reverse -mx-4 xl:-mx-6"},fe={class:"w-full xl:w-3/4 px-4 xl:px-6"},ve={class:"single-event__body"},ge={class:"single-event__content"},ye={key:0,class:"mb-8"},we={class:"text-2xl mb-4"},ke=["src","title"],De={key:1,class:"mt-6"},Ne=["href","title"],$e={key:1,class:"mb-8"},Ce={class:"flex flex-wrap -m-2"},Ee={key:2,class:"mb-8"},Le={class:"text-2xl mb-6"},Ae={class:"team flex flex-wrap -mx-4"},Re={class:"person border border-gray-200 p-8 rounded text-center h-full"},Be={key:0,class:"w-32 mx-auto mb-0 aspect-square relative"},Ie={class:"person__header mt-4"},Ve={class:"person__name text-lg mb-0"},ze={key:0,class:"person__position text-sm text-gray-500"},Te={class:"w-full xl:w-1/4 px-4 xl:px-6"},Ue={class:"sidebar sticky top-8 pb-1"},je={key:0,class:"bg-white aspect-4/3 rounded relative shadow-lg mb-8"},Se={class:"flex items-center justify-center absolute inset-0 p-8"},Oe={class:"mb-8"},Pe={class:"list-none ml-0"},qe={key:0,class:"flex flex-wrap mb-4"},Me={class:"w-10"},Ge={class:"flex-1"},Fe={key:1,class:"flex flex-wrap mb-4"},Qe={class:"w-10"},Ye={class:"flex-1"},He={class:"flex-1 not-italic"},Je={key:0},Ke={key:1},We={key:2,class:"flex flex-wrap mb-4"},Ze={class:"w-10"},Xe={class:"flex-1"},et=["href"],tt={key:3,class:"flex flex-wrap mb-4"},st={class:"w-10"},lt={class:"flex-1"},at={class:"mb-8"},ot=["href"],nt={class:"btn__text"},rt={class:"btn__text"},it=["href"],ct={class:"btn__text"},dt={key:1,class:"mb-8 xl:mb-10"},ut={class:"text-xl mb-6"},_t={class:"list-none flex leading-none -mx-3 mb-0"},mt=["href","aria-label"],ht={key:2,class:"mb-8"},pt={class:"text-xl mb-6"},bt=["src","title"],Et=P({__name:"[slug]",async setup(L){let _,b;const{t:A}=q(),f=M(),R=G(),{data:k}=([_,b]=F(()=>H(`event:${f.path}`,()=>K().find({path:f.path}))),_=await _,b(),_);if(!k.value||k.value.type!=="events")throw Q({status:404,statusText:A("Page not found")});const t=y(()=>new Y(k.value)),D=y(()=>t.value.countryCode?Z().getName(t.value.countryCode):void 0),B=y(()=>Object.values(t.value.address).some(r=>!!r)),v=y(()=>{const r=t.value.address;return[r.line1,r.postalCode,r.city,D.value].filter(Boolean).join(", ")}),$=r=>J(r)?.replace(/[-:]|\.\d{3}/g,""),I=()=>{const r=t.value.address,i=N=>N.replace(/([,;\\])/g,"\\$1").replace(/\n/g,"\\n"),x=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//GIM International//Events//EN","BEGIN:VEVENT",`UID:${t.value.id}@gim-international.com`,`DTSTART:${$(t.value.startDate)}`,t.value.endDate?`DTEND:${$(t.value.endDate)}`:"",`SUMMARY:${i(t.value.title??"")}`,`URL:${R.origin}${f.path}
1`,v.value?`LOCATION:${i([r.name,v.value].filter(Boolean).join(", "))}`:"","END:VEVENT","END:VCALENDAR"].filter(Boolean),h=document.createElement("a");h.href=URL.createObjectURL(new Blob([x.join(`\r 2`)],{type:"text/calendar;charset=utf-8"})),h.download=`${f.path.split("/").pop()||"event"}.ics`,h.click(),URL.revokeObjectURL(h.href)};return W(t),(r,i)=>{const x=V,h=z,N=T,p=U;return a(),l("section",X,[e("article",ee,[e("figure",te,[e("div",se,[d(x,{class:"single-event__image h-full w-full object-cover",src:s(t).cover?.url??"/img/event-cover.png",alt:s(t).cover?.name??s(t).title??""},null,8,["src","alt"]),i[0]||(i[0]=e("div",{class:"absolute inset-0 bg-black/25 select-none"},null,-1)),i[1]||(i[1]=e("div",{class:"absolute inset-0 bg-linear-to-t from-black opacity-75 select-none"},null,-1))]),e("div",le,[e("div",ae,[e("div",oe,[e("nav",ne,[e("ul",re,[e("li",ie,[d(h,{to:"/",class:"text-current"},{default:C(()=>[m(o(r.$t("Home")),1)]),_:1})]),i[2]||(i[2]=e("li",{class:"mb-0 px-1"},[e("span",{class:"align-middle"},"âº")],-1)),e("li",ce,[d(h,{to:"/events",class:"text-current"},{default:C(()=>[m(o(r.$t("Events")),1)]),_:1})]),i[3]||(i[3]=e("li",{class:"mb-0 px-1"},[e("span",{class:"align-middle"},"âº")],-1)),e("li",de,[e("span",null,o(s(t).title),1)])])])]),e("header",ue,[s(t).categories.length?(a(),l("div",_e,[e("span",me,o(s(t).categories[0].title),1)])):n("",!0),e("h1",he,o(s(t).title),1),s(t).subtitle?(a(),l("p",pe,o(s(t).subtitle),1)):n("",!0)])])])]),e("div",be,[e("div",xe,[e("div",fe,[e("section",ve,[e("div",ge,[s(t).content?(a(),l("div",ye,[e("h3",we,o(r.$t("Description")),1),d(N,{class:"prose-a:text-primary prose-a:no-underline prose-a:hover:underline",content:s(t).content},null,8,["content"]),s(t).videoUrl?(a(),l("iframe",{key:0,class:"w-full aspect-video mt-6",src:s(t).videoUrl,title:r.$t("Event video"),frameborder:"0",allowfullscreen:""},null,8,ke)):n("",!0),s(t).brochure?(a(),l("p",De,[e("a",{href:s(t).brochure.url,target:"_blank",rel:"noopener",title:s(t).brochure.description??void 0},o(r.$t("Download brochure")),9,Ne)])):n("",!0)])):n("",!0),s(t).gallery.length?(a(),l("div",$e,[e("div",Ce,[(a(!0),l(u,null,g(s(t).gallery,c=>(a(),l("figure",{key:c.id,class:"w-full p-2 md:w-1/2 xl:w-1/3"},[d(x,{class:"rounded w-full aspect-video object-cover",src:c.url,alt:c.name??c.filename,loading:"lazy"},null,8,["src","alt"])]))),128))])])):n("",!0),s(t).contactPersons.length?(a(),l("div",Ee,[e("h3",Le,o(r.$t("Speakers")),1),e("div",Ae,[(a(!0),l(u,null,g(s(t).contactPersons,c=>(a(),l("div",{key:c.id,class:"w-full px-4 mb-8 md:w-1/2 xl:w-1/3"},[e("article",Re,[c.image?(a(),l("figure",Be,[d(x,{class:"absolute inset-0 w-full h-full object-cover rounded-full",src:c.image.url,alt:c.fullName,loading:"lazy"},null,8,["src","alt"])])):n("",!0),e("header",Ie,[e("h3",Ve,o(c.fullName),1),c.function?(a(),l("span",ze,o(c.function),1)):n("",!0)])])]))),128))])])):n("",!0)])])]),e("div",Te,[e("aside",Ue,[s(t).image?(a(),l("figure",je,[e("span",Se,[d(x,{class:"max-w-full max-h-full",src:s(t).image.url,alt:s(t).image.name??s(t).title??""},null,8,["src","alt"])])])):n("",!0),e("div",Oe,[i[8]||(i[8]=e("h3",{class:"text-xl mb-6"},"Details & Venue",-1)),e("ul",Pe,[s(t).startDate?(a(),l("li",qe,[e("div",Me,[d(p,{name:"calendar","size-class":"h-6 w-6 text-gray-500"})]),e("div",Ge,[e("span",null,[m(o(("formatDate"in r?r.formatDate:s(E))(s(t).startDate,{style:"date"}))+" ",1),s(t).endDate?(a(),l(u,{key:0},[m(" - "+o(("formatDate"in r?r.formatDate:s(E))(s(t).endDate,{style:"date"})),1)],64)):n("",!0)])])])):n("",!0),s(B)?(a(),l("li",Fe,[e("div",Qe,[d(p,{name:"mapMarker","size-class":"h-6 w-6 text-gray-500"})]),e("div",Ye,[e("address",He,[s(t).address.name?(a(),l("strong",Je,o(s(t).address.name),1)):n("",!0),s(t).address.name?(a(),l("br",Ke)):n("",!0),s(t).address.line1?(a(),l(u,{key:2},[m(o(s(t).address.line1),1),i[4]||(i[4]=e("br",null,null,-1))],64)):n("",!0),s(t).address.line2?(a(),l(u,{key:3},[m(o(s(t).address.line2),1),i[5]||(i[5]=e("br",null,null,-1))],64)):n("",!0),s(t).address.postalCode||s(t).address.city?(a(),l(u,{key:4},[m(o(s(t).address.postalCode)+" "+o(s(t).address.city),1),i[6]||(i[6]=e("br",null,null,-1))],64)):n("",!0),s(D)?(a(),l(u,{key:5},[m(o(s(D)),1),i[7]||(i[7]=e("br",null,null,-1))],64)):n("",!0)])])])):n("",!0),s(t).email?(a(),l("li",We,[e("div",Ze,[d(p,{name:"at","size-class":"h-6 w-6 text-gray-500"})]),e("div",Xe,[e("a",{href:`mailto:${s(t).email}`},o(s(t).email),9,et)])])):n("",!0),s(t).phoneNumbers.length?(a(),l("li",tt,[e("div",st,[d(p,{name:"phone","size-class":"h-6 w-6 text-gray-500"})]),e("div",lt,[(a(!0),l(u,null,g(s(t).phoneNumbers,c=>(a(),l("span",{key:c,class:"block"},o(c),1))),128))])])):n("",!0)])]),e("div",at,[s(t).customButton?(a(),l("a",{key:0,href:s(t).customButton.url,target:"_blank",rel:"noopener",class:"btn bg-primary text-white w-full mb-3 hover:bg-primary/80"},[e("span",nt,o(s(t).customButton.text),1)],8,ot)):n("",!0),s(t).startDate?(a(),l("button",{key:1,type:"button",class:"btn bg-gray-800 text-white w-full mb-3 hover:bg-gray-900",onClick:I},[d(p,{name:"calendarPlus","size-class":"h-5 w-5 mr-2"}),e("span",rt,o(r.$t("Add to calendar")),1)])):n("",!0),s(t).website?(a(),l("a",{key:2,href:s(t).website,target:"_blank",rel:"noopener",class:"btn bg-transparent border text-gray-900 w-full hover:bg-gray-200"},[e("span",ct,o(r.$t("Visit Website")),1),d(p,{name:"externalLink","size-class":"h-4 w-4 ml-2"})],8,it)):n("",!0)]),s(t).socials.length?(a(),l("div",dt,[e("h3",ut,o(r.$t("Social")),1),e("ul",_t,[(a(!0),l(u,null,g(s(t).socials,c=>(a(),l("li",{key:c.name,class:"group relative mb-0"},[e("a",{class:"block text-xl text-gray-500 hover:text-gray-900 px-3",target:"_blank",rel:"noopener",href:c.url,"aria-label":c.label},[d(p,{name:c.name,"size-class":"h-6 w-6"},null,8,["name"])],8,mt)]))),128))])])):n("",!0),s(v)?(a(),l("div",ht,[e("h3",pt,o(r.$t("Location")),1),e("iframe",{class:"aspect-video rounded w-full",src:`https://www.google.com/maps?q=${encodeURIComponent(s(v))}&z=6&output=embed`,title:r.$t("Event location"),loading:"lazy",referrerpolicy:"no-referrer-when-downgrade"},null,8,bt)])):n("",!0)])])])])])])}}});
2export{Et 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.