{"version":3,"sources":["webpack:///component---src-templates-article-tags-js-e06d28059667ab74b7ec.js","webpack:///./src/templates/articleTags.js"],"names":["webpackJsonp","1108","module","exports","__webpack_require__","_interopRequireWildcard","obj","__esModule","newObj","key","Object","prototype","hasOwnProperty","call","default","_interopRequireDefault","pageQuery","undefined","_extends2","_extends3","_objectWithoutProperties2","_objectWithoutProperties3","_react","_react2","_propTypes","PropTypes","_reactI18next","_components","_Embed","_Embed2","_styles","_utils","_Layout","_Layout2","ArticleTags","_ref","data","pathContext","t","theme","articles","allContentfulArticle","edges","breadcrumb","title","defaultValue","tagName","tag","tealiumTag","createElement","locale","shortenLocaleName","breadcrumbTitle","Box","px","mt","Text","fontWeight","textTransform","style","shevy","h2","color","themeColor","map","edge","index","article","node","Fragment","id","embedStyle","length","Divider","side","sideForIndex","mb","type","dangerouslySetInnerHTML","__html","propTypes","object","isRequired","translate"],"mappings":"AAAAA,cAAc,iBAERC,KACA,SAAUC,EAAQC,EAASC,GAEhC,YAqCA,SAASC,GAAwBC,GAAO,GAAIA,GAAOA,EAAIC,WAAc,MAAOD,EAAc,IAAIE,KAAa,IAAW,MAAPF,EAAe,IAAK,GAAIG,KAAOH,GAAWI,OAAOC,UAAUC,eAAeC,KAAKP,EAAKG,KAAMD,EAAOC,GAAOH,EAAIG,GAAgC,OAAtBD,GAAOM,QAAUR,EAAYE,EAElQ,QAASO,GAAuBT,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQQ,QAASR,GArCvFH,EAAQI,YAAa,EACrBJ,EAAQa,UAAYC,MAEpB,IAAIC,GAAYd,EAAoB,GAEhCe,EAAYJ,EAAuBG,GAEnCE,EAA4BhB,EAAoB,GAEhDiB,EAA4BN,EAAuBK,GChBxDE,EAAAlB,EAAA,GDoBKmB,EAAUR,EAAuBO,GChBtCE,EAAApB,EAAA,IAAYqB,EDoBKpB,EAAwBmB,GCnBzCE,EAAAtB,EAAA,IAEAuB,EAAAvB,EAAA,GACAwB,EAAAxB,EAAA,K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E4B,KAAK,kBACLC,yBAA2BC,OAAQ/B,KAErCzB,EAAAT,QAAAmC,cAAA,UAAQqB,GAAG,yBAAX,+gBAYA/C,EAAAT,QAAAmC,cAAA,YAAUxC,IAAI,QAAQ6D,GAAG,wBAAzB,sLAMA/C,EAAAT,QAAAmC,cAAA,kBAKNf,GAAY8C,WACV5C,KAAMX,EAAUwD,OAAOC,YD4BxB/E,EAAQW,SCzBM,EAAAY,EAAAyD,WAAU,gBAAgBjD,EAE5BlB","file":"component---src-templates-article-tags-js-e06d28059667ab74b7ec.js","sourcesContent":["webpackJsonp([63558174134091],{\n\n/***/ 1108:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\texports.pageQuery = undefined;\n\t\n\tvar _extends2 = __webpack_require__(4);\n\t\n\tvar _extends3 = _interopRequireDefault(_extends2);\n\t\n\tvar _objectWithoutProperties2 = __webpack_require__(7);\n\t\n\tvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\t\n\tvar _react = __webpack_require__(2);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _propTypes = __webpack_require__(10);\n\t\n\tvar PropTypes = _interopRequireWildcard(_propTypes);\n\t\n\tvar _reactI18next = __webpack_require__(11);\n\t\n\tvar _components = __webpack_require__(3);\n\t\n\tvar _Embed = __webpack_require__(137);\n\t\n\tvar _Embed2 = _interopRequireDefault(_Embed);\n\t\n\tvar _styles = __webpack_require__(21);\n\t\n\tvar _utils = __webpack_require__(13);\n\t\n\tvar _Layout = __webpack_require__(138);\n\t\n\tvar _Layout2 = _interopRequireDefault(_Layout);\n\t\n\tfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar ArticleTags = function ArticleTags(_ref) {\n\t var data = _ref.data,\n\t pathContext = _ref.pathContext,\n\t t = _ref.t,\n\t props = (0, _objectWithoutProperties3.default)(_ref, [\"data\", \"pathContext\", \"t\"]);\n\t\n\t if (!data) {\n\t return null;\n\t }\n\t\n\t var theme = _styles.defaultTheme;\n\t\n\t var articles = data.allContentfulArticle.edges;\n\t\n\t var breadcrumb = [].concat(pathContext.breadcrumb || []);\n\t\n\t var title = t(\"articles.tagPage.title\", {\n\t defaultValue: \"Articles tagged \\\"{{tagName}}\\\"\",\n\t tagName: pathContext.tag\n\t });\n\t\n\t var tealiumTag = \"\\n (function(a,b,c,d){\\n a=\\\"https://tags.tiqcdn.com/utag/adtaxi/fcfcu.com/prod/utag.js\\\";\\n b=document;c=\\\"script\\\";d=b.createElement(c);d.src=a;d.type=\\\"text/java\\\"+c;d.async=true;\\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);\\n })();\\n\";\n\t\n\t return _react2.default.createElement(\n\t _Layout2.default,\n\t {\n\t data: data,\n\t locale: (0, _utils.shortenLocaleName)(pathContext.locale)\n\t // headerImages={headerImage && [headerImage]}\n\t , title: title,\n\t breadcrumb: breadcrumb,\n\t breadcrumbTitle: title\n\t },\n\t _react2.default.createElement(\n\t _components.Box,\n\t { px: [3, 3, 4], mt: 1 },\n\t _react2.default.createElement(\n\t _components.Text,\n\t {\n\t fontWeight: \"bold\",\n\t textTransform: \"uppercase\",\n\t style: _styles.shevy.h2,\n\t color: (0, _styles.themeColor)(theme)\n\t },\n\t title\n\t ),\n\t _react2.default.createElement(\n\t _components.Box,\n\t null,\n\t articles.map(function (edge, index) {\n\t var article = edge.node;\n\t return _react2.default.createElement(\n\t _react.Fragment,\n\t { key: articles.id },\n\t _react2.default.createElement(_Embed2.default, (0, _extends3.default)({}, article, { embedStyle: \"archive\", theme: theme })),\n\t index !== articles.length - 1 && _react2.default.createElement(_components.Divider, { key: \"divider\", side: (0, _components.sideForIndex)(index), mb: 3 })\n\t );\n\t })\n\t )\n\t ),\n\t _react2.default.createElement(\"script\", {\n\t type: \"text/javascript\",\n\t dangerouslySetInnerHTML: { __html: tealiumTag }\n\t }),\n\t _react2.default.createElement(\n\t \"script\",\n\t { id: \"facebook-pixel-script\" },\n\t \"!function(f,b,e,v,n,t,s)\\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\n n.queue=[];t=b.createElement(e);t.async=!0;\\n t.src=v;s=b.getElementsByTagName(e)[0];\\n s.parentNode.insertBefore(t,s)}(window, document,'script',\\n 'https://connect.facebook.net/en_US/fbevents.js');\\n fbq('init', '427292227998029');\\n fbq('track', 'PageView');\"\n\t ),\n\t _react2.default.createElement(\n\t \"noscript\",\n\t { key: \"image\", id: \"facebook-pixel-image\" },\n\t \"
\"\n\t ),\n\t _react2.default.createElement(\"noscript\", null)\n\t );\n\t};\n\t\n\tArticleTags.propTypes = {\n\t data: PropTypes.object.isRequired\n\t};\n\t\n\texports.default = (0, _reactI18next.translate)(\"translations\")(ArticleTags);\n\tvar pageQuery = exports.pageQuery = \"** extracted graphql fragment **\";\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// component---src-templates-article-tags-js-e06d28059667ab74b7ec.js","import React, { Fragment } from \"react\";\n\nimport R from \"ramda\";\n\nimport * as PropTypes from \"prop-types\";\nimport { translate } from \"react-i18next\";\n\nimport { Box, Divider, Text, sideForIndex } from \"src/components\";\nimport Embed from \"src/components/Embed\";\nimport { defaultTheme } from \"src/styles\";\nimport { shortenLocaleName } from \"src/utils\";\n\nimport Layout from \"src/components/Layout\";\n\nimport { shevy, themeColor } from \"src/styles\";\n\nconst ArticleTags = ({ data, pathContext, t, ...props }) => {\n if (!data) {\n return null;\n }\n\n const theme = defaultTheme;\n\n const articles = data.allContentfulArticle.edges;\n\n const breadcrumb = [...(pathContext.breadcrumb || [])];\n\n const title = t(\"articles.tagPage.title\", {\n defaultValue: `Articles tagged \"{{tagName}}\"`,\n tagName: pathContext.tag,\n });\n\n const tealiumTag = `\n (function(a,b,c,d){\n a=\"https://tags.tiqcdn.com/utag/adtaxi/fcfcu.com/prod/utag.js\";\n b=document;c=\"script\";d=b.createElement(c);d.src=a;d.type=\"text/java\"+c;d.async=true;\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);\n })();\n`;\n\n return (\n \n \n \n {title}\n \n \n {articles.map((edge, index) => {\n const article = edge.node;\n return (\n \n \n {index !== articles.length - 1 && (\n \n )}\n \n );\n })}\n \n \n \n \n \n \n \n );\n};\n\nArticleTags.propTypes = {\n data: PropTypes.object.isRequired,\n};\n\nexport default translate(\"translations\")(ArticleTags);\n\nexport const pageQuery = graphql`\n query articleTagsQuery($tag: [String], $locale: String!) {\n ...LayoutQuery\n allContentfulArticle(\n filter: { tags: { in: $tag }, node_locale: { eq: $locale } }\n ) {\n edges {\n node {\n ...ArticleEmbed\n }\n }\n }\n }\n`;\n\n\n\n// WEBPACK FOOTER //\n// ./src/templates/articleTags.js"],"sourceRoot":""}