{"ast":null,"code":"import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { DomHandler, ConnectedOverlayScrollHandler, ZIndexUtils, ObjectUtils, IconUtils, classNames } from 'primereact/utils';\nimport { Button } from 'primereact/button';\nimport { CSSTransition } from 'primereact/csstransition';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\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 confirmPopup(props) {\n var appendTo = props.appendTo || document.body;\n var confirmPopupWrapper = document.createDocumentFragment();\n DomHandler.appendChild(confirmPopupWrapper, appendTo);\n props = _objectSpread(_objectSpread({}, props), {\n visible: props.visible === undefined ? true : props.visible\n });\n var confirmPopupEl = /*#__PURE__*/React.createElement(ConfirmPopup, props);\n ReactDOM.render(confirmPopupEl, confirmPopupWrapper);\n\n var updateConfirmPopup = function updateConfirmPopup(newProps) {\n props = _objectSpread(_objectSpread({}, props), newProps);\n ReactDOM.render( /*#__PURE__*/React.cloneElement(confirmPopupEl, props), confirmPopupWrapper);\n };\n\n return {\n _destroy: function _destroy() {\n ReactDOM.unmountComponentAtNode(confirmPopupWrapper);\n },\n show: function show() {\n updateConfirmPopup({\n visible: true,\n onHide: function onHide() {\n updateConfirmPopup({\n visible: false\n }); // reset\n }\n });\n },\n hide: function hide() {\n updateConfirmPopup({\n visible: false\n });\n },\n update: function update(newProps) {\n updateConfirmPopup(newProps);\n }\n };\n}\n\nvar ConfirmPopup = /*#__PURE__*/function (_Component) {\n _inherits(ConfirmPopup, _Component);\n\n var _super = _createSuper(ConfirmPopup);\n\n function ConfirmPopup(props) {\n var _this;\n\n _classCallCheck(this, ConfirmPopup);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.reject = _this.reject.bind(_assertThisInitialized(_this));\n _this.accept = _this.accept.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.onCloseClick = _this.onCloseClick.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/React.createRef();\n _this.acceptBtnRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(ConfirmPopup, [{\n key: \"acceptLabel\",\n value: function acceptLabel() {\n return this.props.acceptLabel || localeOption('accept');\n }\n }, {\n key: \"rejectLabel\",\n value: function rejectLabel() {\n return this.props.rejectLabel || localeOption('reject');\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener && this.props.dismissable) {\n this.documentClickListener = function (event) {\n if (!_this2.isPanelClicked && _this2.isOutsideClicked(event.target)) {\n _this2.hide();\n }\n\n _this2.isPanelClicked = false;\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.props.target, function () {\n if (_this3.state.visible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.visible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"onCloseClick\",\n value: function onCloseClick(event) {\n this.hide();\n event.preventDefault();\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n this.isPanelClicked = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.props.target\n });\n }\n }, {\n key: \"accept\",\n value: function accept() {\n if (this.props.accept) {\n this.props.accept();\n }\n\n this.hide('accept');\n }\n }, {\n key: \"reject\",\n value: function reject() {\n if (this.props.reject) {\n this.props.reject();\n }\n\n this.hide('reject');\n }\n }, {\n key: \"show\",\n value: function show() {\n var _this5 = this;\n\n this.setState({\n visible: true\n }, function () {\n _this5.overlayEventListener = function (e) {\n if (!_this5.isOutsideClicked(e.target)) {\n _this5.isPanelClicked = true;\n }\n };\n\n OverlayService.on('overlay-click', _this5.overlayEventListener);\n });\n }\n }, {\n key: \"hide\",\n value: function hide(result) {\n var _this6 = this;\n\n this.setState({\n visible: false\n }, function () {\n OverlayService.off('overlay-click', _this6.overlayEventListener);\n _this6.overlayEventListener = null;\n\n if (_this6.props.onHide) {\n _this6.props.onHide(result);\n }\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.align();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n if (this.acceptBtnRef && this.acceptBtnRef.current) {\n this.acceptBtnRef.current.focus();\n }\n\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"align\",\n value: function align() {\n if (this.props.target) {\n DomHandler.absolutePosition(this.overlayRef.current, this.props.target);\n var containerOffset = DomHandler.getOffset(this.overlayRef.current);\n var targetOffset = DomHandler.getOffset(this.props.target);\n var arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.overlayRef.current.style.setProperty('--overlayArrowLeft', \"\".concat(arrowLeft, \"px\"));\n\n if (containerOffset.top < targetOffset.top) {\n DomHandler.addClass(this.overlayRef.current, 'p-confirm-popup-flipped');\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.visible) {\n this.setState({\n visible: true\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.visible !== this.props.visible) {\n this.setState({\n visible: this.props.visible\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var message = ObjectUtils.getJSXElement(this.props.message, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-confirm-popup-content\"\n }, IconUtils.getJSXIcon(this.props.icon, {\n className: 'p-confirm-popup-icon'\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-confirm-popup-message\"\n }, message));\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n var acceptClassName = classNames('p-confirm-popup-accept p-button-sm', this.props.acceptClassName);\n var rejectClassName = classNames('p-confirm-popup-reject p-button-sm', {\n 'p-button-text': !this.props.rejectClassName\n }, this.props.rejectClassName);\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-confirm-popup-footer\"\n }, /*#__PURE__*/React.createElement(Button, {\n label: this.rejectLabel(),\n icon: this.props.rejectIcon,\n className: rejectClassName,\n onClick: this.reject\n }), /*#__PURE__*/React.createElement(Button, {\n ref: this.acceptBtnRef,\n label: this.acceptLabel(),\n icon: this.props.acceptIcon,\n className: acceptClassName,\n onClick: this.accept\n }));\n\n if (this.props.footer) {\n var defaultContentOptions = {\n accept: this.accept,\n reject: this.reject,\n className: 'p-confirm-popup-footer',\n acceptClassName: acceptClassName,\n rejectClassName: rejectClassName,\n acceptLabel: this.acceptLabel(),\n rejectLabel: this.rejectLabel(),\n element: content,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.footer, defaultContentOptions);\n }\n\n return content;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-confirm-popup p-component', this.props.className);\n var content = this.renderContent();\n var footer = this.renderFooter();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.visible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.onPanelClick\n }, content, footer));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo,\n visible: this.props.visible\n });\n }\n }]);\n\n return ConfirmPopup;\n}(Component);\n\n_defineProperty(ConfirmPopup, \"defaultProps\", {\n target: null,\n visible: false,\n message: null,\n rejectLabel: null,\n acceptLabel: null,\n icon: null,\n rejectIcon: null,\n acceptIcon: null,\n rejectClassName: null,\n acceptClassName: null,\n className: null,\n style: null,\n appendTo: null,\n dismissable: true,\n footer: null,\n onShow: null,\n onHide: null,\n accept: null,\n reject: null,\n transitionOptions: null\n});\n\nexport { ConfirmPopup, confirmPopup };","map":{"version":3,"names":["React","Component","ReactDOM","DomHandler","ConnectedOverlayScrollHandler","ZIndexUtils","ObjectUtils","IconUtils","classNames","Button","CSSTransition","PrimeReact","localeOption","OverlayService","Portal","_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","confirmPopup","appendTo","document","body","confirmPopupWrapper","createDocumentFragment","appendChild","visible","undefined","confirmPopupEl","createElement","ConfirmPopup","render","updateConfirmPopup","newProps","cloneElement","_destroy","unmountComponentAtNode","show","onHide","hide","update","_Component","_super","_this","state","reject","bind","accept","onCloseClick","onPanelClick","onEnter","onEntered","onExit","onExited","overlayRef","createRef","acceptBtnRef","acceptLabel","rejectLabel","bindDocumentClickListener","_this2","documentClickListener","dismissable","event","isPanelClicked","isOutsideClicked","addEventListener","unbindDocumentClickListener","removeEventListener","bindScrollListener","_this3","scrollHandler","unbindScrollListener","bindResizeListener","_this4","resizeListener","isTouchDevice","window","unbindResizeListener","current","isSameNode","contains","preventDefault","emit","originalEvent","_this5","setState","overlayEventListener","on","_this6","off","set","autoZIndex","zIndex","align","focus","onShow","clear","absolutePosition","containerOffset","getOffset","targetOffset","arrowLeft","left","style","setProperty","concat","top","addClass","componentDidMount","componentDidUpdate","prevProps","componentWillUnmount","destroy","renderContent","message","getJSXElement","className","getJSXIcon","icon","renderFooter","acceptClassName","rejectClassName","content","label","rejectIcon","onClick","ref","acceptIcon","footer","defaultContentOptions","element","renderElement","nodeRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","id"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/confirmpopup/confirmpopup.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { DomHandler, ConnectedOverlayScrollHandler, ZIndexUtils, ObjectUtils, IconUtils, classNames } from 'primereact/utils';\nimport { Button } from 'primereact/button';\nimport { CSSTransition } from 'primereact/csstransition';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\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 confirmPopup(props) {\n var appendTo = props.appendTo || document.body;\n var confirmPopupWrapper = document.createDocumentFragment();\n DomHandler.appendChild(confirmPopupWrapper, appendTo);\n props = _objectSpread(_objectSpread({}, props), {\n visible: props.visible === undefined ? true : props.visible\n });\n var confirmPopupEl = /*#__PURE__*/React.createElement(ConfirmPopup, props);\n ReactDOM.render(confirmPopupEl, confirmPopupWrapper);\n\n var updateConfirmPopup = function updateConfirmPopup(newProps) {\n props = _objectSpread(_objectSpread({}, props), newProps);\n ReactDOM.render( /*#__PURE__*/React.cloneElement(confirmPopupEl, props), confirmPopupWrapper);\n };\n\n return {\n _destroy: function _destroy() {\n ReactDOM.unmountComponentAtNode(confirmPopupWrapper);\n },\n show: function show() {\n updateConfirmPopup({\n visible: true,\n onHide: function onHide() {\n updateConfirmPopup({\n visible: false\n }); // reset\n }\n });\n },\n hide: function hide() {\n updateConfirmPopup({\n visible: false\n });\n },\n update: function update(newProps) {\n updateConfirmPopup(newProps);\n }\n };\n}\nvar ConfirmPopup = /*#__PURE__*/function (_Component) {\n _inherits(ConfirmPopup, _Component);\n\n var _super = _createSuper(ConfirmPopup);\n\n function ConfirmPopup(props) {\n var _this;\n\n _classCallCheck(this, ConfirmPopup);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false\n };\n _this.reject = _this.reject.bind(_assertThisInitialized(_this));\n _this.accept = _this.accept.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.onCloseClick = _this.onCloseClick.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/React.createRef();\n _this.acceptBtnRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(ConfirmPopup, [{\n key: \"acceptLabel\",\n value: function acceptLabel() {\n return this.props.acceptLabel || localeOption('accept');\n }\n }, {\n key: \"rejectLabel\",\n value: function rejectLabel() {\n return this.props.rejectLabel || localeOption('reject');\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener && this.props.dismissable) {\n this.documentClickListener = function (event) {\n if (!_this2.isPanelClicked && _this2.isOutsideClicked(event.target)) {\n _this2.hide();\n }\n\n _this2.isPanelClicked = false;\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.props.target, function () {\n if (_this3.state.visible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.visible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"onCloseClick\",\n value: function onCloseClick(event) {\n this.hide();\n event.preventDefault();\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n this.isPanelClicked = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.props.target\n });\n }\n }, {\n key: \"accept\",\n value: function accept() {\n if (this.props.accept) {\n this.props.accept();\n }\n\n this.hide('accept');\n }\n }, {\n key: \"reject\",\n value: function reject() {\n if (this.props.reject) {\n this.props.reject();\n }\n\n this.hide('reject');\n }\n }, {\n key: \"show\",\n value: function show() {\n var _this5 = this;\n\n this.setState({\n visible: true\n }, function () {\n _this5.overlayEventListener = function (e) {\n if (!_this5.isOutsideClicked(e.target)) {\n _this5.isPanelClicked = true;\n }\n };\n\n OverlayService.on('overlay-click', _this5.overlayEventListener);\n });\n }\n }, {\n key: \"hide\",\n value: function hide(result) {\n var _this6 = this;\n\n this.setState({\n visible: false\n }, function () {\n OverlayService.off('overlay-click', _this6.overlayEventListener);\n _this6.overlayEventListener = null;\n\n if (_this6.props.onHide) {\n _this6.props.onHide(result);\n }\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.align();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n if (this.acceptBtnRef && this.acceptBtnRef.current) {\n this.acceptBtnRef.current.focus();\n }\n\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"align\",\n value: function align() {\n if (this.props.target) {\n DomHandler.absolutePosition(this.overlayRef.current, this.props.target);\n var containerOffset = DomHandler.getOffset(this.overlayRef.current);\n var targetOffset = DomHandler.getOffset(this.props.target);\n var arrowLeft = 0;\n\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n\n this.overlayRef.current.style.setProperty('--overlayArrowLeft', \"\".concat(arrowLeft, \"px\"));\n\n if (containerOffset.top < targetOffset.top) {\n DomHandler.addClass(this.overlayRef.current, 'p-confirm-popup-flipped');\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.visible) {\n this.setState({\n visible: true\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.visible !== this.props.visible) {\n this.setState({\n visible: this.props.visible\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var message = ObjectUtils.getJSXElement(this.props.message, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-confirm-popup-content\"\n }, IconUtils.getJSXIcon(this.props.icon, {\n className: 'p-confirm-popup-icon'\n }, {\n props: this.props\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-confirm-popup-message\"\n }, message));\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n var acceptClassName = classNames('p-confirm-popup-accept p-button-sm', this.props.acceptClassName);\n var rejectClassName = classNames('p-confirm-popup-reject p-button-sm', {\n 'p-button-text': !this.props.rejectClassName\n }, this.props.rejectClassName);\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-confirm-popup-footer\"\n }, /*#__PURE__*/React.createElement(Button, {\n label: this.rejectLabel(),\n icon: this.props.rejectIcon,\n className: rejectClassName,\n onClick: this.reject\n }), /*#__PURE__*/React.createElement(Button, {\n ref: this.acceptBtnRef,\n label: this.acceptLabel(),\n icon: this.props.acceptIcon,\n className: acceptClassName,\n onClick: this.accept\n }));\n\n if (this.props.footer) {\n var defaultContentOptions = {\n accept: this.accept,\n reject: this.reject,\n className: 'p-confirm-popup-footer',\n acceptClassName: acceptClassName,\n rejectClassName: rejectClassName,\n acceptLabel: this.acceptLabel(),\n rejectLabel: this.rejectLabel(),\n element: content,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.footer, defaultContentOptions);\n }\n\n return content;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-confirm-popup p-component', this.props.className);\n var content = this.renderContent();\n var footer = this.renderFooter();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.visible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n onClick: this.onPanelClick\n }, content, footer));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo,\n visible: this.props.visible\n });\n }\n }]);\n\n return ConfirmPopup;\n}(Component);\n\n_defineProperty(ConfirmPopup, \"defaultProps\", {\n target: null,\n visible: false,\n message: null,\n rejectLabel: null,\n acceptLabel: null,\n icon: null,\n rejectIcon: null,\n acceptIcon: null,\n rejectClassName: null,\n acceptClassName: null,\n className: null,\n style: null,\n appendTo: null,\n dismissable: true,\n footer: null,\n onShow: null,\n onHide: null,\n accept: null,\n reject: null,\n transitionOptions: null\n});\n\nexport { ConfirmPopup, confirmPopup };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,UAAT,EAAqBC,6BAArB,EAAoDC,WAApD,EAAiEC,WAAjE,EAA8EC,SAA9E,EAAyFC,UAAzF,QAA2G,kBAA3G;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,OAAOC,UAAP,IAAqBC,YAArB,QAAyC,gBAAzC;AACA,SAASC,cAAT,QAA+B,2BAA/B;AACA,SAASC,MAAT,QAAuB,mBAAvB;;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,CA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