1 line
40 KiB
JSON
1 line
40 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { DomHandler, ZIndexUtils, ObjectUtils, classNames } 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 _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 Sidebar = /*#__PURE__*/function (_Component) {\n _inherits(Sidebar, _Component);\n\n var _super = _createSuper(Sidebar);\n\n function Sidebar(props) {\n var _this;\n\n _classCallCheck(this, Sidebar);\n\n _this = _super.call(this, props);\n _this.state = {\n maskVisible: false,\n visible: false\n };\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onClose = _this.onClose.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.sidebarRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Sidebar, [{\n key: \"getPositionClass\",\n value: function getPositionClass() {\n var _this2 = this;\n\n var positions = ['left', 'right', 'top', 'bottom'];\n var pos = positions.find(function (item) {\n return item === _this2.props.position;\n });\n return pos ? \"p-sidebar-\".concat(pos) : '';\n }\n }, {\n key: \"focus\",\n value: function focus() {\n var activeElement = document.activeElement;\n var isActiveElementInDialog = activeElement && this.sidebarRef && this.sidebarRef.current.contains(activeElement);\n\n if (!isActiveElementInDialog && this.props.showCloseIcon) {\n this.closeIcon.focus();\n }\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick(event) {\n if (this.props.dismissable && this.props.modal && this.mask === event.target) {\n this.onClose(event);\n }\n }\n }, {\n key: \"onClose\",\n value: function onClose(event) {\n this.props.onHide();\n event.preventDefault();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n\n this.focus();\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 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) {\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.blockScroll) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"bindGlobalListeners\",\n value: function bindGlobalListeners() {\n if (this.props.closeOnEscape) {\n this.bindDocumentEscapeListener();\n }\n }\n }, {\n key: \"unbindGlobalListeners\",\n value: function unbindGlobalListeners() {\n this.unbindDocumentEscapeListener();\n }\n }, {\n key: \"bindDocumentEscapeListener\",\n value: function bindDocumentEscapeListener() {\n var _this3 = this;\n\n this.documentEscapeListener = function (event) {\n if (event.which === 27) {\n if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact.autoZIndex)) {\n _this3.onClose(event);\n }\n }\n };\n\n document.addEventListener('keydown', this.documentEscapeListener);\n }\n }, {\n key: \"unbindDocumentEscapeListener\",\n value: function unbindDocumentEscapeListener() {\n if (this.documentEscapeListener) {\n document.removeEventListener('keydown', this.documentEscapeListener);\n this.documentEscapeListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this4 = this;\n\n if (this.props.visible) {\n this.setState({\n maskVisible: true,\n visible: true\n }, function () {\n ZIndexUtils.set('modal', _this4.mask, PrimeReact.autoZIndex, _this4.props.baseZIndex || PrimeReact.zIndex['modal']);\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this5 = this;\n\n if (this.props.visible && !this.state.maskVisible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.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 }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.disableDocumentSettings();\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n var _this6 = this;\n\n if (this.props.showCloseIcon) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n ref: function ref(el) {\n return _this6.closeIcon = el;\n },\n className: \"p-sidebar-close p-sidebar-icon p-link\",\n onClick: this.onClose,\n \"aria-label\": this.props.ariaCloseLabel\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-sidebar-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderIcons\",\n value: function renderIcons() {\n if (this.props.icons) {\n return ObjectUtils.getJSXElement(this.props.icons, this.props);\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this7 = this;\n\n var className = classNames('p-sidebar p-component', this.props.className);\n var maskClassName = classNames('p-sidebar-mask', {\n 'p-component-overlay p-component-overlay-enter': this.props.modal,\n 'p-sidebar-mask-scrollblocker': this.props.blockScroll,\n 'p-sidebar-visible': this.state.maskVisible,\n 'p-sidebar-full': this.props.fullScreen\n }, this.props.maskClassName, this.getPositionClass());\n var closeIcon = this.renderCloseIcon();\n var icons = this.renderIcons();\n var transitionTimeout = {\n enter: this.props.fullScreen ? 150 : 300,\n exit: this.props.fullScreen ? 150 : 300\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.mask = el;\n },\n style: this.props.maskStyle,\n className: maskClassName,\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.sidebarRef,\n classNames: \"p-sidebar\",\n \"in\": this.state.visible,\n timeout: transitionTimeout,\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEntered: this.onEntered,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.sidebarRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n role: \"complementary\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-sidebar-header\"\n }, icons, closeIcon), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-sidebar-content\"\n }, this.props.children))));\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 Sidebar;\n}(Component);\n\n_defineProperty(Sidebar, \"defaultProps\", {\n id: null,\n style: null,\n className: null,\n maskStyle: null,\n maskClassName: null,\n visible: false,\n position: 'left',\n fullScreen: false,\n blockScroll: false,\n baseZIndex: 0,\n dismissable: true,\n showCloseIcon: true,\n ariaCloseLabel: 'close',\n closeOnEscape: true,\n icons: null,\n modal: true,\n appendTo: null,\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { Sidebar };","map":{"version":3,"names":["React","Component","DomHandler","ZIndexUtils","ObjectUtils","classNames","CSSTransition","Ripple","Portal","PrimeReact","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","Sidebar","_Component","_super","_this","state","maskVisible","visible","onMaskClick","bind","onClose","onEntered","onExiting","onExited","sidebarRef","createRef","getPositionClass","_this2","positions","pos","find","item","position","concat","focus","activeElement","document","isActiveElementInDialog","current","contains","showCloseIcon","closeIcon","event","dismissable","modal","mask","onHide","preventDefault","onShow","enableDocumentSettings","addClass","clear","setState","disableDocumentSettings","bindGlobalListeners","blockScroll","body","unbindGlobalListeners","removeClass","closeOnEscape","bindDocumentEscapeListener","unbindDocumentEscapeListener","_this3","documentEscapeListener","which","get","getCurrent","autoZIndex","addEventListener","removeEventListener","componentDidMount","_this4","set","baseZIndex","zIndex","componentDidUpdate","prevProps","prevState","_this5","componentWillUnmount","renderCloseIcon","_this6","createElement","type","ref","el","className","onClick","ariaCloseLabel","renderIcons","icons","getJSXElement","renderElement","_this7","maskClassName","fullScreen","transitionTimeout","enter","exit","style","maskStyle","nodeRef","timeout","options","transitionOptions","unmountOnExit","id","role","children","render","element","appendTo"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/sidebar/sidebar.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { DomHandler, ZIndexUtils, ObjectUtils, classNames } 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 _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 Sidebar = /*#__PURE__*/function (_Component) {\n _inherits(Sidebar, _Component);\n\n var _super = _createSuper(Sidebar);\n\n function Sidebar(props) {\n var _this;\n\n _classCallCheck(this, Sidebar);\n\n _this = _super.call(this, props);\n _this.state = {\n maskVisible: false,\n visible: false\n };\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onClose = _this.onClose.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.sidebarRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Sidebar, [{\n key: \"getPositionClass\",\n value: function getPositionClass() {\n var _this2 = this;\n\n var positions = ['left', 'right', 'top', 'bottom'];\n var pos = positions.find(function (item) {\n return item === _this2.props.position;\n });\n return pos ? \"p-sidebar-\".concat(pos) : '';\n }\n }, {\n key: \"focus\",\n value: function focus() {\n var activeElement = document.activeElement;\n var isActiveElementInDialog = activeElement && this.sidebarRef && this.sidebarRef.current.contains(activeElement);\n\n if (!isActiveElementInDialog && this.props.showCloseIcon) {\n this.closeIcon.focus();\n }\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick(event) {\n if (this.props.dismissable && this.props.modal && this.mask === event.target) {\n this.onClose(event);\n }\n }\n }, {\n key: \"onClose\",\n value: function onClose(event) {\n this.props.onHide();\n event.preventDefault();\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n\n this.focus();\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 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) {\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.blockScroll) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n }\n }, {\n key: \"bindGlobalListeners\",\n value: function bindGlobalListeners() {\n if (this.props.closeOnEscape) {\n this.bindDocumentEscapeListener();\n }\n }\n }, {\n key: \"unbindGlobalListeners\",\n value: function unbindGlobalListeners() {\n this.unbindDocumentEscapeListener();\n }\n }, {\n key: \"bindDocumentEscapeListener\",\n value: function bindDocumentEscapeListener() {\n var _this3 = this;\n\n this.documentEscapeListener = function (event) {\n if (event.which === 27) {\n if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact.autoZIndex)) {\n _this3.onClose(event);\n }\n }\n };\n\n document.addEventListener('keydown', this.documentEscapeListener);\n }\n }, {\n key: \"unbindDocumentEscapeListener\",\n value: function unbindDocumentEscapeListener() {\n if (this.documentEscapeListener) {\n document.removeEventListener('keydown', this.documentEscapeListener);\n this.documentEscapeListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this4 = this;\n\n if (this.props.visible) {\n this.setState({\n maskVisible: true,\n visible: true\n }, function () {\n ZIndexUtils.set('modal', _this4.mask, PrimeReact.autoZIndex, _this4.props.baseZIndex || PrimeReact.zIndex['modal']);\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this5 = this;\n\n if (this.props.visible && !this.state.maskVisible) {\n this.setState({\n maskVisible: true\n }, function () {\n ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.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 }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.disableDocumentSettings();\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n var _this6 = this;\n\n if (this.props.showCloseIcon) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n ref: function ref(el) {\n return _this6.closeIcon = el;\n },\n className: \"p-sidebar-close p-sidebar-icon p-link\",\n onClick: this.onClose,\n \"aria-label\": this.props.ariaCloseLabel\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-sidebar-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderIcons\",\n value: function renderIcons() {\n if (this.props.icons) {\n return ObjectUtils.getJSXElement(this.props.icons, this.props);\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this7 = this;\n\n var className = classNames('p-sidebar p-component', this.props.className);\n var maskClassName = classNames('p-sidebar-mask', {\n 'p-component-overlay p-component-overlay-enter': this.props.modal,\n 'p-sidebar-mask-scrollblocker': this.props.blockScroll,\n 'p-sidebar-visible': this.state.maskVisible,\n 'p-sidebar-full': this.props.fullScreen\n }, this.props.maskClassName, this.getPositionClass());\n var closeIcon = this.renderCloseIcon();\n var icons = this.renderIcons();\n var transitionTimeout = {\n enter: this.props.fullScreen ? 150 : 300,\n exit: this.props.fullScreen ? 150 : 300\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.mask = el;\n },\n style: this.props.maskStyle,\n className: maskClassName,\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.sidebarRef,\n classNames: \"p-sidebar\",\n \"in\": this.state.visible,\n timeout: transitionTimeout,\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEntered: this.onEntered,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.sidebarRef,\n id: this.props.id,\n className: className,\n style: this.props.style,\n role: \"complementary\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-sidebar-header\"\n }, icons, closeIcon), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-sidebar-content\"\n }, this.props.children))));\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 Sidebar;\n}(Component);\n\n_defineProperty(Sidebar, \"defaultProps\", {\n id: null,\n style: null,\n className: null,\n maskStyle: null,\n maskClassName: null,\n visible: false,\n position: 'left',\n fullScreen: false,\n blockScroll: false,\n baseZIndex: 0,\n dismissable: true,\n showCloseIcon: true,\n ariaCloseLabel: 'close',\n closeOnEscape: true,\n icons: null,\n modal: true,\n appendTo: null,\n transitionOptions: null,\n onShow: null,\n onHide: null\n});\n\nexport { Sidebar };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,WAAlC,EAA+CC,UAA/C,QAAiE,kBAAjE;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;IACAE,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;IACAD,UAAU,CAACE,YAAX,GAA0B,IAA1B;IAC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