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BAAC,KAAD,KACE,gBAAC,IAAD,CACE/C,QAASF,EAAYE,QACrBgD,MAAOlD,EAAYkD,MACnBC,MAAOnD,EAAYmD,MACnB7C,KAAMN,EAAYM,WAQ9B,0BAAQgB,KAAK,eACX,gBAAC,IAAD,MAEA,gBAAC,IAAD","sources":["webpack://gravitywell-website-2019/./src/components/filters-applied/filters-applied.tsx","webpack://gravitywell-website-2019/./src/components/no-items-found/no-items-found.tsx","webpack://gravitywell-website-2019/./src/templates/LatestTag.tsx"],"sourcesContent":["import React from \"react\";\n\nimport styled from \"../../theme/styled\";\nimport {\n colourHelper,\n fontLineHeightHelper,\n fontSizeHelper,\n fontWeightHelper\n} from \"../../theme/theme-helper\";\nimport { SmallColumnWidthWrapper } from \"../confines-wrappers\";\nimport Link from \"../link\";\n\ninterface IProps {\n filter: string;\n clearLink: string;\n type: string;\n}\n\nconst FiltersAppliedWrapper = styled.aside`\n transition: 0.2s ease-in-out;\n padding-top: 3.2rem;\n padding-bottom: 2.8rem;\n border-bottom: 0.2rem solid\n ${({ theme }) => colourHelper({\n theme,\n variant: \"lightestGrey\"\n })};\n\n .text {\n margin-bottom: 0;\n text-align: center;\n font-size: ${({ theme }) => fontSizeHelper({\n theme,\n variant: \"body_2\"\n })};\n font-weight: ${({ theme }) =>\n fontWeightHelper({\n theme,\n variant: \"light\"\n })};\n line-height: ${({ theme }) =>\n fontLineHeightHelper({\n theme,\n variant: \"default\"\n })};\n\n > span {\n display: block;\n }\n\n .showing {\n strong {\n display: block;\n font-weight: ${({ theme }) =>\n fontWeightHelper({\n theme,\n variant: \"heavy\"\n })};\n }\n }\n\n .clear-link {\n padding-top: 1.8rem;\n color: ${({ theme }) => colourHelper({\n theme,\n variant: \"brandColor\"\n })};\n font-size: ${({ theme }) => fontSizeHelper({\n theme,\n variant: \"body_1\"\n })};\n }\n }\n\n @media (min-width: 480px) {\n .text {\n .showing {\n strong {\n display: inline;\n }\n }\n }\n }\n\n @media (min-width: 568px) {\n .text {\n font-size: ${({ theme }) =>\n fontSizeHelper({\n theme,\n variant: \"subhead_1\"\n })};\n }\n\n .clear-link {\n font-size: ${({ theme }) => fontSizeHelper({\n theme,\n variant: \"body_1\"\n })};\n }\n }\n\n @media (min-width: 960px) {\n padding-top: 3.8rem;\n padding-bottom: 3.4rem;\n\n .text {\n font-size: ${({ theme }) =>\n fontSizeHelper({\n theme,\n variant: \"subhead_2\"\n })};\n }\n }\n`;\n\nconst FiltersApplied = ({\n filter, clearLink, type\n}: IProps) => {\n return (\n \n \n

\n \n Showing\n {\" \"}\n\n {type}\n s for:\n\n {\" \"}\n\n \n {filter}\n \n \n\n \n .\n
\n\n
\n
\n\n \n \n Click here to\n {\" \"}\n \n\n \n Clear Filters\n \n\n \n .\n \n \n

\n
\n
\n );\n};\n\nexport default FiltersApplied;\n","import * as React from \"react\";\n\nimport styled from \"../../theme/styled\";\nimport {\n fontLineHeightHelper,\n fontSizeHelper\n} from \"../../theme/theme-helper\";\nimport { FullWidthColumnWrapper } from \"../confines-wrappers\";\n\ninterface IProps {\n className?: string;\n children: React.ReactElement;\n}\n\nconst NoItemsFoundContainer = styled.aside`\n .no-content-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n min-height: 34.8rem;\n\n p {\n margin-bottom: 0;\n text-align: center;\n font-size: ${({ theme }) => fontSizeHelper({\n theme,\n variant: \"body_1\"\n })};\n line-height: ${({ theme }) =>\n fontLineHeightHelper({\n theme,\n variant: \"small\"\n })};\n }\n }\n\n @media (min-width: 568px) {\n .no-content-wrapper {\n p {\n font-size: ${({ theme }) =>\n fontSizeHelper({\n theme,\n variant: \"body_2\"\n })};\n }\n }\n }\n\n @media (min-width: 960px) {\n .no-content-wrapper {\n p {\n font-size: ${({ theme }) =>\n fontSizeHelper({\n theme,\n variant: \"subhead_2\"\n })};\n }\n }\n }\n`;\n\n/**\n * No items found class component\n */\nconst NoItemsFound = ({ className, children }: IProps) => {\n const classes = `no-content-container${className ? ` ${className}` : \"\"}`;\n\n return (\n \n \n {children}\n \n \n );\n};\n\nexport default NoItemsFound;\n","import { graphql } from \"gatsby\";\nimport React from \"react\";\n\nimport ArticlesGrid from \"../components/articles-grid\";\nimport { IArticleData } from \"../components/articles-grid/articles-grid\";\nimport CollapseTags from \"../components/collapse-tags/collapse-tags\";\nimport { FullWidthColumnWrapper } from \"../components/confines-wrappers\";\nimport FiltersApplied from \"../components/filters-applied\";\nimport Footer from \"../components/footer\";\nimport GetInTouch from \"../components/get-in-touch\";\nimport Header from \"../components/header\";\nimport HelmetWrapper from \"../components/helmet-wrapper\";\nimport HeroTags from \"../components/hero-tags/hero-tags\";\nimport { breadCrumbSchema } from \"../components/html-schema-snippets\";\nimport {\n IBreadCrumb,\n IBreadCrumbSchema\n} from \"../components/html-schema-snippets/breadcrumb-schema\";\nimport Layout from \"../components/layout\";\nimport NoItemsFound from \"../components/no-items-found/no-items-found\";\nimport PageTop from \"../components/page-top\";\nimport Pagination from \"../components/pagination\";\nimport {\n ArticlesGridWrapper,\n IBlogArticleData,\n PageTopCustom\n} from \"../pages/latest\";\nimport getProfile from \"./utils/getProfile\";\n\nexport interface IAllTaxonomyTermLatest {\n edges: ITaxonomyTermLatest[];\n}\n\ninterface ITaxonomyTermLatest {\n name: string;\n relationships: {\n node__blog_article: IBlogArticleData[] | null;\n };\n}\n\ninterface ITaxonomyTermLatest {\n node: {\n name: string;\n path: {\n alias: string;\n };\n };\n}\n\ninterface IPageContext {\n skip: number;\n limit: number;\n current: number;\n name: string;\n slug: string;\n total: number;\n}\n\ninterface INodeData {\n node: IBlogArticleData;\n}\n\ninterface ILatestTagsProps {\n nodeLatestOverview: {\n created: string;\n changed: string;\n title: string;\n field_hero_heading: string;\n field_meta_description: string;\n };\n allNodeBlogArticle: {\n edges: INodeData[];\n } | null;\n allTaxonomyTermLatest: IAllTaxonomyTermLatest;\n}\n\nconst LatestTags = ({\n data,\n pageContext\n}: {\n data: ILatestTagsProps;\n pageContext: IPageContext;\n}) => {\n const paginationPage = pageContext.current + 1;\n\n const breadcrumbs: IBreadCrumb[] = [\n {\n name: \"Latest\",\n path: \"/latest\"\n },\n {\n name: pageContext.name,\n path: pageContext.slug\n }\n ];\n\n let latestNodes: INodeData[] = [];\n let latestArticles: IBlogArticleData[] = [];\n let schemaJson: IBreadCrumbSchema[] = [];\n\n // If the pagination page value is greater than the 1st page, add a breadcrumb\n if (paginationPage > 1) {\n breadcrumbs.push({\n name: `Page ${paginationPage}`,\n path: `${pageContext.slug}/${paginationPage}`\n });\n }\n\n // Now set the schema JSON object\n schemaJson = [ breadCrumbSchema(breadcrumbs) ];\n\n // If there is allNodeProject, set the latestNodes variable\n if (data.allNodeBlogArticle) {\n latestNodes = data.allNodeBlogArticle.edges;\n\n latestArticles = latestNodes.map(projectNode => {\n return projectNode.node;\n });\n }\n\n return (\n \n <>\n \n \n \n\n \n \n\n \n \n \n

\n {data.nodeLatestOverview.field_hero_heading}\n

\n\n {\n return {\n name: tag.node.name,\n path: tag.node.path.alias\n };\n })}\n />\n
\n \n
\n\n \n\n \n \n\n \n

\n {`${pageContext.name} articles`}\n

\n\n {latestArticles.length === 0 ? (\n \n

\n \n Oops\n \n . No articles were found.\n

\n
\n ) : (\n <>\n \n {\n const profile = getProfile(post.relationships.author);\n\n const articleObj: IArticleData = {\n created: post.created,\n path: post.path.alias,\n title: post.title,\n author: profile.field_full_name,\n cover: post.relationships.field_cover_image\n };\n\n return articleObj;\n })}\n />\n \n\n \n \n )}\n \n\n