{"version":3,"sources":["webpack:///./src/pages/index.tsx"],"names":["IndexPage","data","pathContext","article","articles","nodes","filter","node","locale","localeCode","location","title","subtitle","contents","content","fullWidth","country","hero","undefined","heroTextColor","heroImg","localFile","publicURL"],"mappings":"2FAAA,gFA4EeA,UA1ByB,SAAH,GAA4B,IAAvBC,EAAI,EAAJA,KAAMC,EAAW,EAAXA,YACxCC,EAAUF,EAAKG,SAASC,MAAMC,QAAO,SAACC,GAAS,OAAKA,EAAKC,SAAWN,EAAYO,cAAY,GAElG,OACE,kBAAC,WAAQ,MAEL,gBAAEC,EAAQ,EAARA,SAAQ,OACR,kBAAC,IAAM,CAACA,SAAUA,EAAUF,OAAQN,EAAYO,YAC9C,kBAAC,IAAG,MAEJ,kBAAC,IAAO,CACNE,MAAOR,EAAQQ,MACfC,SAAUT,EAAQS,SAClBC,SAAUV,EAAQW,QAClBC,YAAWZ,EAAQY,WAAYZ,EAAQY,UACvCC,QAAS,KACTC,KAAMd,EAAQc,KAAOd,EAAQc,UAAOC,EACpCC,cAAehB,EAAQgB,cAAgBhB,EAAQgB,mBAAgBD,EAC/DE,QAASjB,EAAQiB,QAAUjB,EAAQiB,QAAQC,UAAUC,eAAYJ","file":"component---src-pages-index-tsx-c6cd838b093001fe8ae3.js","sourcesContent":["import { Location } from '@reach/router'\nimport React from 'react'\n\nimport Layout from '../components/Layout/Layout'\nimport SEO from '../components/SEO/SEO'\n\nimport { graphql } from 'gatsby'\nimport Article from '../components/Article/Article'\n\nimport heroImg from '../components/Article/exampleheaderbanner.png'\nimport { LocaleTypes } from '../data/locales'\n\ninterface IndexProps {\n data: {\n articles: {\n nodes: [{\n title: string\n subtitle: string\n fullWidth: boolean | null\n hero: boolean | null\n heroTextColor: string | null\n locale: LocaleTypes\n heroImg: {\n localFile: {\n publicURL: string\n }\n } | null\n content: Array<{\n body: {\n childMdx: {\n body: any\n excerpt: string\n timeToRead: string\n tableOfContents: any\n }\n }\n tabTitle: string\n }>\n updatedAt: string\n }\n ]\n }\n locale: LocaleTypes\n location: Location\n }\n pathContext: {\n localeCode: LocaleTypes\n }\n}\n\nconst IndexPage: React.FC = ({data, pathContext}) => {\n const article = data.articles.nodes.filter((node: any) => node.locale === pathContext.localeCode)[0]\n\n return (\n \n {\n ({location}) =>\n \n \n\n \n \n }\n \n )\n}\n\nexport default IndexPage\n\nexport const query = graphql`\n {\n articles: allContentfulArticle(filter: {slug: {eq: \"home\"}}) {\n nodes {\n title\n subtitle\n fullWidth\n hero\n heroTextColor\n locale: node_locale\n heroImg {\n localFile {\n publicURL\n }\n }\n content {\n body {\n childMdx {\n body\n excerpt\n timeToRead\n tableOfContents(maxDepth: 4)\n }\n }\n updatedAt(formatString: \"DD MMMM YYYY\")\n tabTitle\n }\n }\n }\n }\n`\n"],"sourceRoot":""}