1 line
37 KiB
JSON
1 line
37 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { DomHandler, classNames } from 'primereact/utils';\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 _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\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _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\nfunction _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\nfunction _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 Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _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\nfunction _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\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar ScrollPanel = /*#__PURE__*/function (_Component) {\n _inherits(ScrollPanel, _Component);\n\n var _super = _createSuper(ScrollPanel);\n\n function ScrollPanel(props) {\n var _this;\n\n _classCallCheck(this, ScrollPanel);\n\n _this = _super.call(this, props);\n _this.moveBar = _this.moveBar.bind(_assertThisInitialized(_this));\n _this.onXBarMouseDown = _this.onXBarMouseDown.bind(_assertThisInitialized(_this));\n _this.onYBarMouseDown = _this.onYBarMouseDown.bind(_assertThisInitialized(_this));\n _this.onDocumentMouseMove = _this.onDocumentMouseMove.bind(_assertThisInitialized(_this));\n _this.onDocumentMouseUp = _this.onDocumentMouseUp.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ScrollPanel, [{\n key: \"calculateContainerHeight\",\n value: function calculateContainerHeight() {\n var containerStyles = getComputedStyle(this.container),\n xBarStyles = getComputedStyle(this.xBar),\n pureContainerHeight = DomHandler.getHeight(this.container) - parseInt(xBarStyles['height'], 10);\n\n if (containerStyles['max-height'] !== \"none\" && pureContainerHeight === 0) {\n if (this.content.offsetHeight + parseInt(xBarStyles['height'], 10) > parseInt(containerStyles['max-height'], 10)) {\n this.container.style.height = containerStyles['max-height'];\n } else {\n this.container.style.height = this.content.offsetHeight + parseFloat(containerStyles.paddingTop) + parseFloat(containerStyles.paddingBottom) + parseFloat(containerStyles.borderTopWidth) + parseFloat(containerStyles.borderBottomWidth) + \"px\";\n }\n }\n }\n }, {\n key: \"moveBar\",\n value: function moveBar() {\n var _this2 = this;\n /* horizontal scroll */\n\n\n var totalWidth = this.content.scrollWidth;\n var ownWidth = this.content.clientWidth;\n var bottom = (this.container.clientHeight - this.xBar.clientHeight) * -1;\n this.scrollXRatio = ownWidth / totalWidth;\n /* vertical scroll */\n\n var totalHeight = this.content.scrollHeight;\n var ownHeight = this.content.clientHeight;\n var right = (this.container.clientWidth - this.yBar.clientWidth) * -1;\n this.scrollYRatio = ownHeight / totalHeight;\n this.frame = this.requestAnimationFrame(function () {\n if (_this2.scrollXRatio >= 1) {\n DomHandler.addClass(_this2.xBar, 'p-scrollpanel-hidden');\n } else {\n DomHandler.removeClass(_this2.xBar, 'p-scrollpanel-hidden');\n _this2.xBar.style.cssText = 'width:' + Math.max(_this2.scrollXRatio * 100, 10) + '%; left:' + _this2.content.scrollLeft / totalWidth * 100 + '%;bottom:' + bottom + 'px;';\n }\n\n if (_this2.scrollYRatio >= 1) {\n DomHandler.addClass(_this2.yBar, 'p-scrollpanel-hidden');\n } else {\n DomHandler.removeClass(_this2.yBar, 'p-scrollpanel-hidden');\n _this2.yBar.style.cssText = 'height:' + Math.max(_this2.scrollYRatio * 100, 10) + '%; top: calc(' + _this2.content.scrollTop / totalHeight * 100 + '% - ' + _this2.xBar.clientHeight + 'px);right:' + right + 'px;';\n }\n });\n }\n }, {\n key: \"onYBarMouseDown\",\n value: function onYBarMouseDown(e) {\n this.isYBarClicked = true;\n this.lastPageY = e.pageY;\n DomHandler.addClass(this.yBar, 'p-scrollpanel-grabbed');\n DomHandler.addClass(document.body, 'p-scrollpanel-grabbed');\n document.addEventListener('mousemove', this.onDocumentMouseMove);\n document.addEventListener('mouseup', this.onDocumentMouseUp);\n e.preventDefault();\n }\n }, {\n key: \"onXBarMouseDown\",\n value: function onXBarMouseDown(e) {\n this.isXBarClicked = true;\n this.lastPageX = e.pageX;\n DomHandler.addClass(this.xBar, 'p-scrollpanel-grabbed');\n DomHandler.addClass(document.body, 'p-scrollpanel-grabbed');\n document.addEventListener('mousemove', this.onDocumentMouseMove);\n document.addEventListener('mouseup', this.onDocumentMouseUp);\n e.preventDefault();\n }\n }, {\n key: \"onDocumentMouseMove\",\n value: function onDocumentMouseMove(e) {\n if (this.isXBarClicked) {\n this.onMouseMoveForXBar(e);\n } else if (this.isYBarClicked) {\n this.onMouseMoveForYBar(e);\n } else {\n this.onMouseMoveForXBar(e);\n this.onMouseMoveForYBar(e);\n }\n }\n }, {\n key: \"onMouseMoveForXBar\",\n value: function onMouseMoveForXBar(e) {\n var _this3 = this;\n\n var deltaX = e.pageX - this.lastPageX;\n this.lastPageX = e.pageX;\n this.frame = this.requestAnimationFrame(function () {\n _this3.content.scrollLeft += deltaX / _this3.scrollXRatio;\n });\n }\n }, {\n key: \"onMouseMoveForYBar\",\n value: function onMouseMoveForYBar(e) {\n var _this4 = this;\n\n var deltaY = e.pageY - this.lastPageY;\n this.lastPageY = e.pageY;\n this.frame = this.requestAnimationFrame(function () {\n _this4.content.scrollTop += deltaY / _this4.scrollYRatio;\n });\n }\n }, {\n key: \"onDocumentMouseUp\",\n value: function onDocumentMouseUp(e) {\n DomHandler.removeClass(this.yBar, 'p-scrollpanel-grabbed');\n DomHandler.removeClass(this.xBar, 'p-scrollpanel-grabbed');\n DomHandler.removeClass(document.body, 'p-scrollpanel-grabbed');\n document.removeEventListener('mousemove', this.onDocumentMouseMove);\n document.removeEventListener('mouseup', this.onDocumentMouseUp);\n this.isXBarClicked = false;\n this.isYBarClicked = false;\n }\n }, {\n key: \"requestAnimationFrame\",\n value: function requestAnimationFrame(f) {\n var frame = window.requestAnimationFrame || this.timeoutFrame;\n return frame(f);\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.moveBar();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.moveBar();\n this.moveBar = this.moveBar.bind(this);\n window.addEventListener('resize', this.moveBar);\n this.calculateContainerHeight();\n this.initialized = true;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.initialized) {\n window.removeEventListener('resize', this.moveBar);\n }\n\n if (this.frame) {\n window.cancelAnimationFrame(this.frame);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this5 = this;\n\n var className = classNames('p-scrollpanel p-component', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-scrollpanel-wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.content = el;\n },\n className: \"p-scrollpanel-content\",\n onScroll: this.moveBar,\n onMouseEnter: this.moveBar\n }, this.props.children)), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.xBar = el;\n },\n className: \"p-scrollpanel-bar p-scrollpanel-bar-x\",\n onMouseDown: this.onXBarMouseDown\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.yBar = el;\n },\n className: \"p-scrollpanel-bar p-scrollpanel-bar-y\",\n onMouseDown: this.onYBarMouseDown\n }));\n }\n }]);\n\n return ScrollPanel;\n}(Component);\n\n_defineProperty(ScrollPanel, \"defaultProps\", {\n id: null,\n style: null,\n className: null\n});\n\nexport { ScrollPanel };","map":{"version":3,"names":["React","Component","DomHandler","classNames","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","ScrollPanel","_Component","_super","_this","moveBar","bind","onXBarMouseDown","onYBarMouseDown","onDocumentMouseMove","onDocumentMouseUp","calculateContainerHeight","containerStyles","getComputedStyle","container","xBarStyles","xBar","pureContainerHeight","getHeight","parseInt","content","offsetHeight","style","height","parseFloat","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth","_this2","totalWidth","scrollWidth","ownWidth","clientWidth","bottom","clientHeight","scrollXRatio","totalHeight","scrollHeight","ownHeight","right","yBar","scrollYRatio","frame","requestAnimationFrame","addClass","removeClass","cssText","Math","max","scrollLeft","scrollTop","isYBarClicked","lastPageY","pageY","document","body","addEventListener","preventDefault","isXBarClicked","lastPageX","pageX","onMouseMoveForXBar","onMouseMoveForYBar","_this3","deltaX","_this4","deltaY","removeEventListener","f","window","timeoutFrame","refresh","componentDidMount","initialized","componentWillUnmount","cancelAnimationFrame","render","_this5","className","createElement","ref","el","id","onScroll","onMouseEnter","children","onMouseDown"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/scrollpanel/scrollpanel.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { DomHandler, classNames } from 'primereact/utils';\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 _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\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _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\nfunction _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\nfunction _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 Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _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\nfunction _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\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar ScrollPanel = /*#__PURE__*/function (_Component) {\n _inherits(ScrollPanel, _Component);\n\n var _super = _createSuper(ScrollPanel);\n\n function ScrollPanel(props) {\n var _this;\n\n _classCallCheck(this, ScrollPanel);\n\n _this = _super.call(this, props);\n _this.moveBar = _this.moveBar.bind(_assertThisInitialized(_this));\n _this.onXBarMouseDown = _this.onXBarMouseDown.bind(_assertThisInitialized(_this));\n _this.onYBarMouseDown = _this.onYBarMouseDown.bind(_assertThisInitialized(_this));\n _this.onDocumentMouseMove = _this.onDocumentMouseMove.bind(_assertThisInitialized(_this));\n _this.onDocumentMouseUp = _this.onDocumentMouseUp.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ScrollPanel, [{\n key: \"calculateContainerHeight\",\n value: function calculateContainerHeight() {\n var containerStyles = getComputedStyle(this.container),\n xBarStyles = getComputedStyle(this.xBar),\n pureContainerHeight = DomHandler.getHeight(this.container) - parseInt(xBarStyles['height'], 10);\n\n if (containerStyles['max-height'] !== \"none\" && pureContainerHeight === 0) {\n if (this.content.offsetHeight + parseInt(xBarStyles['height'], 10) > parseInt(containerStyles['max-height'], 10)) {\n this.container.style.height = containerStyles['max-height'];\n } else {\n this.container.style.height = this.content.offsetHeight + parseFloat(containerStyles.paddingTop) + parseFloat(containerStyles.paddingBottom) + parseFloat(containerStyles.borderTopWidth) + parseFloat(containerStyles.borderBottomWidth) + \"px\";\n }\n }\n }\n }, {\n key: \"moveBar\",\n value: function moveBar() {\n var _this2 = this;\n\n /* horizontal scroll */\n var totalWidth = this.content.scrollWidth;\n var ownWidth = this.content.clientWidth;\n var bottom = (this.container.clientHeight - this.xBar.clientHeight) * -1;\n this.scrollXRatio = ownWidth / totalWidth;\n /* vertical scroll */\n\n var totalHeight = this.content.scrollHeight;\n var ownHeight = this.content.clientHeight;\n var right = (this.container.clientWidth - this.yBar.clientWidth) * -1;\n this.scrollYRatio = ownHeight / totalHeight;\n this.frame = this.requestAnimationFrame(function () {\n if (_this2.scrollXRatio >= 1) {\n DomHandler.addClass(_this2.xBar, 'p-scrollpanel-hidden');\n } else {\n DomHandler.removeClass(_this2.xBar, 'p-scrollpanel-hidden');\n _this2.xBar.style.cssText = 'width:' + Math.max(_this2.scrollXRatio * 100, 10) + '%; left:' + _this2.content.scrollLeft / totalWidth * 100 + '%;bottom:' + bottom + 'px;';\n }\n\n if (_this2.scrollYRatio >= 1) {\n DomHandler.addClass(_this2.yBar, 'p-scrollpanel-hidden');\n } else {\n DomHandler.removeClass(_this2.yBar, 'p-scrollpanel-hidden');\n _this2.yBar.style.cssText = 'height:' + Math.max(_this2.scrollYRatio * 100, 10) + '%; top: calc(' + _this2.content.scrollTop / totalHeight * 100 + '% - ' + _this2.xBar.clientHeight + 'px);right:' + right + 'px;';\n }\n });\n }\n }, {\n key: \"onYBarMouseDown\",\n value: function onYBarMouseDown(e) {\n this.isYBarClicked = true;\n this.lastPageY = e.pageY;\n DomHandler.addClass(this.yBar, 'p-scrollpanel-grabbed');\n DomHandler.addClass(document.body, 'p-scrollpanel-grabbed');\n document.addEventListener('mousemove', this.onDocumentMouseMove);\n document.addEventListener('mouseup', this.onDocumentMouseUp);\n e.preventDefault();\n }\n }, {\n key: \"onXBarMouseDown\",\n value: function onXBarMouseDown(e) {\n this.isXBarClicked = true;\n this.lastPageX = e.pageX;\n DomHandler.addClass(this.xBar, 'p-scrollpanel-grabbed');\n DomHandler.addClass(document.body, 'p-scrollpanel-grabbed');\n document.addEventListener('mousemove', this.onDocumentMouseMove);\n document.addEventListener('mouseup', this.onDocumentMouseUp);\n e.preventDefault();\n }\n }, {\n key: \"onDocumentMouseMove\",\n value: function onDocumentMouseMove(e) {\n if (this.isXBarClicked) {\n this.onMouseMoveForXBar(e);\n } else if (this.isYBarClicked) {\n this.onMouseMoveForYBar(e);\n } else {\n this.onMouseMoveForXBar(e);\n this.onMouseMoveForYBar(e);\n }\n }\n }, {\n key: \"onMouseMoveForXBar\",\n value: function onMouseMoveForXBar(e) {\n var _this3 = this;\n\n var deltaX = e.pageX - this.lastPageX;\n this.lastPageX = e.pageX;\n this.frame = this.requestAnimationFrame(function () {\n _this3.content.scrollLeft += deltaX / _this3.scrollXRatio;\n });\n }\n }, {\n key: \"onMouseMoveForYBar\",\n value: function onMouseMoveForYBar(e) {\n var _this4 = this;\n\n var deltaY = e.pageY - this.lastPageY;\n this.lastPageY = e.pageY;\n this.frame = this.requestAnimationFrame(function () {\n _this4.content.scrollTop += deltaY / _this4.scrollYRatio;\n });\n }\n }, {\n key: \"onDocumentMouseUp\",\n value: function onDocumentMouseUp(e) {\n DomHandler.removeClass(this.yBar, 'p-scrollpanel-grabbed');\n DomHandler.removeClass(this.xBar, 'p-scrollpanel-grabbed');\n DomHandler.removeClass(document.body, 'p-scrollpanel-grabbed');\n document.removeEventListener('mousemove', this.onDocumentMouseMove);\n document.removeEventListener('mouseup', this.onDocumentMouseUp);\n this.isXBarClicked = false;\n this.isYBarClicked = false;\n }\n }, {\n key: \"requestAnimationFrame\",\n value: function requestAnimationFrame(f) {\n var frame = window.requestAnimationFrame || this.timeoutFrame;\n return frame(f);\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.moveBar();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.moveBar();\n this.moveBar = this.moveBar.bind(this);\n window.addEventListener('resize', this.moveBar);\n this.calculateContainerHeight();\n this.initialized = true;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.initialized) {\n window.removeEventListener('resize', this.moveBar);\n }\n\n if (this.frame) {\n window.cancelAnimationFrame(this.frame);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this5 = this;\n\n var className = classNames('p-scrollpanel p-component', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-scrollpanel-wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.content = el;\n },\n className: \"p-scrollpanel-content\",\n onScroll: this.moveBar,\n onMouseEnter: this.moveBar\n }, this.props.children)), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.xBar = el;\n },\n className: \"p-scrollpanel-bar p-scrollpanel-bar-x\",\n onMouseDown: this.onXBarMouseDown\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.yBar = el;\n },\n className: \"p-scrollpanel-bar p-scrollpanel-bar-y\",\n onMouseDown: this.onYBarMouseDown\n }));\n }\n }]);\n\n return ScrollPanel;\n}(Component);\n\n_defineProperty(ScrollPanel, \"defaultProps\", {\n id: null,\n style: null,\n className: null\n});\n\nexport { ScrollPanel };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,UAArB,QAAuC,kBAAvC;;AAEA,SAASC,eAAT,C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