-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-blog-jsx-87ec51992eb12a80d20f.js.map
1 lines (1 loc) · 18 KB
/
component---src-pages-blog-jsx-87ec51992eb12a80d20f.js.map
1
{"version":3,"sources":["webpack:///./node_modules/core-js/internals/is-array-iterator-method.js","webpack:///./node_modules/core-js/internals/function-bind-context.js","webpack:///./node_modules/core-js/internals/iterate.js","webpack:///./node_modules/core-js/internals/iterator-close.js","webpack:///./node_modules/core-js/internals/get-iterator-method.js","webpack:///./node_modules/core-js/internals/iterators.js","webpack:///./node_modules/core-js/internals/get-iterator.js","webpack:///./src/elements/Button.jsx","webpack:///./node_modules/core-js/modules/es.object.from-entries.js","webpack:///./src/pages/blog.jsx"],"names":["wellKnownSymbol","Iterators","ITERATOR","ArrayPrototype","Array","prototype","module","exports","it","undefined","uncurryThis","aCallable","NATIVE_BIND","bind","fn","that","apply","arguments","global","call","anObject","tryToString","isArrayIteratorMethod","lengthOfArrayLike","isPrototypeOf","getIterator","getIteratorMethod","iteratorClose","TypeError","Result","stopped","result","this","ResultPrototype","iterable","unboundFunction","options","iterator","iterFn","index","length","next","step","AS_ENTRIES","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","value","done","error","getMethod","kind","innerResult","innerError","classof","argument","usingIterator","iteratorMethod","Button","styled","button","$","iterate","createProperty","target","stat","fromEntries","obj","k","v","isBrowser","window","tagFromUrl","Object","URL","location","href","searchParams","entries","tag","SectionWrapper","Inner","SectionContainer","div","PostTitle","span","SectionHeader","H2","Separator","SectionContents","Title","P","TagContainer","props","selected","TagLink","LinkTo","Tag","style","marginRight","Section","children","title","author","slug","readingTime","keywords","map","BlogPage","query","render","data","selectedTag","isDark","isBlog","zIndex","condensed","allMarkdownRemark","edges","i","node","frontmatter","includes","key","date","fields","text","short_description","filter","Boolean"],"mappings":"gFAAA,IAAIA,EAAkB,EAAQ,QAC1BC,EAAY,EAAQ,QAEpBC,EAAWF,EAAgB,YAC3BG,EAAiBC,MAAMC,UA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AAKC,YAAYf,SAASgB,SAASV,GAItC,OACE,kBAACZ,EAAD,CACEuB,IAAG,aAAeJ,EAClBjB,MAAOkB,EAAKC,YAAYnB,MACxBC,OAAQiB,EAAKC,YAAYlB,OACzBqB,KAAMJ,EAAKC,YAAYG,KACvBpB,KAAMgB,EAAKK,OAAOrB,KAClBE,SAAUc,EAAKC,YAAYf,SAC3BD,YAAae,EAAKK,OAAOpB,YAAYqB,MAErC,kBAAC,IAAD,KAAIN,EAAKC,YAAYM,mBACrB,kBAAC,IAAD,CAAQnD,KAAM4C,EAAKK,OAAOrB,MACxB,kBAAC,IAAD,uBAKPwB,OAAOC","file":"component---src-pages-blog-jsx-87ec51992eb12a80d20f.js","sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TypeError = global.TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw TypeError(tryToString(argument) + ' is not iterable');\n};\n","import styled from \"styled-components\"\nimport tw from \"tailwind.macro\"\n// import { Link } from \"gatsby\";\n\nconst Button = styled.button`\n ${tw`bg-transparent hover:bg-pink border border-solid hover:border-transparent rounded cursor-pointer`};\n ${tw`text-base xl:text-lg font-semibold py-4 px-8`};\n ${tw`border-grey text-grey-darkest hover:text-white`}\n`\n\nconst ButtonLight = styled(Button)`\n ${tw`border-white text-grey-lightest`}\n`\n\nexport default Button\nexport { ButtonLight }\n","var $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar createProperty = require('../internals/create-property');\n\n// `Object.fromEntries` method\n// https://github.com/tc39/proposal-object-from-entries\n$({ target: 'Object', stat: true }, {\n fromEntries: function fromEntries(iterable) {\n var obj = {};\n iterate(iterable, function (k, v) {\n createProperty(obj, k, v);\n }, { AS_ENTRIES: true });\n return obj;\n }\n});\n","/* eslint-disable react/forbid-prop-types */\n/* eslint-disable react/no-array-index-key */\n/* eslint-disable react/no-unescaped-entities */\nimport React from \"react\"\nimport PropTypes from \"prop-types\"\nimport styled from \"styled-components\"\nimport tw from \"tailwind.macro\"\nimport { StaticQuery, graphql } from \"gatsby\"\nimport LinkTo from \"../components/LinkTo\"\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport AppWrapper from \"../views/AppWrapper\"\nimport Content, { Inner } from \"../elements/Content\"\nimport Hero from \"../views/Hero\"\nimport { BigTitleLight, H2, Strong, P, PLight } from \"../elements/Text\"\nimport Button from \"../elements/Button\"\n\nconst isBrowser = typeof window !== \"undefined\"\n\nfunction tagFromUrl() {\n if (!isBrowser) {\n return null\n }\n\n return Object.fromEntries(\n new URL(window.location.href).searchParams.entries() // eslint-disable-line no-undef\n ).tag\n}\n\nconst SectionWrapper = styled(Inner)``\n\nconst SectionContainer = styled.div`\n ${tw``}\n`\n\nconst PostTitle = styled.span`\n ${tw`block mt-4`};\n`\n\nconst SectionHeader = styled(H2)`\n ${tw`mb-1`};\n`\n\nconst Separator = styled.span`\n ${tw`w-full bg-grey-light h-px mx-auto my-6 block`};\n`\n\nconst SectionContents = styled.div`\n ${tw`flex flex-col`};\n`\n\nconst Title = styled(P)`\n ${tw`mt-0 mb-0 text-grey-dark`};\n`\n\nconst TagContainer = styled.span`\n ${tw`text-white px-2 py-1`};\n ${props =>\n props.selected\n ? tw`bg-pink hover:bg-grey-dark`\n : tw`bg-grey-dark hover:bg-pink`};\n`\n\nconst TagLink = styled(LinkTo)`\n ${tw`text-white hover:no-underline`};\n`\n\nconst Tag = ({ tag }) => {\n let href = `/blog?tag=${tag}`\n let selected = false\n\n if (isBrowser) {\n if (tag === tagFromUrl()) {\n selected = true\n href = \"/blog\"\n }\n }\n\n return (\n <TagLink href={href}>\n <TagContainer style={{ marginRight: \"9px\" }} selected={selected}>\n {tag}\n </TagContainer>\n </TagLink>\n )\n}\n\nTag.propTypes = {\n tag: PropTypes.string.isRequired,\n}\n\nconst Section = ({ children, ...props }) => {\n const { title, author, slug, readingTime, keywords } = props\n\n return (\n <SectionContainer>\n <SectionHeader>\n <LinkTo href={slug}>\n <PostTitle>{title}</PostTitle>\n </LinkTo>\n </SectionHeader>\n <Title>\n By <Strong>{author}</Strong> • {readingTime} •{\" \"}\n {keywords.map(k => (\n <Tag tag={k} />\n ))}\n </Title>\n <SectionContents>{children}</SectionContents>\n <Separator />\n </SectionContainer>\n )\n}\n\nSection.propTypes = {\n children: PropTypes.node.isRequired,\n title: PropTypes.string.isRequired,\n author: PropTypes.string.isRequired,\n slug: PropTypes.string.isRequired,\n readingTime: PropTypes.string.isRequired,\n keywords: PropTypes.arrayOf(PropTypes.string).isRequired,\n date: PropTypes.string.isRequired,\n}\n\nconst BlogPage = () => (\n <StaticQuery\n query={graphql`\n query ListBlogQuery {\n allMarkdownRemark(\n filter: {\n fileAbsolutePath: { regex: \"/(blog)/\" }\n frontmatter: { hidden: { ne: true } }\n }\n sort: { order: DESC, fields: [frontmatter___date] }\n ) {\n edges {\n node {\n fields {\n slug\n readingTime {\n text\n }\n }\n frontmatter {\n date(formatString: \"MMMM Do YYYY\")\n title\n author\n short_description\n keywords\n hidden\n }\n }\n }\n }\n }\n `}\n render={data => {\n const selectedTag = tagFromUrl()\n\n return (\n <Layout>\n <SEO title=\"The Featurist Blog\" />\n <AppWrapper>\n <Hero isDark isBlog style={{ zIndex: 20 }}>\n <BigTitleLight>Blog</BigTitleLight>\n <PLight />\n </Hero>\n <Content>\n <SectionWrapper condensed>\n {data.allMarkdownRemark.edges\n .map(({ node }, i) => {\n if (\n selectedTag &&\n !node.frontmatter.keywords.includes(selectedTag)\n ) {\n return\n }\n return (\n <Section\n key={`blog-post-${i}`}\n title={node.frontmatter.title}\n author={node.frontmatter.author}\n date={node.frontmatter.date}\n slug={node.fields.slug}\n keywords={node.frontmatter.keywords}\n readingTime={node.fields.readingTime.text}\n >\n <P>{node.frontmatter.short_description}</P>\n <LinkTo href={node.fields.slug}>\n <Button>Read More</Button>\n </LinkTo>\n </Section>\n )\n })\n .filter(Boolean)}\n </SectionWrapper>\n </Content>\n </AppWrapper>\n </Layout>\n )\n }}\n />\n)\n\nexport default BlogPage\n"],"sourceRoot":""}