-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-index-js-55756cecb2207793f092.js.map
1 lines (1 loc) · 9.13 KB
/
component---src-pages-index-js-55756cecb2207793f092.js.map
1
{"version":3,"file":"component---src-pages-index-js-55756cecb2207793f092.js","mappings":"qLAEIA,EAAyBC,EAAQ,MAIrCC,EAAQ,EAsFR,YASI,IARFC,EAQC,EARDA,SACAC,EAOC,EAPDA,OACAC,EAMC,EANDA,MACAC,EAKC,EALDA,MAKC,IAJDC,eAAAA,OAIC,SAHDC,EAGC,EAHDA,UACAC,EAEC,EAFDA,YAEC,IADDC,gBAAAA,OACC,MADiB,IACjB,EACD,GAAI,oBAAOC,QAA0BA,OAAOC,GAAI,CAC9C,IAAMC,EAAuB,CAC3BC,cAAeX,EACfY,YAAaX,EACbY,WAAYX,EACZY,WAAYX,EACZC,eAAgBA,EAChBC,UAAAA,GAGEC,GAAe,mBAAOA,IACxBI,EAAqBJ,YAnGO,SAACS,EAAUC,QAAuB,IAAvBA,IAAAA,EAAc,KACzD,IAAIC,GAAS,EAEPC,EAAe,WACdD,IACHA,GAAS,EACTF,MAKJ,OADAI,WAAWD,EAAcF,GAClBE,EAwFgCE,CAA0Bd,EAAaC,IAG5EC,OAAOC,GAAP,eAA2BC,KA5G/B,IAAIW,EAAYxB,EAAuBC,EAAQ,QAE3CwB,EAASzB,EAAuBC,EAAQ,QAExCyB,EAAa1B,EAAuBC,EAAQ,QAgBhD,SAAS0B,EAAaC,GACpB,IACEd,EAKEc,EALFd,cACAC,EAIEa,EAJFb,YACAC,EAGEY,EAHFZ,WACAC,EAEEW,EAFFX,WACGY,EALL,EAMID,EANJ,GAOA,OAAoBH,EAAOK,QAAQC,cAAc,KAAK,EAAIP,EAAUM,SAAS,GAAID,EAAM,CACrFG,QAAS,SAAAC,GACH,mBAAOL,EAAMI,SACfJ,EAAMI,QAAQC,GAGhB,IAAIC,GAAW,EA6Bf,OA3BiB,IAAbD,EAAEE,QAAgBF,EAAE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AAMC,GAAG,sBACP,gBAAC,IAAD,CACEC,QAAQ,UACRC,KAAK,KACLhB,UAAU,MACVrB,QAAS,SAACC,GAAD,OACPqC,EAAAA,EAAAA,GAAiB,CACfnE,SAAU,YACVC,OAAQ,2BACRC,MAAO,kCAIV6C,EAAKS,eAAeC,QAAQW,iCAKrC,gBAAC,IAAD,KACE,gBAAC,IAAD,CAAKd,GAAI,GAAIC,GAAI,EAAGL,UAAU,wBAC5B,uBAAKA,UAAU,aACZS,EAAAA,EAAAA,GAAeZ,EAAKS,eAAeC,QAAQY,6B","sources":["webpack://openousd/./node_modules/gatsby-plugin-google-analytics/index.js","webpack://openousd/./src/pages/index.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.OutboundLink = OutboundLink;\nexports.trackCustomEvent = trackCustomEvent;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nconst createFunctionWithTimeout = (callback, opt_timeout = 1000) => {\n let called = false;\n\n const raceCallback = () => {\n if (!called) {\n called = true;\n callback();\n }\n };\n\n setTimeout(raceCallback, opt_timeout);\n return raceCallback;\n};\n\nfunction OutboundLink(props) {\n const {\n eventCategory,\n eventAction,\n eventLabel,\n eventValue,\n ...rest\n } = props;\n return /*#__PURE__*/_react.default.createElement(\"a\", (0, _extends2.default)({}, rest, {\n onClick: e => {\n if (typeof props.onClick === `function`) {\n props.onClick(e);\n }\n\n let redirect = true;\n\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.defaultPrevented) {\n redirect = false;\n }\n\n if (props.target && props.target.toLowerCase() !== `_self`) {\n redirect = false;\n }\n\n if (window.ga) {\n window.ga(`send`, `event`, {\n eventCategory: eventCategory || `Outbound Link`,\n eventAction: eventAction || `click`,\n eventLabel: eventLabel || props.href,\n eventValue,\n transport: redirect ? `beacon` : ``,\n hitCallback: function () {\n if (redirect) {\n document.location = props.href;\n }\n }\n });\n } else {\n if (redirect) {\n document.location = props.href;\n }\n }\n\n return false;\n }\n }));\n}\n\nOutboundLink.propTypes = {\n href: _propTypes.default.string,\n target: _propTypes.default.string,\n eventCategory: _propTypes.default.string,\n eventAction: _propTypes.default.string,\n eventLabel: _propTypes.default.string,\n eventValue: _propTypes.default.number,\n onClick: _propTypes.default.func\n};\n/**\n * This allows the user to create custom events within their Gatsby projects.\n *\n * @param {import('gatsby-plugin-google-analytics').CustomEventArgs} args\n * @see https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#events\n */\n\nfunction trackCustomEvent({\n category,\n action,\n label,\n value,\n nonInteraction = false,\n transport,\n hitCallback,\n callbackTimeout = 1000\n}) {\n if (typeof window !== `undefined` && window.ga) {\n const trackingEventOptions = {\n eventCategory: category,\n eventAction: action,\n eventLabel: label,\n eventValue: value,\n nonInteraction: nonInteraction,\n transport\n };\n\n if (hitCallback && typeof hitCallback === `function`) {\n trackingEventOptions.hitCallback = createFunctionWithTimeout(hitCallback, callbackTimeout);\n }\n\n window.ga(`send`, `event`, trackingEventOptions);\n }\n}","import React from \"react\"\nimport { graphql } from \"gatsby\"\nimport { Link } from \"gatsby-plugin-intl\"\nimport { trackCustomEvent } from \"gatsby-plugin-google-analytics\"\nimport { renderRichText } from \"gatsby-source-contentful/rich-text\"\n\nimport Layout from \"../components/layout\"\nimport { StaticImage } from \"gatsby-plugin-image\"\nimport Seo from \"../components/seo\"\nimport \"../styles/pages/index.scss\"\n\nimport { Container, Col, Row, Button } from \"react-bootstrap\"\n\nconst IndexPage = ({ data }) => (\n <Layout pageClassName=\"index-page\">\n <Seo title=\"Home\" />\n\n <div className=\"hero mx-auto\">\n <StaticImage\n src=\"../images/mural.png\"\n alt=\"Live Learn Love mural at Roosevelt Middle School\"\n />\n </div>\n\n <Container>\n <Row className=\"descriptions justify-content-center\">\n <Col xs={11} lg={5} className=\"px-lg-5 py-lg-4 px-3 py-3\">\n <h1 className=\"\">{data.contentfulPage.content.card01Title}</h1>\n {renderRichText(data.contentfulPage.content.card01Content)}\n </Col>\n\n <Col xs={11} lg={5} className=\"px-lg-5 py-lg-4 px-3 py-3\">\n <h1 className=\"\">{data.contentfulPage.content.card02Title}</h1>\n {renderRichText(data.contentfulPage.content.card02Content)}\n <Link to=\"/central-programs/\">\n <Button\n variant=\"primary\"\n size=\"lg\"\n className=\"cta\"\n onClick={(e) =>\n trackCustomEvent({\n category: \"Home Card\",\n action: \"Explore Central Programs\",\n label: \" What Are Central Programs?\",\n })\n }\n >\n {data.contentfulPage.content.exploreCentralProgramsButton}\n </Button>\n </Link>\n </Col>\n </Row>\n <Row>\n <Col xs={11} lg={5} className=\"mx-auto ml-lg-5 mt-3\">\n <div className=\"footnote\">\n {renderRichText(data.contentfulPage.content.heroImageAttribution)}\n </div>\n </Col>\n </Row>\n </Container>\n </Layout>\n)\n\nexport const query = graphql`\n query HomePageQuery($language: String) {\n contentfulPage(slug: { eq: \"index\" }, node_locale: { eq: $language }) {\n content {\n ... on ContentfulHomePageContent {\n id\n card01Content {\n raw\n }\n card01Title\n card02Content {\n raw\n }\n card02Title\n exploreCentralProgramsButton\n heroImageAttribution {\n raw\n }\n }\n }\n slug\n title\n }\n }\n`\n\nexport default IndexPage\n"],"names":["_interopRequireDefault","require","exports","category","action","label","value","nonInteraction","transport","hitCallback","callbackTimeout","window","ga","trackingEventOptions","eventCategory","eventAction","eventLabel","eventValue","callback","opt_timeout","called","raceCallback","setTimeout","createFunctionWithTimeout","_extends2","_react","_propTypes","OutboundLink","props","rest","default","createElement","onClick","e","redirect","button","altKey","ctrlKey","metaKey","shiftKey","defaultPrevented","target","toLowerCase","href","document","location","propTypes","string","number","func","data","pageClassName","title","className","S","src","alt","xs","lg","contentfulPage","content","card01Title","renderRichText","card01Content","card02Title","card02Content","Link","to","variant","size","trackCustomEvent","exploreCentralProgramsButton","heroImageAttribution"],"sourceRoot":""}