1 line
77 KiB
JSON
1 line
77 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, classNames } from 'primereact/utils';\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\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction tip(props) {\n var appendTo = props.appendTo || document.body;\n var tooltipWrapper = document.createDocumentFragment();\n DomHandler.appendChild(tooltipWrapper, appendTo);\n props = _objectSpread(_objectSpread({}, props), props.options);\n var tooltipEl = /*#__PURE__*/React.createElement(Tooltip, props);\n ReactDOM.render(tooltipEl, tooltipWrapper);\n\n var updateTooltip = function updateTooltip(newProps) {\n props = _objectSpread(_objectSpread({}, props), newProps);\n ReactDOM.render( /*#__PURE__*/React.cloneElement(tooltipEl, props), tooltipWrapper);\n };\n\n return {\n destroy: function destroy() {\n ReactDOM.unmountComponentAtNode(tooltipWrapper);\n },\n updateContent: function updateContent(newContent) {\n console.warn(\"The 'updateContent' method has been deprecated on Tooltip. Use update(newProps) method.\");\n updateTooltip({\n content: newContent\n });\n },\n update: function update(newProps) {\n updateTooltip(newProps);\n }\n };\n}\n\nvar Tooltip = /*#__PURE__*/function (_Component) {\n _inherits(Tooltip, _Component);\n\n var _super = _createSuper(Tooltip);\n\n function Tooltip(props) {\n var _this;\n\n _classCallCheck(this, Tooltip);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false,\n position: _this.props.position\n };\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.onMouseEnter = _this.onMouseEnter.bind(_assertThisInitialized(_this));\n _this.onMouseLeave = _this.onMouseLeave.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Tooltip, [{\n key: \"isTargetContentEmpty\",\n value: function isTargetContentEmpty(target) {\n return !(this.props.content || this.getTargetOption(target, 'tooltip'));\n }\n }, {\n key: \"isContentEmpty\",\n value: function isContentEmpty(target) {\n return !(this.props.content || this.getTargetOption(target, 'tooltip') || this.props.children);\n }\n }, {\n key: \"isMouseTrack\",\n value: function isMouseTrack(target) {\n return this.getTargetOption(target, 'mousetrack') || this.props.mouseTrack;\n }\n }, {\n key: \"isDisabled\",\n value: function isDisabled(target) {\n return this.getTargetOption(target, 'disabled') === 'true' || this.hasTargetOption(target, 'disabled') || this.props.disabled;\n }\n }, {\n key: \"isShowOnDisabled\",\n value: function isShowOnDisabled(target) {\n return this.getTargetOption(target, 'showondisabled') || this.props.showOnDisabled;\n }\n }, {\n key: \"isAutoHide\",\n value: function isAutoHide() {\n return this.getTargetOption(this.currentTarget, 'autohide') || this.props.autoHide;\n }\n }, {\n key: \"getTargetOption\",\n value: function getTargetOption(target, option) {\n if (this.hasTargetOption(target, \"data-pr-\".concat(option))) {\n return target.getAttribute(\"data-pr-\".concat(option));\n }\n\n return null;\n }\n }, {\n key: \"hasTargetOption\",\n value: function hasTargetOption(target, option) {\n return target && target.hasAttribute(option);\n }\n }, {\n key: \"getEvents\",\n value: function getEvents(target) {\n var showEvent = this.getTargetOption(target, 'showevent') || this.props.showEvent;\n var hideEvent = this.getTargetOption(target, 'hideevent') || this.props.hideEvent;\n\n if (this.isMouseTrack(target)) {\n showEvent = 'mousemove';\n hideEvent = 'mouseleave';\n } else {\n var event = this.getTargetOption(target, 'event') || this.props.event;\n\n if (event === 'focus') {\n showEvent = 'focus';\n hideEvent = 'blur';\n }\n }\n\n return {\n showEvent: showEvent,\n hideEvent: hideEvent\n };\n }\n }, {\n key: \"getPosition\",\n value: function getPosition(target) {\n return this.getTargetOption(target, 'position') || this.state.position;\n }\n }, {\n key: \"getMouseTrackPosition\",\n value: function getMouseTrackPosition(target) {\n var top = this.getTargetOption(target, 'mousetracktop') || this.props.mouseTrackTop;\n var left = this.getTargetOption(target, 'mousetrackleft') || this.props.mouseTrackLeft;\n return {\n top: top,\n left: left\n };\n }\n }, {\n key: \"updateText\",\n value: function updateText(target, callback) {\n if (this.tooltipTextEl) {\n var content = this.getTargetOption(target, 'tooltip') || this.props.content;\n\n if (content) {\n this.tooltipTextEl.innerHTML = ''; // remove children\n\n this.tooltipTextEl.appendChild(document.createTextNode(content));\n callback();\n } else if (this.props.children) {\n callback();\n }\n }\n }\n }, {\n key: \"show\",\n value: function show(e) {\n var _this2 = this;\n\n this.currentTarget = e.currentTarget;\n var disabled = this.isDisabled(this.currentTarget);\n var empty = this.isContentEmpty(this.isShowOnDisabled(this.currentTarget) && disabled ? this.currentTarget.firstChild : this.currentTarget);\n\n if (empty || disabled) {\n return;\n }\n\n var updateTooltipState = function updateTooltipState() {\n _this2.updateText(_this2.currentTarget, function () {\n if (_this2.props.autoZIndex && !ZIndexUtils.get(_this2.containerEl)) {\n ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact.autoZIndex, _this2.props.baseZIndex || PrimeReact.zIndex['tooltip']);\n }\n\n _this2.containerEl.style.left = '';\n _this2.containerEl.style.top = '';\n\n if (_this2.isMouseTrack(_this2.currentTarget) && !_this2.containerSize) {\n _this2.containerSize = {\n width: DomHandler.getOuterWidth(_this2.containerEl),\n height: DomHandler.getOuterHeight(_this2.containerEl)\n };\n }\n\n _this2.align(_this2.currentTarget, {\n x: e.pageX,\n y: e.pageY\n });\n });\n };\n\n if (this.state.visible) {\n this.applyDelay('updateDelay', updateTooltipState);\n } else {\n this.sendCallback(this.props.onBeforeShow, {\n originalEvent: e,\n target: this.currentTarget\n });\n this.applyDelay('showDelay', function () {\n _this2.setState({\n visible: true,\n position: _this2.getPosition(_this2.currentTarget)\n }, function () {\n updateTooltipState();\n\n _this2.sendCallback(_this2.props.onShow, {\n originalEvent: e,\n target: _this2.currentTarget\n });\n });\n\n _this2.bindDocumentResizeListener();\n\n _this2.bindScrollListener();\n\n DomHandler.addClass(_this2.currentTarget, _this2.getTargetOption(_this2.currentTarget, 'classname'));\n });\n }\n }\n }, {\n key: \"hide\",\n value: function hide(e) {\n var _this3 = this;\n\n this.clearTimeouts();\n\n if (this.state.visible) {\n DomHandler.removeClass(this.currentTarget, this.getTargetOption(this.currentTarget, 'classname'));\n this.sendCallback(this.props.onBeforeHide, {\n originalEvent: e,\n target: this.currentTarget\n });\n this.applyDelay('hideDelay', function () {\n ZIndexUtils.clear(_this3.containerEl);\n DomHandler.removeClass(_this3.containerEl, 'p-tooltip-active');\n\n if (!_this3.isAutoHide() && _this3.allowHide === false) {\n return;\n }\n\n _this3.setState({\n visible: false,\n position: _this3.props.position\n }, function () {\n if (_this3.tooltipTextEl) {\n ReactDOM.unmountComponentAtNode(_this3.tooltipTextEl);\n }\n\n _this3.unbindDocumentResizeListener();\n\n _this3.unbindScrollListener();\n\n _this3.currentTarget = null;\n _this3.scrollHandler = null;\n _this3.containerSize = null;\n _this3.allowHide = true;\n\n _this3.sendCallback(_this3.props.onHide, {\n originalEvent: e,\n target: _this3.currentTarget\n });\n });\n });\n }\n }\n }, {\n key: \"align\",\n value: function align(target, coordinate) {\n var _this4 = this;\n\n var left = 0,\n top = 0;\n\n if (this.isMouseTrack(target) && coordinate) {\n var containerSize = {\n width: DomHandler.getOuterWidth(this.containerEl),\n height: DomHandler.getOuterHeight(this.containerEl)\n };\n left = coordinate.x;\n top = coordinate.y;\n\n var _this$getMouseTrackPo = this.getMouseTrackPosition(target),\n mouseTrackTop = _this$getMouseTrackPo.top,\n mouseTrackLeft = _this$getMouseTrackPo.left;\n\n switch (this.state.position) {\n case 'left':\n left -= containerSize.width + mouseTrackLeft;\n top -= containerSize.height / 2 - mouseTrackTop;\n break;\n\n case 'right':\n left += mouseTrackLeft;\n top -= containerSize.height / 2 - mouseTrackTop;\n break;\n\n case 'top':\n left -= containerSize.width / 2 - mouseTrackLeft;\n top -= containerSize.height + mouseTrackTop;\n break;\n\n case 'bottom':\n left -= containerSize.width / 2 - mouseTrackLeft;\n top += mouseTrackTop;\n break;\n }\n\n if (left <= 0 || this.containerSize.width > containerSize.width) {\n this.containerEl.style.left = '0px';\n this.containerEl.style.right = window.innerWidth - containerSize.width - left + 'px';\n } else {\n this.containerEl.style.right = '';\n this.containerEl.style.left = left + 'px';\n }\n\n this.containerEl.style.top = top + 'px';\n DomHandler.addClass(this.containerEl, 'p-tooltip-active');\n } else {\n var pos = DomHandler.findCollisionPosition(this.state.position);\n var my = this.getTargetOption(target, 'my') || this.props.my || pos.my;\n var at = this.getTargetOption(target, 'at') || this.props.at || pos.at;\n this.containerEl.style.padding = '0px';\n DomHandler.flipfitCollision(this.containerEl, target, my, at, function (currentPosition) {\n var _currentPosition$at = currentPosition.at,\n atX = _currentPosition$at.x,\n atY = _currentPosition$at.y;\n var myX = currentPosition.my.x;\n var position = _this4.props.at ? atX !== 'center' && atX !== myX ? atX : atY : currentPosition.at[\"\".concat(pos.axis)];\n _this4.containerEl.style.padding = '';\n\n _this4.setState({\n position: position\n }, function () {\n _this4.updateContainerPosition();\n\n DomHandler.addClass(_this4.containerEl, 'p-tooltip-active');\n });\n });\n }\n }\n }, {\n key: \"updateContainerPosition\",\n value: function updateContainerPosition() {\n if (this.containerEl) {\n var style = getComputedStyle(this.containerEl);\n if (this.state.position === 'left') this.containerEl.style.left = parseFloat(style.left) - parseFloat(style.paddingLeft) * 2 + 'px';else if (this.state.position === 'top') this.containerEl.style.top = parseFloat(style.top) - parseFloat(style.paddingTop) * 2 + 'px';\n }\n }\n }, {\n key: \"onMouseEnter\",\n value: function onMouseEnter() {\n if (!this.isAutoHide()) {\n this.allowHide = false;\n }\n }\n }, {\n key: \"onMouseLeave\",\n value: function onMouseLeave(e) {\n if (!this.isAutoHide()) {\n this.allowHide = true;\n this.hide(e);\n }\n }\n }, {\n key: \"bindDocumentResizeListener\",\n value: function bindDocumentResizeListener() {\n var _this5 = this;\n\n this.documentResizeListener = function (e) {\n if (!DomHandler.isTouchDevice()) {\n _this5.hide(e);\n }\n };\n\n window.addEventListener('resize', this.documentResizeListener);\n }\n }, {\n key: \"unbindDocumentResizeListener\",\n value: function unbindDocumentResizeListener() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this6 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.currentTarget, function (e) {\n if (_this6.state.visible) {\n _this6.hide(e);\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: \"bindTargetEvent\",\n value: function bindTargetEvent(target) {\n if (target) {\n var _this$getEvents = this.getEvents(target),\n showEvent = _this$getEvents.showEvent,\n hideEvent = _this$getEvents.hideEvent;\n\n var currentTarget = this.getTarget(target);\n currentTarget.addEventListener(showEvent, this.show);\n currentTarget.addEventListener(hideEvent, this.hide);\n }\n }\n }, {\n key: \"unbindTargetEvent\",\n value: function unbindTargetEvent(target) {\n if (target) {\n var _this$getEvents2 = this.getEvents(target),\n showEvent = _this$getEvents2.showEvent,\n hideEvent = _this$getEvents2.hideEvent;\n\n var currentTarget = this.getTarget(target);\n currentTarget.removeEventListener(showEvent, this.show);\n currentTarget.removeEventListener(hideEvent, this.hide);\n }\n }\n }, {\n key: \"applyDelay\",\n value: function applyDelay(delayProp, callback) {\n this.clearTimeouts();\n var delay = this.getTargetOption(this.currentTarget, delayProp.toLowerCase()) || this.props[delayProp];\n\n if (!!delay) {\n this[\"\".concat(delayProp, \"Timeout\")] = setTimeout(function () {\n return callback();\n }, delay);\n } else {\n callback();\n }\n }\n }, {\n key: \"sendCallback\",\n value: function sendCallback(callback) {\n if (callback) {\n for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n callback.apply(void 0, params);\n }\n }\n }, {\n key: \"clearTimeouts\",\n value: function clearTimeouts() {\n clearTimeout(this.showDelayTimeout);\n clearTimeout(this.updateDelayTimeout);\n clearTimeout(this.hideDelayTimeout);\n }\n }, {\n key: \"getTarget\",\n value: function getTarget(target) {\n if (target) {\n if (this.isShowOnDisabled(target)) {\n var wrapper = document.createElement('span');\n target.parentNode.insertBefore(wrapper, target);\n wrapper.appendChild(target);\n return wrapper;\n }\n\n return target;\n }\n\n return null;\n }\n }, {\n key: \"updateTargetEvents\",\n value: function updateTargetEvents(target) {\n this.unloadTargetEvents(target);\n this.loadTargetEvents(target);\n }\n }, {\n key: \"loadTargetEvents\",\n value: function loadTargetEvents(target) {\n this.setTargetEventOperations(target || this.props.target, 'bindTargetEvent');\n }\n }, {\n key: \"unloadTargetEvents\",\n value: function unloadTargetEvents(target) {\n this.setTargetEventOperations(target || this.props.target, 'unbindTargetEvent');\n }\n }, {\n key: \"setTargetEventOperations\",\n value: function setTargetEventOperations(target, operation) {\n var _this7 = this;\n\n if (target) {\n if (DomHandler.isElement(target)) {\n this[operation](target);\n } else {\n var setEvent = function setEvent(target) {\n var element = DomHandler.find(document, target);\n element.forEach(function (el) {\n _this7[operation](el);\n });\n };\n\n if (target instanceof Array) {\n target.forEach(function (t) {\n setEvent(t);\n });\n } else {\n setEvent(target);\n }\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.target) {\n this.loadTargetEvents();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this8 = this;\n\n if (prevProps.target !== this.props.target) {\n this.unloadTargetEvents(prevProps.target);\n this.loadTargetEvents();\n }\n\n if (this.state.visible) {\n if (prevProps.content !== this.props.content) {\n this.applyDelay('updateDelay', function () {\n _this8.updateText(_this8.currentTarget, function () {\n _this8.align(_this8.currentTarget);\n });\n });\n }\n\n if (this.currentTarget && this.isDisabled(this.currentTarget)) {\n this.hide();\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.clearTimeouts();\n this.unbindDocumentResizeListener();\n this.unloadTargetEvents();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n ZIndexUtils.clear(this.containerEl);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this9 = this;\n\n var tooltipClassName = classNames('p-tooltip p-component', _defineProperty({}, \"p-tooltip-\".concat(this.state.position), true), this.props.className);\n var isTargetContentEmpty = this.isTargetContentEmpty(this.currentTarget);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n ref: function ref(el) {\n return _this9.containerEl = el;\n },\n className: tooltipClassName,\n style: this.props.style,\n role: \"tooltip\",\n \"aria-hidden\": this.state.visible,\n onMouseEnter: this.onMouseEnter,\n onMouseLeave: this.onMouseLeave\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-tooltip-arrow\"\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this9.tooltipTextEl = el;\n },\n className: \"p-tooltip-text\"\n }, isTargetContentEmpty && this.props.children));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.state.visible) {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo,\n visible: true\n });\n }\n\n return null;\n }\n }]);\n\n return Tooltip;\n}(Component);\n\n_defineProperty(Tooltip, \"defaultProps\", {\n id: null,\n target: null,\n content: null,\n disabled: false,\n className: null,\n style: null,\n appendTo: null,\n position: 'right',\n my: null,\n at: null,\n event: null,\n showEvent: 'mouseenter',\n hideEvent: 'mouseleave',\n autoZIndex: true,\n baseZIndex: 0,\n mouseTrack: false,\n mouseTrackTop: 5,\n mouseTrackLeft: 5,\n showDelay: 0,\n updateDelay: 0,\n hideDelay: 0,\n autoHide: true,\n showOnDisabled: false,\n onBeforeShow: null,\n onBeforeHide: null,\n onShow: null,\n onHide: null\n});\n\nexport { Tooltip, tip };","map":{"version":3,"names":["React","Component","ReactDOM","DomHandler","ZIndexUtils","ConnectedOverlayScrollHandler","classNames","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","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","source","forEach","getOwnPropertyDescriptors","defineProperties","tip","appendTo","document","body","tooltipWrapper","createDocumentFragment","appendChild","options","tooltipEl","createElement","Tooltip","render","updateTooltip","newProps","cloneElement","destroy","unmountComponentAtNode","updateContent","newContent","console","warn","content","update","_Component","_super","_this","state","visible","position","show","bind","hide","onMouseEnter","onMouseLeave","isTargetContentEmpty","getTargetOption","isContentEmpty","children","isMouseTrack","mouseTrack","isDisabled","hasTargetOption","disabled","isShowOnDisabled","showOnDisabled","isAutoHide","currentTarget","autoHide","option","concat","getAttribute","hasAttribute","getEvents","showEvent","hideEvent","event","getPosition","getMouseTrackPosition","top","mouseTrackTop","left","mouseTrackLeft","updateText","callback","tooltipTextEl","innerHTML","createTextNode","_this2","empty","firstChild","updateTooltipState","autoZIndex","get","containerEl","set","baseZIndex","zIndex","style","containerSize","width","getOuterWidth","height","getOuterHeight","align","x","pageX","y","pageY","applyDelay","sendCallback","onBeforeShow","originalEvent","setState","onShow","bindDocumentResizeListener","bindScrollListener","addClass","_this3","clearTimeouts","removeClass","onBeforeHide","clear","allowHide","unbindDocumentResizeListener","unbindScrollListener","scrollHandler","onHide","coordinate","_this4","_this$getMouseTrackPo","right","window","innerWidth","pos","findCollisionPosition","my","at","padding","flipfitCollision","currentPosition","_currentPosition$at","atX","atY","myX","axis","updateContainerPosition","getComputedStyle","parseFloat","paddingLeft","paddingTop","_this5","documentResizeListener","isTouchDevice","addEventListener","removeEventListener","_this6","bindTargetEvent","_this$getEvents","getTarget","unbindTargetEvent","_this$getEvents2","delayProp","delay","toLowerCase","setTimeout","_len","params","Array","_key","clearTimeout","showDelayTimeout","updateDelayTimeout","hideDelayTimeout","wrapper","parentNode","insertBefore","updateTargetEvents","unloadTargetEvents","loadTargetEvents","setTargetEventOperations","operation","_this7","isElement","setEvent","element","find","el","t","componentDidMount","componentDidUpdate","prevProps","prevState","_this8","componentWillUnmount","renderElement","_this9","tooltipClassName","className","id","ref","role","showDelay","updateDelay","hideDelay"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/tooltip/tooltip.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, classNames } from 'primereact/utils';\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; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction tip(props) {\n var appendTo = props.appendTo || document.body;\n var tooltipWrapper = document.createDocumentFragment();\n DomHandler.appendChild(tooltipWrapper, appendTo);\n props = _objectSpread(_objectSpread({}, props), props.options);\n var tooltipEl = /*#__PURE__*/React.createElement(Tooltip, props);\n ReactDOM.render(tooltipEl, tooltipWrapper);\n\n var updateTooltip = function updateTooltip(newProps) {\n props = _objectSpread(_objectSpread({}, props), newProps);\n ReactDOM.render( /*#__PURE__*/React.cloneElement(tooltipEl, props), tooltipWrapper);\n };\n\n return {\n destroy: function destroy() {\n ReactDOM.unmountComponentAtNode(tooltipWrapper);\n },\n updateContent: function updateContent(newContent) {\n console.warn(\"The 'updateContent' method has been deprecated on Tooltip. Use update(newProps) method.\");\n updateTooltip({\n content: newContent\n });\n },\n update: function update(newProps) {\n updateTooltip(newProps);\n }\n };\n}\nvar Tooltip = /*#__PURE__*/function (_Component) {\n _inherits(Tooltip, _Component);\n\n var _super = _createSuper(Tooltip);\n\n function Tooltip(props) {\n var _this;\n\n _classCallCheck(this, Tooltip);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false,\n position: _this.props.position\n };\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.onMouseEnter = _this.onMouseEnter.bind(_assertThisInitialized(_this));\n _this.onMouseLeave = _this.onMouseLeave.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Tooltip, [{\n key: \"isTargetContentEmpty\",\n value: function isTargetContentEmpty(target) {\n return !(this.props.content || this.getTargetOption(target, 'tooltip'));\n }\n }, {\n key: \"isContentEmpty\",\n value: function isContentEmpty(target) {\n return !(this.props.content || this.getTargetOption(target, 'tooltip') || this.props.children);\n }\n }, {\n key: \"isMouseTrack\",\n value: function isMouseTrack(target) {\n return this.getTargetOption(target, 'mousetrack') || this.props.mouseTrack;\n }\n }, {\n key: \"isDisabled\",\n value: function isDisabled(target) {\n return this.getTargetOption(target, 'disabled') === 'true' || this.hasTargetOption(target, 'disabled') || this.props.disabled;\n }\n }, {\n key: \"isShowOnDisabled\",\n value: function isShowOnDisabled(target) {\n return this.getTargetOption(target, 'showondisabled') || this.props.showOnDisabled;\n }\n }, {\n key: \"isAutoHide\",\n value: function isAutoHide() {\n return this.getTargetOption(this.currentTarget, 'autohide') || this.props.autoHide;\n }\n }, {\n key: \"getTargetOption\",\n value: function getTargetOption(target, option) {\n if (this.hasTargetOption(target, \"data-pr-\".concat(option))) {\n return target.getAttribute(\"data-pr-\".concat(option));\n }\n\n return null;\n }\n }, {\n key: \"hasTargetOption\",\n value: function hasTargetOption(target, option) {\n return target && target.hasAttribute(option);\n }\n }, {\n key: \"getEvents\",\n value: function getEvents(target) {\n var showEvent = this.getTargetOption(target, 'showevent') || this.props.showEvent;\n var hideEvent = this.getTargetOption(target, 'hideevent') || this.props.hideEvent;\n\n if (this.isMouseTrack(target)) {\n showEvent = 'mousemove';\n hideEvent = 'mouseleave';\n } else {\n var event = this.getTargetOption(target, 'event') || this.props.event;\n\n if (event === 'focus') {\n showEvent = 'focus';\n hideEvent = 'blur';\n }\n }\n\n return {\n showEvent: showEvent,\n hideEvent: hideEvent\n };\n }\n }, {\n key: \"getPosition\",\n value: function getPosition(target) {\n return this.getTargetOption(target, 'position') || this.state.position;\n }\n }, {\n key: \"getMouseTrackPosition\",\n value: function getMouseTrackPosition(target) {\n var top = this.getTargetOption(target, 'mousetracktop') || this.props.mouseTrackTop;\n var left = this.getTargetOption(target, 'mousetrackleft') || this.props.mouseTrackLeft;\n return {\n top: top,\n left: left\n };\n }\n }, {\n key: \"updateText\",\n value: function updateText(target, callback) {\n if (this.tooltipTextEl) {\n var content = this.getTargetOption(target, 'tooltip') || this.props.content;\n\n if (content) {\n this.tooltipTextEl.innerHTML = ''; // remove children\n\n this.tooltipTextEl.appendChild(document.createTextNode(content));\n callback();\n } else if (this.props.children) {\n callback();\n }\n }\n }\n }, {\n key: \"show\",\n value: function show(e) {\n var _this2 = this;\n\n this.currentTarget = e.currentTarget;\n var disabled = this.isDisabled(this.currentTarget);\n var empty = this.isContentEmpty(this.isShowOnDisabled(this.currentTarget) && disabled ? this.currentTarget.firstChild : this.currentTarget);\n\n if (empty || disabled) {\n return;\n }\n\n var updateTooltipState = function updateTooltipState() {\n _this2.updateText(_this2.currentTarget, function () {\n if (_this2.props.autoZIndex && !ZIndexUtils.get(_this2.containerEl)) {\n ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact.autoZIndex, _this2.props.baseZIndex || PrimeReact.zIndex['tooltip']);\n }\n\n _this2.containerEl.style.left = '';\n _this2.containerEl.style.top = '';\n\n if (_this2.isMouseTrack(_this2.currentTarget) && !_this2.containerSize) {\n _this2.containerSize = {\n width: DomHandler.getOuterWidth(_this2.containerEl),\n height: DomHandler.getOuterHeight(_this2.containerEl)\n };\n }\n\n _this2.align(_this2.currentTarget, {\n x: e.pageX,\n y: e.pageY\n });\n });\n };\n\n if (this.state.visible) {\n this.applyDelay('updateDelay', updateTooltipState);\n } else {\n this.sendCallback(this.props.onBeforeShow, {\n originalEvent: e,\n target: this.currentTarget\n });\n this.applyDelay('showDelay', function () {\n _this2.setState({\n visible: true,\n position: _this2.getPosition(_this2.currentTarget)\n }, function () {\n updateTooltipState();\n\n _this2.sendCallback(_this2.props.onShow, {\n originalEvent: e,\n target: _this2.currentTarget\n });\n });\n\n _this2.bindDocumentResizeListener();\n\n _this2.bindScrollListener();\n\n DomHandler.addClass(_this2.currentTarget, _this2.getTargetOption(_this2.currentTarget, 'classname'));\n });\n }\n }\n }, {\n key: \"hide\",\n value: function hide(e) {\n var _this3 = this;\n\n this.clearTimeouts();\n\n if (this.state.visible) {\n DomHandler.removeClass(this.currentTarget, this.getTargetOption(this.currentTarget, 'classname'));\n this.sendCallback(this.props.onBeforeHide, {\n originalEvent: e,\n target: this.currentTarget\n });\n this.applyDelay('hideDelay', function () {\n ZIndexUtils.clear(_this3.containerEl);\n DomHandler.removeClass(_this3.containerEl, 'p-tooltip-active');\n\n if (!_this3.isAutoHide() && _this3.allowHide === false) {\n return;\n }\n\n _this3.setState({\n visible: false,\n position: _this3.props.position\n }, function () {\n if (_this3.tooltipTextEl) {\n ReactDOM.unmountComponentAtNode(_this3.tooltipTextEl);\n }\n\n _this3.unbindDocumentResizeListener();\n\n _this3.unbindScrollListener();\n\n _this3.currentTarget = null;\n _this3.scrollHandler = null;\n _this3.containerSize = null;\n _this3.allowHide = true;\n\n _this3.sendCallback(_this3.props.onHide, {\n originalEvent: e,\n target: _this3.currentTarget\n });\n });\n });\n }\n }\n }, {\n key: \"align\",\n value: function align(target, coordinate) {\n var _this4 = this;\n\n var left = 0,\n top = 0;\n\n if (this.isMouseTrack(target) && coordinate) {\n var containerSize = {\n width: DomHandler.getOuterWidth(this.containerEl),\n height: DomHandler.getOuterHeight(this.containerEl)\n };\n left = coordinate.x;\n top = coordinate.y;\n\n var _this$getMouseTrackPo = this.getMouseTrackPosition(target),\n mouseTrackTop = _this$getMouseTrackPo.top,\n mouseTrackLeft = _this$getMouseTrackPo.left;\n\n switch (this.state.position) {\n case 'left':\n left -= containerSize.width + mouseTrackLeft;\n top -= containerSize.height / 2 - mouseTrackTop;\n break;\n\n case 'right':\n left += mouseTrackLeft;\n top -= containerSize.height / 2 - mouseTrackTop;\n break;\n\n case 'top':\n left -= containerSize.width / 2 - mouseTrackLeft;\n top -= containerSize.height + mouseTrackTop;\n break;\n\n case 'bottom':\n left -= containerSize.width / 2 - mouseTrackLeft;\n top += mouseTrackTop;\n break;\n }\n\n if (left <= 0 || this.containerSize.width > containerSize.width) {\n this.containerEl.style.left = '0px';\n this.containerEl.style.right = window.innerWidth - containerSize.width - left + 'px';\n } else {\n this.containerEl.style.right = '';\n this.containerEl.style.left = left + 'px';\n }\n\n this.containerEl.style.top = top + 'px';\n DomHandler.addClass(this.containerEl, 'p-tooltip-active');\n } else {\n var pos = DomHandler.findCollisionPosition(this.state.position);\n var my = this.getTargetOption(target, 'my') || this.props.my || pos.my;\n var at = this.getTargetOption(target, 'at') || this.props.at || pos.at;\n this.containerEl.style.padding = '0px';\n DomHandler.flipfitCollision(this.containerEl, target, my, at, function (currentPosition) {\n var _currentPosition$at = currentPosition.at,\n atX = _currentPosition$at.x,\n atY = _currentPosition$at.y;\n var myX = currentPosition.my.x;\n var position = _this4.props.at ? atX !== 'center' && atX !== myX ? atX : atY : currentPosition.at[\"\".concat(pos.axis)];\n _this4.containerEl.style.padding = '';\n\n _this4.setState({\n position: position\n }, function () {\n _this4.updateContainerPosition();\n\n DomHandler.addClass(_this4.containerEl, 'p-tooltip-active');\n });\n });\n }\n }\n }, {\n key: \"updateContainerPosition\",\n value: function updateContainerPosition() {\n if (this.containerEl) {\n var style = getComputedStyle(this.containerEl);\n if (this.state.position === 'left') this.containerEl.style.left = parseFloat(style.left) - parseFloat(style.paddingLeft) * 2 + 'px';else if (this.state.position === 'top') this.containerEl.style.top = parseFloat(style.top) - parseFloat(style.paddingTop) * 2 + 'px';\n }\n }\n }, {\n key: \"onMouseEnter\",\n value: function onMouseEnter() {\n if (!this.isAutoHide()) {\n this.allowHide = false;\n }\n }\n }, {\n key: \"onMouseLeave\",\n value: function onMouseLeave(e) {\n if (!this.isAutoHide()) {\n this.allowHide = true;\n this.hide(e);\n }\n }\n }, {\n key: \"bindDocumentResizeListener\",\n value: function bindDocumentResizeListener() {\n var _this5 = this;\n\n this.documentResizeListener = function (e) {\n if (!DomHandler.isTouchDevice()) {\n _this5.hide(e);\n }\n };\n\n window.addEventListener('resize', this.documentResizeListener);\n }\n }, {\n key: \"unbindDocumentResizeListener\",\n value: function unbindDocumentResizeListener() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this6 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.currentTarget, function (e) {\n if (_this6.state.visible) {\n _this6.hide(e);\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: \"bindTargetEvent\",\n value: function bindTargetEvent(target) {\n if (target) {\n var _this$getEvents = this.getEvents(target),\n showEvent = _this$getEvents.showEvent,\n hideEvent = _this$getEvents.hideEvent;\n\n var currentTarget = this.getTarget(target);\n currentTarget.addEventListener(showEvent, this.show);\n currentTarget.addEventListener(hideEvent, this.hide);\n }\n }\n }, {\n key: \"unbindTargetEvent\",\n value: function unbindTargetEvent(target) {\n if (target) {\n var _this$getEvents2 = this.getEvents(target),\n showEvent = _this$getEvents2.showEvent,\n hideEvent = _this$getEvents2.hideEvent;\n\n var currentTarget = this.getTarget(target);\n currentTarget.removeEventListener(showEvent, this.show);\n currentTarget.removeEventListener(hideEvent, this.hide);\n }\n }\n }, {\n key: \"applyDelay\",\n value: function applyDelay(delayProp, callback) {\n this.clearTimeouts();\n var delay = this.getTargetOption(this.currentTarget, delayProp.toLowerCase()) || this.props[delayProp];\n\n if (!!delay) {\n this[\"\".concat(delayProp, \"Timeout\")] = setTimeout(function () {\n return callback();\n }, delay);\n } else {\n callback();\n }\n }\n }, {\n key: \"sendCallback\",\n value: function sendCallback(callback) {\n if (callback) {\n for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n callback.apply(void 0, params);\n }\n }\n }, {\n key: \"clearTimeouts\",\n value: function clearTimeouts() {\n clearTimeout(this.showDelayTimeout);\n clearTimeout(this.updateDelayTimeout);\n clearTimeout(this.hideDelayTimeout);\n }\n }, {\n key: \"getTarget\",\n value: function getTarget(target) {\n if (target) {\n if (this.isShowOnDisabled(target)) {\n var wrapper = document.createElement('span');\n target.parentNode.insertBefore(wrapper, target);\n wrapper.appendChild(target);\n return wrapper;\n }\n\n return target;\n }\n\n return null;\n }\n }, {\n key: \"updateTargetEvents\",\n value: function updateTargetEvents(target) {\n this.unloadTargetEvents(target);\n this.loadTargetEvents(target);\n }\n }, {\n key: \"loadTargetEvents\",\n value: function loadTargetEvents(target) {\n this.setTargetEventOperations(target || this.props.target, 'bindTargetEvent');\n }\n }, {\n key: \"unloadTargetEvents\",\n value: function unloadTargetEvents(target) {\n this.setTargetEventOperations(target || this.props.target, 'unbindTargetEvent');\n }\n }, {\n key: \"setTargetEventOperations\",\n value: function setTargetEventOperations(target, operation) {\n var _this7 = this;\n\n if (target) {\n if (DomHandler.isElement(target)) {\n this[operation](target);\n } else {\n var setEvent = function setEvent(target) {\n var element = DomHandler.find(document, target);\n element.forEach(function (el) {\n _this7[operation](el);\n });\n };\n\n if (target instanceof Array) {\n target.forEach(function (t) {\n setEvent(t);\n });\n } else {\n setEvent(target);\n }\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.target) {\n this.loadTargetEvents();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this8 = this;\n\n if (prevProps.target !== this.props.target) {\n this.unloadTargetEvents(prevProps.target);\n this.loadTargetEvents();\n }\n\n if (this.state.visible) {\n if (prevProps.content !== this.props.content) {\n this.applyDelay('updateDelay', function () {\n _this8.updateText(_this8.currentTarget, function () {\n _this8.align(_this8.currentTarget);\n });\n });\n }\n\n if (this.currentTarget && this.isDisabled(this.currentTarget)) {\n this.hide();\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.clearTimeouts();\n this.unbindDocumentResizeListener();\n this.unloadTargetEvents();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n ZIndexUtils.clear(this.containerEl);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this9 = this;\n\n var tooltipClassName = classNames('p-tooltip p-component', _defineProperty({}, \"p-tooltip-\".concat(this.state.position), true), this.props.className);\n var isTargetContentEmpty = this.isTargetContentEmpty(this.currentTarget);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n ref: function ref(el) {\n return _this9.containerEl = el;\n },\n className: tooltipClassName,\n style: this.props.style,\n role: \"tooltip\",\n \"aria-hidden\": this.state.visible,\n onMouseEnter: this.onMouseEnter,\n onMouseLeave: this.onMouseLeave\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-tooltip-arrow\"\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this9.tooltipTextEl = el;\n },\n className: \"p-tooltip-text\"\n }, isTargetContentEmpty && this.props.children));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.state.visible) {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo,\n visible: true\n });\n }\n\n return null;\n }\n }]);\n\n return Tooltip;\n}(Component);\n\n_defineProperty(Tooltip, \"defaultProps\", {\n id: null,\n target: null,\n content: null,\n disabled: false,\n className: null,\n style: null,\n appendTo: null,\n position: 'right',\n my: null,\n at: null,\n event: null,\n showEvent: 'mouseenter',\n hideEvent: 'mouseleave',\n autoZIndex: true,\n baseZIndex: 0,\n mouseTrack: false,\n mouseTrackTop: 5,\n mouseTrackLeft: 5,\n showDelay: 0,\n updateDelay: 0,\n hideDelay: 0,\n autoHide: true,\n showOnDisabled: false,\n onBeforeShow: null,\n onBeforeHide: null,\n onShow: null,\n onHide: null\n});\n\nexport { Tooltip, tip };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,6BAAlC,EAAiEC,UAAjE,QAAmF,kBAAnF;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,S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