{"version":3,"sources":["webpack:///./src/pages/portfolio/events.js"],"names":["PortfolioIndex","_ref","data","location","siteTitle","site","siteMetadata","title","posts","allMarkdownRemark","edges","React","createElement","Layout","SEO","style","margin","maxWidth","rhythm","textAlign","className","map","_ref2","node","frontmatter","fields","slug","inCategory","categories","Array","isArray","includes","type","videoUrl","video","key","src","width","height","frameBorder","marginTop","marginBottom","tags","a","join","Link","to"],"mappings":"4FAAA,gFAmEeA,UA3DQC,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACxC,MAAMG,EAAYF,EAAKG,KAAKC,aAAaC,MACnCC,EAAQN,EAAKO,kBAAkBC,MAErC,OACEC,IAAAC,cAACC,IAAM,CAACV,SAAUA,EAAUI,MAAOH,GACjCO,IAAAC,cAACE,IAAG,CAACP,MAAM,WACXI,IAAAC,cAAA,OAAKG,MAAO,CAAEC,OAAQ,OAAQC,SAAUC,YAAO,MAC7CP,IAAAC,cAAA,MAAIG,MAAO,CAAEI,UAAW,WAAY,WAEtCR,IAAAC,cAAA,OAAKQ,UAAU,kBACZZ,EAAMa,IAAIC,IAAe,IAAd,KAAEC,GAAMD,EAClB,MAAMf,EAAQgB,EAAKC,YAAYjB,OAASgB,EAAKE,OAAOC,KAC9CC,IACFJ,EAAKC,YAAYI,YACnBC,MAAMC,QAAQP,EAAKC,YAAYI,aAC/BL,EAAKC,YAAYI,WAAWG,SAAS,UAEvC,GAA8B,cAA1BR,EAAKC,YAAYQ,OAAyBL,EAC5C,OAAO,EAET,IAAIM,EAAcV,EAAKC,YAAYU,MAApB,uCACf,OACEvB,IAAAC,cAAA,WAASuB,IAAKZ,EAAKE,OAAOC,KAAMN,UAAU,mBACxCT,IAAAC,cAAA,OAAKQ,UAAU,iBACbT,IAAAC,cAAA,UACEwB,IAAKH,EACLI,MAAM,OACNC,OAAO,MACPC,YAAY,IACZhC,MAAOA,KAGXI,IAAAC,cAAA,cACED,IAAAC,cAAA,MACEG,MAAO,CACLyB,UAAWtB,YAAO,EAAI,GACtBuB,aAAcvB,YAAO,EAAI,KAG1BX,IAGLI,IAAAC,cAAA,eACGW,EAAKC,YAAYkB,KAAKrB,IAAIsB,GAAK,GAAGA,GAAKC,KAAK,YAMvDjC,IAAAC,cAAA,OAAKG,MAAO,CAAEI,UAAW,WACvBR,IAAAC,cAACiC,OAAI,CAACC,GAAI,aAAc1B,UAAU,UAAS","file":"component---src-pages-portfolio-events-js-71554d82c7c22e315608.js","sourcesContent":["import React from \"react\"\nimport { Link } from \"gatsby\"\nimport { graphql } from \"gatsby\"\n\nimport Layout from \"../../components/layout\"\nimport SEO from \"../../components/seo\"\nimport { rhythm } from \"../../utils/typography\"\n\nconst PortfolioIndex = ({ data, location }) => {\n const siteTitle = data.site.siteMetadata.title\n const posts = data.allMarkdownRemark.edges\n\n return (\n \n \n
\n

Events

\n
\n
\n {posts.map(({ node }) => {\n const title = node.frontmatter.title || node.fields.slug\n const inCategory =\n !!node.frontmatter.categories &&\n Array.isArray(node.frontmatter.categories) &&\n node.frontmatter.categories.includes(\"events\")\n\n if (node.frontmatter.type !== `portfolio` || !inCategory) {\n return false\n }\n let videoUrl = `${node.frontmatter.video}?title=0&byline=0&portrait=0`\n return (\n
\n
\n \n
\n
\n \n {title}\n \n
\n
\n {node.frontmatter.tags.map(a => `${a}`).join(\" | \")}\n
\n
\n )\n })}\n
\n
\n \n Back to Portfolio\n \n
\n
\n )\n}\n\nexport default PortfolioIndex\n\nexport const pageQuery = graphql`\n query {\n site {\n siteMetadata {\n title\n }\n }\n allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {\n edges {\n node {\n excerpt\n fields {\n slug\n }\n frontmatter {\n type\n date(formatString: \"MMMM DD, YYYY\")\n title\n description\n tags\n video\n categories\n }\n }\n }\n }\n }\n`\n"],"sourceRoot":""}