{"version":3,"sources":["webpack:///./node_modules/react-sticky-el/lib/render-props-version.js","webpack:///./node_modules/react-sticky-el/lib/index.js","webpack:///./node_modules/react-sticky-el/lib/helpers/events.js","webpack:///./node_modules/react-sticky-el/lib/helpers/find.js","webpack:///./node_modules/react-sticky-el/lib/helpers/getClosestTransformedParent.js","webpack:///./node_modules/react-sticky-el/lib/helpers/rect.js","webpack:///./node_modules/react-sticky-el/lib/basic-version.js","webpack:///./src/components/StickyJumpNav/index.tsx","webpack:///./src/components/ContentWithSidebarBlock/index.tsx"],"names":["exports","__esModule","default","_react","_events","_find","_interopRequireDefault","_getClosestTransformedParent","_rect","obj","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","buildTopStyles","container","props","bottomOffset","hideOnBoundaryHit","top","height","width","boundaryBottom","position","bottom","buildBottomStyles","boundaryTop","buildStickyStyle","mode","isEqual","obj1","obj2","styles1","wrapperStyles","styles2","isFixed","field","Sticky","_Component","subClass","superClass","_this","_len","args","Array","_key","concat","holderEl","wrapperEl","el","scrollEl","boundaryEl","disabled","checkPositionIntervalId","lastMinHeight","state","holderStyles","holderRef","wrapperRef","updateScrollEl","updateBoundaryEl","checkPosition","_assertThisInitialize","_this$props","onFixedToggle","offsetTransforms","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","setState","getBoundingClientRect","holderRect","wrapperRect","boundaryRect","getRect","infiniteRect","scrollRect","offsets","closestTransformedParent","minHeight","iosRenderingFixStyles","transform","WebkitTransform","newState","console","error","create","constructor","_proto","_this$props2","topOffset","isIntersecting","hideOffset","unlisten","scrollElement","listen","boundaryElement","window","document","initialize","_this$props3","positionRecheckInterval","setInterval","componentDidUpdate","_ref","componentDidMount","componentWillUnmount","clearInterval","render","_this$state","children","Component","defaultProps","_default","module","_renderPropsVersion","RenderPropSticky","events","cb","l","addListener","removeListener","elementsWithListeners","registeredListeners","event","idx","indexOf","push","callbacks","realCallbacks","realListenersCnt","createListener","listener","e","addEventListener","addCallback","splice","removeEventListener","removeCallback","selector","basicSelectors","getElementById","slice","matchesMethodName","temp","parentElement","body","matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","style","getComputedStyle","webkitTransform","parentNode","nodeType","left","innerHeight","innerWidth","right","r1","r2","r1Top","r1Bottom","Infinity","wrapperClassName","stickyClassName","stickyStyle","rest","excluded","sourceKeys","keys","_objectWithoutPropertiesLoose","createElement","ref","className","headingLabel","items","isExpanded","setIsExpanded","root","classes","join","type","aria-expanded","onClick","reference","ariaHidden","map","item","url","href","tabIndex","title","content","sidebarNav","useHabitat","dangerouslySetInnerHTML","__html"],"mappings":"2FAEAA,EAAQC,YAAa,EACrBD,EAAQE,aAAU,EAElB,IAAIC,EAAS,EAAQ,GAEjBC,EAAU,EAAQ,KAElBC,EAAQC,EAAuB,EAAQ,MAEvCC,EAA+BD,EAAuB,EAAQ,MAE9DE,EAAQ,EAAQ,KAEpB,SAASF,EAAuBG,GAAO,OAAOA,GAAOA,EAAIR,WAAaQ,EAAM,CAAEP,QAASO,GAEvF,SAASC,IAA2Q,OAA9PA,EAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,IAA2BS,MAAMC,KAAMR,WAEhT,SAASS,EAAuBC,GAAQ,QAAa,IAATA,EAAmB,MAAM,IAAIC,eAAe,6DAAgE,OAAOD,EAI/J,SAASE,EAAgBC,EAAGC,GAA+G,OAA1GF,EAAkBhB,OAAOmB,gBAAkB,SAAyBF,EAAGC,GAAsB,OAAjBD,EAAEG,UAAYF,EAAUD,IAA6BA,EAAGC,GAErK,IAAIG,EAAiB,SAAw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,CACE3F,UAAW,EACXM,gBAAiB,IAAIqF,EAAI,iBAEzB,kBAAC,EAAkBe,KAIvB,yBAAKpB,UAAcK,EAAI,mBACrB,yBAAKL,UAAcK,EAAI,4BACrB,yBACEL,UAAcK,EAAI,yBAElBiB,wBAAyB,CACvBC,OAAQJ","file":"habitat.31.component.js","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _react = require(\"react\");\n\nvar _events = require(\"./helpers/events\");\n\nvar _find = _interopRequireDefault(require(\"./helpers/find\"));\n\nvar _getClosestTransformedParent = _interopRequireDefault(require(\"./helpers/getClosestTransformedParent\"));\n\nvar _rect = require(\"./helpers/rect\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar buildTopStyles = function buildTopStyles(container, props) {\n var bottomOffset = props.bottomOffset,\n hideOnBoundaryHit = props.hideOnBoundaryHit;\n var top = container.top,\n height = container.height,\n width = container.width,\n boundaryBottom = container.boundaryBottom; // above boundary\n\n if (hideOnBoundaryHit || top + height + bottomOffset < boundaryBottom) {\n return {\n top: top + \"px\",\n width: width + \"px\",\n position: 'fixed'\n };\n } // reaching boundary\n\n\n if (!hideOnBoundaryHit && boundaryBottom > 0) {\n return {\n top: boundaryBottom - height - bottomOffset + \"px\",\n width: width + \"px\",\n position: 'fixed'\n };\n } // below boundary\n\n\n return {\n width: width + \"px\",\n bottom: bottomOffset + \"px\",\n position: 'absolute'\n };\n};\n\nvar buildBottomStyles = function buildBottomStyles(container, props) {\n var bottomOffset = props.bottomOffset,\n hideOnBoundaryHit = props.hideOnBoundaryHit;\n var bottom = container.bottom,\n height = container.height,\n width = container.width,\n boundaryTop = container.boundaryTop;\n\n if (hideOnBoundaryHit || bottom - height - bottomOffset > boundaryTop) {\n return {\n width: width + \"px\",\n top: bottom - height + \"px\",\n position: 'fixed'\n };\n }\n\n return {\n width: width + \"px\",\n top: bottomOffset + \"px\",\n position: 'absolute'\n };\n};\n\nvar buildStickyStyle = function buildStickyStyle(mode, props, container) {\n return (mode === 'top' ? buildTopStyles : buildBottomStyles)(container, props);\n};\n\nvar isEqual = function isEqual(obj1, obj2) {\n var styles1 = obj1.wrapperStyles;\n var styles2 = obj2.wrapperStyles;\n\n if (obj1.isFixed !== obj2.isFixed || obj1.height !== obj2.height || !styles1 && styles2 || styles1 && !styles2) {\n return false;\n }\n\n if (!styles2) {\n // we need this condition to make Flow happy\n return true;\n }\n\n for (var field in styles1) {\n if (styles1.hasOwnProperty(field) && styles1[field] !== styles2[field]) {\n return false;\n }\n }\n\n return true;\n};\n\nvar Sticky = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Sticky, _Component);\n\n function Sticky() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.holderEl = null;\n _this.wrapperEl = null;\n _this.el = null;\n _this.scrollEl = null;\n _this.boundaryEl = null;\n _this.disabled = false;\n _this.checkPositionIntervalId = void 0;\n _this.lastMinHeight = void 0;\n _this.state = {\n isFixed: false,\n wrapperStyles: null,\n holderStyles: null,\n height: 0\n };\n\n _this.holderRef = function (holderEl) {\n if (holderEl === _this.holderEl) {\n return;\n }\n\n _this.holderEl = holderEl;\n };\n\n _this.wrapperRef = function (wrapperEl) {\n if (wrapperEl === _this.wrapperEl) {\n return;\n }\n\n _this.wrapperEl = wrapperEl;\n\n _this.updateScrollEl();\n\n _this.updateBoundaryEl();\n };\n\n _this.checkPosition = function () {\n var _assertThisInitialize = _assertThisInitialized(_this),\n holderEl = _assertThisInitialize.holderEl,\n wrapperEl = _assertThisInitialize.wrapperEl,\n boundaryEl = _assertThisInitialize.boundaryEl,\n scrollEl = _assertThisInitialize.scrollEl,\n disabled = _assertThisInitialize.disabled;\n\n if (!scrollEl || !holderEl || !wrapperEl) {\n console.error(\"Missing required elements:\", {\n scrollEl: scrollEl,\n holderEl: holderEl,\n wrapperEl: wrapperEl\n });\n return;\n }\n\n var _this$props = _this.props,\n mode = _this$props.mode,\n onFixedToggle = _this$props.onFixedToggle,\n offsetTransforms = _this$props.offsetTransforms,\n isIOSFixEnabled = _this$props.isIOSFixEnabled,\n dontUpdateHolderHeightWhenSticky = _this$props.dontUpdateHolderHeightWhenSticky;\n\n if (disabled) {\n if (_this.state.isFixed) {\n _this.setState({\n isFixed: false,\n wrapperStyles: {}\n });\n }\n\n return;\n }\n\n if (!holderEl.getBoundingClientRect || !wrapperEl.getBoundingClientRect) {\n return;\n }\n\n var holderRect = holderEl.getBoundingClientRect();\n var wrapperRect = wrapperEl.getBoundingClientRect();\n var boundaryRect = boundaryEl ? (0, _rect.getRect)(boundaryEl) : _rect.infiniteRect;\n var scrollRect = (0, _rect.getRect)(scrollEl);\n\n var isFixed = _this.isFixed(holderRect, wrapperRect, boundaryRect, scrollRect);\n\n var offsets = null;\n\n if (offsetTransforms && isFixed) {\n var closestTransformedParent = (0, _getClosestTransformedParent.default)(scrollEl);\n\n if (closestTransformedParent) {\n offsets = (0, _rect.getRect)(closestTransformedParent);\n }\n }\n\n var minHeight = _this.state.isFixed && dontUpdateHolderHeightWhenSticky && _this.lastMinHeight ? _this.lastMinHeight : wrapperRect.height;\n _this.lastMinHeight = minHeight; // To ensure that this component becomes sticky immediately on mobile devices instead\n // of disappearing until the scroll event completes, we add `transform: translateZ(0)`\n // to 'kick' rendering of this element to the GPU\n // @see http://stackoverflow.com/questions/32875046\n\n var iosRenderingFixStyles = isIOSFixEnabled ? {\n transform: 'translateZ(0)',\n WebkitTransform: 'translateZ(0)'\n } : null;\n var newState = {\n isFixed: isFixed,\n height: wrapperRect.height,\n holderStyles: {\n minHeight: minHeight + \"px\"\n },\n wrapperStyles: isFixed ? _extends({}, iosRenderingFixStyles, buildStickyStyle(mode, _this.props, {\n boundaryTop: mode === 'bottom' ? boundaryRect.top : 0,\n boundaryBottom: mode === 'top' ? boundaryRect.bottom : 0,\n top: mode === 'top' ? scrollRect.top - (offsets ? offsets.top : 0) : 0,\n bottom: mode === 'bottom' ? scrollRect.bottom - (offsets ? offsets.bottom : 0) : 0,\n width: holderRect.width,\n height: wrapperRect.height\n })) : iosRenderingFixStyles\n };\n\n if (isFixed !== _this.state.isFixed && onFixedToggle && typeof onFixedToggle === 'function') {\n onFixedToggle(isFixed);\n }\n\n if (!isEqual(_this.state, newState)) {\n _this.setState(newState);\n }\n };\n\n return _this;\n }\n\n var _proto = Sticky.prototype;\n\n _proto.isFixed = function isFixed(holderRect, wrapperRect, boundaryRect, scrollRect) {\n var _this$props2 = this.props,\n hideOnBoundaryHit = _this$props2.hideOnBoundaryHit,\n bottomOffset = _this$props2.bottomOffset,\n topOffset = _this$props2.topOffset,\n mode = _this$props2.mode;\n\n if (this.disabled) {\n return false;\n }\n\n if (hideOnBoundaryHit && boundaryRect && !(0, _rect.isIntersecting)(boundaryRect, scrollRect, topOffset, bottomOffset)) {\n return false;\n }\n\n var hideOffset = hideOnBoundaryHit ? wrapperRect.height + bottomOffset : 0;\n\n if (mode === 'top') {\n return holderRect.top + topOffset < scrollRect.top && scrollRect.top + hideOffset <= boundaryRect.bottom;\n }\n\n return holderRect.bottom - topOffset > scrollRect.bottom && scrollRect.bottom - hideOffset >= boundaryRect.top;\n };\n\n _proto.updateScrollEl = function updateScrollEl() {\n if (!this.wrapperEl) {\n return;\n }\n\n if (this.scrollEl) {\n (0, _events.unlisten)(this.scrollEl, ['scroll'], this.checkPosition);\n this.scrollEl = null;\n }\n\n var scrollElement = this.props.scrollElement;\n\n if (typeof scrollElement === 'string') {\n this.scrollEl = (0, _find.default)(scrollElement, this.wrapperEl);\n } else {\n this.scrollEl = scrollElement;\n }\n\n if (this.scrollEl) {\n (0, _events.listen)(this.scrollEl, ['scroll'], this.checkPosition);\n } else {\n console.error('Cannot find scrollElement ' + (typeof scrollElement === 'string' ? scrollElement : 'unknown'));\n }\n };\n\n _proto.updateBoundaryEl = function updateBoundaryEl() {\n if (!this.wrapperEl) {\n return;\n }\n\n var boundaryElement = this.props.boundaryElement;\n this.boundaryEl = (0, _find.default)(boundaryElement, this.wrapperEl);\n\n if (this.boundaryEl === window || this.boundaryEl === document) {\n // such objects can't be used as boundary\n // and in fact there is no point in such a case\n this.boundaryEl = null;\n }\n };\n\n _proto.initialize = function initialize() {\n var _this$props3 = this.props,\n positionRecheckInterval = _this$props3.positionRecheckInterval,\n disabled = _this$props3.disabled;\n this.disabled = disabled; // we should always listen to window events because they will affect the layout of the whole page\n\n (0, _events.listen)(window, ['scroll', 'resize', 'pageshow', 'load'], this.checkPosition);\n this.checkPosition();\n\n if (positionRecheckInterval) {\n this.checkPositionIntervalId = setInterval(this.checkPosition, positionRecheckInterval);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(_ref) {\n var scrollElement = _ref.scrollElement,\n boundaryElement = _ref.boundaryElement,\n disabled = _ref.disabled;\n\n if (scrollElement !== this.props.scrollElement) {\n this.updateScrollEl();\n }\n\n if (boundaryElement !== this.props.boundaryElement) {\n this.updateBoundaryEl();\n }\n\n if (disabled !== this.props.disabled) {\n this.disabled = this.props.disabled;\n this.checkPosition();\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.initialize();\n\n if (this.wrapperEl === null) {\n console.error(\"Wrapper element is missing, please make sure that you have assigned refs correctly\");\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.scrollEl) {\n (0, _events.unlisten)(this.scrollEl, ['scroll'], this.checkPosition);\n }\n\n (0, _events.unlisten)(window, ['scroll', 'resize', 'pageshow', 'load'], this.checkPosition);\n this.boundaryEl = null;\n this.scrollEl = null;\n clearInterval(this.checkPositionIntervalId);\n };\n\n _proto.render = function render() {\n var holderRef = this.holderRef,\n wrapperRef = this.wrapperRef;\n var _this$state = this.state,\n isFixed = _this$state.isFixed,\n wrapperStyles = _this$state.wrapperStyles,\n holderStyles = _this$state.holderStyles;\n return this.props.children({\n holderRef: holderRef,\n wrapperRef: wrapperRef,\n isFixed: isFixed,\n wrapperStyles: wrapperStyles,\n holderStyles: holderStyles\n });\n };\n\n return Sticky;\n}(_react.Component);\n\nSticky.defaultProps = {\n mode: 'top',\n topOffset: 0,\n bottomOffset: 0,\n isIOSFixEnabled: true,\n disabled: false,\n onFixedToggle: null,\n boundaryElement: null,\n scrollElement: 'window',\n dontUpdateHolderHeightWhenSticky: false\n};\nvar _default = Sticky;\nexports.default = _default;\nmodule.exports = exports.default;","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _renderPropsVersion = _interopRequireDefault(require(\"./render-props-version\"));\n\nexports.RenderPropSticky = _renderPropsVersion.default;\n\nvar _basicVersion = _interopRequireDefault(require(\"./basic-version\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = _basicVersion.default;\nexports.default = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports.listen = listen;\nexports.unlisten = unlisten;\n////////////////////////////////////////////////////////////////////////////////////////\n// Small helpers that provide an easy and efficient way to add/remove event listeners //\n////////////////////////////////////////////////////////////////////////////////////////\nvar elementsWithListeners = [];\nvar registeredListeners = [];\n\nfunction createListener(el) {\n return {\n el: el,\n callbacks: {},\n realCallbacks: {},\n realListenersCnt: 0\n };\n}\n\nfunction addCallback(listener, event, cb) {\n if (listener.callbacks[event]) {\n if (listener.callbacks[event].indexOf(cb) === -1) {\n listener.callbacks[event].push(cb);\n }\n\n return;\n }\n\n listener.callbacks[event] = [cb];\n\n listener.realCallbacks[event] = function (e) {\n for (var i = 0, l = listener.callbacks[event].length; i < l; i += 1) {\n listener.callbacks[event][i](e);\n }\n };\n\n listener.el.addEventListener(event, listener.realCallbacks[event]);\n listener.realListenersCnt += 1;\n}\n\nfunction removeCallback(listener, event, cb) {\n if (!listener.callbacks[event]) {\n return;\n }\n\n var idx = listener.callbacks[event].indexOf(cb);\n\n if (idx === -1) {\n return;\n }\n\n listener.callbacks[event].splice(idx, 1);\n\n if (listener.callbacks[event].length > 0) {\n return;\n } // no more listeners, lets clean up\n\n\n listener.el.removeEventListener(event, listener.realCallbacks[event]);\n delete listener.callbacks[event];\n delete listener.realCallbacks[event];\n listener.realListenersCnt -= 1;\n}\n\nfunction addListener(el, event, cb) {\n var idx = elementsWithListeners.indexOf(el);\n\n if (idx === -1) {\n idx = elementsWithListeners.length;\n elementsWithListeners.push(el);\n registeredListeners.push(createListener(el));\n }\n\n var listener = registeredListeners[idx];\n addCallback(listener, event, cb);\n}\n\nfunction removeListener(el, event, cb) {\n var idx = elementsWithListeners.indexOf(el);\n\n if (idx === -1) {\n return;\n }\n\n var listener = registeredListeners[idx];\n removeCallback(listener, event, cb);\n\n if (listener.realListenersCnt > 0) {\n return;\n } // no more listeners lets clean up\n\n\n elementsWithListeners.splice(idx, 1);\n registeredListeners.splice(idx, 1);\n}\n/**\n * Subscribe cb to events list\n * @param {HTMLElement} el target element\n * @param {Array} events array of event names\n * @param {Function} cb callback that should be called\n */\n\n\nfunction listen(el, events, cb) {\n for (var i = 0, l = events.length; i < l; i += 1) {\n addListener(el, events[i], cb);\n }\n}\n/**\n * Unsubscribe cb from events list\n * @param {HTMLElement} el target element\n * @param {Array} events array of event names\n * @param {Function} cb callback that should be unsubscribed\n */\n\n\nfunction unlisten(el, events, cb) {\n for (var i = 0, l = events.length; i < l; i += 1) {\n removeListener(el, events[i], cb);\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = find;\nvar basicSelectors = {};\n\nif (typeof document !== 'undefined') {\n basicSelectors.body = document.body;\n basicSelectors.window = window;\n basicSelectors.document = document;\n}\n\nvar matchesMethodName = function () {\n if (typeof document !== 'undefined' && document.body) {\n var body = document.body;\n return typeof body.matches === 'function' ? 'matches' : // $FlowFixMe - flow doesn't like vendors, so do I, but we have to support such case\n typeof body.webkitMatchesSelector === 'function' ? 'webkitMatchesSelector' : //webkit\n // $FlowFixMe - see above\n typeof body.mozMatchesSelector === 'function' ? 'mozMatchesSelector' : //mozilla\n // $FlowFixMe - see above\n typeof body.msMatchesSelector === 'function' ? 'msMatchesSelector' : //ie\n // $FlowFixMe - see above\n typeof body.oMatchesSelector === 'function' ? 'oMatchesSelector' : //old opera\n null;\n }\n\n return null;\n}();\n\nfunction find(selector, el) {\n if (!selector) {\n return null;\n }\n\n if (basicSelectors.hasOwnProperty(selector)) {\n return basicSelectors[selector];\n } // select by id\n\n\n if (selector[0] === '#') {\n return document.getElementById(selector.slice(1));\n }\n\n if (matchesMethodName === null) {\n return null;\n }\n\n var temp = el; // eslint-disable-next-line no-cond-assign\n\n while (temp = temp.parentElement) {\n // $FlowFixMe - flow does not approve it, but it works fine :)\n if (temp[matchesMethodName](selector)) {\n return temp || null;\n }\n } // nothing has been found :(\n\n\n return null;\n}\n\nmodule.exports = exports.default;","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getClosestTransformedParent;\n\nfunction getClosestTransformedParent(el) {\n do {\n var style = window.getComputedStyle(el);\n if (style.transform !== 'none' || style.webkitTransform !== 'none') return el; // $FlowFixMe - it's fine\n\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n\n return null;\n}\n\nmodule.exports = exports.default;","\"use strict\";\n\nexports.__esModule = true;\nexports.getRect = getRect;\nexports.isIntersecting = isIntersecting;\nexports.infiniteRect = void 0;\nvar infiniteRect = {\n top: -Infinity,\n bottom: Infinity,\n height: Infinity,\n left: -Infinity,\n right: Infinity,\n width: Infinity\n};\nexports.infiniteRect = infiniteRect;\n\nfunction getRect(el) {\n if (el && typeof el.getBoundingClientRect === 'function') {\n return el.getBoundingClientRect();\n }\n\n if (el === window || el === document) {\n return {\n top: 0,\n left: 0,\n bottom: window.innerHeight,\n height: window.innerHeight,\n width: window.innerWidth,\n right: window.innerWidth\n };\n }\n\n return {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: 0,\n height: 0\n };\n}\n\nfunction isIntersecting(r1, r2, topOffset, bottomOffset) {\n var r1Top = r1.top + topOffset,\n r1Bottom = r1.bottom + bottomOffset;\n return r1Top >= r2.top && r1Top <= r2.bottom || r1Bottom >= r2.top && r1Bottom <= r2.bottom || r1Bottom >= r2.bottom && r1Top <= r2.top;\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _renderPropsVersion = _interopRequireDefault(require(\"./render-props-version\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction Sticky(props) {\n var mode = props.mode,\n onFixedToggle = props.onFixedToggle,\n hideOnBoundaryHit = props.hideOnBoundaryHit,\n offsetTransforms = props.offsetTransforms,\n disabled = props.disabled,\n boundaryElement = props.boundaryElement,\n scrollElement = props.scrollElement,\n bottomOffset = props.bottomOffset,\n topOffset = props.topOffset,\n positionRecheckInterval = props.positionRecheckInterval,\n children = props.children,\n isIOSFixEnabled = props.isIOSFixEnabled,\n dontUpdateHolderHeightWhenSticky = props.dontUpdateHolderHeightWhenSticky,\n wrapperClassName = props.wrapperClassName,\n stickyClassName = props.stickyClassName,\n stickyStyle = props.stickyStyle,\n rest = _objectWithoutPropertiesLoose(props, [\"mode\", \"onFixedToggle\", \"hideOnBoundaryHit\", \"offsetTransforms\", \"disabled\", \"boundaryElement\", \"scrollElement\", \"bottomOffset\", \"topOffset\", \"positionRecheckInterval\", \"children\", \"isIOSFixEnabled\", \"dontUpdateHolderHeightWhenSticky\", \"wrapperClassName\", \"stickyClassName\", \"stickyStyle\"]);\n\n return /*#__PURE__*/_react.default.createElement(_renderPropsVersion.default, {\n mode: mode,\n onFixedToggle: onFixedToggle,\n hideOnBoundaryHit: hideOnBoundaryHit,\n offsetTransforms: offsetTransforms,\n disabled: disabled,\n boundaryElement: boundaryElement,\n scrollElement: scrollElement,\n bottomOffset: bottomOffset,\n topOffset: topOffset,\n positionRecheckInterval: positionRecheckInterval,\n isIOSFixEnabled: isIOSFixEnabled,\n dontUpdateHolderHeightWhenSticky: dontUpdateHolderHeightWhenSticky\n }, function (_ref) {\n var isFixed = _ref.isFixed,\n wrapperStyles = _ref.wrapperStyles,\n wrapperRef = _ref.wrapperRef,\n holderStyles = _ref.holderStyles,\n holderRef = _ref.holderRef;\n return /*#__PURE__*/_react.default.createElement(\"div\", _extends({}, rest, {\n ref: holderRef,\n style: holderStyles\n }), /*#__PURE__*/_react.default.createElement(\"div\", _extends({}, rest, {\n className: wrapperClassName + \" \" + (isFixed ? stickyClassName : ''),\n style: // $FlowFixMe - flow does not like when we merge 2 inexact objects\n isFixed ? _extends({}, wrapperStyles, stickyStyle) : wrapperStyles,\n ref: wrapperRef\n }), children));\n });\n}\n\nSticky.defaultProps = {\n stickyClassName: 'sticky',\n wrapperClassName: '',\n stickyStyle: {}\n};\nvar _default = Sticky;\nexports.default = _default;\nmodule.exports = exports.default;","import React, { useRef, useState } from 'react';\r\nimport PerfectScrollbar from 'react-perfect-scrollbar';\r\nimport { SvgImage } from '../common';\r\nimport { Link } from '../../core/typings';\r\nimport useOutsideAlerter from '../../hooks/UseOutsideAlerter';\r\nimport './styles.scss';\r\n\r\nexport interface StickyJumpNavProps {\r\n headingLabel: string;\r\n items: Link[];\r\n}\r\n\r\nconst StickyJumpNav = ({ headingLabel, items }: StickyJumpNavProps) => {\r\n const wrapperRef = useRef>(null);\r\n const [isExpanded, setIsExpanded] = useState(false);\r\n const root = 'sticky-jump-nav';\r\n const classes = [\r\n root,\r\n ];\r\n if (isExpanded) {\r\n classes.push(`${root}--expanded`);\r\n }\r\n\r\n /**\r\n * This will trigger the close method when the user\r\n * interacts outside wrapperRef\r\n */\r\n useOutsideAlerter(wrapperRef, () => {\r\n setIsExpanded(false);\r\n });\r\n\r\n return (\r\n \r\n setIsExpanded(!isExpanded)}\r\n >\r\n
\r\n {headingLabel}\r\n \r\n
\r\n \r\n\r\n \r\n \r\n );\r\n};\r\n\r\nexport default StickyJumpNav;\r\n","import React from 'react';\r\nimport Sticky from 'react-sticky-el';\r\nimport StickyJumpNav, { StickyJumpNavProps } from '../StickyJumpNav';\r\nimport useHabitat from '../../hooks/useHabitat';\r\nimport './styles.scss';\r\n\r\ninterface ContentWithSidebarBlockProps {\r\n content: string;\r\n sidebarNav: StickyJumpNavProps;\r\n}\r\n\r\nconst ContentWithSidebarBlock = ({\r\n content,\r\n sidebarNav,\r\n}: ContentWithSidebarBlockProps) => {\r\n const root = 'content-with-sidebar';\r\n const classes = [\r\n root,\r\n ];\r\n\r\n if (content) {\r\n useHabitat();\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default ContentWithSidebarBlock;\r\n"],"sourceRoot":""}