1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fsuEU1ez.js","./6Py2VufL.js","./CTwjLVo9.js","./entry.GTDaU2Ti.css","./w1MSXho_.js","./DialogWrapper.DQdMmMro.css"])))=>i.map(i=>d[i]); 2import{aE as P,d as G,b as H,a as W,H as V,u as F,f as J,a_ as K,s as B,a0 as Y,aG as Q,x as C,c as X,z as Z,aH as U,G as tt,o as et,aI as M,v as ot,Y as nt,al as it,B as R,w as q,_ as rt,h as f,p as w,k as i,i as a,g as E,j as at,t as A}from"./CTwjLVo9.js";import{_ as st}from"./BIjP2eUN.js";import{_ as pt}from"./Dn2A0rWu.js";import{_ as mt}from"./Bzhfe_B_.js";import{r as ct,c as lt,g as ut,b as dt,u as ht}from"./CHLtqFEL.js";import{s as z}from"./B4T6mMwU.js";import{u as gt}from"./w1MSXho_.js";import{u as vt}from"./vNIsOx86.js";import"./D6FiFRGy.js";import"./CBpn5Y-S.js";import"./D_OdUaE7.js";import"./ByQx193Y.js";import"./B_dCBO1A.js";import"./BW8cOP_z.js";import"./CQvBmCo7.js";import"./D1vMUz1j.js";import"./bBw5zPAx.js";import"./CRpPdzmX.js";import"./8b7EUdEG.js";import"./BYqUDw14.js";import"./VkgdlFCZ.js";import"./CC9lXLEG.js";import"./BnmPslvb.js";import"./BinXVSQ2.js";import"./SMfikpvB.js";import"./BzgCCWWy.js";import"./t8S7Hv77.js";import"./BA8uc1Iw.js";import"./BPSorZsV.js";import"./DEkXRZ63.js";import"./DzjCX4Hv.js";import"./BizVsW3B.js";import"./BceJSyN2.js";import"./DlTeOMpR.js";import"./BnT5kfpa.js";import"./DOWGfWbU.js";import"./DNXVbI7U.js";import"./0EGJf0XA.js";import"./CK1zJww_.js";import"./5WBQHpNJ.js";import"./BAXG3Ijl.js";import"./BLXxdsiG.js";import"./cToDn3Hm.js";import"./Dcfwd_VN.js";import"./CsAKYKhW.js";import"./CRPmxj52.js";import"./DnYL1FqQ.js";import"./CO6soIAa.js";import"./Ct3LZDQM.js";import"./CPVRixNl.js";import"./BbNbQa5r.js";import"./BP88Ma9M.js";import"./Dp4sGd9v.js";import"./BLjCje-F.js";import"./r2C7mQ1R.js";import"./BbGo2FX6.js";import"./BS4aiy9M.js";import"./D4M5UUJb.js";import"./DHXce0Ej.js";import"./nLGLlY2n.js";import"./CDnsxY5v.js";import"./BCC6s2Rd.js";import"./CJCLWPnE.js";import"./DDg_J23w.js";import"./CnbeD5Zv.js";import"./CS_3-pzy.js";import"./BUTdjT68.js";import"./Msxk8-9u.js";import"./CRMOhQ4l.js";import"./GWRCFm5p.js";import"./N-jLRscd.js";import"./BQxQfa59.js";import"./ChXo84Mh.js";import"./CoaiQWn1.js";import"./C6xRSlEY.js";import"./rcegS_SJ.js";import"./DQEAR4Lg.js";import"./kZp_4KqM.js";import"./Clde3h0N.js";import"./Bj8JijCX.js";import"./DZurJQD_.js";import"./ZDIr96DJ.js";import"./CUf1y81f.js";import"./BXWXHAo2.js";import"./IVCv1yaK.js";import"./DWRDOmvU.js";import"./BgpGmnJ2.js";import"./CujzrOSn.js";import"./DV9_tCdf.js";import"./DFNhhuJx.js";import"./Y2ReQCcB.js";import"./D4cJbWPy.js";import"./gE5i6HOm.js";import"./CnGaGsaJ.js";import"./DBwbgBsa.js";import"./_NEqh_RT.js";import"./BUvHj3Vh.js";import"./C1cNuOjh.js";import"./DfXzjW-o.js";import"./zhtX_No8.js";import"./DyJ9bgkC.js";import"./hBKOvaze.js";import"./BbON9zhe.js";import"./DMsxsjxB.js";import"./D8B-1ICt.js";import"./Doz9SQD6.js";import"./Cyt9PUyV.js";import"./BYQOmsHC.js";import"./CWIR64Hc.js";import"./CZ5geWYZ.js";import"./YwqeCd4x.js";import"./BM_IL8oE.js";import"./CNmkNace.js";import"./BR4j18LI.js";import"./FnfSbE9v.js";import"./CqMwVpZO.js";import"./BUOJqePR.js";import"./DfpCkei8.js";import"./nGdCYHob.js";function ft(o,c,D,l=""){var n;if(!o)return{linkTags:[],metaTags:[],jsonLdSchema:null};const d=o.name||"",m=o.description||"",h=z(m).trim(),y=ct(m,d),_=lt(o.bannerUrl),S=o.startsAt||"",g=o.endsAt||"",t=o.location||o.locationName||"",k=o.city||"",I=o.hostCommunityName||"",v=o.hostOrganizationName||"",b=((n=o.parsedAreasOfInterest)==null?void 0:n.map(r=>r.name))||[],T=o.primaryLanguageName||"",N=T?ut(T):"en",x=o.eventType||"",s=[];c&&s.push({rel:"canonical",href:c});const e=[];e.push({name:"robots",content:P(D)}),e.push({name:"description",content:y}),e.push({property:"og:type",content:"event"}),e.push({property:"og:title",content:d}),e.push({property:"og:description",content:y}),c&&e.push({property:"og:url",content:c}),e.push({property:"og:site_name",content:"CGScholar"}),dt(e,_,d||void 0),S&&e.push({property:"event:start_time",content:S}),g&&e.push({property:"event:end_time",content:g}),t&&e.push({property:"event:location",content:t}),e.push({name:"twitter:title",content:d}),e.push({name:"twitter:description",content:y}),e.push({name:"dc.title",content:d}),e.push({name:"dc.type",content:"Event"}),e.push({name:"dc.format",content:"text/html"}),e.push({name:"dc.language",content:N}),v&&e.push({name:"dc.publisher",content:v}),b.forEach(r=>{e.push({name:"dc.subject",content:r})}),h&&e.push({name:"dc.description",content:h});const p={"@context":"https://schema.org","@type":"Event",name:d,startDate:S,endDate:g,inLanguage:N};if(h&&(p.description=h),_&&(p.image=_.url),c&&(p["@id"]=c,p.url=c),t||k){const r={"@type":"Place"};t&&(r.name=t),k&&(r.address={"@type":"PostalAddress",addressLocality:k}),o.latitude&&o.longitude&&(r.geo={"@type":"GeoCoordinates",latitude:o.latitude,longitude:o.longitude}),p.location=r}const u=[];return I&&u.push({"@type":"Organization",name:I,url:l&&o.hostCommunityId?`${l.replace(/\/$/,"")}/communities/${o.hostCommunityId}`:void 0}),v&&u.push({"@type":"Organization",name:v,url:l&&o.hostOrganizationId?`${l.replace(/\/$/,"")}/organizations/${o.hostOrganizationId}`:void 0}),u.length>0&&(p.organizer=u.length===1?u[0]:u),b.length>0&&(p.keywords=b.join(", ")),x&&(p.eventAttendanceMode=o.eventFormat==="online"?"https://schema.org/OnlineEventAttendanceMode":o.eventFormat==="hybrid"?"https://schema.org/MixedEventAttendanceMode":"https://schema.org/OfflineEventAttendanceMode"),{linkTags:s,metaTags:e,jsonLdSchema:p}}const yt={class:"view-wrapper--narrow-lg pb-10",role:"main"},_t={key:0,class:"sr-only"},bt={key:0},wt=["datetime"],St={key:2},kt={key:3},Ro=G({__name:"index",async setup(o){let c,D;const{t:l,d}=H(),m=W(),h=V(),{isWebWidth:y}=gt(),_=F(),S=J(),g=K(),{singleEvent:t,hasAdminRights:k}=B(g),I=Y(),{isLoggedIn:v}=B(I),b=Q(),T=b.public.appDomain;vt();const N=C(()=>window.location.href),x=C(()=>ft(t.value,N.value,b.public.buildMode,T));X({title:()=>{var n,r;return(n=t.value)!=null&&n.name?`${(r=t.value)==null?void 0:r.name} - ${l("events.single.title")} - CGScholar`:`${l("events.single.title")} - CGScholar`},link:()=>x.value.linkTags,meta:()=>x.value.metaTags,script:()=>{const n=x.value.jsonLdSchema;return n?[{type:"application/ld+json",children:JSON.stringify(n)}]:[]}});const s=C(()=>m.params.slug),e=Z(!1);[c,D]=U(async()=>ht(`event-${s.value}`,async()=>{var n;return((n=t.value)==null?void 0:n.slug)===s.value||(await g.getEvent(s.value),v.value&&(e.value=!0)),t.value},{watch:[s]})),await c,D();const p=C(()=>
2{if(!t.value)return!1;const{slug:n,id:r}=t.value;return n===s.value||String(r)===s.value}),u=C(()=>{var n;return(n=t.value)!=null&&n.description?tt(z(t.value.description),300):""});return et(async()=>{var n;if(y.value&&k.value)return h.replace({path:`/events/${s.value}/admin`,query:m.query});if(v.value&&!e.value&&(await g.getEvent(s.value),e.value=!0),m.query.extra_event_registration_payment&&m.query.extra_event_registration_payment===M.Success){_.showBanner({type:"success",message:l("events.single.extraEventPaymentSuccess")}),h.replace({query:{...m.query,extra_event_registration_payment:void 0}});return}m.query.event_registration_payment&&m.query.event_registration_payment===M.Success&&(h.replace({query:{...m.query,event_registration_payment:void 0}}),(n=t.value)!=null&&n.hasSpecialEvents?S.open(ot(()=>rt(()=>import("./fsuEU1ez.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),{props:{showHeader:!1},data:{header:l("events.single.paymentSuccessDialog.title"),eventSlug:s.value}}):_.showBanner({type:"success",message:l("events.single.paymentSuccess")}))}),nt(()=>{e.value=!1}),it((n,r,O)=>{n.fullPath.includes(`events/${s.value}/admin`)||g.clearEvent(),O()}),(n,r)=>{const O=st,j=pt,L=mt;return f(),R(L,null,{fallback:q(()=>{var $;return[a("main",yt,[i(p)&&i(t)?(f(),E("article",_t,[a("h1",null,A(i(t).name),1),i(u)?(f(),E("p",bt,A(i(u)),1)):w("",!0),i(t).startsAt?(f(),E("time",{key:1,datetime:i(t).startsAt},A(i(d)(new Date(i(t).startsAt),"long")),9,wt)):w("",!0),i(t).location||i(t).city?(f(),E("p",St,A([i(t).location,i(t).city].filter(Boolean).join(", ")),1)):w("",!0),i(t).hostCommunityName?(f(),E("p",kt,A(i(t).hostCommunityName),1)):w("",!0)])):w("",!0),at(j,{"banner-url":(($=i(t))==null?void 0:$.bannerUrl)||"",height:i(y)?"234px":"100px",class:"relative"},null,8,["banner-url","height"]),r[0]||(r[0]=a("div",{class:"app-border-box--light bg-white mt-4 skeleton-card-shimmer"},[a("div",{class:"px-6 pt-6 pb-4 flex flex-col gap-3"},[a("div",{class:"skeleton-bone h-4 w-48"}),a("div",{class:"skeleton-bone h-7 w-3/4"}),a("div",{class:"flex gap-2 mt-1"},[a("div",{class:"skeleton-bone h-6 w-24"}),a("div",{class:"skeleton-bone h-6 w-40"})])]),a("div",{class:"app-separator my-0"}),a("div",{class:"px-6 py-4 flex items-center gap-3"},[a("div",{class:"skeleton-bone h-8 w-8 rounded-full"}),a("div",{class:"skeleton-bone h-8 w-8 rounded-full -ml-3"}),a("div",{class:"skeleton-bone h-8 w-8 rounded-full -ml-3"}),a("div",{class:"skeleton-bone h-3 w-20 ml-2"})])],-1))])]}),default:q(()=>[i(p)&&i(t)?(f(),R(O,{key:0,event:i(t)},null,8,["event"])):w("",!0)]),_:1})}}});
2export{Ro 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.