import{j as e}from"./index-0z3IXZ2m.js";import{c,I as x,L as v}from"./_-DtOPbauA.js";import{E as p}from"./eventInternalBanner-X4PDtPIT.js";const a=c.cn("EventExternalItem"),h=i=>{const{title:l,location:n,date:t,className:s,src:m,alt:d,titleUrl:o}=i;return e.jsxs("div",{"data-module":"event-external-item",className:a({},[s]),children:[e.jsx("div",{className:a("ImageWrapper"),children:e.jsx(x,{className:a("Image"),src:m,alt:d,fallback:"brand"})}),e.jsxs("div",{className:a("TextWrapper"),children:[e.jsx("p",{className:a("EventLocation"),"data-testid":"event-external-item-location",children:n}),e.jsx(v,{to:o,target:"_blank",rel:"noreferrer",children:e.jsx("p",{className:a("Title"),"data-testid":"event-external-item-title",children:l})}),e.jsx("p",{className:a("EventDate"),"data-testid":"event-external-item-date",children:t})]})]})},r=c.cn("EventList"),I=({events:i})=>{const l=[],n=[];return i.forEach(t=>{t.eventType==="Informa"?l.push(t):n.push(t)}),e.jsxs("div",{"data-module":"event-list",className:r(),children:[e.jsx("div",{className:r("Wrapper"),children:l.map((t,s)=>e.jsx("div",{className:r("Event",{isLast:s===l.length-1}),children:e.jsx(p,{...t})},s))}),n.length>0?e.jsx(e.Fragment,{children:e.jsxs("div",{children:[e.jsx("p",{className:r("IndustryEventsTitle"),children:"Industry Events"}),e.jsx("div",{className:r("Wrapper"),children:n.map((t,s)=>e.jsx("div",{className:r("IndustryEvent",{isLast:s===n.length-1}),children:e.jsx(h,{...t})},s))})]})}):null]})};export{I as E}; //# sourceMappingURL=eventList-C2PE_V6_.js.map