{"ast":null,"code":"import React, { Component } from 'react';\nimport { DomHandler, ZIndexUtils, classNames, IconUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport PrimeReact from 'primereact/api';\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 ScrollTop = /*#__PURE__*/function (_Component) {\n _inherits(ScrollTop, _Component);\n\n var _super = _createSuper(ScrollTop);\n\n function ScrollTop(props) {\n var _this;\n\n _classCallCheck(this, ScrollTop);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.scrollElementRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(ScrollTop, [{\n key: \"onClick\",\n value: function onClick() {\n var scrollElement = this.props.target === 'window' ? window : this.helper.parentElement;\n scrollElement.scroll({\n top: 0,\n behavior: this.props.behavior\n });\n }\n }, {\n key: \"checkVisibility\",\n value: function checkVisibility(scrollY) {\n this.setState({\n visible: scrollY > this.props.threshold\n });\n }\n }, {\n key: \"bindParentScrollListener\",\n value: function bindParentScrollListener() {\n var _this2 = this;\n\n this.scrollListener = function () {\n _this2.checkVisibility(_this2.helper.parentElement.scrollTop);\n };\n\n this.helper.parentElement.addEventListener('scroll', this.scrollListener);\n }\n }, {\n key: \"bindDocumentScrollListener\",\n value: function bindDocumentScrollListener() {\n var _this3 = this;\n\n this.scrollListener = function () {\n _this3.checkVisibility(DomHandler.getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n }\n }, {\n key: \"unbindParentScrollListener\",\n value: function unbindParentScrollListener() {\n if (this.scrollListener) {\n this.helper.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n }\n }, {\n key: \"unbindDocumentScrollListener\",\n value: function unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.scrollElementRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.target === 'window') this.bindDocumentScrollListener();else if (this.props.target === 'parent') this.bindParentScrollListener();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.target === 'window') this.unbindDocumentScrollListener();else if (this.props.target === 'parent') this.unbindParentScrollListener();\n ZIndexUtils.clear(this.scrollElementRef.current);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var className = classNames('p-scrolltop p-link p-component', {\n 'p-scrolltop-sticky': this.props.target !== 'window'\n }, this.props.className);\n var isTargetParent = this.props.target === 'parent';\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.scrollElementRef,\n classNames: \"p-scrolltop\",\n \"in\": this.state.visible,\n timeout: {\n enter: 150,\n exit: 150\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"button\", {\n ref: this.scrollElementRef,\n type: \"button\",\n className: className,\n style: this.props.style,\n onClick: this.onClick\n }, IconUtils.getJSXIcon(this.props.icon, {\n className: 'p-scrolltop-icon'\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(Ripple, null))), isTargetParent && /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this4.helper = el;\n },\n className: \"p-scrolltop-helper\"\n }));\n }\n }]);\n\n return ScrollTop;\n}(Component);\n\n_defineProperty(ScrollTop, \"defaultProps\", {\n target: 'window',\n threshold: 400,\n icon: 'pi pi-chevron-up',\n behavior: 'smooth',\n className: null,\n style: null,\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { ScrollTop };","map":{"version":3,"names":["React","Component","DomHandler","ZIndexUtils","classNames","IconUtils","CSSTransition","Ripple","PrimeReact","_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","ScrollTop","_Component","_super","_this","state","visible","onClick","bind","onEnter","onEntered","onExited","scrollElementRef","createRef","scrollElement","window","helper","parentElement","scroll","top","behavior","checkVisibility","scrollY","setState","threshold","bindParentScrollListener","_this2","scrollListener","scrollTop","addEventListener","bindDocumentScrollListener","_this3","getWindowScrollTop","unbindParentScrollListener","removeEventListener","unbindDocumentScrollListener","set","current","autoZIndex","zIndex","onShow","clear","onHide","componentDidMount","componentWillUnmount","render","_this4","className","isTargetParent","createElement","Fragment","nodeRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","ref","type","style","getJSXIcon","icon","el"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/scrolltop/scrolltop.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { DomHandler, ZIndexUtils, classNames, IconUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport PrimeReact from 'primereact/api';\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 ScrollTop = /*#__PURE__*/function (_Component) {\n _inherits(ScrollTop, _Component);\n\n var _super = _createSuper(ScrollTop);\n\n function ScrollTop(props) {\n var _this;\n\n _classCallCheck(this, ScrollTop);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.scrollElementRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(ScrollTop, [{\n key: \"onClick\",\n value: function onClick() {\n var scrollElement = this.props.target === 'window' ? window : this.helper.parentElement;\n scrollElement.scroll({\n top: 0,\n behavior: this.props.behavior\n });\n }\n }, {\n key: \"checkVisibility\",\n value: function checkVisibility(scrollY) {\n this.setState({\n visible: scrollY > this.props.threshold\n });\n }\n }, {\n key: \"bindParentScrollListener\",\n value: function bindParentScrollListener() {\n var _this2 = this;\n\n this.scrollListener = function () {\n _this2.checkVisibility(_this2.helper.parentElement.scrollTop);\n };\n\n this.helper.parentElement.addEventListener('scroll', this.scrollListener);\n }\n }, {\n key: \"bindDocumentScrollListener\",\n value: function bindDocumentScrollListener() {\n var _this3 = this;\n\n this.scrollListener = function () {\n _this3.checkVisibility(DomHandler.getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n }\n }, {\n key: \"unbindParentScrollListener\",\n value: function unbindParentScrollListener() {\n if (this.scrollListener) {\n this.helper.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n }\n }, {\n key: \"unbindDocumentScrollListener\",\n value: function unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.scrollElementRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.target === 'window') this.bindDocumentScrollListener();else if (this.props.target === 'parent') this.bindParentScrollListener();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.target === 'window') this.unbindDocumentScrollListener();else if (this.props.target === 'parent') this.unbindParentScrollListener();\n ZIndexUtils.clear(this.scrollElementRef.current);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var className = classNames('p-scrolltop p-link p-component', {\n 'p-scrolltop-sticky': this.props.target !== 'window'\n }, this.props.className);\n var isTargetParent = this.props.target === 'parent';\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.scrollElementRef,\n classNames: \"p-scrolltop\",\n \"in\": this.state.visible,\n timeout: {\n enter: 150,\n exit: 150\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"button\", {\n ref: this.scrollElementRef,\n type: \"button\",\n className: className,\n style: this.props.style,\n onClick: this.onClick\n }, IconUtils.getJSXIcon(this.props.icon, {\n className: 'p-scrolltop-icon'\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(Ripple, null))), isTargetParent && /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this4.helper = el;\n },\n className: \"p-scrolltop-helper\"\n }));\n }\n }]);\n\n return ScrollTop;\n}(Component);\n\n_defineProperty(ScrollTop, \"defaultProps\", {\n target: 'window',\n threshold: 400,\n icon: 'pi pi-chevron-up',\n behavior: 'smooth',\n className: null,\n style: null,\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { ScrollTop };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,UAAlC,EAA8CC,SAA9C,QAA+D,kBAA/D;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;IACAE,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;IACAD,UAAU,CAACE,YAAX,GAA0B,IAA1B;IACA,IAAI,WAAWF,UAAf,EAA2BA,UAAU,CAACG,QAAX,GAAsB,IAAtB;IAC3BC,MAAM,CAACC,cAAP,CAAsBT,MAAtB,EAA8BI,UAAU,CAACM,GAAzC,EAA8CN,UAA9C;EACD;AACF;;AAED,SAASO,YAAT,CAAsBd,WAAtB,EAAmCe,UAAnC,EAA+CC,WAA/C,EAA4D;EAC1D,IAAID,UAAJ,EAAgBb,iBAAiB,CAACF,WAAW,CAACiB,SAAb,EAAwBF,UAAxB,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