(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{6961:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/webcasts",function(){return a(6095)}])},6095:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return _},default:function(){return w}});var s=a(2322),l=a(5899),n=a(9933),r=a(8852),i=a(8922),c=a(2990),d=a(578),o=a(806),m=a(6044),u=a(2598),p=a(3063),x=a(2784),h=a(8359);let v=e=>(0,h.Z)((null==e?void 0:e.eventMetadata.timeOfEvent)||0,"America/New_York"),f=e=>{let[t,a]=(0,x.useState)("");return(0,x.useEffect)(()=>{if(e){let t=v(e),s=(0,m.Z)(t,"iiii MMMM d, yyyy 'at' h:mm a"),l=t.toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2];a("".concat(s," ").concat(l))}},[e]),t},g=e=>(0,x.useMemo)(()=>{if(!e)return!1;let t=v(e),a=(0,d.Z)(t,3),s=new Date;return(0,u.Z)(s,t)&&(0,p.Z)(s,a)},[e]);var N=a(6577),j=a.n(N),b=a(2833);let y=e=>{let{event:t}=e,a=f(t),l=t.title!==t.eventMetadata.eventType,n=g(t);return(0,s.jsxs)("article",{className:(0,b.cn)("group relative isolate mb-12 flex flex-col gap-4 lg:flex-row"),children:[(0,s.jsx)("div",{className:"relative aspect-[16/9] overflow-hidden rounded-2xl sm:aspect-[2/1] lg:aspect-square lg:w-40 lg:shrink-0",children:t.featuredImage&&(0,s.jsx)(j(),{alt:t.featuredImage.node.altText||"",className:(0,b.cn)("absolute inset-0 h-full w-full bg-brand-dark object-cover","transition-all duration-1000 group-hover:scale-105","opacity-50 grayscale group-hover:opacity-100 group-hover:grayscale-0"),src:t.featuredImage.node.mediaItemUrl,fill:!0})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center gap-x-4 text-xs",children:l&&(0,s.jsx)("h5",{className:"font-alt relative z-10 mb-3 rounded-full text-xs text-brand-light-40 dark:text-brand-light",children:t.eventMetadata.eventType})}),(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsx)("h3",{className:"",children:t.title}),(0,s.jsx)("p",{className:"mt-2 line-clamp-4",children:a}),(0,s.jsx)("p",{className:"mb-2",children:t.eventMetadata.location}),n&&(0,s.jsx)("span",{className:"rounded-md border border-red-500 px-1 py-0.5 text-xs font-medium uppercase text-red-500",children:"Live"})]})]})]})};var _=!0,w=e=>{let[t,a]=(0,x.useState)([]),{events:m}=e,u=m.filter(e=>{let t=v(e),a=(0,d.Z)(t,3);return(0,o.Z)(a)}).filter(e=>!t.length||e.eventMetadata.eventType&&t.includes(e.eventMetadata.eventType)),p=m.reduce((e,t)=>{let a=t.eventMetadata.eventType;return a&&!e.includes(a)?[...e,a]:e},[]).map(e=>({displayName:e,id:e}));return(0,s.jsxs)("div",{children:[(0,s.jsx)(l.Z,{}),(0,s.jsxs)(r.Z,{className:"mt-16",containerClassName:"max-w-8xl",displayName:"Events List",children:[(0,s.jsx)(i.Z,{title:"Upcoming Webcasts",centered:!0,showDecoration:!0}),(0,s.jsxs)("div",{className:"mt-12 grid grid-cols-1 items-start gap-4 md:grid-cols-3 md:gap-16",children:[(0,s.jsx)("div",{className:"sticky top-20 z-10 hidden md:top-28 md:block",children:(0,s.jsx)(c.Z,{checked:t,className:"bg-brand-light-95 dark:bg-brand-dark--20",options:p,title:"Categories",type:"checkbox",onChange:e=>{if(t.includes(e)){let s=t.indexOf(e),l=[...t];l.splice(s,1),a(l)}else a([...t,e])}})}),(0,s.jsx)("div",{className:"col-span-2",children:u.map(e=>(0,s.jsx)(y,{event:e},e.id))})]})]}),(0,s.jsx)(n.Z.LocationFooter.component,{fields:[],location:{},isReadOnly:!0})]})}}},function(e){e.O(0,[525,123,131,186,456,180,899,311,888,774,179],function(){return e(e.s=6961)}),_N_E=e.O()}]);