{"ast":null,"code":"import React, { Component } from 'react';\nimport { UniqueComponentId, DomHandler, ZIndexUtils, classNames, ObjectUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport { Portal } from 'primereact/portal';\nimport PrimeReact from 'primereact/api';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\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 Dialog = /*#__PURE__*/function (_Component) {\n _inherits(Dialog, _Component);\n\n var _super = _createSuper(Dialog);\n\n function Dialog(props) {\n var _this;\n\n _classCallCheck(this, Dialog);\n\n _this = _super.call(this, props);\n _this.state = {\n id: props.id,\n maskVisible: false,\n visible: false\n };\n\n if (!_this.props.onMaximize) {\n _this.state.maximized = props.maximized;\n }\n\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n _this.toggleMaximize = _this.toggleMaximize.bind(_assertThisInitialized(_this));\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onResizeStart = _this.onResizeStart.bind(_assertThisInitialized(_this));\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExiting = _this.onExiting.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.attributeSelector = UniqueComponentId();\n _this.dialogRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Dialog, [{\n key: \"onClose\",\n value: function onClose(event) {\n this.props.onHide();\n event.preventDefault();\n }\n }, {\n key: \"focus\",\n value: function focus() {\n var activeElement = document.activeElement;\n var isActiveElementInDialog = activeElement && this.dialogRef && this.dialogRef.current.contains(activeElement);\n\n if (!isActiveElementInDialog && this.props.closable && this.props.showHeader) {\n this.closeElement.focus();\n }\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick(event) {\n if (this.props.dismissableMask && this.props.modal && this.mask === event.target) {\n this.onClose(event);\n }\n\n this.props.onMaskClick && this.props.onMaskClick(event);\n }\n }, {\n key: \"toggleMaximize\",\n value: function toggleMaximize(event) {\n var maximized = !this.maximized;\n\n if (this.props.onMaximize) {\n this.props.onMaximize({\n originalEvent: event,\n maximized: maximized\n });\n } else {\n this.setState({\n maximized: maximized\n }, this.changeScrollOnMaximizable);\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n if (DomHandler.hasClass(event.target, 'p-dialog-header-icon') || DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {\n return;\n }\n\n if (this.props.draggable) {\n this.dragging = true;\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n this.dialogEl.style.margin = '0';\n DomHandler.addClass(document.body, 'p-unselectable-text');\n\n if (this.props.onDragStart) {\n this.props.onDragStart(event);\n }\n }\n }\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n if (this.dragging) {\n var width = DomHandler.getOuterWidth(this.dialogEl);\n var height = DomHandler.getOuterHeight(this.dialogEl);\n var deltaX = event.pageX - this.lastPageX;\n var deltaY = event.pageY - this.lastPageY;\n var offset = this.dialogEl.getBoundingClientRect();\n var leftPos = offset.left + deltaX;\n var topPos = offset.top + deltaY;\n var viewport = DomHandler.getViewport();\n this.dialogEl.style.position = 'fixed';\n\n if (this.props.keepInViewport) {\n if (leftPos >= this.props.minX && leftPos + width < viewport.width) {\n this.lastPageX = event.pageX;\n this.dialogEl.style.left = leftPos + 'px';\n }\n\n if (topPos >= this.props.minY && topPos + height < viewport.height) {\n this.lastPageY = event.pageY;\n this.dialogEl.style.top = topPos + 'px';\n }\n } else {\n this.lastPageX = event.pageX;\n this.dialogEl.style.left = leftPos + 'px';\n this.lastPageY = event.pageY;\n this.dialogEl.style.top = topPos + 'px';\n }\n\n if (this.props.onDrag) {\n this.props.onDrag(event);\n }\n }\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n if (this.dragging) {\n this.dragging = false;\n DomHandler.removeClass(document.body, 'p-unselectable-text');\n\n if (this.props.onDragEnd) {\n this.props.onDragEnd(event);\n }\n }\n }\n }, {\n key: \"onResizeStart\",\n value: function onResizeStart(event) {\n if (this.props.resizable) {\n this.resizing = true;\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n DomHandler.addClass(document.body, 'p-unselectable-text');\n\n if (this.props.onResizeStart) {\n this.props.onResizeStart(event);\n }\n }\n }\n }, {\n key: \"convertToPx\",\n value: function convertToPx(value, property, viewport) {\n !viewport && (viewport = DomHandler.getViewport());\n var val = parseInt(value);\n\n if (/^(\\d+|(\\.\\d+))(\\.\\d+)?%$/.test(value)) {\n return val * (viewport[property] / 100);\n }\n\n return val;\n }\n }, {\n key: \"onResize\",\n value: function onResize(event) {\n if (this.resizing) {\n var deltaX = event.pageX - this.lastPageX;\n var deltaY = event.pageY - this.lastPageY;\n var width = DomHandler.getOuterWidth(this.dialogEl);\n var height = DomHandler.getOuterHeight(this.dialogEl);\n var offset = this.dialogEl.getBoundingClientRect();\n var viewport = DomHandler.getViewport();\n var newWidth = width + deltaX;\n var newHeight = height + deltaY;\n var minWidth = this.convertToPx(this.dialogEl.style.minWidth, 'width', viewport);\n var minHeight = this.convertToPx(this.dialogEl.style.minHeight, 'height', viewport);\n var hasBeenDragged = !parseInt(this.dialogEl.style.top) || !parseInt(this.dialogEl.style.left);\n\n if (hasBeenDragged) {\n newWidth += deltaX;\n newHeight += deltaY;\n }\n\n if ((!minWidth || newWidth > minWidth) && offset.left + newWidth < viewport.width) {\n this.dialogEl.style.width = newWidth + 'px';\n }\n\n if ((!minHeight || newHeight > minHeight) && offset.top + newHeight < viewport.height) {\n this.dialogEl.style.height = newHeight + 'px';\n }\n\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n\n if (this.props.onResize) {\n this.props.onResize(event);\n }\n }\n }\n }, {\n key: \"onResizeEnd\",\n value: function onResizeEnd(event) {\n if (this.resizing) {\n this.resizing = false;\n DomHandler.removeClass(document.body, 'p-unselectable-text');\n\n if (this.props.onResizeEnd) {\n this.props.onResizeEnd(event);\n }\n }\n }\n }, {\n key: \"resetPosition\",\n value: function resetPosition() {\n this.dialogEl.style.position = '';\n this.dialogEl.style.left = '';\n this.dialogEl.style.top = '';\n this.dialogEl.style.margin = '';\n }\n }, {\n key: \"getPositionClass\",\n value: function getPositionClass() {\n var _this2 = this;\n\n var positions = ['center', 'left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];\n var pos = positions.find(function (item) {\n return item === _this2.props.position || item.replace('-', '') === _this2.props.position;\n });\n return pos ? \"p-dialog-\".concat(pos) : '';\n }\n }, {\n key: \"maximized\",\n get: function get() {\n return this.props.onMaximize ? this.props.maximized : this.state.maximized;\n }\n }, {\n key: \"dialogEl\",\n get: function get() {\n return this.dialogRef.current;\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n this.dialogEl.setAttribute(this.attributeSelector, '');\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n\n if (this.props.focusOnShow) {\n this.focus();\n }\n\n this.enableDocumentSettings();\n }\n }, {\n key: \"onExiting\",\n value: function onExiting() {\n if (this.props.modal) {\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n this.dragging = false;\n ZIndexUtils.clear(this.mask);\n this.setState({\n maskVisible: false\n });\n this.disableDocumentSettings();\n }\n }, {\n key: \"enableDocumentSettings\",\n value: function enableDocumentSettings() {\n this.bindGlobalListeners();\n\n if (this.props.blockScroll || this.props.maximizable && this.maximized) {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"disableDocumentSettings\",\n value: function disableDocumentSettings() {\n this.unbindGlobalListeners();\n\n if (this.props.modal) {\n var hasBlockScroll = document.primeDialogParams && document.primeDialogParams.some(function (param) {\n return param.hasBlockScroll;\n });\n\n if (!hasBlockScroll) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n } else if (this.props.blockScroll || this.props.maximizable && this.maximized) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"bindGlobalListeners\",\n value: function bindGlobalListeners() {\n if (this.props.draggable) {\n this.bindDocumentDragListener();\n }\n\n if (this.props.resizable) {\n this.bindDocumentResizeListeners();\n }\n\n if (this.props.closable) {\n this.bindDocumentKeyDownListener();\n }\n }\n }, {\n key: \"unbindGlobalListeners\",\n value: function unbindGlobalListeners() {\n this.unbindDocumentDragListener();\n this.unbindDocumentResizeListeners();\n this.unbindDocumentKeyDownListener();\n }\n }, {\n key: \"bindDocumentDragListener\",\n value: function bindDocumentDragListener() {\n this.documentDragListener = this.onDrag.bind(this);\n this.documentDragEndListener = this.onDragEnd.bind(this);\n window.document.addEventListener('mousemove', this.documentDragListener);\n window.document.addEventListener('mouseup', this.documentDragEndListener);\n }\n }, {\n key: \"unbindDocumentDragListener\",\n value: function unbindDocumentDragListener() {\n if (this.documentDragListener && this.documentDragEndListener) {\n window.document.removeEventListener('mousemove', this.documentDragListener);\n window.document.removeEventListener('mouseup', this.documentDragEndListener);\n this.documentDragListener = null;\n this.documentDragEndListener = null;\n }\n }\n }, {\n key: \"bindDocumentResizeListeners\",\n value: function bindDocumentResizeListeners() {\n this.documentResizeListener = this.onResize.bind(this);\n this.documentResizeEndListener = this.onResizeEnd.bind(this);\n window.document.addEventListener('mousemove', this.documentResizeListener);\n window.document.addEventListener('mouseup', this.documentResizeEndListener);\n }\n }, {\n key: \"unbindDocumentResizeListeners\",\n value: function unbindDocumentResizeListeners() {\n if (this.documentResizeListener && this.documentResizeEndListener) {\n window.document.removeEventListener('mousemove', this.documentResizeListener);\n window.document.removeEventListener('mouseup', this.documentResizeEndListener);\n this.documentResizeListener = null;\n this.documentResizeEndListener = null;\n }\n }\n }, {\n key: \"bindDocumentKeyDownListener\",\n value: function bindDocumentKeyDownListener() {\n var _this3 = this;\n\n this.documentKeyDownListener = function (event) {\n var currentTarget = event.currentTarget;\n\n if (currentTarget && currentTarget.primeDialogParams) {\n var params = currentTarget.primeDialogParams;\n var paramLength = params.length;\n var dialogId = params[paramLength - 1] ? params[paramLength - 1].id : undefined;\n\n if (dialogId === _this3.state.id && _this3.props.closeOnEscape) {\n var dialog = document.getElementById(dialogId);\n\n if (event.which === 27) {\n _this3.onClose(event);\n\n event.stopImmediatePropagation();\n params.splice(paramLength - 1, 1);\n } else if (event.which === 9) {\n event.preventDefault();\n var focusableElements = DomHandler.getFocusableElements(dialog);\n\n if (focusableElements && focusableElements.length > 0) {\n if (!document.activeElement) {\n focusableElements[0].focus();\n } else {\n var focusedIndex = focusableElements.indexOf(document.activeElement);\n\n if (event.shiftKey) {\n if (focusedIndex === -1 || focusedIndex === 0) focusableElements[focusableElements.length - 1].focus();else focusableElements[focusedIndex - 1].focus();\n } else {\n if (focusedIndex === -1 || focusedIndex === focusableElements.length - 1) focusableElements[0].focus();else focusableElements[focusedIndex + 1].focus();\n }\n }\n }\n }\n }\n }\n };\n\n var newParam = {\n id: this.state.id,\n hasBlockScroll: this.props.blockScroll\n };\n document.primeDialogParams = document.primeDialogParams ? [].concat(_toConsumableArray(document.primeDialogParams), [newParam]) : [newParam];\n document.addEventListener('keydown', this.documentKeyDownListener);\n }\n }, {\n key: \"unbindDocumentKeyDownListener\",\n value: function unbindDocumentKeyDownListener() {\n var _this4 = this;\n\n if (this.documentKeyDownListener) {\n document.removeEventListener('keydown', this.documentKeyDownListener);\n document.primeDialogParams = document.primeDialogParams && document.primeDialogParams.filter(function (param) {\n return param.id !== _this4.state.id;\n });\n this.documentKeyDownListener = null;\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-dialog[\").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 var _this5 = this;\n\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n\n if (this.props.visible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);\n\n _this5.setState({\n visible: true\n });\n });\n }\n\n if (this.props.breakpoints) {\n this.createStyle();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this6 = this;\n\n if (this.props.visible && !this.state.maskVisible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this6.mask, PrimeReact.autoZIndex, _this6.props.baseZIndex || PrimeReact.zIndex['modal']);\n });\n }\n\n if (this.props.visible !== this.state.visible && this.state.maskVisible) {\n this.setState({\n visible: this.props.visible\n });\n }\n\n if (prevProps.maximized !== this.props.maximized && this.props.onMaximize) {\n this.changeScrollOnMaximizable();\n }\n }\n }, {\n key: \"changeScrollOnMaximizable\",\n value: function changeScrollOnMaximizable() {\n if (!this.props.blockScroll) {\n var funcName = this.maximized ? 'addClass' : 'removeClass';\n DomHandler[funcName](document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.disableDocumentSettings();\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n var _this7 = this;\n\n if (this.props.closable) {\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: function ref(el) {\n return _this7.closeElement = el;\n },\n type: \"button\",\n className: \"p-dialog-header-icon p-dialog-header-close p-link\",\n \"aria-label\": this.props.ariaCloseIconLabel,\n onClick: this.onClose\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-dialog-header-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderMaximizeIcon\",\n value: function renderMaximizeIcon() {\n var iconClassName = classNames('p-dialog-header-maximize-icon pi', {\n 'pi-window-maximize': !this.maximized,\n 'pi-window-minimize': this.maximized\n });\n\n if (this.props.maximizable) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-dialog-header-icon p-dialog-header-maximize p-link\",\n onClick: this.toggleMaximize\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n var _this8 = this;\n\n if (this.props.showHeader) {\n var closeIcon = this.renderCloseIcon();\n var maximizeIcon = this.renderMaximizeIcon();\n var icons = ObjectUtils.getJSXElement(this.props.icons, this.props);\n var header = ObjectUtils.getJSXElement(this.props.header, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this8.headerEl = el;\n },\n className: \"p-dialog-header\",\n onMouseDown: this.onDragStart\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id + '_header',\n className: \"p-dialog-title\"\n }, header), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-dialog-header-icons\"\n }, icons, maximizeIcon, closeIcon));\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this9 = this;\n\n var contentClassName = classNames('p-dialog-content', this.props.contentClassName);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id + '_content',\n ref: function ref(el) {\n return _this9.contentEl = el;\n },\n className: contentClassName,\n style: this.props.contentStyle\n }, this.props.children);\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n var _this10 = this;\n\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n return footer && /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this10.footerElement = el;\n },\n className: \"p-dialog-footer\"\n }, footer);\n }\n }, {\n key: \"renderResizer\",\n value: function renderResizer() {\n if (this.props.resizable) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-resizable-handle\",\n style: {\n zIndex: 90\n },\n onMouseDown: this.onResizeStart\n });\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this11 = this;\n\n var className = classNames('p-dialog p-component', this.props.className, {\n 'p-dialog-rtl': this.props.rtl,\n 'p-dialog-maximized': this.maximized\n });\n var maskClassName = classNames('p-dialog-mask', {\n 'p-component-overlay p-component-overlay-enter': this.props.modal,\n 'p-dialog-visible': this.state.maskVisible,\n 'p-dialog-draggable': this.props.draggable,\n 'p-dialog-resizable': this.props.resizable\n }, this.props.maskClassName, this.getPositionClass());\n var header = this.renderHeader();\n var content = this.renderContent();\n var footer = this.renderFooter();\n var resizer = this.renderResizer();\n var transitionTimeout = {\n enter: this.props.position === 'center' ? 150 : 300,\n exit: this.props.position === 'center' ? 150 : 300\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this11.mask = el;\n },\n style: this.props.maskStyle,\n className: maskClassName,\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.dialogRef,\n classNames: \"p-dialog\",\n timeout: transitionTimeout,\n \"in\": this.state.visible,\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.dialogRef,\n id: this.state.id,\n className: className,\n style: this.props.style,\n onClick: this.props.onClick,\n role: \"dialog\",\n \"aria-labelledby\": this.state.id + '_header',\n \"aria-describedby\": this.state.id + '_content',\n \"aria-modal\": this.props.modal\n }, header, content, footer, resizer)));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.state.maskVisible) {\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 Dialog;\n}(Component);\n\n_defineProperty(Dialog, \"defaultProps\", {\n id: null,\n header: null,\n footer: null,\n visible: false,\n position: 'center',\n draggable: true,\n resizable: true,\n modal: true,\n onHide: null,\n onShow: null,\n contentStyle: null,\n contentClassName: null,\n closeOnEscape: true,\n dismissableMask: false,\n rtl: false,\n closable: true,\n style: null,\n className: null,\n maskStyle: null,\n maskClassName: null,\n showHeader: true,\n appendTo: null,\n baseZIndex: 0,\n maximizable: false,\n blockScroll: false,\n icons: null,\n ariaCloseIconLabel: 'Close',\n focusOnShow: true,\n minX: 0,\n minY: 0,\n keepInViewport: true,\n maximized: false,\n breakpoints: null,\n transitionOptions: null,\n onMaximize: null,\n onDragStart: null,\n onDrag: null,\n onDragEnd: null,\n onResizeStart: null,\n onResize: null,\n onResizeEnd: null,\n onClick: null,\n onMaskClick: null\n});\n\nexport { Dialog };","map":{"version":3,"names":["React","Component","UniqueComponentId","DomHandler","ZIndexUtils","classNames","ObjectUtils","CSSTransition","Ripple","Portal","PrimeReact","_arrayLikeToArray","arr","len","length","i","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray","o","minLen","n","Object","prototype","toString","call","slice","constructor","name","test","_nonIterableSpread","TypeError","_toConsumableArray","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","Dialog","_Component","_super","_this","state","id","maskVisible","visible","onMaximize","maximized","onClose","bind","toggleMaximize","onDragStart","onResizeStart","onMaskClick","onEnter","onEntered","onExiting","onExited","attributeSelector","dialogRef","createRef","event","onHide","preventDefault","focus","activeElement","document","isActiveElementInDialog","current","contains","closable","showHeader","closeElement","dismissableMask","modal","mask","originalEvent","setState","changeScrollOnMaximizable","hasClass","parentElement","draggable","dragging","lastPageX","pageX","lastPageY","pageY","dialogEl","style","margin","addClass","body","onDrag","width","getOuterWidth","height","getOuterHeight","deltaX","deltaY","offset","getBoundingClientRect","leftPos","left","topPos","top","viewport","getViewport","position","keepInViewport","minX","minY","onDragEnd","removeClass","resizable","resizing","convertToPx","property","val","parseInt","onResize","newWidth","newHeight","minWidth","minHeight","hasBeenDragged","onResizeEnd","resetPosition","getPositionClass","_this2","positions","pos","find","item","replace","concat","get","setAttribute","onShow","focusOnShow","enableDocumentSettings","clear","disableDocumentSettings","bindGlobalListeners","blockScroll","maximizable","unbindGlobalListeners","hasBlockScroll","primeDialogParams","some","param","bindDocumentDragListener","bindDocumentResizeListeners","bindDocumentKeyDownListener","unbindDocumentDragListener","unbindDocumentResizeListeners","unbindDocumentKeyDownListener","documentDragListener","documentDragEndListener","window","addEventListener","removeEventListener","documentResizeListener","documentResizeEndListener","_this3","documentKeyDownListener","currentTarget","params","paramLength","dialogId","undefined","closeOnEscape","dialog","getElementById","which","stopImmediatePropagation","splice","focusableElements","getFocusableElements","focusedIndex","indexOf","shiftKey","newParam","_this4","filter","createStyle","styleElement","createInlineStyle","nonce","innerHTML","breakpoint","breakpoints","componentDidMount","_this5","set","autoZIndex","baseZIndex","zIndex","componentDidUpdate","prevProps","_this6","funcName","componentWillUnmount","removeInlineStyle","renderCloseIcon","_this7","createElement","ref","el","type","className","ariaCloseIconLabel","onClick","renderMaximizeIcon","iconClassName","renderHeader","_this8","closeIcon","maximizeIcon","icons","getJSXElement","header","headerEl","onMouseDown","renderContent","_this9","contentClassName","contentEl","contentStyle","children","renderFooter","_this10","footer","footerElement","renderResizer","renderElement","_this11","rtl","maskClassName","content","resizer","transitionTimeout","enter","exit","maskStyle","nodeRef","timeout","options","transitionOptions","unmountOnExit","role","render","element","appendTo"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/dialog/dialog.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { UniqueComponentId, DomHandler, ZIndexUtils, classNames, ObjectUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Ripple } from 'primereact/ripple';\nimport { Portal } from 'primereact/portal';\nimport PrimeReact from 'primereact/api';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\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 Dialog = /*#__PURE__*/function (_Component) {\n _inherits(Dialog, _Component);\n\n var _super = _createSuper(Dialog);\n\n function Dialog(props) {\n var _this;\n\n _classCallCheck(this, Dialog);\n\n _this = _super.call(this, props);\n _this.state = {\n id: props.id,\n maskVisible: false,\n visible: false\n };\n\n if (!_this.props.onMaximize) {\n _this.state.maximized = props.maximized;\n }\n\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n _this.toggleMaximize = _this.toggleMaximize.bind(_assertThisInitialized(_this));\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onResizeStart = _this.onResizeStart.bind(_assertThisInitialized(_this));\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExiting = _this.onExiting.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.attributeSelector = UniqueComponentId();\n _this.dialogRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Dialog, [{\n key: \"onClose\",\n value: function onClose(event) {\n this.props.onHide();\n event.preventDefault();\n }\n }, {\n key: \"focus\",\n value: function focus() {\n var activeElement = document.activeElement;\n var isActiveElementInDialog = activeElement && this.dialogRef && this.dialogRef.current.contains(activeElement);\n\n if (!isActiveElementInDialog && this.props.closable && this.props.showHeader) {\n this.closeElement.focus();\n }\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick(event) {\n if (this.props.dismissableMask && this.props.modal && this.mask === event.target) {\n this.onClose(event);\n }\n\n this.props.onMaskClick && this.props.onMaskClick(event);\n }\n }, {\n key: \"toggleMaximize\",\n value: function toggleMaximize(event) {\n var maximized = !this.maximized;\n\n if (this.props.onMaximize) {\n this.props.onMaximize({\n originalEvent: event,\n maximized: maximized\n });\n } else {\n this.setState({\n maximized: maximized\n }, this.changeScrollOnMaximizable);\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n if (DomHandler.hasClass(event.target, 'p-dialog-header-icon') || DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {\n return;\n }\n\n if (this.props.draggable) {\n this.dragging = true;\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n this.dialogEl.style.margin = '0';\n DomHandler.addClass(document.body, 'p-unselectable-text');\n\n if (this.props.onDragStart) {\n this.props.onDragStart(event);\n }\n }\n }\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n if (this.dragging) {\n var width = DomHandler.getOuterWidth(this.dialogEl);\n var height = DomHandler.getOuterHeight(this.dialogEl);\n var deltaX = event.pageX - this.lastPageX;\n var deltaY = event.pageY - this.lastPageY;\n var offset = this.dialogEl.getBoundingClientRect();\n var leftPos = offset.left + deltaX;\n var topPos = offset.top + deltaY;\n var viewport = DomHandler.getViewport();\n this.dialogEl.style.position = 'fixed';\n\n if (this.props.keepInViewport) {\n if (leftPos >= this.props.minX && leftPos + width < viewport.width) {\n this.lastPageX = event.pageX;\n this.dialogEl.style.left = leftPos + 'px';\n }\n\n if (topPos >= this.props.minY && topPos + height < viewport.height) {\n this.lastPageY = event.pageY;\n this.dialogEl.style.top = topPos + 'px';\n }\n } else {\n this.lastPageX = event.pageX;\n this.dialogEl.style.left = leftPos + 'px';\n this.lastPageY = event.pageY;\n this.dialogEl.style.top = topPos + 'px';\n }\n\n if (this.props.onDrag) {\n this.props.onDrag(event);\n }\n }\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n if (this.dragging) {\n this.dragging = false;\n DomHandler.removeClass(document.body, 'p-unselectable-text');\n\n if (this.props.onDragEnd) {\n this.props.onDragEnd(event);\n }\n }\n }\n }, {\n key: \"onResizeStart\",\n value: function onResizeStart(event) {\n if (this.props.resizable) {\n this.resizing = true;\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n DomHandler.addClass(document.body, 'p-unselectable-text');\n\n if (this.props.onResizeStart) {\n this.props.onResizeStart(event);\n }\n }\n }\n }, {\n key: \"convertToPx\",\n value: function convertToPx(value, property, viewport) {\n !viewport && (viewport = DomHandler.getViewport());\n var val = parseInt(value);\n\n if (/^(\\d+|(\\.\\d+))(\\.\\d+)?%$/.test(value)) {\n return val * (viewport[property] / 100);\n }\n\n return val;\n }\n }, {\n key: \"onResize\",\n value: function onResize(event) {\n if (this.resizing) {\n var deltaX = event.pageX - this.lastPageX;\n var deltaY = event.pageY - this.lastPageY;\n var width = DomHandler.getOuterWidth(this.dialogEl);\n var height = DomHandler.getOuterHeight(this.dialogEl);\n var offset = this.dialogEl.getBoundingClientRect();\n var viewport = DomHandler.getViewport();\n var newWidth = width + deltaX;\n var newHeight = height + deltaY;\n var minWidth = this.convertToPx(this.dialogEl.style.minWidth, 'width', viewport);\n var minHeight = this.convertToPx(this.dialogEl.style.minHeight, 'height', viewport);\n var hasBeenDragged = !parseInt(this.dialogEl.style.top) || !parseInt(this.dialogEl.style.left);\n\n if (hasBeenDragged) {\n newWidth += deltaX;\n newHeight += deltaY;\n }\n\n if ((!minWidth || newWidth > minWidth) && offset.left + newWidth < viewport.width) {\n this.dialogEl.style.width = newWidth + 'px';\n }\n\n if ((!minHeight || newHeight > minHeight) && offset.top + newHeight < viewport.height) {\n this.dialogEl.style.height = newHeight + 'px';\n }\n\n this.lastPageX = event.pageX;\n this.lastPageY = event.pageY;\n\n if (this.props.onResize) {\n this.props.onResize(event);\n }\n }\n }\n }, {\n key: \"onResizeEnd\",\n value: function onResizeEnd(event) {\n if (this.resizing) {\n this.resizing = false;\n DomHandler.removeClass(document.body, 'p-unselectable-text');\n\n if (this.props.onResizeEnd) {\n this.props.onResizeEnd(event);\n }\n }\n }\n }, {\n key: \"resetPosition\",\n value: function resetPosition() {\n this.dialogEl.style.position = '';\n this.dialogEl.style.left = '';\n this.dialogEl.style.top = '';\n this.dialogEl.style.margin = '';\n }\n }, {\n key: \"getPositionClass\",\n value: function getPositionClass() {\n var _this2 = this;\n\n var positions = ['center', 'left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];\n var pos = positions.find(function (item) {\n return item === _this2.props.position || item.replace('-', '') === _this2.props.position;\n });\n return pos ? \"p-dialog-\".concat(pos) : '';\n }\n }, {\n key: \"maximized\",\n get: function get() {\n return this.props.onMaximize ? this.props.maximized : this.state.maximized;\n }\n }, {\n key: \"dialogEl\",\n get: function get() {\n return this.dialogRef.current;\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n this.dialogEl.setAttribute(this.attributeSelector, '');\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n\n if (this.props.focusOnShow) {\n this.focus();\n }\n\n this.enableDocumentSettings();\n }\n }, {\n key: \"onExiting\",\n value: function onExiting() {\n if (this.props.modal) {\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n this.dragging = false;\n ZIndexUtils.clear(this.mask);\n this.setState({\n maskVisible: false\n });\n this.disableDocumentSettings();\n }\n }, {\n key: \"enableDocumentSettings\",\n value: function enableDocumentSettings() {\n this.bindGlobalListeners();\n\n if (this.props.blockScroll || this.props.maximizable && this.maximized) {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"disableDocumentSettings\",\n value: function disableDocumentSettings() {\n this.unbindGlobalListeners();\n\n if (this.props.modal) {\n var hasBlockScroll = document.primeDialogParams && document.primeDialogParams.some(function (param) {\n return param.hasBlockScroll;\n });\n\n if (!hasBlockScroll) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n } else if (this.props.blockScroll || this.props.maximizable && this.maximized) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"bindGlobalListeners\",\n value: function bindGlobalListeners() {\n if (this.props.draggable) {\n this.bindDocumentDragListener();\n }\n\n if (this.props.resizable) {\n this.bindDocumentResizeListeners();\n }\n\n if (this.props.closable) {\n this.bindDocumentKeyDownListener();\n }\n }\n }, {\n key: \"unbindGlobalListeners\",\n value: function unbindGlobalListeners() {\n this.unbindDocumentDragListener();\n this.unbindDocumentResizeListeners();\n this.unbindDocumentKeyDownListener();\n }\n }, {\n key: \"bindDocumentDragListener\",\n value: function bindDocumentDragListener() {\n this.documentDragListener = this.onDrag.bind(this);\n this.documentDragEndListener = this.onDragEnd.bind(this);\n window.document.addEventListener('mousemove', this.documentDragListener);\n window.document.addEventListener('mouseup', this.documentDragEndListener);\n }\n }, {\n key: \"unbindDocumentDragListener\",\n value: function unbindDocumentDragListener() {\n if (this.documentDragListener && this.documentDragEndListener) {\n window.document.removeEventListener('mousemove', this.documentDragListener);\n window.document.removeEventListener('mouseup', this.documentDragEndListener);\n this.documentDragListener = null;\n this.documentDragEndListener = null;\n }\n }\n }, {\n key: \"bindDocumentResizeListeners\",\n value: function bindDocumentResizeListeners() {\n this.documentResizeListener = this.onResize.bind(this);\n this.documentResizeEndListener = this.onResizeEnd.bind(this);\n window.document.addEventListener('mousemove', this.documentResizeListener);\n window.document.addEventListener('mouseup', this.documentResizeEndListener);\n }\n }, {\n key: \"unbindDocumentResizeListeners\",\n value: function unbindDocumentResizeListeners() {\n if (this.documentResizeListener && this.documentResizeEndListener) {\n window.document.removeEventListener('mousemove', this.documentResizeListener);\n window.document.removeEventListener('mouseup', this.documentResizeEndListener);\n this.documentResizeListener = null;\n this.documentResizeEndListener = null;\n }\n }\n }, {\n key: \"bindDocumentKeyDownListener\",\n value: function bindDocumentKeyDownListener() {\n var _this3 = this;\n\n this.documentKeyDownListener = function (event) {\n var currentTarget = event.currentTarget;\n\n if (currentTarget && currentTarget.primeDialogParams) {\n var params = currentTarget.primeDialogParams;\n var paramLength = params.length;\n var dialogId = params[paramLength - 1] ? params[paramLength - 1].id : undefined;\n\n if (dialogId === _this3.state.id && _this3.props.closeOnEscape) {\n var dialog = document.getElementById(dialogId);\n\n if (event.which === 27) {\n _this3.onClose(event);\n\n event.stopImmediatePropagation();\n params.splice(paramLength - 1, 1);\n } else if (event.which === 9) {\n event.preventDefault();\n var focusableElements = DomHandler.getFocusableElements(dialog);\n\n if (focusableElements && focusableElements.length > 0) {\n if (!document.activeElement) {\n focusableElements[0].focus();\n } else {\n var focusedIndex = focusableElements.indexOf(document.activeElement);\n\n if (event.shiftKey) {\n if (focusedIndex === -1 || focusedIndex === 0) focusableElements[focusableElements.length - 1].focus();else focusableElements[focusedIndex - 1].focus();\n } else {\n if (focusedIndex === -1 || focusedIndex === focusableElements.length - 1) focusableElements[0].focus();else focusableElements[focusedIndex + 1].focus();\n }\n }\n }\n }\n }\n }\n };\n\n var newParam = {\n id: this.state.id,\n hasBlockScroll: this.props.blockScroll\n };\n document.primeDialogParams = document.primeDialogParams ? [].concat(_toConsumableArray(document.primeDialogParams), [newParam]) : [newParam];\n document.addEventListener('keydown', this.documentKeyDownListener);\n }\n }, {\n key: \"unbindDocumentKeyDownListener\",\n value: function unbindDocumentKeyDownListener() {\n var _this4 = this;\n\n if (this.documentKeyDownListener) {\n document.removeEventListener('keydown', this.documentKeyDownListener);\n document.primeDialogParams = document.primeDialogParams && document.primeDialogParams.filter(function (param) {\n return param.id !== _this4.state.id;\n });\n this.documentKeyDownListener = null;\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-dialog[\").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 var _this5 = this;\n\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n\n if (this.props.visible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);\n\n _this5.setState({\n visible: true\n });\n });\n }\n\n if (this.props.breakpoints) {\n this.createStyle();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this6 = this;\n\n if (this.props.visible && !this.state.maskVisible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this6.mask, PrimeReact.autoZIndex, _this6.props.baseZIndex || PrimeReact.zIndex['modal']);\n });\n }\n\n if (this.props.visible !== this.state.visible && this.state.maskVisible) {\n this.setState({\n visible: this.props.visible\n });\n }\n\n if (prevProps.maximized !== this.props.maximized && this.props.onMaximize) {\n this.changeScrollOnMaximizable();\n }\n }\n }, {\n key: \"changeScrollOnMaximizable\",\n value: function changeScrollOnMaximizable() {\n if (!this.props.blockScroll) {\n var funcName = this.maximized ? 'addClass' : 'removeClass';\n DomHandler[funcName](document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.disableDocumentSettings();\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n var _this7 = this;\n\n if (this.props.closable) {\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: function ref(el) {\n return _this7.closeElement = el;\n },\n type: \"button\",\n className: \"p-dialog-header-icon p-dialog-header-close p-link\",\n \"aria-label\": this.props.ariaCloseIconLabel,\n onClick: this.onClose\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-dialog-header-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderMaximizeIcon\",\n value: function renderMaximizeIcon() {\n var iconClassName = classNames('p-dialog-header-maximize-icon pi', {\n 'pi-window-maximize': !this.maximized,\n 'pi-window-minimize': this.maximized\n });\n\n if (this.props.maximizable) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-dialog-header-icon p-dialog-header-maximize p-link\",\n onClick: this.toggleMaximize\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n var _this8 = this;\n\n if (this.props.showHeader) {\n var closeIcon = this.renderCloseIcon();\n var maximizeIcon = this.renderMaximizeIcon();\n var icons = ObjectUtils.getJSXElement(this.props.icons, this.props);\n var header = ObjectUtils.getJSXElement(this.props.header, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this8.headerEl = el;\n },\n className: \"p-dialog-header\",\n onMouseDown: this.onDragStart\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id + '_header',\n className: \"p-dialog-title\"\n }, header), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-dialog-header-icons\"\n }, icons, maximizeIcon, closeIcon));\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this9 = this;\n\n var contentClassName = classNames('p-dialog-content', this.props.contentClassName);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id + '_content',\n ref: function ref(el) {\n return _this9.contentEl = el;\n },\n className: contentClassName,\n style: this.props.contentStyle\n }, this.props.children);\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n var _this10 = this;\n\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n return footer && /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this10.footerElement = el;\n },\n className: \"p-dialog-footer\"\n }, footer);\n }\n }, {\n key: \"renderResizer\",\n value: function renderResizer() {\n if (this.props.resizable) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-resizable-handle\",\n style: {\n zIndex: 90\n },\n onMouseDown: this.onResizeStart\n });\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this11 = this;\n\n var className = classNames('p-dialog p-component', this.props.className, {\n 'p-dialog-rtl': this.props.rtl,\n 'p-dialog-maximized': this.maximized\n });\n var maskClassName = classNames('p-dialog-mask', {\n 'p-component-overlay p-component-overlay-enter': this.props.modal,\n 'p-dialog-visible': this.state.maskVisible,\n 'p-dialog-draggable': this.props.draggable,\n 'p-dialog-resizable': this.props.resizable\n }, this.props.maskClassName, this.getPositionClass());\n var header = this.renderHeader();\n var content = this.renderContent();\n var footer = this.renderFooter();\n var resizer = this.renderResizer();\n var transitionTimeout = {\n enter: this.props.position === 'center' ? 150 : 300,\n exit: this.props.position === 'center' ? 150 : 300\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this11.mask = el;\n },\n style: this.props.maskStyle,\n className: maskClassName,\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.dialogRef,\n classNames: \"p-dialog\",\n timeout: transitionTimeout,\n \"in\": this.state.visible,\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.dialogRef,\n id: this.state.id,\n className: className,\n style: this.props.style,\n onClick: this.props.onClick,\n role: \"dialog\",\n \"aria-labelledby\": this.state.id + '_header',\n \"aria-describedby\": this.state.id + '_content',\n \"aria-modal\": this.props.modal\n }, header, content, footer, resizer)));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.state.maskVisible) {\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 Dialog;\n}(Component);\n\n_defineProperty(Dialog, \"defaultProps\", {\n id: null,\n header: null,\n footer: null,\n visible: false,\n position: 'center',\n draggable: true,\n resizable: true,\n modal: true,\n onHide: null,\n onShow: null,\n contentStyle: null,\n contentClassName: null,\n closeOnEscape: true,\n dismissableMask: false,\n rtl: false,\n closable: true,\n style: null,\n className: null,\n maskStyle: null,\n maskClassName: null,\n showHeader: true,\n appendTo: null,\n baseZIndex: 0,\n maximizable: false,\n blockScroll: false,\n icons: null,\n ariaCloseIconLabel: 'Close',\n focusOnShow: true,\n minX: 0,\n minY: 0,\n keepInViewport: true,\n maximized: false,\n breakpoints: null,\n transitionOptions: null,\n onMaximize: null,\n onDragStart: null,\n onDrag: null,\n onDragEnd: null,\n onResizeStart: null,\n onResize: null,\n onRes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