katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/4b7c3bc442f6626890547c17917...

1 line
46 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { UniqueComponentId, ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, classNames } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\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 OverlayPanel = /*#__PURE__*/function (_Component) {\n _inherits(OverlayPanel, _Component);\n\n var _super = _createSuper(OverlayPanel);\n\n function OverlayPanel(props) {\n var _this;\n\n _classCallCheck(this, OverlayPanel);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.onCloseClick = _this.onCloseClick.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.onContentClick = _this.onContentClick.bind(_assertThisInitialized(_this));\n _this.attributeSelector = UniqueComponentId();\n _this.overlayRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(OverlayPanel, [{\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener && this.props.dismissable) {\n this.documentClickListener = function (event) {\n if (!_this2.isPanelClicked && _this2.isOutsideClicked(event.target)) {\n _this2.hide();\n }\n\n _this2.isPanelClicked = false;\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {\n if (_this3.state.visible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.visible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"hasTargetChanged\",\n value: function hasTargetChanged(event, target) {\n return this.target != null && this.target !== (target || event.currentTarget || event.target);\n }\n }, {\n key: \"onCloseClick\",\n value: function onCloseClick(event) {\n this.hide();\n event.preventDefault();\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n this.isPanelClicked = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n }\n }, {\n key: \"onContentClick\",\n value: function onContentClick() {\n this.isPanelClicked = true;\n }\n }, {\n key: \"toggle\",\n value: function toggle(event, target) {\n var _this5 = this;\n\n if (this.state.visible) {\n this.hide();\n\n if (this.hasTargetChanged(event, target)) {\n this.target = target || event.currentTarget || event.target;\n setTimeout(function () {\n _this5.show(event, _this5.target);\n }, 200);\n }\n } else {\n this.show(event, target);\n }\n }\n }, {\n key: \"show\",\n value: function show(event, target) {\n var _this6 = this;\n\n this.target = target || event.currentTarget || event.target;\n\n if (this.state.visible) {\n this.align();\n } else {\n this.setState({\n visible: true\n }, function () {\n _this6.overlayEventListener = function (e) {\n if (!_this6.isOutsideClicked(e.target)) {\n _this6.isPanelClicked = true;\n }\n };\n\n OverlayService.on('overlay-click', _this6.overlayEventListener);\n });\n }\n }\n }, {\n key: \"hide\",\n value: function hide() {\n var _this7 = this;\n\n this.setState({\n visible: false\n }, function () {\n OverlayService.off('overlay-click', _this7.overlayEventListener);\n _this7.overlayEventListener = null;\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.overlayRef.current.setAttribute(this.attributeSelector, '');\n this.align();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"align\",\n value: function align() {\n if (this.target) {\n DomHandler.absolutePosition(this.overlayRef.current, this.target);\n var containerOffset = DomHandler.getOffset(this.overlayRef.current);\n var targetOffset = DomHandler.getOffset(this.target);\n var arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.overlayRef.current.style.setProperty('--overlayArrowLeft', \"\".concat(arrowLeft, \"px\"));\n\n if (containerOffset.top < targetOffset.top) {\n DomHandler.addClass(this.overlayRef.current, 'p-overlaypanel-flipped');\n }\n }\n }\n }, {\n key: \"createStyle\",\n value: function createStyle() {\n if (!this.styleElement) {\n this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n var innerHTML = '';\n\n for (var breakpoint in this.props.breakpoints) {\n innerHTML += \"\\n @media screen and (max-width: \".concat(breakpoint, \") {\\n .p-overlaypanel[\").concat(this.attributeSelector, \"] {\\n width: \").concat(this.props.breakpoints[breakpoint], \" !important;\\n }\\n }\\n \");\n }\n\n this.styleElement.innerHTML = innerHTML;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.breakpoints) {\n this.createStyle();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n if (this.props.showCloseIcon) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-overlaypanel-close p-link\",\n onClick: this.onCloseClick,\n \"aria-label\": this.props.ariaCloseLabel\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-overlaypanel-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-overlaypanel p-component', this.props.className);\n var closeIcon = this.renderCloseIcon();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-overlaypanel\",\n \"in\": this.state.visible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.onPanelClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-overlaypanel-content\",\n onClick: this.onContentClick,\n onMouseDown: this.onContentClick\n }, this.props.children), closeIcon));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return OverlayPanel;\n}(Component);\n\n_defineProperty(OverlayPanel, \"defaultProps\", {\n id: null,\n dismissable: true,\n showCloseIcon: false,\n style: null,\n className: null,\n appendTo: null,\n breakpoints: null,\n ariaCloseLabel: 'close',\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { OverlayPanel };","map":{"version":3,"names":["React","Component","UniqueComponentId","ConnectedOverlayScrollHandler","DomHandler","ZIndexUtils","classNames","CSSTransition","Ripple","OverlayService","Portal","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","OverlayPanel","_Component","_super","_this","state","visible","onCloseClick","bind","onPanelClick","onEnter","onEntered","onExit","onExited","onContentClick","attributeSelector","overlayRef","createRef","bindDocumentClickListener","_this2","documentClickListener","dismissable","event","isPanelClicked","isOutsideClicked","hide","document","addEventListener","unbindDocumentClickListener","removeEventListener","bindScrollListener","_this3","scrollHandler","unbindScrollListener","bindResizeListener","_this4","resizeListener","isTouchDevice","window","unbindResizeListener","current","isSameNode","contains","hasTargetChanged","currentTarget","preventDefault","emit","originalEvent","toggle","_this5","setTimeout","show","_this6","align","setState","overlayEventListener","on","_this7","off","set","autoZIndex","zIndex","setAttribute","onShow","clear","onHide","absolutePosition","containerOffset","getOffset","targetOffset","arrowLeft","left","style","setProperty","concat","top","addClass","createStyle","styleElement","createInlineStyle","nonce","innerHTML","breakpoint","breakpoints","componentDidMount","componentWillUnmount","destroy","removeInlineStyle","renderCloseIcon","showCloseIcon","createElement","type","className","onClick","ariaCloseLabel","renderElement","closeIcon","nodeRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","ref","id","onMouseDown","children","render","element","appendTo"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/overlaypanel/overlaypanel.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { UniqueComponentId, ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, classNames } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\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 OverlayPanel = /*#__PURE__*/function (_Component) {\n _inherits(OverlayPanel, _Component);\n\n var _super = _createSuper(OverlayPanel);\n\n function OverlayPanel(props) {\n var _this;\n\n _classCallCheck(this, OverlayPanel);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.onCloseClick = _this.onCloseClick.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.onContentClick = _this.onContentClick.bind(_assertThisInitialized(_this));\n _this.attributeSelector = UniqueComponentId();\n _this.overlayRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(OverlayPanel, [{\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener && this.props.dismissable) {\n this.documentClickListener = function (event) {\n if (!_this2.isPanelClicked && _this2.isOutsideClicked(event.target)) {\n _this2.hide();\n }\n\n _this2.isPanelClicked = false;\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {\n if (_this3.state.visible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.visible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"hasTargetChanged\",\n value: function hasTargetChanged(event, target) {\n return this.target != null && this.target !== (target || event.currentTarget || event.target);\n }\n }, {\n key: \"onCloseClick\",\n value: function onCloseClick(event) {\n this.hide();\n event.preventDefault();\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n this.isPanelClicked = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n }\n }, {\n key: \"onContentClick\",\n value: function onContentClick() {\n this.isPanelClicked = true;\n }\n }, {\n key: \"toggle\",\n value: function toggle(event, target) {\n var _this5 = this;\n\n if (this.state.visible) {\n this.hide();\n\n if (this.hasTargetChanged(event, target)) {\n this.target = target || event.currentTarget || event.target;\n setTimeout(function () {\n _this5.show(event, _this5.target);\n }, 200);\n }\n } else {\n this.show(event, target);\n }\n }\n }, {\n key: \"show\",\n value: function show(event, target) {\n var _this6 = this;\n\n this.target = target || event.currentTarget || event.target;\n\n if (this.state.visible) {\n this.align();\n } else {\n this.setState({\n visible: true\n }, function () {\n _this6.overlayEventListener = function (e) {\n if (!_this6.isOutsideClicked(e.target)) {\n _this6.isPanelClicked = true;\n }\n };\n\n OverlayService.on('overlay-click', _this6.overlayEventListener);\n });\n }\n }\n }, {\n key: \"hide\",\n value: function hide() {\n var _this7 = this;\n\n this.setState({\n visible: false\n }, function () {\n OverlayService.off('overlay-click', _this7.overlayEventListener);\n _this7.overlayEventListener = null;\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.overlayRef.current.setAttribute(this.attributeSelector, '');\n this.align();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"align\",\n value: function align() {\n if (this.target) {\n DomHandler.absolutePosition(this.overlayRef.current, this.target);\n var containerOffset = DomHandler.getOffset(this.overlayRef.current);\n var targetOffset = DomHandler.getOffset(this.target);\n var arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.overlayRef.current.style.setProperty('--overlayArrowLeft', \"\".concat(arrowLeft, \"px\"));\n\n if (containerOffset.top < targetOffset.top) {\n DomHandler.addClass(this.overlayRef.current, 'p-overlaypanel-flipped');\n }\n }\n }\n }, {\n key: \"createStyle\",\n value: function createStyle() {\n if (!this.styleElement) {\n this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n var innerHTML = '';\n\n for (var breakpoint in this.props.breakpoints) {\n innerHTML += \"\\n @media screen and (max-width: \".concat(breakpoint, \") {\\n .p-overlaypanel[\").concat(this.attributeSelector, \"] {\\n width: \").concat(this.props.breakpoints[breakpoint], \" !important;\\n }\\n }\\n \");\n }\n\n this.styleElement.innerHTML = innerHTML;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.breakpoints) {\n this.createStyle();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n if (this.props.showCloseIcon) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-overlaypanel-close p-link\",\n onClick: this.onCloseClick,\n \"aria-label\": this.props.ariaCloseLabel\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-overlaypanel-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-overlaypanel p-component', this.props.className);\n var closeIcon = this.renderCloseIcon();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-overlaypanel\",\n \"in\": this.state.visible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.onPanelClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-overlaypanel-content\",\n onClick: this.onContentClick,\n onMouseDown: this.onContentClick\n }, this.props.children), closeIcon));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return OverlayPanel;\n}(Component);\n\n_defineProperty(OverlayPanel, \"defaultProps\", {\n id: null,\n dismissable: true,\n showCloseIcon: false,\n style: null,\n className: null,\n appendTo: null,\n breakpoints: null,\n ariaCloseLabel: 'close',\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { OverlayPanel };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,iBAAT,EAA4BC,6BAA5B,EAA2DC,UAA3D,EAAuEC,WAAvE,EAAoFC,UAApF,QAAsG,kBAAtG;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,cAAT,QAA+B,2BAA/B;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QA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