import{u as D,r as c,l as o}from"./C0NtcF7e.js";const f=async()=>{const d=o(),{$gc:m}=D();c([]);const l=a=>a.eventData.map((t,u)=>{var i,s,n;if(((i=t.itemData[0])==null?void 0:i.mediaData)!==void 0)return{attributes:{startAt:t.scheduleData.start,finishAt:t.scheduleData.end,offset:t.scheduleData.offset,description:t.description,id:t.id,title:t.title,imageData:{landscape:{imageKey:(n=(s=t.itemData[0])==null?void 0:s.mediaData)==null?void 0:n.thumbnailUrl}},streamamgData:{assetData:t.itemData.map(e=>{var r;return{assetID:(r=e.mediaData)==null?void 0:r.entryId,id:e.id,mediaType:e.metaData.media_type,authType:e.metaData.SysEntryEntitlements}})}}}}).filter(Boolean);return(async()=>{const a=await m().videos.web().getCalendar({page:{number:1,size:20}});return d.public.club.features.streamline?a.data:l(a.data)})()};export{f as u};