import{F}from"./C4x88zMK.js";import x from"./DM69BJxV.js";import"./B9bdfWI_.js";import{u as z}from"./DGSvhV9M.js";import{_ as A}from"./DlAUqK2U.js";import{h as C,o as i,c,F as D,r as T,a as L,t as f,a2 as $,k as g,b as I,i as B}from"./BeMLom_z.js";import"./mZTIwKxb.js";const N="_talks_1zpp8_1",V="_talktitle_1zpp8_6",b="_timelocation_1zpp8_10",E={talks:N,talktitle:V,timelocation:b},M={class:"my-10"},O={key:0},S={__name:"talks",props:{talks:Object,showDescription:Boolean,showLocation:Boolean},async setup(u){let r,_;const o=u,{data:v}=([r,_]=C(()=>{var m,k;return z("talks"+((k=(m=o.talks)==null?void 0:m.sys)==null?void 0:k.id),()=>{var e,p,a,h;if(!o.talks)return[];if(Array.isArray(o.talks)){const s=[];for(let l=0;l<o.talks.length;l++)F.FetchLocal((p=(e=o.talks[l])==null?void 0:e.sys)==null?void 0:p.id).then(t=>{var n,y,w;s.push({...t,location:(n=t==null?void 0:t.fields)!=null&&n.location?t.fields.location:null,time:(y=t==null?void 0:t.fields)!=null&&y.date?(w=t==null?void 0:t.fields)==null?void 0:w.date.split("T")[1].split("+")[0]:null})});return s}else return F.FetchLocal((h=(a=o.talks)==null?void 0:a.sys)==null?void 0:h.id).then(s=>{var l,t,n;return[{...s,location:(l=s==null?void 0:s.fields)!=null&&l.location?s.fields.location:null,time:(t=s==null?void 0:s.fields)!=null&&t.date?(n=s==null?void 0:s.fields)==null?void 0:n.date.split("T")[1].split("+")[0]:null}]})},"$gOlIUC4rEt")}),r=await r,_(),r);return(m,k)=>(i(),c("div",null,[(i(!0),c(D,null,T(B(v),(e,p)=>(i(),c("div",{key:p},[L("h3",M,f(e.fields.talkTitle),1),u.showLocation&&e.time?(i(),c("a",{key:0,href:"/schedule",class:$(["mt-1 font-mono text-sm",m.$style.timelocation])}," Speaking on "+f(e.time)+" "+f(e.location?" at "+e.location:""),3)):g("",!0),L("div",null,[u.showDescription===!0?(i(),c("div",O,[I(B(x),{contentItems:e.fields.description},null,8,["contentItems"])])):g("",!0)])]))),128))]))}},d={$style:E},P=A(S,[["__cssModules",d]]);export{P as default};
