-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-post-query-tsx-5ae9dbd279598e66cf95.js.map
1 lines (1 loc) · 9.3 KB
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-post-query-tsx-5ae9dbd279598e66cf95.js.map
1
{"version":3,"sources":["webpack:///./node_modules/gatsby-plugin-mdx/index.js","webpack:///./node_modules/core-js/modules/es6.reflect.construct.js","webpack:///./node_modules/gatsby-plugin-mdx/mdx-renderer.js","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/post.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog-core/src/templates/post-query.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/@lekoarts/gatsby-theme-minimal-blog-core/components/post.tsx"],"names":["MDXRenderer","require","module","$export","create","aFunction","anObject","isObject","fails","bind","rConstruct","Reflect","construct","NEW_TARGET_BUG","F","ARGS_BUG","S","Target","args","newTarget","arguments","length","$args","push","apply","proto","prototype","instance","Object","result","Function","call","React","useMDXComponents","mdx","useMDXScope","scope","components","children","props","mdxComponents","mdxScope","End","fullScope","keys","values","key","fn","shadow","map","v","Post","post","data","title","description","excerpt","image","banner","childImageSharp","resize","src","undefined","h2","sx","color","mt","a","fontSize","date","tags","Fragment","timeToRead","my","boxShadow","join","body","PostComponent","query"],"mappings":"gFAMA,IAAMA,EAAcC,EAApB,QAEAC,UAAiB,CACfF,YAAaA,I,qBCRf,IAAIG,EAAU,EAAQ,QAClBC,EAAS,EAAQ,QACjBC,EAAY,EAAQ,QACpBC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAQ,EAAQ,QAChBC,EAAO,EAAQ,QACfC,GAAc,EAAQ,QAAaC,SAAW,IAAIC,UAIlDC,EAAiBL,GAAM,WACzB,SAASM,KACT,QAASJ,GAAW,cAA6B,GAAII,aAAcA,MAEjEC,GAAYP,GAAM,WACpBE,GAAW,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ASD,EAAA,KAAS,SAAAE,GAAG,OAAIH,EAAJ,MAG3B,OAFQ,mCAAR,KAEOI,2BAAP,OACC,CAACT,EAlBJ,IAoBA,OAAON,EAAA,mBAA2BK,WAAYG,GAA9C,M,0LCAIQ,EADK,CAAC,OAAD,oBACOC,KAAI,SAAAC,GAAC,iCAA+BA,EAA/B,IAAoCA,EAApC,UA2BRC,EAzBF,SAAC,GAAD,IAAWC,EAAX,EAAGC,KAAQD,KAAX,OACX,YAAC,IAAD,KACE,YAAC,IAAD,CACEE,MAAOF,EAAKE,MACZC,YAAaH,EAAKG,YAAcH,EAAKG,YAAcH,EAAKI,QACxDC,MAAOL,EAAKM,OAASN,EAAKM,OAAOC,gBAAgBC,OAAOC,SAAMC,IAEhE,YAAC,IAAOC,GAAR,KAAYX,EAAKE,OACjB,iBAAGU,GAAI,CAAEC,MAAO,YAAaC,GAAI,EAAGC,EAAG,CAAEF,MAAO,aAAeG,SAAU,CAAC,EAAG,EAAG,KAC9E,wBAAOhB,EAAKiB,MACXjB,EAAKkB,MACJ,YAAC,IAAMC,SAAP,WAEE,YAAC,IAAD,CAAUD,KAAMlB,EAAKkB,QAL3B,MASE,wBAAOlB,EAAKoB,WAAZ,cAEF,uBAASR,GAAI,CAAES,GAAI,EAAG,6BAA8B,CAAEA,GAAI,CAAC,EAAG,EAAG,GAAIC,UAAW1B,EAAO2B,KAAP,SAC9E,YAAC,cAAD,KAAcvB,EAAKwB,S,urBCvDzB,sCAEeC,UCOA,YAAqB,IAAlBxB,EAAkB,EAAlBA,KACRD,EAASC,EAATD,KAER,OAAO,kBAAC,EAAD,CAAMC,KAAI,KAAOA,EAAP,CAAaD,YDVjByB,IAEFC,EAAQ","file":"component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-post-query-tsx-5ae9dbd279598e66cf95.js","sourcesContent":["/**\n * Welcome to gatsby-plugin-mdx!\n *\n * Start reading in gatsby-node.js\n */\n\nconst MDXRenderer = require(`./mdx-renderer`)\n\nmodule.exports = {\n MDXRenderer: MDXRenderer,\n}\n","// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])\nvar $export = require('./_export');\nvar create = require('./_object-create');\nvar aFunction = require('./_a-function');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar bind = require('./_bind');\nvar rConstruct = (require('./_global').Reflect || {}).construct;\n\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function () {\n function F() { /* empty */ }\n return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function () {\n rConstruct(function () { /* empty */ });\n});\n\n$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {\n construct: function construct(Target, args /* , newTarget */) {\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject(proto) ? proto : Object.prototype);\n var result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n","const React = require(`react`)\nconst { useMDXComponents, mdx } = require(`@mdx-js/react`)\nconst { useMDXScope } = require(`./context`)\n\nmodule.exports = function MDXRenderer({\n scope,\n components,\n children,\n ...props\n}) {\n const mdxComponents = useMDXComponents(components)\n const mdxScope = useMDXScope(scope)\n\n // Memoize the compiled component\n const End = React.useMemo(() => {\n if (!children) {\n return null\n }\n\n const fullScope = {\n // React is here just in case the user doesn't pass them in\n // in a manual usage of the renderer\n React,\n mdx,\n ...mdxScope,\n }\n\n const keys = Object.keys(fullScope)\n const values = keys.map(key => fullScope[key])\n const fn = new Function(`_fn`, ...keys, `${children}`)\n\n return fn({}, ...values)\n }, [children, scope])\n\n return React.createElement(End, { components: mdxComponents, ...props })\n}\n","/** @jsx jsx */\r\nimport { jsx, Styled } from \"theme-ui\"\r\nimport { MDXRenderer } from \"gatsby-plugin-mdx\"\r\nimport React from \"react\"\r\nimport Layout from \"./layout\"\r\nimport ItemTags from \"./item-tags\"\r\nimport SEO from \"./seo\"\r\n\r\ntype PostProps = {\r\n data: {\r\n post: {\r\n slug: string\r\n title: string\r\n date: string\r\n tags?: {\r\n name: string\r\n slug: string\r\n }[]\r\n description?: string\r\n body: string\r\n excerpt: string\r\n timeToRead: number\r\n banner?: {\r\n childImageSharp: {\r\n resize: {\r\n src: string\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nconst px = [`32px`, `16px`, `8px`, `4px`]\r\nconst shadow = px.map(v => `rgba(0, 0, 0, 0.15) 0px ${v} ${v} 0px`)\r\n\r\nconst Post = ({ data: { post } }: PostProps) => (\r\n <Layout>\r\n <SEO\r\n title={post.title}\r\n description={post.description ? post.description : post.excerpt}\r\n image={post.banner ? post.banner.childImageSharp.resize.src : undefined}\r\n />\r\n <Styled.h2>{post.title}</Styled.h2>\r\n <p sx={{ color: `secondary`, mt: 3, a: { color: `secondary` }, fontSize: [1, 1, 2] }}>\r\n <time>{post.date}</time>\r\n {post.tags && (\r\n <React.Fragment>\r\n {` — `}\r\n <ItemTags tags={post.tags} />\r\n </React.Fragment>\r\n )}\r\n {` — `}\r\n <span>{post.timeToRead} min read</span>\r\n </p>\r\n <section sx={{ my: 5, \".gatsby-resp-image-wrapper\": { my: [4, 4, 5], boxShadow: shadow.join(`, `) } }}>\r\n <MDXRenderer>{post.body}</MDXRenderer>\r\n </section>\r\n </Layout>\r\n)\r\n\r\nexport default Post\r\n","import { graphql } from \"gatsby\"\r\nimport PostComponent from \"../components/post\"\r\n\r\nexport default PostComponent\r\n\r\nexport const query = graphql`\r\n query($slug: String!) {\r\n post(slug: { eq: $slug }) {\r\n slug\r\n title\r\n date(formatString: \"DD.MM.YYYY\")\r\n tags {\r\n name\r\n slug\r\n }\r\n description\r\n body\r\n excerpt\r\n timeToRead\r\n banner {\r\n childImageSharp {\r\n resize(width: 1200, quality: 90) {\r\n src\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`\r\n","import React from \"react\"\r\nimport Post from \"../../../components/post\"\r\n\r\ntype Props = {\r\n data: {\r\n post: any\r\n [key: string]: any\r\n }\r\n}\r\n\r\nexport default ({ data }: Props) => {\r\n const { post } = data\r\n\r\n return <Post data={{ ...data, post }} />\r\n}\r\n"],"sourceRoot":""}