import{a as b}from"/build/_shared/chunk-HUOJZ3L2.js";import{a as G}from"/build/_shared/chunk-B7M2L5OV.js";import{a as N}from"/build/_shared/chunk-UBGSVBFC.js";import{a as K}from"/build/_shared/chunk-3NMSOMAP.js";import{a as V}from"/build/_shared/chunk-PKX65DMJ.js";import{a as I}from"/build/_shared/chunk-DVRCJLBB.js";import{a as Q}from"/build/_shared/chunk-R6EIBCBL.js";import{a as W}from"/build/_shared/chunk-VZQVWFLO.js";import{a as O}from"/build/_shared/chunk-IJ353W5V.js";import{a as P}from"/build/_shared/chunk-FI3MAJBA.js";import{a as H}from"/build/_shared/chunk-DA6QKOVK.js";import{g as h}from"/build/_shared/chunk-GXMZY4P3.js";import"/build/_shared/chunk-NPQLUTV5.js";import{f as T}from"/build/_shared/chunk-TMJ2BIH7.js";import{d as L}from"/build/_shared/chunk-UL2XTJCN.js";import{a as J}from"/build/_shared/chunk-O5OSGOEN.js";import{a as z}from"/build/_shared/chunk-QVUW3IXO.js";import{a as U}from"/build/_shared/chunk-SDR4T2CD.js";import"/build/_shared/chunk-CVSEKGNC.js";import{Aa as x,a as c,ea as E,la as p,ta as g,va as y}from"/build/_shared/chunk-7C6NQESN.js";import"/build/_shared/chunk-IW54JVOH.js";import{K as d}from"/build/_shared/chunk-X2QZ46OV.js";import"/build/_shared/chunk-63EVRDSK.js";import{c as w,e}from"/build/_shared/chunk-ADMCF34Z.js";var k=w((ke,M)=>{M.exports={}});var m=e(d()),v=(0,c.cn)("EventExternalItem"),A=n=>{let{title:i,location:s,date:o,className:r,src:_,alt:F,titleUrl:R}=n;return(0,m.jsxs)("div",{"data-module":"event-external-item",className:v({},[r]),children:[(0,m.jsx)("div",{className:v("ImageWrapper"),children:(0,m.jsx)(y,{className:v("Image"),src:_,alt:F,fallback:"brand"})}),(0,m.jsxs)("div",{className:v("TextWrapper"),children:[(0,m.jsx)("p",{className:v("EventLocation"),"data-testid":"event-external-item-location",children:s}),(0,m.jsx)(g,{to:R,target:"_blank",rel:"noreferrer",children:(0,m.jsx)("p",{className:v("Title"),"data-testid":"event-external-item-title",children:i})}),(0,m.jsx)("p",{className:v("EventDate"),"data-testid":"event-external-item-date",children:o})]})]})};var a=e(d()),f=(0,c.cn)("EventList"),B=({events:n})=>{let i=[],s=[];return n.forEach(o=>{o.eventType==="Informa"?i.push(o):s.push(o)}),(0,a.jsxs)("div",{"data-module":"event-list",className:f(),children:[(0,a.jsx)("div",{className:f("Wrapper"),children:i.map((o,r)=>(0,a.jsx)("div",{className:f("Event",{isLast:r===i.length-1}),children:(0,a.jsx)(b,{...o})},r))}),s.length>0?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:f("IndustryEventsTitle"),children:"Industry Events"}),(0,a.jsx)("div",{className:f("Wrapper"),children:s.map((o,r)=>(0,a.jsx)("div",{className:f("IndustryEvent",{isLast:r===s.length-1}),children:(0,a.jsx)(A,{...o})},r))})]})}):null]})};var t=e(d()),u=(0,c.cn)("EventListTemplate"),C=({breadcrumbs:n,title:i,eventList:s,pagination:o,newsletterSignUpPromo:r})=>(0,t.jsxs)("div",{"data-template":"event-list",className:u(),children:[(0,t.jsx)(p.Ad,{pos:"wallpaper_v"}),(0,t.jsx)(p.Ad,{pos:"oop_v"}),(0,t.jsx)(p.Ad,{pos:"floor_v"}),(0,t.jsx)(p.Ad,{pos:"adhesion_v"}),(0,t.jsxs)("div",{className:u("Head"),children:[(0,t.jsx)("div",{className:u("Breadcrumb"),children:(0,t.jsx)(P,{crumbs:n})}),(0,t.jsx)(N,{title:i,hasUnderline:!0})]}),(0,t.jsx)("div",{className:u("Body"),children:(0,t.jsx)(B,{...s})}),o&&o.totalCount>0&&(0,t.jsx)(I,{totalCount:o.totalCount,currentPage:o.currentPage,className:u("Pagination")}),r?(0,t.jsx)("div",{className:u("NewsletterSignUp"),children:(0,t.jsx)(h,{title:r.title,message:r.message,buttonText:r.buttonText,variant:r.variant,mode:r.mode,moduleLocation:"eventList"})}):null]});var X=e(W()),Y=e(U()),Z=e(k()),$=e(H()),q=e(J()),j=e(G()),ee=e(V()),te=e(K()),oe=e(z());var re=e(O()),ae=e(Q()),D=({data:n})=>!n||!n.seo?[]:T({seo:n.seo,contentType:"website",schema:n.schema});var l=e(d());function S(){let{data:n,isAuthenticated:i}=L(),{adUnitPathCode:s}=p.hooks.useShowAds({type:"event-list",reg:i?"registered":"anonymous"});return E.hooks.useLoadEvent({category:{pageType:"list"},pageInfo:{adUnitPathCode:s,pageName:"Event Page",destinationURL:E.utils.getDestinationURL()}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Ad,{pos:"728_1v",className:"EventPage-TopAd"}),(0,l.jsx)(C,{...n}),(0,l.jsx)(p.Ad,{pos:"728_2v"})]})}export{x as ErrorBoundary,S as default,D as meta};
