(self.webpackChunkidsc_gatsby_wordpress=self.webpackChunkidsc_gatsby_wordpress||[]).push([[539],{8802:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(67294),a=r(25444),l=r(78540),o=function(e){return n.createElement(l.r,{as:a.Link,to:e.url,bgColor:"gray.200",color:"brand.600",py:3,px:2,borderRadius:"md",textTransform:"uppercase",width:"fit-content",_hover:{bgColor:"brand.500",color:"gray.100"}},e.text)}},79767:function(e,t,r){"use strict";r.d(t,{Q:function(){return l},S:function(){return o}});var n=r(95230),a=r(17622),l=(0,n.chakra)(a.Kq),o=(0,n.chakra)(a.Kq)},84215:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(67294),a=r(95633),l=r(31633),o=r(25444),i=r(23310),c=r(8802),u=r(17622),s=r(14762),d=r(78540),m=r(52200),p=r(79767),g=r(96117),v=r(43921),f=function(e){e.categories.length;return n.createElement(n.Fragment,null,n.createElement("li",{key:e.uri},n.createElement(u.Kq,{direction:["column","column","row","row"],className:"post-list-item",itemScope:!0,itemType:"http://schema.org/Article"},n.createElement(v.B,{image:e.featuredImage.fluid,alt:e.featuredImage.alt,minWidth:["100%","50%"],objectFit:"cover",maxHeight:"16rem"}),n.createElement(p.S,null,n.createElement("header",null,n.createElement(s.X,{as:"h3",size:"md",color:"brand.600"},n.createElement(d.r,{as:o.Link,to:e.uri,itemProp:"url",color:"brand.600"},n.createElement("span",{itemProp:"headline"},(0,i.ZP)(e.title)))),n.createElement(g.pJ,{startDate:e.startDate,endDate:e.endDate})),n.createElement(m.x,{as:"section",fontSize:"sm",isTruncated:!0,noOfLines:4,itemProp:"description"},(0,i.ZP)(e.excerpt)),n.createElement(m.x,{fontWeight:"600"},e.venue.venue),n.createElement(m.x,null,e.venue.address,", ",e.venue.city),n.createElement(c.J,{url:e.uri,text:"Learn More"})))))},h=function(e){var t=e.data,r=t.allWpTribeEvent,o=r.nodes,i=r.pageInfo,c=t.customEvent,s=e.pageContext,d=s.archiveType,m=s.archivePath,p=o;return p.length?n.createElement(a.Z,Object.assign({isHomePage:!0},i,{archivePath:m,archiveType:d}),n.createElement(l.Z,{title:"Automotive News & Events"}),n.createElement(u.Kq,{as:"ol",divider:n.createElement(u.cX,{borderColor:"gray.200"}),spacing:4,mb:4,p:8,listStyleType:"none"},p.map((function(e,t){var r,a,l,o,i,u,s=e.title,d={fluid:null===(r=e.featuredImage)||void 0===r||null===(a=r.node)||void 0===a||null===(l=a.localFile)||void 0===l||null===(o=l.childImageSharp)||void 0===o?void 0:o.gatsbyImageData,alt:(null===(i=e.featuredImage)||void 0===i||null===(u=i.node)||void 0===u?void 0:u.alt)||""},m=c.nodes.filter((function(t){return t.slug===e.slug}));return n.createElement(n.Fragment,null,n.createElement(f,{key:t,title:s,featuredImage:d,uri:e.uri,date:e.date,excerpt:e.excerpt,author:e.author.node,categories:e.tribeEventsCats.nodes,venue:m[0].venue,startDate:e.startDate,endDate:e.endDate}))})))):n.createElement(a.Z,{isHomePage:!0},n.createElement(l.Z,{title:"Automotive News & Events"}),n.createElement("p",null,"No blog posts found. Add posts to your WordPress site and they'll appear here!"))}}}]);
//# sourceMappingURL=component---src-templates-event-archive-js-a38e824ae749a6dc91cd.js.map