{"ast":null,"code":"import React, { Component } from 'react';\nimport { DomHandler, ObjectUtils, classNames } from 'primereact/utils';\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 _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 _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\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 _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 _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 SplitterPanel = /*#__PURE__*/function (_Component) {\n _inherits(SplitterPanel, _Component);\n\n var _super = _createSuper(SplitterPanel);\n\n function SplitterPanel() {\n _classCallCheck(this, SplitterPanel);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(SplitterPanel);\n}(Component);\n\n_defineProperty(SplitterPanel, \"defaultProps\", {\n size: null,\n minSize: null,\n style: null,\n className: null\n});\n\nvar Splitter = /*#__PURE__*/function (_Component2) {\n _inherits(Splitter, _Component2);\n\n var _super2 = _createSuper(Splitter);\n\n function Splitter() {\n _classCallCheck(this, Splitter);\n\n return _super2.apply(this, arguments);\n }\n\n _createClass(Splitter, [{\n key: \"bindMouseListeners\",\n value: function bindMouseListeners() {\n var _this = this;\n\n if (!this.mouseMoveListener) {\n this.mouseMoveListener = function (event) {\n return _this.onResize(event);\n };\n\n document.addEventListener('mousemove', this.mouseMoveListener);\n }\n\n if (!this.mouseUpListener) {\n this.mouseUpListener = function (event) {\n _this.onResizeEnd(event);\n\n _this.unbindMouseListeners();\n };\n\n document.addEventListener('mouseup', this.mouseUpListener);\n }\n }\n }, {\n key: \"validateResize\",\n value: function validateResize(newPrevPanelSize, newNextPanelSize) {\n if (this.props.children[this.prevPanelIndex].props && this.props.children[this.prevPanelIndex].props.minSize && this.props.children[this.prevPanelIndex].props.minSize > newPrevPanelSize) {\n return false;\n }\n\n if (this.props.children[this.prevPanelIndex + 1].props && this.props.children[this.prevPanelIndex + 1].props.minSize && this.props.children[this.prevPanelIndex + 1].props.minSize > newNextPanelSize) {\n return false;\n }\n\n return true;\n }\n }, {\n key: \"unbindMouseListeners\",\n value: function unbindMouseListeners() {\n if (this.mouseMoveListener) {\n document.removeEventListener('mousemove', this.mouseMoveListener);\n this.mouseMoveListener = null;\n }\n\n if (this.mouseUpListener) {\n document.removeEventListener('mouseup', this.mouseUpListener);\n this.mouseUpListener = null;\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.dragging = false;\n this.size = null;\n this.startPos = null;\n this.prevPanelElement = null;\n this.nextPanelElement = null;\n this.prevPanelSize = null;\n this.nextPanelSize = null;\n this.gutterElement = null;\n this.prevPanelIndex = null;\n }\n }, {\n key: \"isStateful\",\n value: function isStateful() {\n return this.props.stateKey != null;\n }\n }, {\n key: \"getStorage\",\n value: function getStorage() {\n switch (this.props.stateStorage) {\n case 'local':\n return window.localStorage;\n\n case 'session':\n return window.sessionStorage;\n\n default:\n throw new Error(this.props.stateStorage + ' is not a valid value for the state storage, supported values are \"local\" and \"session\".');\n }\n }\n }, {\n key: \"saveState\",\n value: function saveState() {\n this.getStorage().setItem(this.props.stateKey, JSON.stringify(this.panelSizes));\n }\n }, {\n key: \"restoreState\",\n value: function restoreState() {\n var _this2 = this;\n\n var storage = this.getStorage();\n var stateString = storage.getItem(this.props.stateKey);\n\n if (stateString) {\n this.panelSizes = JSON.parse(stateString);\n\n var children = _toConsumableArray(this.container.children).filter(function (child) {\n return DomHandler.hasClass(child, 'p-splitter-panel');\n });\n\n children.forEach(function (child, i) {\n child.style.flexBasis = 'calc(' + _this2.panelSizes[i] + '% - ' + (_this2.props.children.length - 1) * _this2.props.gutterSize + 'px)';\n });\n return true;\n }\n\n return false;\n }\n }, {\n key: \"onResizeStart\",\n value: function onResizeStart(event, index) {\n var pageX = event.type === 'touchstart' ? event.touches[0].pageX : event.pageX;\n var pageY = event.type === 'touchstart' ? event.touches[0].pageY : event.pageY;\n this.gutterElement = event.currentTarget;\n this.size = this.props.layout === 'horizontal' ? DomHandler.getWidth(this.container) : DomHandler.getHeight(this.container);\n this.dragging = true;\n this.startPos = this.props.layout === 'horizontal' ? pageX : pageY;\n this.prevPanelElement = this.gutterElement.previousElementSibling;\n this.nextPanelElement = this.gutterElement.nextElementSibling;\n this.prevPanelSize = 100 * (this.props.layout === 'horizontal' ? DomHandler.getOuterWidth(this.prevPanelElement, true) : DomHandler.getOuterHeight(this.prevPanelElement, true)) / this.size;\n this.nextPanelSize = 100 * (this.props.layout === 'horizontal' ? DomHandler.getOuterWidth(this.nextPanelElement, true) : DomHandler.getOuterHeight(this.nextPanelElement, true)) / this.size;\n this.prevPanelIndex = index;\n DomHandler.addClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.addClass(this.container, 'p-splitter-resizing');\n }\n }, {\n key: \"onResize\",\n value: function onResize(event) {\n var newPos;\n var pageX = event.type === 'touchmove' ? event.touches[0].pageX : event.pageX;\n var pageY = event.type === 'touchmove' ? event.touches[0].pageY : event.pageY;\n if (this.props.layout === 'horizontal') newPos = pageX * 100 / this.size - this.startPos * 100 / this.size;else newPos = pageY * 100 / this.size - this.startPos * 100 / this.size;\n var newPrevPanelSize = this.prevPanelSize + newPos;\n var newNextPanelSize = this.nextPanelSize - newPos;\n\n if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {\n this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (this.props.children.length - 1) * this.props.gutterSize + 'px)';\n this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (this.props.children.length - 1) * this.props.gutterSize + 'px)';\n this.panelSizes[this.prevPanelIndex] = newPrevPanelSize;\n this.panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;\n }\n }\n }, {\n key: \"onResizeEnd\",\n value: function onResizeEnd(event) {\n if (this.isStateful()) {\n this.saveState();\n }\n\n if (this.props.onResizeEnd) {\n this.props.onResizeEnd({\n originalEvent: event,\n sizes: this.panelSizes\n });\n }\n\n DomHandler.removeClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.removeClass(this.container, 'p-splitter-resizing');\n this.clear();\n }\n }, {\n key: \"onGutterMouseDown\",\n value: function onGutterMouseDown(event, index) {\n this.onResizeStart(event, index);\n this.bindMouseListeners();\n }\n }, {\n key: \"onGutterTouchStart\",\n value: function onGutterTouchStart(event, index) {\n this.onResizeStart(event, index);\n this.windowTouchMoveListener = this.onGutterTouchMove.bind(this);\n this.windowTouchEndListener = this.onGutterTouchEnd.bind(this);\n window.addEventListener('touchmove', this.windowTouchMoveListener, {\n passive: false,\n cancelable: false\n });\n window.addEventListener('touchend', this.windowTouchEndListener);\n }\n }, {\n key: \"onGutterTouchMove\",\n value: function onGutterTouchMove(event) {\n this.onResize(event);\n }\n }, {\n key: \"onGutterTouchEnd\",\n value: function onGutterTouchEnd(event) {\n this.onResizeEnd(event);\n window.removeEventListener('touchmove', this.windowTouchMoveListener);\n window.removeEventListener('touchend', this.windowTouchEndListener);\n this.windowTouchMoveListener = null;\n this.windowTouchEndListener = null;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this3 = this;\n\n if (this.panelElement) {\n if (this.panelElement.childNodes && ObjectUtils.isNotEmpty(DomHandler.find(this.panelElement, '.p-splitter'))) {\n DomHandler.addClass(this.panelElement, 'p-splitter-panel-nested');\n }\n }\n\n if (this.props.children && this.props.children.length) {\n var initialized = false;\n\n if (this.isStateful()) {\n initialized = this.restoreState();\n }\n\n if (!initialized) {\n var children = _toConsumableArray(this.container.children).filter(function (child) {\n return DomHandler.hasClass(child, 'p-splitter-panel');\n });\n\n var _panelSizes = [];\n this.props.children.map(function (panel, i) {\n var panelInitialSize = panel.props && panel.props.size ? panel.props.size : null;\n var panelSize = panelInitialSize || 100 / _this3.props.children.length;\n _panelSizes[i] = panelSize;\n children[i].style.flexBasis = 'calc(' + panelSize + '% - ' + (_this3.props.children.length - 1) * _this3.props.gutterSize + 'px)';\n return _panelSizes;\n });\n this.panelSizes = _panelSizes;\n }\n }\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel(panel, index) {\n var _this4 = this;\n\n var panelClassName = classNames('p-splitter-panel', panel.props.className);\n var gutterStyle = this.props.layout === 'horizontal' ? {\n width: this.props.gutterSize + 'px'\n } : {\n height: this.props.gutterSize + 'px'\n };\n var gutter = index !== this.props.children.length - 1 && /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.gutterElement = el;\n },\n className: 'p-splitter-gutter',\n style: gutterStyle,\n onMouseDown: function onMouseDown(event) {\n return _this4.onGutterMouseDown(event, index);\n },\n onTouchStart: function onTouchStart(event) {\n return _this4.onGutterTouchStart(event, index);\n },\n onTouchMove: function onTouchMove(event) {\n return _this4.onGutterTouchMove(event);\n },\n onTouchEnd: function onTouchEnd(event) {\n return _this4.onGutterTouchEnd(event);\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-splitter-gutter-handle\"\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.panelElement = el;\n },\n key: index,\n className: panelClassName,\n style: panel.props.style\n }, panel.props.children), gutter);\n }\n }, {\n key: \"renderPanels\",\n value: function renderPanels() {\n var _this5 = this;\n\n return React.Children.map(this.props.children, function (panel, index) {\n return _this5.renderPanel(panel, index);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames(\"p-splitter p-component p-splitter-\".concat(this.props.layout), this.props.className);\n var panels = this.renderPanels();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, panels);\n }\n }]);\n\n return Splitter;\n}(Component);\n\n_defineProperty(Splitter, \"defaultProps\", {\n id: null,\n className: null,\n style: null,\n layout: 'horizontal',\n gutterSize: 4,\n stateKey: null,\n stateStorage: 'session',\n onResizeEnd: null\n});\n\nexport { Splitter, SplitterPanel };","map":{"version":3,"names":["React","Component","DomHandler","ObjectUtils","classNames","_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","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","Constructor","protoProps","staticProps","_classCallCheck","instance","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","SplitterPanel","_Component","_super","size","minSize","style","className","Splitter","_Component2","_super2","bindMouseListeners","_this","mouseMoveListener","event","onResize","document","addEventListener","mouseUpListener","onResizeEnd","unbindMouseListeners","validateResize","newPrevPanelSize","newNextPanelSize","children","prevPanelIndex","removeEventListener","clear","dragging","startPos","prevPanelElement","nextPanelElement","prevPanelSize","nextPanelSize","gutterElement","isStateful","stateKey","getStorage","stateStorage","window","localStorage","sessionStorage","Error","saveState","setItem","JSON","stringify","panelSizes","restoreState","_this2","storage","stateString","getItem","parse","container","filter","child","hasClass","forEach","flexBasis","gutterSize","onResizeStart","index","pageX","type","touches","pageY","currentTarget","layout","getWidth","getHeight","previousElementSibling","nextElementSibling","getOuterWidth","getOuterHeight","addClass","newPos","originalEvent","sizes","removeClass","onGutterMouseDown","onGutterTouchStart","windowTouchMoveListener","onGutterTouchMove","bind","windowTouchEndListener","onGutterTouchEnd","passive","cancelable","componentDidMount","_this3","panelElement","childNodes","isNotEmpty","find","initialized","_panelSizes","map","panel","panelInitialSize","panelSize","renderPanel","_this4","panelClassName","gutterStyle","width","height","gutter","createElement","ref","el","onMouseDown","onTouchStart","onTouchMove","onTouchEnd","Fragment","renderPanels","_this5","Children","render","_this6","concat","panels","id"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/splitter/splitter.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { DomHandler, ObjectUtils, classNames } from 'primereact/utils';\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 _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 _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\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 _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 _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 SplitterPanel = /*#__PURE__*/function (_Component) {\n _inherits(SplitterPanel, _Component);\n\n var _super = _createSuper(SplitterPanel);\n\n function SplitterPanel() {\n _classCallCheck(this, SplitterPanel);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(SplitterPanel);\n}(Component);\n\n_defineProperty(SplitterPanel, \"defaultProps\", {\n size: null,\n minSize: null,\n style: null,\n className: null\n});\n\nvar Splitter = /*#__PURE__*/function (_Component2) {\n _inherits(Splitter, _Component2);\n\n var _super2 = _createSuper(Splitter);\n\n function Splitter() {\n _classCallCheck(this, Splitter);\n\n return _super2.apply(this, arguments);\n }\n\n _createClass(Splitter, [{\n key: \"bindMouseListeners\",\n value: function bindMouseListeners() {\n var _this = this;\n\n if (!this.mouseMoveListener) {\n this.mouseMoveListener = function (event) {\n return _this.onResize(event);\n };\n\n document.addEventListener('mousemove', this.mouseMoveListener);\n }\n\n if (!this.mouseUpListener) {\n this.mouseUpListener = function (event) {\n _this.onResizeEnd(event);\n\n _this.unbindMouseListeners();\n };\n\n document.addEventListener('mouseup', this.mouseUpListener);\n }\n }\n }, {\n key: \"validateResize\",\n value: function validateResize(newPrevPanelSize, newNextPanelSize) {\n if (this.props.children[this.prevPanelIndex].props && this.props.children[this.prevPanelIndex].props.minSize && this.props.children[this.prevPanelIndex].props.minSize > newPrevPanelSize) {\n return false;\n }\n\n if (this.props.children[this.prevPanelIndex + 1].props && this.props.children[this.prevPanelIndex + 1].props.minSize && this.props.children[this.prevPanelIndex + 1].props.minSize > newNextPanelSize) {\n return false;\n }\n\n return true;\n }\n }, {\n key: \"unbindMouseListeners\",\n value: function unbindMouseListeners() {\n if (this.mouseMoveListener) {\n document.removeEventListener('mousemove', this.mouseMoveListener);\n this.mouseMoveListener = null;\n }\n\n if (this.mouseUpListener) {\n document.removeEventListener('mouseup', this.mouseUpListener);\n this.mouseUpListener = null;\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.dragging = false;\n this.size = null;\n this.startPos = null;\n this.prevPanelElement = null;\n this.nextPanelElement = null;\n this.prevPanelSize = null;\n this.nextPanelSize = null;\n this.gutterElement = null;\n this.prevPanelIndex = null;\n }\n }, {\n key: \"isStateful\",\n value: function isStateful() {\n return this.props.stateKey != null;\n }\n }, {\n key: \"getStorage\",\n value: function getStorage() {\n switch (this.props.stateStorage) {\n case 'local':\n return window.localStorage;\n\n case 'session':\n return window.sessionStorage;\n\n default:\n throw new Error(this.props.stateStorage + ' is not a valid value for the state storage, supported values are \"local\" and \"session\".');\n }\n }\n }, {\n key: \"saveState\",\n value: function saveState() {\n this.getStorage().setItem(this.props.stateKey, JSON.stringify(this.panelSizes));\n }\n }, {\n key: \"restoreState\",\n value: function restoreState() {\n var _this2 = this;\n\n var storage = this.getStorage();\n var stateString = storage.getItem(this.props.stateKey);\n\n if (stateString) {\n this.panelSizes = JSON.parse(stateString);\n\n var children = _toConsumableArray(this.container.children).filter(function (child) {\n return DomHandler.hasClass(child, 'p-splitter-panel');\n });\n\n children.forEach(function (child, i) {\n child.style.flexBasis = 'calc(' + _this2.panelSizes[i] + '% - ' + (_this2.props.children.length - 1) * _this2.props.gutterSize + 'px)';\n });\n return true;\n }\n\n return false;\n }\n }, {\n key: \"onResizeStart\",\n value: function onResizeStart(event, index) {\n var pageX = event.type === 'touchstart' ? event.touches[0].pageX : event.pageX;\n var pageY = event.type === 'touchstart' ? event.touches[0].pageY : event.pageY;\n this.gutterElement = event.currentTarget;\n this.size = this.props.layout === 'horizontal' ? DomHandler.getWidth(this.container) : DomHandler.getHeight(this.container);\n this.dragging = true;\n this.startPos = this.props.layout === 'horizontal' ? pageX : pageY;\n this.prevPanelElement = this.gutterElement.previousElementSibling;\n this.nextPanelElement = this.gutterElement.nextElementSibling;\n this.prevPanelSize = 100 * (this.props.layout === 'horizontal' ? DomHandler.getOuterWidth(this.prevPanelElement, true) : DomHandler.getOuterHeight(this.prevPanelElement, true)) / this.size;\n this.nextPanelSize = 100 * (this.props.layout === 'horizontal' ? DomHandler.getOuterWidth(this.nextPanelElement, true) : DomHandler.getOuterHeight(this.nextPanelElement, true)) / this.size;\n this.prevPanelIndex = index;\n DomHandler.addClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.addClass(this.container, 'p-splitter-resizing');\n }\n }, {\n key: \"onResize\",\n value: function onResize(event) {\n var newPos;\n var pageX = event.type === 'touchmove' ? event.touches[0].pageX : event.pageX;\n var pageY = event.type === 'touchmove' ? event.touches[0].pageY : event.pageY;\n if (this.props.layout === 'horizontal') newPos = pageX * 100 / this.size - this.startPos * 100 / this.size;else newPos = pageY * 100 / this.size - this.startPos * 100 / this.size;\n var newPrevPanelSize = this.prevPanelSize + newPos;\n var newNextPanelSize = this.nextPanelSize - newPos;\n\n if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {\n this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (this.props.children.length - 1) * this.props.gutterSize + 'px)';\n this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (this.props.children.length - 1) * this.props.gutterSize + 'px)';\n this.panelSizes[this.prevPanelIndex] = newPrevPanelSize;\n this.panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;\n }\n }\n }, {\n key: \"onResizeEnd\",\n value: function onResizeEnd(event) {\n if (this.isStateful()) {\n this.saveState();\n }\n\n if (this.props.onResizeEnd) {\n this.props.onResizeEnd({\n originalEvent: event,\n sizes: this.panelSizes\n });\n }\n\n DomHandler.removeClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.removeClass(this.container, 'p-splitter-resizing');\n this.clear();\n }\n }, {\n key: \"onGutterMouseDown\",\n value: function onGutterMouseDown(event, index) {\n this.onResizeStart(event, index);\n this.bindMouseListeners();\n }\n }, {\n key: \"onGutterTouchStart\",\n value: function onGutterTouchStart(event, index) {\n this.onResizeStart(event, index);\n this.windowTouchMoveListener = this.onGutterTouchMove.bind(this);\n this.windowTouchEndListener = this.onGutterTouchEnd.bind(this);\n window.addEventListener('touchmove', this.windowTouchMoveListener, {\n passive: false,\n cancelable: false\n });\n window.addEventListener('touchend', this.windowTouchEndListener);\n }\n }, {\n key: \"onGutterTouchMove\",\n value: function onGutterTouchMove(event) {\n this.onResize(event);\n }\n }, {\n key: \"onGutterTouchEnd\",\n value: function onGutterTouchEnd(event) {\n this.onResizeEnd(event);\n window.removeEventListener('touchmove', this.windowTouchMoveListener);\n window.removeEventListener('touchend', this.windowTouchEndListener);\n this.windowTouchMoveListener = null;\n this.windowTouchEndListener = null;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this3 = this;\n\n if (this.panelElement) {\n if (this.panelElement.childNodes && ObjectUtils.isNotEmpty(DomHandler.find(this.panelElement, '.p-splitter'))) {\n DomHandler.addClass(this.panelElement, 'p-splitter-panel-nested');\n }\n }\n\n if (this.props.children && this.props.children.length) {\n var initialized = false;\n\n if (this.isStateful()) {\n initialized = this.restoreState();\n }\n\n if (!initialized) {\n var children = _toConsumableArray(this.container.children).filter(function (child) {\n return DomHandler.hasClass(child, 'p-splitter-panel');\n });\n\n var _panelSizes = [];\n this.props.children.map(function (panel, i) {\n var panelInitialSize = panel.props && panel.props.size ? panel.props.size : null;\n var panelSize = panelInitialSize || 100 / _this3.props.children.length;\n _panelSizes[i] = panelSize;\n children[i].style.flexBasis = 'calc(' + panelSize + '% - ' + (_this3.props.children.length - 1) * _this3.props.gutterSize + 'px)';\n return _panelSizes;\n });\n this.panelSizes = _panelSizes;\n }\n }\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel(panel, index) {\n var _this4 = this;\n\n var panelClassName = classNames('p-splitter-panel', panel.props.className);\n var gutterStyle = this.props.layout === 'horizontal' ? {\n width: this.props.gutterSize + 'px'\n } : {\n height: this.props.gutterSize + 'px'\n };\n var gutter = index !== this.props.children.length - 1 && /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.gutterElement = el;\n },\n className: 'p-splitter-gutter',\n style: gutterStyle,\n onMouseDown: function onMouseDown(event) {\n return _this4.onGutterMouseDown(event, index);\n },\n onTouchStart: function onTouchStart(event) {\n return _this4.onGutterTouchStart(event, index);\n },\n onTouchMove: function onTouchMove(event) {\n return _this4.onGutterTouchMove(event);\n },\n onTouchEnd: function onTouchEnd(event) {\n return _this4.onGutterTouchEnd(event);\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-splitter-gutter-handle\"\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.panelElement = el;\n },\n key: index,\n className: panelClassName,\n style: panel.props.style\n }, panel.props.children), gutter);\n }\n }, {\n key: \"renderPanels\",\n value: function renderPanels() {\n var _this5 = this;\n\n return React.Children.map(this.props.children, function (panel, index) {\n return _this5.renderPanel(panel, index);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames(\"p-splitter p-component p-splitter-\".concat(this.props.layout), this.props.className);\n var panels = this.renderPanels();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, panels);\n }\n }]);\n\n return Splitter;\n}(Component);\n\n_defineProperty(Splitter, \"defaultProps\", {\n id: null,\n className: null,\n style: null,\n lay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