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U,KAAKf,MAAAA,GAAA,UAAAA,EAAaF,YAAb,eAAmBkB,UAAW,GACnCC,MAAO,CAAEpC,MAAO,QAChBqC,QAAQ,UAEZ,gBAACvB,EAAD,OAGR,uBAAKrB,UAAU,SACX,uBACIA,UAAU,mBACVqD,wBAAyB,CAAEC,OAAQR,GAAQ,OAGnD,gBAACjC,EAAA,EAAD,CAAWC,MAAOiC","sources":["webpack://samoa-ibfc/./src/components/Hero.tsx","webpack://samoa-ibfc/./src/components/FileLink.tsx","webpack://samoa-ibfc/./src/components/PageFiles.tsx","webpack://samoa-ibfc/./src/components/DefaultNewsHeroImage.tsx","webpack://samoa-ibfc/./src/templates/NewsPage.tsx"],"sourcesContent":["import React from 'react';\nimport { EventDatetime } from './EventDatetime';\nimport { NewsDatetime } from './NewsDatetime';\n\nexport type HeroProps = {\n title?: string,\n date?: string\n endDate?: string\n timeString?: string\n}\n\nexport const Hero: React.FC = ({ title, date, endDate, children }) => (\n
\n
\n
\n

{title}

\n {endDate && date ? : ''}\n {!endDate && date ? : ''}\n
\n
\n {children}\n
\n);","import React from 'react'\n\nexport type FileLinkProps = {\n link: string\n text: string\n}\n\nexport const FileLink: React.FC = ({ link, text }) => (\n \n \n {text}\n \n);\n","import React from 'react'\nimport { FileLink } from './FileLink';\n\nexport type PageFilesProps = {\n files?: Array | null\n}\n\nexport const PageFiles: React.FC = ({ files }) => {\n if (!files || files.length < 1) return null\n\n return (\n
\n\n
\n

Related Files

\n
\n {files?.map(file => )}\n
\n
\n
\n );\n}","import React, { useMemo } from 'react'\nimport { graphql, useStaticQuery } from 'gatsby';\nimport { GatsbyImage, getImage, IGatsbyImageData, withArtDirection } from 'gatsby-plugin-image';\nimport { GetDefaultNewsHeroQuery } from '../../gatsby-graphql'\n\nexport const DefaultNewsHeroImage: React.FC = () => {\n const data: GetDefaultNewsHeroQuery = useStaticQuery(graphql`\n query getDefaultNewsHero {\n file(\n relativePath: {eq: \"settings.md\"}\n sourceInstanceName: {eq: \"site-settings\"}\n ) {\n childMarkdownRemark {\n frontmatter {\n newsHero {\n altText\n heroImage {\n childImageSharp {\n ...HeroImage\n }\n \n }\n }\n }\n }\n }\n }\n `)\n const hero = data?.file?.childMarkdownRemark?.frontmatter?.newsHero\n const heroImageData = hero?.heroImage?.childImageSharp\n\n const images = useMemo(() => {\n if (!heroImageData) return\n return withArtDirection(getImage(heroImageData!.smallImage) as IGatsbyImageData, [\n {\n media: \"(min-width: 75em)\",\n image: getImage(heroImageData!.largeImage) as IGatsbyImageData\n },\n {\n media: \"(min-width: 30em)\",\n image: getImage(heroImageData!.mediumImage!) as IGatsbyImageData\n },\n ])\n }, [])\n\n return (\n
\n \n
\n );\n}","import { DefaultNewsHeroImage } from \"components/DefaultNewsHeroImage\"\nimport { Hero } from \"components/Hero\"\nimport { HeroImageType } from \"components/HeroImage\"\nimport { Layout } from \"components/Layout\"\nimport { PageFiles } from \"components/PageFiles\"\nimport { Seo } from \"components/Seo\"\nimport { graphql, PageProps } from \"gatsby\"\nimport { GatsbyImage, getImage, IGatsbyImageData, withArtDirection } from \"gatsby-plugin-image\"\nimport React, { useMemo } from \"react\"\nimport { MarkdownRemarkFrontmatter, Maybe, NewsPageQuery } from '../../gatsby-graphql'\n\nexport type DataProps = NewsPageQuery\n\nconst NewsPage: React.FC> = ({ data }) => {\n const { markdownRemark } = data\n const { frontmatter, html } = markdownRemark || { frontmatter: null, html: null }\n const heroImageData = frontmatter?.hero?.heroImage?.childImageSharp as Maybe\n const pageFiles = frontmatter?.pageFiles\n\n\n const images = useMemo(() => {\n if (!heroImageData) return\n return withArtDirection(getImage(heroImageData!.smallImage) as IGatsbyImageData, [\n {\n media: \"(min-width: 75em)\",\n image: getImage(heroImageData!.largeImage) as IGatsbyImageData\n },\n {\n media: \"(min-width: 30em)\",\n image: getImage(heroImageData!.mediumImage!) as IGatsbyImageData\n },\n ])\n }, [])\n\n return (\n \n \n \n {heroImageData && images ?\n \n :\n \n }\n \n
\n
\n \n \n
\n )\n}\nexport default NewsPage\n\nexport const pageQuery = graphql`\n query NewsPage($uri: String!) {\n markdownRemark(frontmatter: { path: { eq: $uri } }) {\n html\n frontmatter {\n title\n metaDescription\n slug\n date\n hero {\n altText\n heroImage {\n childImageSharp {\n ...HeroImage\n }\n }\n }\n pageFiles {\n fileName\n pageFile {\n publicURL\n }\n }\n }\n }\n }\n`"],"names":["Hero","title","date","endDate","children","className","startDate","FileLink","link","text","href","target","width","height","fill","viewBox","xmlns","d","PageFiles","files","length","map","file","fileName","pageFile","publicURL","DefaultNewsHeroImage","data","useStaticQuery","hero","childMarkdownRemark","frontmatter","newsHero","heroImageData","heroImage","childImageSharp","images","useMemo","withArtDirection","getImage","smallImage","media","image","largeImage","mediumImage","G","alt","altText","style","loading","markdownRemark","html","pageFiles","Layout","pageClass","Seo","description","metaDescription","dangerouslySetInnerHTML","__html"],"sourceRoot":""}