-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-e1b7454adbd43a530495.js.map
1 lines (1 loc) · 7.37 KB
/
1-e1b7454adbd43a530495.js.map
1
{"version":3,"sources":["webpack:///./src/components/layout.js","webpack:///./.cache/gatsby-browser-entry.js","webpack:///./.cache/public-page-renderer.js","webpack:///./.cache/public-page-renderer-prod.js"],"names":["Layout","_ref","content","children","location","pathname","react__WEBPACK_IMPORTED_MODULE_1___default","a","createElement","id","className","gatsby__WEBPACK_IMPORTED_MODULE_4__","query","render","data","Fragment","react_helmet__WEBPACK_IMPORTED_MODULE_3___default","title","site","siteMetadata","meta","name","lang","_public_static_d_2994927498_json__WEBPACK_IMPORTED_MODULE_0__","propTypes","prop_types__WEBPACK_IMPORTED_MODULE_2___default","node","isRequired","__webpack_exports__","__webpack_require__","r","d","graphql","StaticQueryContext","StaticQuery","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","prop_types__WEBPACK_IMPORTED_MODULE_1__","prop_types__WEBPACK_IMPORTED_MODULE_1___default","gatsby_link__WEBPACK_IMPORTED_MODULE_2__","gatsby_link__WEBPACK_IMPORTED_MODULE_2___default","_wait_for_route_change__WEBPACK_IMPORTED_MODULE_3__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_4__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_4___default","_parse_path__WEBPACK_IMPORTED_MODULE_5__","createContext","props","Consumer","staticQueryData","Error","object","string","func","m","module","exports","default","ProdPageRenderer","pageResources","_loader__WEBPACK_IMPORTED_MODULE_4__","getResourcesForPathnameSync","_page_renderer__WEBPACK_IMPORTED_MODULE_3__","Object","assign","json","shape"],"mappings":"kKAOMA,UAAS,SAAAC,GAA4B,IAErCC,EAFYC,EAAyBF,EAAzBE,SAAUC,EAAeH,EAAfG,SAoB1B,OAfEF,EADEE,GAAkC,MAAtBA,EAASC,SAErBC,EAAAC,EAAAC,cAAA,WACGL,GAKHG,EAAAC,EAAAC,cAA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AAA,EAAAE,EAAAH,EAAA,8BAAAiB,EAAA,IAaA,IAAMZ,EAAqBG,EAAA7B,EAAMuC,cAAc,IAEzCZ,EAAc,SAAAa,GAAK,OACvBX,EAAA7B,EAAAC,cAACyB,EAAmBe,SAApB,KACG,SAAAC,GACC,OACEF,EAAMjC,MACLmC,EAAgBF,EAAMnC,QAAUqC,EAAgBF,EAAMnC,OAAOE,MAEtDiC,EAAMlC,QAAUkC,EAAM5C,UAC5B4C,EAAMjC,KAAOiC,EAAMjC,KAAKA,KAAOmC,EAAgBF,EAAMnC,OAAOE,MAGvDsB,EAAA7B,EAAAC,cAAA,uCAaf,SAASwB,IACP,MAAM,IAAIkB,MACR,gVATJhB,EAAYV,UAAY,CACtBV,KAAMyB,EAAAhC,EAAU4C,OAChBvC,MAAO2B,EAAAhC,EAAU6C,OAAOzB,WACxBd,OAAQ0B,EAAAhC,EAAU8C,KAClBlD,SAAUoC,EAAAhC,EAAU8C,2BCpCtB,IAAsBC,EAKpBC,EAAOC,SALaF,EAKWzB,EAAQ,OALRyB,EAAEG,SAAYH,+MCMzCI,EAAmB,SAAAzD,GAAkB,IAAfG,EAAeH,EAAfG,SACpBuD,EAAgBC,EAAA,QAAOC,4BAA4BzD,EAASC,UAClE,OAAOC,EAAAC,EAAMC,cAAcsD,EAAA,EAApBC,OAAAC,OAAA,CACL5D,WACAuD,iBACGA,EAAcM,QAIrBP,EAAiBlC,UAAY,CAC3BpB,SAAUqB,EAAAlB,EAAU2D,MAAM,CACxB7D,SAAUoB,EAAAlB,EAAU6C,OAAOzB,aAC1BA,YAGUC,EAAA","file":"1-e1b7454adbd43a530495.js","sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport Helmet from 'react-helmet'\nimport { StaticQuery, graphql } from 'gatsby'\n\nimport '../assets/scss/main.scss'\n\nconst Layout = ({ children, location }) => {\n\n let content;\n\n if (location && location.pathname === '/') {\n content = (\n <div>\n {children}\n </div>\n )\n } else {\n content = (\n <div id=\"wrapper\" className=\"page\">\n <div>\n {children}\n </div>\n </div>\n )\n }\n\n return (\n <StaticQuery\n query={graphql`\n query SiteTitleQuery {\n site {\n siteMetadata {\n title\n }\n }\n }\n `}\n render={data => (\n <>\n <Helmet\n title={data.site.siteMetadata.title}\n meta={[\n { name: 'description', content: 'Sample' },\n { name: 'keywords', content: 'sample, something' },\n ]}\n >\n <html lang=\"en\" />\n </Helmet>\n {content}\n </>\n )}\n />\n )\n}\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default Layout\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport Link, {\n withPrefix,\n navigate,\n push,\n replace,\n navigateTo,\n} from \"gatsby-link\"\nimport { waitForRouteChange } from \"./wait-for-route-change\"\nimport PageRenderer from \"./public-page-renderer\"\nimport parsePath from \"./parse-path\"\n\nconst StaticQueryContext = React.createContext({})\n\nconst StaticQuery = props => (\n <StaticQueryContext.Consumer>\n {staticQueryData => {\n if (\n props.data ||\n (staticQueryData[props.query] && staticQueryData[props.query].data)\n ) {\n return (props.render || props.children)(\n props.data ? props.data.data : staticQueryData[props.query].data\n )\n } else {\n return <div>Loading (StaticQuery)</div>\n }\n }}\n </StaticQueryContext.Consumer>\n)\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away,. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n.` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport {\n Link,\n withPrefix,\n graphql,\n parsePath,\n navigate,\n push, // TODO replace for v3\n replace, // TODO remove replace for v3\n navigateTo, // TODO: remove navigateTo for v3\n StaticQueryContext,\n StaticQuery,\n PageRenderer,\n waitForRouteChange,\n}\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport InternalPageRenderer from \"./page-renderer\"\nimport loader from \"./loader\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.getResourcesForPathnameSync(location.pathname)\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n"],"sourceRoot":""}