-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10-bd539e9dec35ec18fc1b.js.map
1 lines (1 loc) · 49.7 KB
/
10-bd539e9dec35ec18fc1b.js.map
1
{"version":3,"sources":["webpack:///./node_modules/semantic-ui-react/dist/es/lib/normalizeOffset.js","webpack:///./node_modules/core-js/modules/es6.string.fixed.js","webpack:///./node_modules/core-js/modules/_string-html.js","webpack:///./node_modules/semantic-ui-react/dist/es/behaviors/Visibility/Visibility.js","webpack:///./node_modules/semantic-ui-react/dist/es/modules/Sidebar/SidebarPushable.js","webpack:///./node_modules/semantic-ui-react/dist/es/modules/Sidebar/SidebarPusher.js","webpack:///./node_modules/semantic-ui-react/dist/es/modules/Sidebar/Sidebar.js","webpack:///./node_modules/semantic-ui-react/dist/es/addons/Responsive/lib/isVisible.js","webpack:///./node_modules/semantic-ui-react/dist/es/addons/Responsive/Responsive.js"],"names":["__webpack_exports__","value","__webpack_require__","createHTML","this","$export","fails","defined","quot","string","tag","attribute","S","String","p1","replace","module","exports","NAME","exec","O","P","F","test","toLowerCase","split","length","d","Visibility","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__","_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default","_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__","_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default","_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default","_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__","_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default","_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default","_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default","_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__","_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default","_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__","_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8___default","_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__","_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9___default","lodash_invoke__WEBPACK_IMPORTED_MODULE_10__","lodash_invoke__WEBPACK_IMPORTED_MODULE_10___default","lodash_forEach__WEBPACK_IMPORTED_MODULE_11__","lodash_forEach__WEBPACK_IMPORTED_MODULE_11___default","lodash_without__WEBPACK_IMPORTED_MODULE_12__","lodash_without__WEBPACK_IMPORTED_MODULE_12___default","lodash_includes__WEBPACK_IMPORTED_MODULE_13__","lodash_includes__WEBPACK_IMPORTED_MODULE_13___default","react__WEBPACK_IMPORTED_MODULE_15__","react__WEBPACK_IMPORTED_MODULE_15___default","_lib__WEBPACK_IMPORTED_MODULE_16__","_lib__WEBPACK_IMPORTED_MODULE_17__","_lib__WEBPACK_IMPORTED_MODULE_18__","_lib__WEBPACK_IMPORTED_MODULE_19__","_lib__WEBPACK_IMPORTED_MODULE_20__","_Component","_getPrototypeOf2","_this","_len","arguments","args","Array","_key","call","apply","concat","bottomPassed","bottomVisible","fits","passing","offScreen","onScreen","topPassed","topVisible","_ref","callback","name","reverse","undefined","_this$props","props","continuous","once","matchesDirection","calculations","executionPossible","oldCalculations","execute","firedCallbacks","ticking","frameId","requestAnimationFrame","update","mounted","computeCalculations","pageYOffset","window","_this$props2","onBottomPassed","onBottomPassedReverse","onBottomVisible","onBottomVisibleReverse","onPassing","onPassingReverse","onTopPassed","onTopPassedReverse","onTopVisible","onTopVisibleReverse","onOffScreen","onOnScreen","updateOn","forward","fireOnPassed","data","fire","handleUpdate","c","ref","key","_ref2","context","unattachHandlers","attachHandlers","Object","_this$props3","fireOnMount","sub","target","unsub","cancelAnimationFrame","push","_this2","_this$calculations","percentagePassed","pixelsPassed","onPassed","passed","pixelsValue","Number","matchPercentage","match","percentageValue","offset","_this$ref$getBounding","getBoundingClientRect","bottom","height","top","width","_normalizeOffset","_normalizeOffset2","topOffset","bottomOffset","direction","Math","max","innerHeight","children","ElementType","rest","a","createElement","handleRef","propTypes","SidebarPushable","className","content","classes","classnames_default","getUnhandledProps","getElementType","react_default","extends_default","es_lib","isNil","handledProps","Sidebar_SidebarPushable","SidebarPusher","dimmed","classNameBuilders","Sidebar_SidebarPusher","Sidebar_Sidebar","Sidebar","classCallCheck_default","possibleConstructorReturn_default","getPrototypeOf_default","defineProperty_default","assertThisInitialized_default","duration","visible","setState","animating","clearTimeout","animationTimer","setTimeout","handleAnimationEnd","skipNextCallback","invoke_default","e","doesNodeContainClick","objectSpread_default","inherits_default","createClass_default","prevProps","handleAnimationStart","animation","state","Ref","innerRef","lib_default","on","handleDocumentClick","react","lib_isVisible","maxWidth","minWidth","isNil_default","isVisible_fitsMinWidth","isVisible_fitsMaxWidth","Responsive_Responsive","Responsive","nextVisible","eventStack","handleResize","getWidth","isBrowser","innerWidth"],"mappings":"2FAKgBA,EAAA,WAAAC,GAChB,uBAAAA,GAAA,iBAAAA,EAAA,CAAAA,0CCJAC,EAAQ,IAARA,CAAwB,iBAAAC,GACxB,kBACA,OAAAA,EAAAC,KAAA,oCCJA,IAAAC,EAAcH,EAAQ,IACtBI,EAAYJ,EAAQ,IACpBK,EAAcL,EAAQ,IACtBM,EAAA,KAEAL,EAAA,SAAAM,EAAAC,EAAAC,EAAAV,GACA,IAAAW,EAAAC,OAAAN,EAAAE,IACAK,EAAA,IAAAJ,EAEA,MADA,KAAAC,IAAAG,GAAA,IAAAH,EAAA,KA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A,WACA,OAAWrG,OAAAsG,EAAA,EAAAtG,GAAS3B,OAAAkI,WAAA,KAIpBxC,IAAgBiC,EAAU,cAC1BJ,SAAA,IACAD,SAAA,MAGA5B,IAAgBiC,EAAU,cAC1BJ,SAAA,IACAD,SAAA,MAGA5B,IAAgBiC,EAAU,gBAC1BJ,SAAA,MAGA7B,IAAgBiC,EAAU,mBAC1BJ,SAAA,KACAD,SAAA,OAGA5B,IAAgBiC,EAAU,kBAC1BJ,SAAA,OAGA7B,IAAgBiC,EAAU,4FAG1BA,EAAUxD,UA6BT","file":"10-bd539e9dec35ec18fc1b.js","sourcesContent":["/**\n * Normalizes the offset value.\n * @param {number|array} value The value to normalize.\n * @returns {number}\n */\nexport default (function (value) {\n return typeof value === 'number' || typeof value === 'string' ? [value, value] : value;\n});","'use strict';\n// B.2.3.6 String.prototype.fixed()\nrequire('./_string-html')('fixed', function (createHTML) {\n return function fixed() {\n return createHTML(this, 'tt', '', '');\n };\n});\n","var $export = require('./_export');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _invoke from \"lodash/invoke\";\nimport _forEach from \"lodash/forEach\";\nimport _without from \"lodash/without\";\nimport _includes from \"lodash/includes\";\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { eventStack, customPropTypes, getElementType, getUnhandledProps, normalizeOffset, isBrowser } from '../../lib';\n/**\n * Visibility provides a set of callbacks for when a content appears in the viewport.\n */\n\nvar Visibility =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Visibility, _Component);\n\n function Visibility() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Visibility);\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 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Visibility)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"calculations\", {\n bottomPassed: false,\n bottomVisible: false,\n fits: false,\n passing: false,\n offScreen: false,\n onScreen: false,\n topPassed: false,\n topVisible: false\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"firedCallbacks\", []);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"fire\", function (_ref, value) {\n var callback = _ref.callback,\n name = _ref.name;\n var reverse = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var _this$props = _this.props,\n continuous = _this$props.continuous,\n once = _this$props.once; // Heads up! For the execution is required:\n // - current value correspond to the fired direction\n // - `continuous` is true or calculation values are different\n\n var matchesDirection = _this.calculations[value] !== reverse;\n var executionPossible = continuous || _this.calculations[value] !== _this.oldCalculations[value];\n if (matchesDirection && executionPossible) _this.execute(callback, name); // Heads up! We should remove callback from the happened when it's not `once`\n\n if (!once) _this.firedCallbacks = _without(_this.firedCallbacks, name);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleUpdate\", function () {\n if (_this.ticking) return;\n _this.ticking = true;\n _this.frameId = requestAnimationFrame(_this.update);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"update\", function () {\n if (!_this.mounted) return;\n _this.ticking = false;\n _this.oldCalculations = _this.calculations;\n _this.calculations = _this.computeCalculations();\n _this.pageYOffset = window.pageYOffset;\n var _this$props2 = _this.props,\n onBottomPassed = _this$props2.onBottomPassed,\n onBottomPassedReverse = _this$props2.onBottomPassedReverse,\n onBottomVisible = _this$props2.onBottomVisible,\n onBottomVisibleReverse = _this$props2.onBottomVisibleReverse,\n onPassing = _this$props2.onPassing,\n onPassingReverse = _this$props2.onPassingReverse,\n onTopPassed = _this$props2.onTopPassed,\n onTopPassedReverse = _this$props2.onTopPassedReverse,\n onTopVisible = _this$props2.onTopVisible,\n onTopVisibleReverse = _this$props2.onTopVisibleReverse,\n onOffScreen = _this$props2.onOffScreen,\n onOnScreen = _this$props2.onOnScreen,\n updateOn = _this$props2.updateOn;\n var forward = {\n bottomPassed: {\n callback: onBottomPassed,\n name: 'onBottomPassed'\n },\n bottomVisible: {\n callback: onBottomVisible,\n name: 'onBottomVisible'\n },\n passing: {\n callback: onPassing,\n name: 'onPassing'\n },\n offScreen: {\n callback: onOffScreen,\n name: 'onOffScreen'\n },\n onScreen: {\n callback: onOnScreen,\n name: 'onOnScreen'\n },\n topPassed: {\n callback: onTopPassed,\n name: 'onTopPassed'\n },\n topVisible: {\n callback: onTopVisible,\n name: 'onTopVisible'\n }\n };\n var reverse = {\n bottomPassed: {\n callback: onBottomPassedReverse,\n name: 'onBottomPassedReverse'\n },\n bottomVisible: {\n callback: onBottomVisibleReverse,\n name: 'onBottomVisibleReverse'\n },\n passing: {\n callback: onPassingReverse,\n name: 'onPassingReverse'\n },\n topPassed: {\n callback: onTopPassedReverse,\n name: 'onTopPassedReverse'\n },\n topVisible: {\n callback: onTopVisibleReverse,\n name: 'onTopVisibleReverse'\n }\n };\n\n _invoke(_this.props, 'onUpdate', null, _objectSpread({}, _this.props, {\n calculations: _this.calculations\n }));\n\n _this.fireOnPassed(); // Heads up! Reverse callbacks should be fired first\n\n\n _forEach(reverse, function (data, value) {\n return _this.fire(data, value, true);\n });\n\n _forEach(forward, function (data, value) {\n return _this.fire(data, value);\n });\n\n if (updateOn === 'repaint') _this.handleUpdate();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleRef\", function (c) {\n return _this.ref = c;\n });\n\n return _this;\n }\n\n _createClass(Visibility, [{\n key: \"componentWillReceiveProps\",\n // ----------------------------------------\n // Lifecycle\n // ----------------------------------------\n value: function componentWillReceiveProps(_ref2) {\n var continuous = _ref2.continuous,\n once = _ref2.once,\n context = _ref2.context,\n updateOn = _ref2.updateOn;\n var cleanHappened = continuous !== this.props.continuous || once !== this.props.once || updateOn !== this.props.updateOn; // Heads up! We should clean up array of happened callbacks, if values of these props are changed\n\n if (cleanHappened) this.firedCallbacks = [];\n\n if (context !== this.props.context || updateOn !== this.props.updateOn) {\n this.unattachHandlers(this.props.context);\n this.attachHandlers(context, updateOn);\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.mounted = true;\n if (!isBrowser()) return;\n var _this$props3 = this.props,\n context = _this$props3.context,\n fireOnMount = _this$props3.fireOnMount,\n updateOn = _this$props3.updateOn;\n this.pageYOffset = window.pageYOffset;\n this.attachHandlers(context, updateOn);\n if (fireOnMount) this.update();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var context = this.props.context;\n this.unattachHandlers(context);\n this.mounted = false;\n }\n }, {\n key: \"attachHandlers\",\n value: function attachHandlers(context, updateOn) {\n if (updateOn === 'events') {\n if (context) {\n eventStack.sub('resize', this.handleUpdate, {\n target: context\n });\n eventStack.sub('scroll', this.handleUpdate, {\n target: context\n });\n }\n\n return;\n } // Heads up!\n // We will deal with `repaint` there\n\n\n this.handleUpdate();\n }\n }, {\n key: \"unattachHandlers\",\n value: function unattachHandlers(context) {\n if (context) {\n eventStack.unsub('resize', this.handleUpdate, {\n target: context\n });\n eventStack.unsub('scroll', this.handleUpdate, {\n target: context\n });\n }\n\n if (this.frameId) cancelAnimationFrame(this.frameId);\n } // ----------------------------------------\n // Callback handling\n // ----------------------------------------\n\n }, {\n key: \"execute\",\n value: function execute(callback, name) {\n var continuous = this.props.continuous;\n if (!callback) return; // Heads up! When `continuous` is true, callback will be fired always\n\n if (!continuous && _includes(this.firedCallbacks, name)) return;\n callback(null, _objectSpread({}, this.props, {\n calculations: this.calculations\n }));\n this.firedCallbacks.push(name);\n }\n }, {\n key: \"fireOnPassed\",\n value: function fireOnPassed() {\n var _this2 = this;\n\n var _this$calculations = this.calculations,\n percentagePassed = _this$calculations.percentagePassed,\n pixelsPassed = _this$calculations.pixelsPassed;\n var onPassed = this.props.onPassed;\n\n _forEach(onPassed, function (callback, passed) {\n var pixelsValue = Number(passed);\n\n if (pixelsValue && pixelsPassed >= pixelsValue) {\n _this2.execute(callback, passed);\n\n return;\n }\n\n var matchPercentage = \"\".concat(passed).match(/^(\\d+)%$/);\n if (!matchPercentage) return;\n var percentageValue = Number(matchPercentage[1]) / 100;\n if (percentagePassed >= percentageValue) _this2.execute(callback, passed);\n });\n }\n }, {\n key: \"computeCalculations\",\n // ----------------------------------------\n // Helpers\n // ----------------------------------------\n value: function computeCalculations() {\n var offset = this.props.offset;\n\n var _this$ref$getBounding = this.ref.getBoundingClientRect(),\n bottom = _this$ref$getBounding.bottom,\n height = _this$ref$getBounding.height,\n top = _this$ref$getBounding.top,\n width = _this$ref$getBounding.width;\n\n var _normalizeOffset = normalizeOffset(offset),\n _normalizeOffset2 = _slicedToArray(_normalizeOffset, 2),\n topOffset = _normalizeOffset2[0],\n bottomOffset = _normalizeOffset2[1];\n\n var direction = window.pageYOffset > this.pageYOffset ? 'down' : 'up';\n var topPassed = top < topOffset;\n var bottomPassed = bottom < bottomOffset;\n var pixelsPassed = bottomPassed ? 0 : Math.max(top * -1, 0);\n var percentagePassed = pixelsPassed / height;\n var bottomVisible = bottom >= bottomOffset && bottom <= window.innerHeight;\n var topVisible = top >= topOffset && top <= window.innerHeight;\n var fits = topVisible && bottomVisible;\n var passing = topPassed && !bottomPassed;\n var onScreen = (topVisible || topPassed) && !bottomPassed;\n var offScreen = !onScreen;\n return {\n bottomPassed: bottomPassed,\n bottomVisible: bottomVisible,\n direction: direction,\n fits: fits,\n height: height,\n passing: passing,\n percentagePassed: percentagePassed,\n pixelsPassed: pixelsPassed,\n offScreen: offScreen,\n onScreen: onScreen,\n topPassed: topPassed,\n topVisible: topVisible,\n width: width\n };\n } // ----------------------------------------\n // Refs\n // ----------------------------------------\n\n }, {\n key: \"render\",\n // ----------------------------------------\n // Render\n // ----------------------------------------\n value: function render() {\n var children = this.props.children;\n var ElementType = getElementType(Visibility, this.props);\n var rest = getUnhandledProps(Visibility, this.props);\n return React.createElement(ElementType, _extends({}, rest, {\n ref: this.handleRef\n }), children);\n }\n }]);\n\n return Visibility;\n}(Component);\n\n_defineProperty(Visibility, \"defaultProps\", {\n context: isBrowser() ? window : null,\n continuous: false,\n offset: [0, 0],\n once: true,\n updateOn: 'events'\n});\n\n_defineProperty(Visibility, \"handledProps\", [\"as\", \"children\", \"context\", \"continuous\", \"fireOnMount\", \"offset\", \"onBottomPassed\", \"onBottomPassedReverse\", \"onBottomVisible\", \"onBottomVisibleReverse\", \"onOffScreen\", \"onOnScreen\", \"onPassed\", \"onPassing\", \"onPassingReverse\", \"onTopPassed\", \"onTopPassedReverse\", \"onTopVisible\", \"onTopVisibleReverse\", \"onUpdate\", \"once\", \"updateOn\"]);\n\nexport { Visibility as default };\nVisibility.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Context which visibility should attach onscroll events. */\n context: PropTypes.object,\n\n /**\n * When set to true a callback will occur anytime an element passes a condition not just immediately after the\n * threshold is met.\n */\n continuous: PropTypes.bool,\n\n /** Fires callbacks immediately after mount. */\n fireOnMount: PropTypes.bool,\n\n /**\n * Element's bottom edge has passed top of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onBottomPassed: PropTypes.func,\n\n /**\n * Element's bottom edge has not passed top of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onBottomPassedReverse: PropTypes.func,\n\n /**\n * Element's bottom edge has passed bottom of screen\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onBottomVisible: PropTypes.func,\n\n /**\n * Element's bottom edge has not passed bottom of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onBottomVisibleReverse: PropTypes.func,\n\n /**\n * Value that context should be adjusted in pixels. Useful for making content appear below content fixed to the\n * page.\n */\n offset: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]))]),\n\n /** When set to false a callback will occur each time an element passes the threshold for a condition. */\n once: PropTypes.bool,\n\n /** Element is not visible on the screen. */\n onPassed: PropTypes.object,\n\n /**\n * Any part of an element is visible on screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onPassing: PropTypes.func,\n\n /**\n * Element's top has not passed top of screen but bottom has.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onPassingReverse: PropTypes.func,\n\n /**\n * Element is not visible on the screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onOffScreen: PropTypes.func,\n\n /**\n * Element is visible on the screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onOnScreen: PropTypes.func,\n\n /**\n * Element's top edge has passed top of the screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onTopPassed: PropTypes.func,\n\n /**\n * Element's top edge has not passed top of the screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onTopPassedReverse: PropTypes.func,\n\n /**\n * Element's top edge has passed bottom of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onTopVisible: PropTypes.func,\n\n /**\n * Element's top edge has not passed bottom of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onTopVisibleReverse: PropTypes.func,\n\n /**\n * Element's top edge has passed bottom of screen.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onUpdate: PropTypes.func,\n\n /**\n * Allows to choose the mode of the position calculations:\n * - `events` - (default) update and fire callbacks only on scroll/resize events\n * - `repaint` - update and fire callbacks on browser repaint (animation frames)\n */\n updateOn: PropTypes.oneOf(['events', 'repaint'])\n} : {};","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A pushable sub-component for Sidebar.\n */\n\nfunction SidebarPushable(props) {\n var className = props.className,\n children = props.children,\n content = props.content;\n var classes = cx('pushable', className);\n var rest = getUnhandledProps(SidebarPushable, props);\n var ElementType = getElementType(SidebarPushable, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nSidebarPushable.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nSidebarPushable.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nexport default SidebarPushable;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A pushable sub-component for Sidebar.\n */\n\nfunction SidebarPusher(props) {\n var className = props.className,\n dimmed = props.dimmed,\n children = props.children,\n content = props.content;\n var classes = cx('pusher', useKeyOnly(dimmed, 'dimmed'), className);\n var rest = getUnhandledProps(SidebarPusher, props);\n var ElementType = getElementType(SidebarPusher, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nSidebarPusher.handledProps = [\"as\", \"children\", \"className\", \"content\", \"dimmed\"];\nSidebarPusher.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** Controls whether or not the dim is displayed. */\n dimmed: PropTypes.bool\n} : {};\nexport default SidebarPusher;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _invoke from \"lodash/invoke\";\nimport EventStack from '@semantic-ui-react/event-stack';\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport Ref from '../../addons/Ref';\nimport { childrenUtils, customPropTypes, doesNodeContainClick, getUnhandledProps, getElementType, useKeyOnly } from '../../lib';\nimport SidebarPushable from './SidebarPushable';\nimport SidebarPusher from './SidebarPusher';\n/**\n * A sidebar hides additional content beside a page.\n */\n\nvar Sidebar =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Sidebar, _Component);\n\n function Sidebar() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Sidebar);\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 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Sidebar)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleAnimationStart\", function () {\n var _this$props = _this.props,\n duration = _this$props.duration,\n visible = _this$props.visible;\n var callback = visible ? 'onVisible' : 'onHide';\n\n _this.setState({\n animating: true\n }, function () {\n clearTimeout(_this.animationTimer);\n _this.animationTimer = setTimeout(_this.handleAnimationEnd, duration);\n\n if (_this.skipNextCallback) {\n _this.skipNextCallback = false;\n return;\n }\n\n _invoke(_this.props, callback, null, _this.props);\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleAnimationEnd\", function () {\n var visible = _this.props.visible;\n var callback = visible ? 'onShow' : 'onHidden';\n\n _this.setState({\n animating: false\n });\n\n _invoke(_this.props, callback, null, _this.props);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleDocumentClick\", function (e) {\n if (!doesNodeContainClick(_this.ref, e)) {\n _this.skipNextCallback = true;\n\n _invoke(_this.props, 'onHide', e, _objectSpread({}, _this.props, {\n visible: false\n }));\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleRef\", function (c) {\n return _this.ref = c;\n });\n\n return _this;\n }\n\n _createClass(Sidebar, [{\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var prevVisible = prevProps.visible;\n var currentVisible = this.props.visible;\n if (prevVisible !== currentVisible) this.handleAnimationStart();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n clearTimeout(this.animationTimer);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n animation = _this$props2.animation,\n className = _this$props2.className,\n children = _this$props2.children,\n content = _this$props2.content,\n direction = _this$props2.direction,\n target = _this$props2.target,\n visible = _this$props2.visible,\n width = _this$props2.width;\n var animating = this.state.animating;\n var classes = cx('ui', animation, direction, width, useKeyOnly(animating, 'animating'), useKeyOnly(visible, 'visible'), 'sidebar', className);\n var rest = getUnhandledProps(Sidebar, this.props);\n var ElementType = getElementType(Sidebar, this.props);\n return React.createElement(Ref, {\n innerRef: this.handleRef\n }, React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children, visible && React.createElement(EventStack, {\n name: \"click\",\n on: this.handleDocumentClick,\n target: target\n })));\n }\n }]);\n\n return Sidebar;\n}(Component);\n\n_defineProperty(Sidebar, \"defaultProps\", {\n direction: 'left',\n duration: 500\n});\n\n_defineProperty(Sidebar, \"autoControlledProps\", ['visible']);\n\n_defineProperty(Sidebar, \"Pushable\", SidebarPushable);\n\n_defineProperty(Sidebar, \"Pusher\", SidebarPusher);\n\n_defineProperty(Sidebar, \"handledProps\", [\"animation\", \"as\", \"children\", \"className\", \"content\", \"direction\", \"duration\", \"onHidden\", \"onHide\", \"onShow\", \"onVisible\", \"target\", \"visible\", \"width\"]);\n\nSidebar.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Animation style. */\n animation: PropTypes.oneOf(['overlay', 'push', 'scale down', 'uncover', 'slide out', 'slide along']),\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** Direction the sidebar should appear on. */\n direction: PropTypes.oneOf(['top', 'right', 'bottom', 'left']),\n\n /** Duration of sidebar animation. */\n duration: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Called before a sidebar begins to animate out.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onHide: PropTypes.func,\n\n /**\n * Called after a sidebar has finished animating out.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onHidden: PropTypes.func,\n\n /**\n * Called when a sidebar has finished animating in.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onShow: PropTypes.func,\n\n /**\n * Called when a sidebar begins animating in.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onVisible: PropTypes.func,\n\n /** A sidebar can handle clicks on the passed element. */\n target: PropTypes.object,\n\n /** Controls whether or not the sidebar is visible on the page. */\n visible: PropTypes.bool,\n\n /** Sidebar width. */\n width: PropTypes.oneOf(['very thin', 'thin', 'wide', 'very wide'])\n} : {};\nexport default Sidebar;","import _isNil from \"lodash/isNil\";\n\nvar fitsMaxWidth = function fitsMaxWidth(width, maxWidth) {\n return _isNil(maxWidth) ? true : width <= maxWidth;\n};\n\nvar fitsMinWidth = function fitsMinWidth(width, minWidth) {\n return _isNil(minWidth) ? true : width >= minWidth;\n};\n\nvar isVisible = function isVisible(width, _ref) {\n var maxWidth = _ref.maxWidth,\n minWidth = _ref.minWidth;\n return fitsMinWidth(width, minWidth) && fitsMaxWidth(width, maxWidth);\n};\n\nexport default isVisible;","import _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _invoke from \"lodash/invoke\";\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { customPropTypes, eventStack, getElementType, getUnhandledProps, isBrowser } from '../../lib';\nimport isVisible from './lib/isVisible';\n/**\n * Responsive can control visibility of content.\n */\n\nvar Responsive =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Responsive, _Component);\n\n function Responsive() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Responsive);\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 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Responsive)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n visible: true\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleResize\", function (e) {\n if (_this.ticking) return;\n _this.ticking = true;\n _this.frameId = requestAnimationFrame(function () {\n return _this.handleUpdate(e);\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleUpdate\", function (e) {\n _this.ticking = false;\n var visible = _this.state.visible;\n\n var width = _invoke(_this.props, 'getWidth');\n\n var nextVisible = isVisible(width, _this.props);\n if (visible !== nextVisible) _this.setState({\n visible: nextVisible\n });\n\n _invoke(_this.props, 'onUpdate', e, _objectSpread({}, _this.props, {\n width: width\n }));\n });\n\n return _this;\n }\n\n _createClass(Responsive, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var fireOnMount = this.props.fireOnMount;\n eventStack.sub('resize', this.handleResize, {\n target: 'window'\n });\n if (fireOnMount) this.handleUpdate();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n eventStack.unsub('resize', this.handleResize, {\n target: 'window'\n });\n cancelAnimationFrame(this.frameId);\n } // ----------------------------------------\n // Event handlers\n // ----------------------------------------\n\n }, {\n key: \"render\",\n // ----------------------------------------\n // Render\n // ----------------------------------------\n value: function render() {\n var children = this.props.children;\n var visible = this.state.visible;\n var ElementType = getElementType(Responsive, this.props);\n var rest = getUnhandledProps(Responsive, this.props);\n if (visible) return React.createElement(ElementType, rest, children);\n return null;\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props) {\n var width = _invoke(props, 'getWidth');\n\n var visible = isVisible(width, props);\n return {\n visible: visible\n };\n }\n }]);\n\n return Responsive;\n}(Component);\n\n_defineProperty(Responsive, \"defaultProps\", {\n getWidth: function getWidth() {\n return isBrowser() ? window.innerWidth : 0;\n }\n});\n\n_defineProperty(Responsive, \"onlyMobile\", {\n minWidth: 320,\n maxWidth: 767\n});\n\n_defineProperty(Responsive, \"onlyTablet\", {\n minWidth: 768,\n maxWidth: 991\n});\n\n_defineProperty(Responsive, \"onlyComputer\", {\n minWidth: 992\n});\n\n_defineProperty(Responsive, \"onlyLargeScreen\", {\n minWidth: 1200,\n maxWidth: 1919\n});\n\n_defineProperty(Responsive, \"onlyWidescreen\", {\n minWidth: 1920\n});\n\n_defineProperty(Responsive, \"handledProps\", [\"as\", \"children\", \"fireOnMount\", \"getWidth\", \"maxWidth\", \"minWidth\", \"onUpdate\"]);\n\nexport { Responsive as default };\nResponsive.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Fires callbacks immediately after mount. */\n fireOnMount: PropTypes.bool,\n\n /**\n * Called to get width of screen. Defaults to using `window.innerWidth` when in a browser;\n * otherwise, assumes a width of 0.\n */\n getWidth: PropTypes.func,\n\n /** The maximum width at which content will be displayed. */\n maxWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /** The minimum width at which content will be displayed. */\n minWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Called on update.\n *\n * @param {SyntheticEvent} event - The React SyntheticEvent object\n * @param {object} data - All props and the event value.\n */\n onUpdate: PropTypes.func\n} : {};"],"sourceRoot":""}