{"version":3,"sources":["webpack:///./node_modules/vertical-timeline-component-for-react/dist/index.js","webpack:///./src/components/templates/news.js","webpack:///./node_modules/react-visibility-sensor/dist/visibility-sensor.js","webpack:///./node_modules/vertical-timeline-component-for-react/dist/TimelineItem.js","webpack:///./node_modules/vertical-timeline-component-for-react/dist/Timeline.js"],"names":["module","exports","Timeline","TimelineItem","injectIntl","props","lang","useIntl","locale","console","log","news","data","ru_news","edges","en_news","next","pageContext","prev","lineColor","animate","map","node","key","frontmatter","date","dateText","style","color","title","dangerouslySetInnerHTML","__html","html","display","justifyContent","marginLeft","to","padding","justifySelf","marginRight","query","factory","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__2__","modules","installedModules","__webpack_require__","moduleId","i","l","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","bind","n","object","property","prototype","hasOwnProperty","p","s","offset","rect","containmentRect","offsetDir","direction","offsetVal","top","bottom","left","right","__webpack_exports__","VisibilitySensor","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","react_dom__WEBPACK_IMPORTED_MODULE_1__","react_dom__WEBPACK_IMPORTED_MODULE_1___default","prop_types__WEBPACK_IMPORTED_MODULE_2__","prop_types__WEBPACK_IMPORTED_MODULE_2___default","_lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__","_lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default","_typeof","obj","iterator","constructor","_defineProperties","target","length","descriptor","configurable","writable","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","_defineProperty","_React$Component","_this","instance","Constructor","TypeError","_classCallCheck","this","containment","window","event","delay","throttle","timeout","debounceCheck","later","check","info","fn","setTimeout","clearTimeout","getLastTimeout","addEventListener","interval","intervalCheck","setInterval","intervalDelay","scrollCheck","getContainer","scrollDelay","scrollThrottle","resizeCheck","resizeDelay","resizeThrottle","delayedCall","debounceEvent","debounceInfo","removeEventListener","clearInterval","el","state","undefined","width","height","normalizeRect","roundRectDown","getBoundingClientRect","containmentDOMRect","innerHeight","document","documentElement","clientHeight","innerWidth","clientWidth","visibilityRect","hasSize","isVisible","partialVisibility","partialVisible","minTopValue","warn","setState","onChange","protoProps","staticProps","subClass","superClass","_inherits","a","findDOMNode","active","startWatching","stopWatching","prevProps","Math","floor","children","Function","Children","only","Component","createElement","func","bool","oneOfType","oneOf","shape","number","instanceOf","Element","any","element","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","getShim","isRequired","ReactPropTypes","array","string","symbol","arrayOf","elementType","objectOf","exact","checkPropTypes","PropTypes","_extends","assign","arguments","source","_createClass","defineProperties","_react","_react2","_interopRequireDefault","_propTypes2","_classnames2","_reactVisibilitySensor2","_Component","_possibleConstructorReturn","onVisibilitySensorChange","visible","_props","id","dateStyle","dateComponent","dateInnerStyle","bodyContainerStyle","className","visibilitySensorProps","Fragment","propTypes","defaultProps","_ref"],"mappings":"6FAEAA,EAAOC,QAAU,CACfC,SAAU,EAAQ,QAAuB,QAEzCC,aAAc,EAAQ,QAA2B,U,oCCLnD,sHAoDeC,gCA3CM,SAAEC,GACrB,IACMC,EADOC,oBACKC,OAClBC,QAAQC,IAAIJ,GAEZ,IAAIK,EAAO,GACC,OAAPL,EAAgBK,EAAON,EAAMO,KAAKC,QAAQC,MAC9B,OAAPR,IAAgBK,EAAON,EAAMO,KAAKG,QAAQD,OAEpD,IAAME,EAAOX,EAAMY,YAAYD,KACzBE,EAAOb,EAAMY,YAAYC,KAI/B,OAFAT,QAAQC,IAAIC,GAGV,oCACA,kBAAC,IAAD,MACE,kBAAC,WAAD,CAAUQ,UAAW,OAAQC,SAAS,GAEnCT,EAAKU,KAAI,gBAAEC,EAAF,EAAEA,KAAF,OACR,kBAAC,eAAD,CACEC,IAAKD,EAAKE,YAAYC,K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,QAAEf,QAAQe,EAAqB,QAAE3N,MAAO2N,EAAqB,QAAE3N,OAAOuM,WACvIiC,UAAWb,EAAqB,QAAEjB,OAClC7M,UAAW8N,EAAqB,QAAEjB,OAClC5M,QAAS6N,EAAqB,QAAE1C,MAElCrM,EAASgQ,aAAe,CACtB9O,SAAS,EACT0O,UAAW,GACX3O,UAAW,QAEblB,EAAiB,QAAIC","file":"component---src-components-templates-news-js-f2aef0f2eca64f98cca7.js","sourcesContent":["'use strict';\n\nmodule.exports = {\n Timeline: require('./Timeline')[\"default\"],\n // eslint-disable-line global-require\n TimelineItem: require('./TimelineItem')[\"default\"] // eslint-disable-line global-require\n\n};","import React from 'react'\r\nimport { graphql } from 'gatsby'\r\nimport { FormattedMessage, Link, useIntl, injectIntl } from \"gatsby-plugin-intl\"\r\n\r\nimport { Timeline, TimelineItem } from 'vertical-timeline-component-for-react'\r\n\r\nimport Header from \"../header\"\r\nimport Footer from \"../footer\"\r\n\r\nconst NewsTemplate = ( props ) => {\r\n const intl = useIntl()\r\n const lang = intl.locale\r\n console.log(lang)\r\n\r\n var news = \"\"\r\n if ( lang===\"ru\" ) { news = props.data.ru_news.edges} \r\n else if ( lang===\"en\" ) { news = props.data.en_news.edges; }\r\n\r\n const next = props.pageContext.next\r\n const prev = props.pageContext.prev\r\n\r\n console.log(news)\r\n\r\n return (\r\n <>\r\n \r\n \r\n {/* Все новости
*/}\r\n {news.map(({node}) => (\r\n \r\n {node.frontmatter.title}
\r\n \r\n \r\n ))}\r\n \r\n
\r\n\r\n \r\n {next &&
--->
}\r\n \r\n \r\n \r\n >\r\n )\r\n}\r\n\r\nexport default injectIntl(NewsTemplate)\r\n\r\nexport const query = graphql`\r\n query NewsQuery($limit: Int!, $skip: Int!) {\r\n ru_news: allMarkdownRemark(\r\n filter: {frontmatter: {content_type: {eq: \"post\"}, published: {eq: true}, language: {eq: \"ru\"}}},\r\n sort: {fields: [frontmatter___date], order: DESC},\r\n limit: $limit\r\n skip: $skip\r\n ) {\r\n edges {\r\n node {\r\n frontmatter {\r\n title\r\n slug\r\n date(formatString: \"DD.MM.YYYY\")\r\n }\r\n html\r\n }\r\n }\r\n }\r\n\r\n en_news: allMarkdownRemark(\r\n filter: {frontmatter: {content_type: {eq: \"post\"}, published: {eq: true}, language: {eq: \"en\"}}},\r\n sort: {fields: [frontmatter___date], order: DESC},\r\n limit: $limit\r\n skip: $skip\r\n ) {\r\n edges {\r\n node {\r\n frontmatter {\r\n title\r\n slug\r\n date(formatString: \"DD.MM.YYYY\")\r\n }\r\n html\r\n }\r\n }\r\n }\r\n }\r\n`\r\n","require(\"core-js/modules/es6.function.name\");\n\nrequire(\"core-js/modules/es6.object.set-prototype-of\");\n\nrequire(\"core-js/modules/es6.function.bind\");\n\nrequire(\"core-js/modules/es6.object.create\");\n\nrequire(\"core-js/modules/es7.symbol.async-iterator\");\n\nrequire(\"core-js/modules/es6.symbol\");\n\nrequire(\"core-js/modules/es6.object.define-property\");\n\n(function webpackUniversalModuleDefinition(root, factory) {\n if (typeof exports === 'object' && typeof module === 'object') module.exports = factory(require(\"react\"), require(\"react-dom\"));else if (typeof define === 'function' && define.amd) define([\"React\", \"ReactDOM\"], factory);else if (typeof exports === 'object') exports[\"react-visibility-sensor\"] = factory(require(\"react\"), require(\"react-dom\"));else root[\"react-visibility-sensor\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function (__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {\n return (\n /******/\n function (modules) {\n // webpackBootstrap\n\n /******/\n // The module cache\n\n /******/\n var installedModules = {};\n /******/\n\n /******/\n // The require function\n\n /******/\n\n function __webpack_require__(moduleId) {\n /******/\n\n /******/\n // Check if module is in cache\n\n /******/\n if (installedModules[moduleId]) {\n /******/\n return installedModules[moduleId].exports;\n /******/\n }\n /******/\n // Create a new module (and put it into the cache)\n\n /******/\n\n\n var module = installedModules[moduleId] = {\n /******/\n i: moduleId,\n\n /******/\n l: false,\n\n /******/\n exports: {}\n /******/\n\n };\n /******/\n\n /******/\n // Execute the module function\n\n /******/\n\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n\n /******/\n // Flag the module as loaded\n\n /******/\n\n module.l = true;\n /******/\n\n /******/\n // Return the exports of the module\n\n /******/\n\n return module.exports;\n /******/\n }\n /******/\n\n /******/\n\n /******/\n // expose the modules object (__webpack_modules__)\n\n /******/\n\n\n __webpack_require__.m = modules;\n /******/\n\n /******/\n // expose the module cache\n\n /******/\n\n __webpack_require__.c = installedModules;\n /******/\n\n /******/\n // define getter function for harmony exports\n\n /******/\n\n __webpack_require__.d = function (exports, name, getter) {\n /******/\n if (!__webpack_require__.o(exports, name)) {\n /******/\n Object.defineProperty(exports, name, {\n enumerable: true,\n get: getter\n });\n /******/\n }\n /******/\n\n };\n /******/\n\n /******/\n // define __esModule on exports\n\n /******/\n\n\n __webpack_require__.r = function (exports) {\n /******/\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/\n Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n\n /******/\n // create a fake namespace object\n\n /******/\n // mode & 1: value is a module id, require it\n\n /******/\n // mode & 2: merge all properties of value into the ns\n\n /******/\n // mode & 4: return value when already ns object\n\n /******/\n // mode & 8|1: behave like require\n\n /******/\n\n\n __webpack_require__.t = function (value, mode) {\n /******/\n if (mode & 1) value = __webpack_require__(value);\n /******/\n\n if (mode & 8) return value;\n /******/\n\n if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value;\n /******/\n\n var ns = Object.create(null);\n /******/\n\n __webpack_require__.r(ns);\n /******/\n\n\n Object.defineProperty(ns, 'default', {\n enumerable: true,\n value: value\n });\n /******/\n\n if (mode & 2 && typeof value != 'string') for (var key in value) {\n __webpack_require__.d(ns, key, function (key) {\n return value[key];\n }.bind(null, key));\n }\n /******/\n\n return ns;\n /******/\n };\n /******/\n\n /******/\n // getDefaultExport function for compatibility with non-harmony modules\n\n /******/\n\n\n __webpack_require__.n = function (module) {\n /******/\n var getter = module && module.__esModule ?\n /******/\n function getDefault() {\n return module['default'];\n } :\n /******/\n function getModuleExports() {\n return module;\n };\n /******/\n\n __webpack_require__.d(getter, 'a', getter);\n /******/\n\n\n return getter;\n /******/\n };\n /******/\n\n /******/\n // Object.prototype.hasOwnProperty.call\n\n /******/\n\n\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n\n /******/\n // __webpack_public_path__\n\n /******/\n\n\n __webpack_require__.p = \"\";\n /******/\n\n /******/\n\n /******/\n // Load entry module and return exports\n\n /******/\n\n return __webpack_require__(__webpack_require__.s = 4);\n /******/\n }(\n /************************************************************************/\n\n /******/\n [\n /* 0 */\n\n /***/\n function (module, exports, __webpack_require__) {\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n if (false) {\n var throwOnDirectAccess, ReactIs;\n } else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = __webpack_require__(5)();\n }\n /***/\n\n },\n /* 1 */\n\n /***/\n function (module, exports) {\n module.exports = __WEBPACK_EXTERNAL_MODULE__1__;\n /***/\n },\n /* 2 */\n\n /***/\n function (module, exports) {\n module.exports = __WEBPACK_EXTERNAL_MODULE__2__;\n /***/\n },\n /* 3 */\n\n /***/\n function (module, exports) {\n // Tell whether the rect is visible, given an offset\n //\n // return: boolean\n module.exports = function (offset, rect, containmentRect) {\n var offsetDir = offset.direction;\n var offsetVal = offset.value; // Rules for checking different kind of offsets. In example if the element is\n // 90px below viewport and offsetTop is 100, it is considered visible.\n\n switch (offsetDir) {\n case 'top':\n return containmentRect.top + offsetVal < rect.top && containmentRect.bottom > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right;\n\n case 'left':\n return containmentRect.left + offsetVal < rect.left && containmentRect.bottom > rect.bottom && containmentRect.top < rect.top && containmentRect.right > rect.right;\n\n case 'bottom':\n return containmentRect.bottom - offsetVal > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right && containmentRect.top < rect.top;\n\n case 'right':\n return containmentRect.right - offsetVal > rect.right && containmentRect.left < rect.left && containmentRect.top < rect.top && containmentRect.bottom > rect.bottom;\n }\n };\n /***/\n\n },\n /* 4 */\n\n /***/\n function (module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n\n __webpack_require__.r(__webpack_exports__);\n /* harmony export (binding) */\n\n\n __webpack_require__.d(__webpack_exports__, \"default\", function () {\n return VisibilitySensor;\n });\n /* harmony import */\n\n\n var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);\n /* harmony import */\n\n\n var react__WEBPACK_IMPORTED_MODULE_0___default =\n /*#__PURE__*/\n __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n /* harmony import */\n\n\n var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);\n /* harmony import */\n\n\n var react_dom__WEBPACK_IMPORTED_MODULE_1___default =\n /*#__PURE__*/\n __webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);\n /* harmony import */\n\n\n var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);\n /* harmony import */\n\n\n var prop_types__WEBPACK_IMPORTED_MODULE_2___default =\n /*#__PURE__*/\n __webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n /* harmony import */\n\n\n var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);\n /* harmony import */\n\n\n var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default =\n /*#__PURE__*/\n __webpack_require__.n(_lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__);\n\n function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n }\n\n function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n }\n\n function normalizeRect(rect) {\n if (rect.width === undefined) {\n rect.width = rect.right - rect.left;\n }\n\n if (rect.height === undefined) {\n rect.height = rect.bottom - rect.top;\n }\n\n return rect;\n }\n\n var VisibilitySensor =\n /*#__PURE__*/\n function (_React$Component) {\n _inherits(VisibilitySensor, _React$Component);\n\n function VisibilitySensor(props) {\n var _this;\n\n _classCallCheck(this, VisibilitySensor);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(VisibilitySensor).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), \"getContainer\", function () {\n return _this.props.containment || window;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"addEventListener\", function (target, event, delay, throttle) {\n if (!_this.debounceCheck) {\n _this.debounceCheck = {};\n }\n\n var timeout;\n var func;\n\n var later = function later() {\n timeout = null;\n\n _this.check();\n };\n\n if (throttle > -1) {\n func = function func() {\n if (!timeout) {\n timeout = setTimeout(later, throttle || 0);\n }\n };\n } else {\n func = function func() {\n clearTimeout(timeout);\n timeout = setTimeout(later, delay || 0);\n };\n }\n\n var info = {\n target: target,\n fn: func,\n getLastTimeout: function getLastTimeout() {\n return timeout;\n }\n };\n target.addEventListener(event, info.fn);\n _this.debounceCheck[event] = info;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"startWatching\", function () {\n if (_this.debounceCheck || _this.interval) {\n return;\n }\n\n if (_this.props.intervalCheck) {\n _this.interval = setInterval(_this.check, _this.props.intervalDelay);\n }\n\n if (_this.props.scrollCheck) {\n _this.addEventListener(_this.getContainer(), \"scroll\", _this.props.scrollDelay, _this.props.scrollThrottle);\n }\n\n if (_this.props.resizeCheck) {\n _this.addEventListener(window, \"resize\", _this.props.resizeDelay, _this.props.resizeThrottle);\n } // if dont need delayed call, check on load ( before the first interval fires )\n\n\n !_this.props.delayedCall && _this.check();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"stopWatching\", function () {\n if (_this.debounceCheck) {\n // clean up event listeners and their debounce callers\n for (var debounceEvent in _this.debounceCheck) {\n if (_this.debounceCheck.hasOwnProperty(debounceEvent)) {\n var debounceInfo = _this.debounceCheck[debounceEvent];\n clearTimeout(debounceInfo.getLastTimeout());\n debounceInfo.target.removeEventListener(debounceEvent, debounceInfo.fn);\n _this.debounceCheck[debounceEvent] = null;\n }\n }\n }\n\n _this.debounceCheck = null;\n\n if (_this.interval) {\n _this.interval = clearInterval(_this.interval);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"check\", function () {\n var el = _this.node;\n var rect;\n var containmentRect; // if the component has rendered to null, dont update visibility\n\n if (!el) {\n return _this.state;\n }\n\n rect = normalizeRect(_this.roundRectDown(el.getBoundingClientRect()));\n\n if (_this.props.containment) {\n var containmentDOMRect = _this.props.containment.getBoundingClientRect();\n\n containmentRect = {\n top: containmentDOMRect.top,\n left: containmentDOMRect.left,\n bottom: containmentDOMRect.bottom,\n right: containmentDOMRect.right\n };\n } else {\n containmentRect = {\n top: 0,\n left: 0,\n bottom: window.innerHeight || document.documentElement.clientHeight,\n right: window.innerWidth || document.documentElement.clientWidth\n };\n } // Check if visibility is wanted via offset?\n\n\n var offset = _this.props.offset || {};\n var hasValidOffset = _typeof(offset) === \"object\";\n\n if (hasValidOffset) {\n containmentRect.top += offset.top || 0;\n containmentRect.left += offset.left || 0;\n containmentRect.bottom -= offset.bottom || 0;\n containmentRect.right -= offset.right || 0;\n }\n\n var visibilityRect = {\n top: rect.top >= containmentRect.top,\n left: rect.left >= containmentRect.left,\n bottom: rect.bottom <= containmentRect.bottom,\n right: rect.right <= containmentRect.right\n }; // https://github.com/joshwnj/react-visibility-sensor/pull/114\n\n var hasSize = rect.height > 0 && rect.width > 0;\n var isVisible = hasSize && visibilityRect.top && visibilityRect.left && visibilityRect.bottom && visibilityRect.right; // check for partial visibility\n\n if (hasSize && _this.props.partialVisibility) {\n var partialVisible = rect.top <= containmentRect.bottom && rect.bottom >= containmentRect.top && rect.left <= containmentRect.right && rect.right >= containmentRect.left; // account for partial visibility on a single edge\n\n if (typeof _this.props.partialVisibility === \"string\") {\n partialVisible = visibilityRect[_this.props.partialVisibility];\n } // if we have minimum top visibility set by props, lets check, if it meets the passed value\n // so if for instance element is at least 200px in viewport, then show it.\n\n\n isVisible = _this.props.minTopValue ? partialVisible && rect.top <= containmentRect.bottom - _this.props.minTopValue : partialVisible;\n } // Deprecated options for calculating offset.\n\n\n if (typeof offset.direction === \"string\" && typeof offset.value === \"number\") {\n console.warn(\"[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }\", offset.direction, offset.value);\n isVisible = _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default()(offset, rect, containmentRect);\n }\n\n var state = _this.state; // notify the parent when the value changes\n\n if (_this.state.isVisible !== isVisible) {\n state = {\n isVisible: isVisible,\n visibilityRect: visibilityRect\n };\n\n _this.setState(state);\n\n if (_this.props.onChange) _this.props.onChange(isVisible);\n }\n\n return state;\n });\n\n _this.state = {\n isVisible: null,\n visibilityRect: {}\n };\n return _this;\n }\n\n _createClass(VisibilitySensor, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);\n\n if (this.props.active) {\n this.startWatching();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopWatching();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n // re-register node in componentDidUpdate if children diffs [#103]\n this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);\n\n if (this.props.active && !prevProps.active) {\n this.setState({\n isVisible: null,\n visibilityRect: {}\n });\n this.startWatching();\n } else if (!this.props.active) {\n this.stopWatching();\n }\n }\n }, {\n key: \"roundRectDown\",\n value: function roundRectDown(rect) {\n return {\n top: Math.floor(rect.top),\n left: Math.floor(rect.left),\n bottom: Math.floor(rect.bottom),\n right: Math.floor(rect.right)\n };\n }\n /**\n * Check if the element is within the visible viewport\n */\n\n }, {\n key: \"render\",\n value: function render() {\n if (this.props.children instanceof Function) {\n return this.props.children({\n isVisible: this.state.isVisible,\n visibilityRect: this.state.visibilityRect\n });\n }\n\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.only(this.props.children);\n }\n }]);\n\n return VisibilitySensor;\n }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);\n\n _defineProperty(VisibilitySensor, \"defaultProps\", {\n active: true,\n partialVisibility: false,\n minTopValue: 0,\n scrollCheck: false,\n scrollDelay: 250,\n scrollThrottle: -1,\n resizeCheck: false,\n resizeDelay: 250,\n resizeThrottle: -1,\n intervalCheck: true,\n intervalDelay: 100,\n delayedCall: false,\n offset: {},\n containment: null,\n children: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null)\n });\n\n _defineProperty(VisibilitySensor, \"propTypes\", {\n onChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,\n active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n partialVisibility: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([\"top\", \"right\", \"bottom\", \"left\"])]),\n delayedCall: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n offset: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({\n top: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n left: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n bottom: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n right: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number\n }), // deprecated offset property\n prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({\n direction: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([\"top\", \"right\", \"bottom\", \"left\"]),\n value: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number\n })]),\n scrollCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n scrollDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n scrollThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n resizeCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n resizeDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n resizeThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n intervalCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n intervalDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n containment: typeof window !== \"undefined\" ? prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.instanceOf(window.Element) : prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,\n children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]),\n minTopValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number\n });\n /***/\n\n },\n /* 5 */\n\n /***/\n function (module, exports, __webpack_require__) {\n \"use strict\";\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n var ReactPropTypesSecret = __webpack_require__(6);\n\n function emptyFunction() {}\n\n function emptyFunctionWithReset() {}\n\n emptyFunctionWithReset.resetWarningCache = emptyFunction;\n\n module.exports = function () {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n\n var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n ;\n shim.isRequired = shim;\n\n function getShim() {\n return shim;\n }\n\n ; // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n ReactPropTypes.PropTypes = ReactPropTypes;\n return ReactPropTypes;\n };\n /***/\n\n },\n /* 6 */\n\n /***/\n function (module, exports, __webpack_require__) {\n \"use strict\";\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n module.exports = ReactPropTypesSecret;\n /***/\n }\n /******/\n ])\n );\n});","'use strict';\n\nrequire(\"core-js/modules/es6.function.bind\");\n\nrequire(\"core-js/modules/es6.object.set-prototype-of\");\n\nrequire(\"core-js/modules/es6.object.create\");\n\nrequire(\"core-js/modules/es6.object.assign\");\n\nrequire(\"core-js/modules/es6.object.define-property\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _reactVisibilitySensor = require('react-visibility-sensor');\n\nvar _reactVisibilitySensor2 = _interopRequireDefault(_reactVisibilitySensor);\n\nrequire('./TimelineItem.css');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar TimelineItem = function (_Component) {\n _inherits(TimelineItem, _Component);\n\n function TimelineItem(props) {\n _classCallCheck(this, TimelineItem);\n\n var _this = _possibleConstructorReturn(this, (TimelineItem.__proto__ || Object.getPrototypeOf(TimelineItem)).call(this, props));\n\n _this.onVisibilitySensorChange = _this.onVisibilitySensorChange.bind(_this);\n _this.state = {\n visible: false\n };\n return _this;\n }\n\n _createClass(TimelineItem, [{\n key: 'onVisibilitySensorChange',\n value: function onVisibilitySensorChange(isVisible) {\n if (isVisible) {\n this.setState({\n visible: true\n });\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n id = _props.id,\n children = _props.children,\n dateText = _props.dateText,\n dateStyle = _props.dateStyle,\n dateComponent = _props.dateComponent,\n dateInnerStyle = _props.dateInnerStyle,\n bodyContainerStyle = _props.bodyContainerStyle,\n style = _props.style,\n className = _props.className,\n visibilitySensorProps = _props.visibilitySensorProps;\n var visible = this.state.visible;\n return _react2[\"default\"].createElement('div', {\n id: id,\n className: (0, _classnames2[\"default\"])(className, 'entry', {\n 'timeline-item--no-children': children === ''\n }),\n style: style\n }, _react2[\"default\"].createElement(_reactVisibilitySensor2[\"default\"], _extends({}, visibilitySensorProps, {\n onChange: this.onVisibilitySensorChange\n }), _react2[\"default\"].createElement(_react.Fragment, null, _react2[\"default\"].createElement('div', {\n className: 'title'\n }, _react2[\"default\"].createElement('div', {\n className: '' + (visible ? 'bounce-in' : 'is-hidden')\n }, dateComponent !== null ? dateComponent : _react2[\"default\"].createElement('span', {\n style: dateStyle,\n className: 'timeline-item-date'\n }, _react2[\"default\"].createElement('time', {\n style: dateInnerStyle,\n className: 'timeline-item-dateinner',\n title: dateText\n }, dateText)))), _react2[\"default\"].createElement('div', {\n className: 'body'\n }, _react2[\"default\"].createElement('div', {\n className: 'body-container ' + (visible ? 'bounce-in' : 'is-hidden'),\n style: bodyContainerStyle\n }, children)))));\n }\n }]);\n\n return TimelineItem;\n}(_react.Component);\n\nTimelineItem.propTypes = {\n id: _propTypes2[\"default\"].string,\n children: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].node), _propTypes2[\"default\"].node]),\n className: _propTypes2[\"default\"].string,\n dateStyle: _propTypes2[\"default\"].shape({}),\n dateInnerStyle: _propTypes2[\"default\"].shape({}),\n bodyContainerStyle: _propTypes2[\"default\"].shape({}),\n style: _propTypes2[\"default\"].shape({}),\n dateText: _propTypes2[\"default\"].string,\n dateComponent: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].string, _propTypes2[\"default\"].func, _propTypes2[\"default\"].node]),\n visibilitySensorProps: _propTypes2[\"default\"].shape({})\n};\nTimelineItem.defaultProps = {\n id: '',\n children: '',\n dateComponent: null,\n className: '',\n dateStyle: null,\n bodyContainerStyle: null,\n dateInnerStyle: null,\n style: null,\n dateText: '',\n visibilitySensorProps: {\n partialVisibility: true,\n offset: {\n bottom: 50\n }\n }\n};\nexports[\"default\"] = TimelineItem;","'use strict';\n\nrequire(\"core-js/modules/es6.object.define-property\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nrequire('./Timeline.css');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nvar Timeline = function Timeline(_ref) {\n var animate = _ref.animate,\n children = _ref.children,\n className = _ref.className,\n lineColor = _ref.lineColor;\n return _react2[\"default\"].createElement('div', {\n className: 'timeline--wrapper'\n }, _react2[\"default\"].createElement('div', {\n className: (0, _classnames2[\"default\"])(className, 'timeline', {\n 'timeline--animate': animate\n }),\n style: {\n color: '' + lineColor\n }\n }, children));\n};\n\nTimeline.propTypes = {\n children: _propTypes2[\"default\"].oneOfType([_propTypes2[\"default\"].arrayOf(_propTypes2[\"default\"].node), _propTypes2[\"default\"].node]).isRequired,\n className: _propTypes2[\"default\"].string,\n lineColor: _propTypes2[\"default\"].string,\n animate: _propTypes2[\"default\"].bool\n};\nTimeline.defaultProps = {\n animate: true,\n className: '',\n lineColor: '#000'\n};\nexports[\"default\"] = Timeline;"],"sourceRoot":""}