katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/1dafe20d6259a91567b8661bdd4...

1 line
107 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames, ObjectUtils, DomHandler } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { Button } from 'primereact/button';\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 _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\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 _createSuper$4(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$4();\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$4() {\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 PickListItem = /*#__PURE__*/function (_Component) {\n _inherits(PickListItem, _Component);\n\n var _super = _createSuper$4(PickListItem);\n\n function PickListItem(props) {\n var _this;\n\n _classCallCheck(this, PickListItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListItem, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n value: this.props.value\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.props.onKeyDown) {\n this.props.onKeyDown({\n originalEvent: event,\n value: this.props.value\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.props.template ? this.props.template(this.props.value) : this.props.value;\n var className = classNames('p-picklist-item', {\n 'p-highlight': this.props.selected\n }, this.props.className);\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n tabIndex: this.props.tabIndex,\n role: \"option\",\n \"aria-selected\": this.props.selected\n }, content, /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return PickListItem;\n}(Component);\n\n_defineProperty(PickListItem, \"defaultProps\", {\n value: null,\n className: null,\n template: null,\n selected: false,\n tabIndex: null,\n onClick: null,\n onKeyDown: null\n});\n\nfunction _createSuper$3(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$3();\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$3() {\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 PickListSubListComponent = /*#__PURE__*/function (_Component) {\n _inherits(PickListSubListComponent, _Component);\n\n var _super = _createSuper$3(PickListSubListComponent);\n\n function PickListSubListComponent(props) {\n var _this;\n\n _classCallCheck(this, PickListSubListComponent);\n\n _this = _super.call(this, props);\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onItemKeyDown = _this.onItemKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListSubListComponent, [{\n key: \"onItemClick\",\n value: function onItemClick(event) {\n var originalEvent = event.originalEvent;\n var item = event.value;\n\n var selection = _toConsumableArray(this.props.selection);\n\n var index = ObjectUtils.findIndexInList(item, selection, this.props.dataKey);\n var selected = index !== -1;\n var metaSelection = this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = originalEvent.metaKey || originalEvent.ctrlKey;\n\n if (selected && metaKey) {\n selection.splice(index, 1);\n } else {\n if (!metaKey) {\n selection.length = 0;\n }\n\n selection.push(item);\n }\n } else {\n if (selected) selection.splice(index, 1);else selection.push(item);\n }\n\n if (this.props.onSelectionChange) {\n this.props.onSelectionChange({\n event: originalEvent,\n value: selection\n });\n }\n }\n }, {\n key: \"onItemKeyDown\",\n value: function onItemKeyDown(event) {\n var listItem = event.originalEvent.currentTarget;\n\n switch (event.originalEvent.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(listItem);\n\n if (nextItem) {\n nextItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //up\n\n case 38:\n var prevItem = this.findPrevItem(listItem);\n\n if (prevItem) {\n prevItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //enter\n\n case 13:\n this.onItemClick(event);\n event.originalEvent.preventDefault();\n break;\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return !DomHandler.hasClass(nextItem, 'p-picklist-item') ? this.findNextItem(nextItem) : nextItem;else return null;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return !DomHandler.hasClass(prevItem, 'p-picklist-item') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(item) {\n return ObjectUtils.findIndexInList(item, this.props.selection, this.props.dataKey) !== -1;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var header = null;\n var items = null;\n var wrapperClassName = classNames('p-picklist-list-wrapper', this.props.className);\n var listClassName = classNames('p-picklist-list', this.props.listClassName);\n\n if (this.props.header) {\n header = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-picklist-header\"\n }, ObjectUtils.getJSXElement(this.props.header, this.props));\n }\n\n if (this.props.list) {\n items = this.props.list.map(function (item, i) {\n return /*#__PURE__*/React.createElement(PickListItem, {\n key: JSON.stringify(item),\n value: item,\n template: _this2.props.itemTemplate,\n selected: _this2.isSelected(item),\n onClick: _this2.onItemClick,\n onKeyDown: _this2.onItemKeyDown,\n tabIndex: _this2.props.tabIndex\n });\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: wrapperClassName\n }, header, /*#__PURE__*/React.createElement(\"ul\", {\n className: listClassName,\n style: this.props.style,\n role: \"listbox\",\n \"aria-multiselectable\": true\n }, items));\n }\n }]);\n\n return PickListSubListComponent;\n}(Component);\n\nvar PickListSubList = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(PickListSubListComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction _createSuper$2(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$2();\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$2() {\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 PickListControls = /*#__PURE__*/function (_Component) {\n _inherits(PickListControls, _Component);\n\n var _super = _createSuper$2(PickListControls);\n\n function PickListControls(props) {\n var _this;\n\n _classCallCheck(this, PickListControls);\n\n _this = _super.call(this, props);\n _this.moveUp = _this.moveUp.bind(_assertThisInitialized(_this));\n _this.moveTop = _this.moveTop.bind(_assertThisInitialized(_this));\n _this.moveDown = _this.moveDown.bind(_assertThisInitialized(_this));\n _this.moveBottom = _this.moveBottom.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListControls, [{\n key: \"moveUp\",\n value: function moveUp(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = 0; i < selectedItems.length; i++) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = list[selectedItemIndex];\n var temp = list[selectedItemIndex - 1];\n list[selectedItemIndex - 1] = movedItem;\n list[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'up'\n });\n }\n }\n }\n }, {\n key: \"moveTop\",\n value: function moveTop(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = 0; i < selectedItems.length; i++) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = list.splice(selectedItemIndex, 1)[0];\n list.unshift(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'top'\n });\n }\n }\n }\n }, {\n key: \"moveDown\",\n value: function moveDown(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = selectedItems.length - 1; i >= 0; i--) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== list.length - 1) {\n var movedItem = list[selectedItemIndex];\n var temp = list[selectedItemIndex + 1];\n list[selectedItemIndex + 1] = movedItem;\n list[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'down'\n });\n }\n\n this.movedDown = true;\n }\n }\n }, {\n key: \"moveBottom\",\n value: function moveBottom(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = selectedItems.length - 1; i >= 0; i--) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== list.length - 1) {\n var movedItem = list.splice(selectedItemIndex, 1)[0];\n list.push(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'bottom'\n });\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var moveDisabled = !this.props.selection.length;\n var className = classNames('p-picklist-buttons', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-up\",\n onClick: this.moveUp\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-up\",\n onClick: this.moveTop\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-down\",\n onClick: this.moveDown\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-down\",\n onClick: this.moveBottom\n }));\n }\n }]);\n\n return PickListControls;\n}(Component);\n\nfunction _createSuper$1(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$1();\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$1() {\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 PickListTransferControls = /*#__PURE__*/function (_Component) {\n _inherits(PickListTransferControls, _Component);\n\n var _super = _createSuper$1(PickListTransferControls);\n\n function PickListTransferControls(props) {\n var _this;\n\n _classCallCheck(this, PickListTransferControls);\n\n _this = _super.call(this, props);\n _this.moveRight = _this.moveRight.bind(_assertThisInitialized(_this));\n _this.moveAllRight = _this.moveAllRight.bind(_assertThisInitialized(_this));\n _this.moveLeft = _this.moveLeft.bind(_assertThisInitialized(_this));\n _this.moveAllLeft = _this.moveAllLeft.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListTransferControls, [{\n key: \"moveRight\",\n value: function moveRight(event) {\n var selection = this.props.sourceSelection;\n\n if (ObjectUtils.isNotEmpty(selection)) {\n var targetList = _toConsumableArray(this.props.target);\n\n var sourceList = _toConsumableArray(this.props.source);\n\n for (var i = 0; i < selection.length; i++) {\n var selectedItem = selection[i];\n\n if (ObjectUtils.findIndexInList(selectedItem, targetList, this.props.dataKey) === -1) {\n targetList.push(sourceList.splice(ObjectUtils.findIndexInList(selectedItem, sourceList, this.props.dataKey), 1)[0]);\n }\n }\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'toTarget'\n });\n }\n }\n }\n }, {\n key: \"moveAllRight\",\n value: function moveAllRight(event) {\n if (this.props.source) {\n var targetList = [].concat(_toConsumableArray(this.props.target), _toConsumableArray(this.props.source));\n var sourceList = [];\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'allToTarget'\n });\n }\n }\n }\n }, {\n key: \"moveLeft\",\n value: function moveLeft(event) {\n var selection = this.props.targetSelection;\n\n if (ObjectUtils.isNotEmpty(selection)) {\n var targetList = _toConsumableArray(this.props.target);\n\n var sourceList = _toConsumableArray(this.props.source);\n\n for (var i = 0; i < selection.length; i++) {\n var selectedItem = selection[i];\n\n if (ObjectUtils.findIndexInList(selectedItem, sourceList, this.props.dataKey) === -1) {\n sourceList.push(targetList.splice(ObjectUtils.findIndexInList(selectedItem, targetList, this.props.dataKey), 1)[0]);\n }\n }\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'toSource'\n });\n }\n }\n }\n }, {\n key: \"moveAllLeft\",\n value: function moveAllLeft(event) {\n if (this.props.source) {\n var sourceList = [].concat(_toConsumableArray(this.props.source), _toConsumableArray(this.props.target));\n var targetList = [];\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'allToSource'\n });\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var moveRightDisabled = ObjectUtils.isEmpty(this.props.sourceSelection);\n var moveLeftDisabled = ObjectUtils.isEmpty(this.props.targetSelection);\n var moveAllRightDisabled = ObjectUtils.isEmpty(this.props.source);\n var moveAllLeftDisabled = ObjectUtils.isEmpty(this.props.target);\n var className = classNames('p-picklist-buttons p-picklist-transfer-buttons', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(Button, {\n disabled: moveRightDisabled,\n type: \"button\",\n icon: \"pi pi-angle-right\",\n onClick: this.moveRight\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveAllRightDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-right\",\n onClick: this.moveAllRight\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveLeftDisabled,\n type: \"button\",\n icon: \"pi pi-angle-left\",\n onClick: this.moveLeft\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveAllLeftDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-left\",\n onClick: this.moveAllLeft\n }));\n }\n }]);\n\n return PickListTransferControls;\n}(Component);\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 PickList = /*#__PURE__*/function (_Component) {\n _inherits(PickList, _Component);\n\n var _super = _createSuper(PickList);\n\n function PickList(props) {\n var _this;\n\n _classCallCheck(this, PickList);\n\n _this = _super.call(this, props);\n _this.state = {};\n\n if (!_this.props.onSourceSelectionChange) {\n _this.state.sourceSelection = [];\n }\n\n if (!_this.props.onTargetSelectionChange) {\n _this.state.targetSelection = [];\n }\n\n _this.onSourceReorder = _this.onSourceReorder.bind(_assertThisInitialized(_this));\n _this.onTargetReorder = _this.onTargetReorder.bind(_assertThisInitialized(_this));\n _this.onTransfer = _this.onTransfer.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickList, [{\n key: \"getSourceSelection\",\n value: function getSourceSelection() {\n return this.props.onSourceSelectionChange ? this.props.sourceSelection : this.state.sourceSelection;\n }\n }, {\n key: \"getTargetSelection\",\n value: function getTargetSelection() {\n return this.props.onTargetSelectionChange ? this.props.targetSelection : this.state.targetSelection;\n }\n }, {\n key: \"onSourceReorder\",\n value: function onSourceReorder(event) {\n this.handleChange(event, event.value, this.props.target);\n this.reorderedListElement = this.sourceListElement;\n this.reorderDirection = event.direction;\n }\n }, {\n key: \"onTargetReorder\",\n value: function onTargetReorder(event) {\n this.handleChange(event, this.props.source, event.value);\n this.reorderedListElement = this.targetListElement;\n this.reorderDirection = event.direction;\n }\n }, {\n key: \"handleScrollPosition\",\n value: function handleScrollPosition(listElement, direction) {\n if (listElement) {\n var listContainer = DomHandler.findSingle(listElement, '.p-picklist-list');\n\n switch (direction) {\n case 'up':\n this.scrollInView(listContainer, -1);\n break;\n\n case 'top':\n listContainer.scrollTop = 0;\n break;\n\n case 'down':\n this.scrollInView(listContainer, 1);\n break;\n\n case 'bottom':\n listContainer.scrollTop = listContainer.scrollHeight;\n break;\n }\n }\n }\n }, {\n key: \"handleChange\",\n value: function handleChange(event, source, target) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event.originalEvent,\n source: source,\n target: target\n });\n }\n }\n }, {\n key: \"onTransfer\",\n value: function onTransfer(event) {\n var originalEvent = event.originalEvent,\n source = event.source,\n target = event.target,\n direction = event.direction;\n\n switch (direction) {\n case 'toTarget':\n if (this.props.onMoveToTarget) {\n this.props.onMoveToTarget({\n originalEvent: originalEvent,\n value: this.getSourceSelection()\n });\n }\n\n break;\n\n case 'allToTarget':\n if (this.props.onMoveAllToTarget) {\n this.props.onMoveAllToTarget({\n originalEvent: originalEvent,\n value: this.props.source\n });\n }\n\n break;\n\n case 'toSource':\n if (this.props.onMoveToSource) {\n this.props.onMoveToSource({\n originalEvent: originalEvent,\n value: this.getTargetSelection()\n });\n }\n\n break;\n\n case 'allToSource':\n if (this.props.onMoveAllToSource) {\n this.props.onMoveAllToSource({\n originalEvent: originalEvent,\n value: this.props.target\n });\n }\n\n break;\n }\n\n this.onSelectionChange({\n originalEvent: originalEvent,\n value: []\n }, 'sourceSelection', this.props.onSourceSelectionChange);\n this.onSelectionChange({\n originalEvent: originalEvent,\n value: []\n }, 'targetSelection', this.props.onTargetSelectionChange);\n this.handleChange(event, source, target);\n }\n }, {\n key: \"scrollInView\",\n value: function scrollInView(listContainer) {\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var selectedItems = listContainer.getElementsByClassName('p-highlight');\n\n if (ObjectUtils.isNotEmpty(selectedItems)) {\n DomHandler.scrollInView(listContainer, direction === -1 ? selectedItems[0] : selectedItems[selectedItems.length - 1]);\n }\n }\n }, {\n key: \"onSelectionChange\",\n value: function onSelectionChange(e, stateKey, callback) {\n if (callback) {\n callback(e);\n } else {\n this.setState(_defineProperty({}, stateKey, e.value));\n }\n\n if (ObjectUtils.isNotEmpty(this.state.sourceSelection) && stateKey === 'targetSelection') {\n this.setState({\n sourceSelection: []\n });\n } else if (ObjectUtils.isNotEmpty(this.state.targetSelection) && stateKey === 'sourceSelection') {\n this.setState({\n targetSelection: []\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.reorderedListElement) {\n this.handleScrollPosition(this.reorderedListElement, this.reorderDirection);\n this.reorderedListElement = null;\n this.reorderDirection = null;\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-picklist p-component', this.props.className);\n var sourceSelection = this.getSourceSelection();\n var targetSelection = this.getTargetSelection();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, this.props.showSourceControls && /*#__PURE__*/React.createElement(PickListControls, {\n list: this.props.source,\n selection: sourceSelection,\n onReorder: this.onSourceReorder,\n className: \"p-picklist-source-controls\",\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListSubList, {\n ref: function ref(el) {\n return _this2.sourceListElement = el;\n },\n list: this.props.source,\n selection: sourceSelection,\n onSelectionChange: function onSelectionChange(e) {\n return _this2.onSelectionChange(e, 'sourceSelection', _this2.props.onSourceSelectionChange);\n },\n itemTemplate: this.props.itemTemplate,\n header: this.props.sourceHeader,\n style: this.props.sourceStyle,\n className: \"p-picklist-source-wrapper\",\n listClassName: \"p-picklist-source\",\n metaKeySelection: this.props.metaKeySelection,\n tabIndex: this.props.tabIndex,\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListTransferControls, {\n onTransfer: this.onTransfer,\n source: this.props.source,\n target: this.props.target,\n sourceSelection: sourceSelection,\n targetSelection: targetSelection,\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListSubList, {\n ref: function ref(el) {\n return _this2.targetListElement = el;\n },\n list: this.props.target,\n selection: targetSelection,\n onSelectionChange: function onSelectionChange(e) {\n return _this2.onSelectionChange(e, 'targetSelection', _this2.props.onTargetSelectionChange);\n },\n itemTemplate: this.props.itemTemplate,\n header: this.props.targetHeader,\n style: this.props.targetStyle,\n className: \"p-picklist-target-wrapper\",\n listClassName: \"p-picklist-target\",\n metaKeySelection: this.props.metaKeySelection,\n tabIndex: this.props.tabIndex,\n dataKey: this.props.dataKey\n }), this.props.showTargetControls && /*#__PURE__*/React.createElement(PickListControls, {\n list: this.props.target,\n selection: targetSelection,\n onReorder: this.onTargetReorder,\n className: \"p-picklist-target-controls\",\n dataKey: this.props.dataKey\n }));\n }\n }]);\n\n return PickList;\n}(Component);\n\n_defineProperty(PickList, \"defaultProps\", {\n id: null,\n source: null,\n target: null,\n sourceHeader: null,\n targetHeader: null,\n style: null,\n className: null,\n sourceStyle: null,\n targetStyle: null,\n sourceSelection: null,\n targetSelection: null,\n showSourceControls: true,\n showTargetControls: true,\n metaKeySelection: true,\n tabIndex: 0,\n dataKey: null,\n itemTemplate: null,\n onChange: null,\n onMoveToSource: null,\n onMoveAllToSource: null,\n onMoveToTarget: null,\n onMoveAllToTarget: null,\n onSourceSelectionChange: null,\n onTargetSelectionChange: null\n});\n\nexport { PickList };","map":{"version":3,"names":["React","Component","classNames","ObjectUtils","DomHandler","Ripple","Button","_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","_extends","assign","arguments","source","hasOwnProperty","apply","_arrayLikeToArray","arr","len","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","from","_unsupportedIterableToArray","minLen","n","toString","slice","name","test","_nonIterableSpread","_toConsumableArray","_createSuper$4","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$4","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","PickListItem","_Component","_super","_this","onClick","bind","onKeyDown","event","originalEvent","render","content","template","className","selected","createElement","tabIndex","role","_createSuper$3","_isNativeReflectConstruct$3","PickListSubListComponent","onItemClick","onItemKeyDown","item","selection","index","findIndexInList","dataKey","metaSelection","metaKeySelection","metaKey","ctrlKey","splice","push","onSelectionChange","listItem","currentTarget","which","nextItem","findNextItem","focus","preventDefault","prevItem","findPrevItem","nextElementSibling","hasClass","previousElementSibling","isSelected","_this2","header","items","wrapperClassName","listClassName","getJSXElement","list","map","JSON","stringify","itemTemplate","ref","forwardRef","style","PickListSubList","_createSuper$2","_isNativeReflectConstruct$2","PickListControls","moveUp","moveTop","moveDown","moveBottom","selectedItems","selectedItem","selectedItemIndex","movedItem","temp","onReorder","direction","unshift","movedDown","moveDisabled","disabled","type","icon","_createSuper$1","_isNativeReflectConstruct$1","PickListTransferControls","moveRight","moveAllRight","moveLeft","moveAllLeft","sourceSelection","isNotEmpty","targetList","sourceList","onTransfer","concat","targetSelection","moveRightDisabled","isEmpty","moveLeftDisabled","moveAllRightDisabled","moveAllLeftDisabled","_createSuper","_isNativeReflectConstruct","PickList","state","onSourceSelectionChange","onTargetSelectionChange","onSourceReorder","onTargetReorder","getSourceSelection","getTargetSelection","handleChange","reorderedListElement","sourceListElement","reorderDirection","targetListElement","handleScrollPosition","listElement","listContainer","findSingle","scrollInView","scrollTop","scrollHeight","onChange","onMoveToTarget","onMoveAllToTarget","onMoveToSource","onMoveAllToSource","undefined","getElementsByClassName","stateKey","callback","setState","componentDidUpdate","id","showSourceControls","el","sourceHeader","sourceStyle","targetHeader","targetStyle","showTargetControls"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/picklist/picklist.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames, ObjectUtils, DomHandler } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { Button } from 'primereact/button';\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 _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\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 _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); 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$4() { 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 PickListItem = /*#__PURE__*/function (_Component) {\n _inherits(PickListItem, _Component);\n\n var _super = _createSuper$4(PickListItem);\n\n function PickListItem(props) {\n var _this;\n\n _classCallCheck(this, PickListItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListItem, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n value: this.props.value\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.props.onKeyDown) {\n this.props.onKeyDown({\n originalEvent: event,\n value: this.props.value\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.props.template ? this.props.template(this.props.value) : this.props.value;\n var className = classNames('p-picklist-item', {\n 'p-highlight': this.props.selected\n }, this.props.className);\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n tabIndex: this.props.tabIndex,\n role: \"option\",\n \"aria-selected\": this.props.selected\n }, content, /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return PickListItem;\n}(Component);\n\n_defineProperty(PickListItem, \"defaultProps\", {\n value: null,\n className: null,\n template: null,\n selected: false,\n tabIndex: null,\n onClick: null,\n onKeyDown: null\n});\n\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); 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$3() { 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\nvar PickListSubListComponent = /*#__PURE__*/function (_Component) {\n _inherits(PickListSubListComponent, _Component);\n\n var _super = _createSuper$3(PickListSubListComponent);\n\n function PickListSubListComponent(props) {\n var _this;\n\n _classCallCheck(this, PickListSubListComponent);\n\n _this = _super.call(this, props);\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onItemKeyDown = _this.onItemKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListSubListComponent, [{\n key: \"onItemClick\",\n value: function onItemClick(event) {\n var originalEvent = event.originalEvent;\n var item = event.value;\n\n var selection = _toConsumableArray(this.props.selection);\n\n var index = ObjectUtils.findIndexInList(item, selection, this.props.dataKey);\n var selected = index !== -1;\n var metaSelection = this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = originalEvent.metaKey || originalEvent.ctrlKey;\n\n if (selected && metaKey) {\n selection.splice(index, 1);\n } else {\n if (!metaKey) {\n selection.length = 0;\n }\n\n selection.push(item);\n }\n } else {\n if (selected) selection.splice(index, 1);else selection.push(item);\n }\n\n if (this.props.onSelectionChange) {\n this.props.onSelectionChange({\n event: originalEvent,\n value: selection\n });\n }\n }\n }, {\n key: \"onItemKeyDown\",\n value: function onItemKeyDown(event) {\n var listItem = event.originalEvent.currentTarget;\n\n switch (event.originalEvent.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(listItem);\n\n if (nextItem) {\n nextItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //up\n\n case 38:\n var prevItem = this.findPrevItem(listItem);\n\n if (prevItem) {\n prevItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //enter\n\n case 13:\n this.onItemClick(event);\n event.originalEvent.preventDefault();\n break;\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return !DomHandler.hasClass(nextItem, 'p-picklist-item') ? this.findNextItem(nextItem) : nextItem;else return null;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return !DomHandler.hasClass(prevItem, 'p-picklist-item') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(item) {\n return ObjectUtils.findIndexInList(item, this.props.selection, this.props.dataKey) !== -1;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var header = null;\n var items = null;\n var wrapperClassName = classNames('p-picklist-list-wrapper', this.props.className);\n var listClassName = classNames('p-picklist-list', this.props.listClassName);\n\n if (this.props.header) {\n header = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-picklist-header\"\n }, ObjectUtils.getJSXElement(this.props.header, this.props));\n }\n\n if (this.props.list) {\n items = this.props.list.map(function (item, i) {\n return /*#__PURE__*/React.createElement(PickListItem, {\n key: JSON.stringify(item),\n value: item,\n template: _this2.props.itemTemplate,\n selected: _this2.isSelected(item),\n onClick: _this2.onItemClick,\n onKeyDown: _this2.onItemKeyDown,\n tabIndex: _this2.props.tabIndex\n });\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: wrapperClassName\n }, header, /*#__PURE__*/React.createElement(\"ul\", {\n className: listClassName,\n style: this.props.style,\n role: \"listbox\",\n \"aria-multiselectable\": true\n }, items));\n }\n }]);\n\n return PickListSubListComponent;\n}(Component);\n\nvar PickListSubList = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(PickListSubListComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); 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$2() { 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 PickListControls = /*#__PURE__*/function (_Component) {\n _inherits(PickListControls, _Component);\n\n var _super = _createSuper$2(PickListControls);\n\n function PickListControls(props) {\n var _this;\n\n _classCallCheck(this, PickListControls);\n\n _this = _super.call(this, props);\n _this.moveUp = _this.moveUp.bind(_assertThisInitialized(_this));\n _this.moveTop = _this.moveTop.bind(_assertThisInitialized(_this));\n _this.moveDown = _this.moveDown.bind(_assertThisInitialized(_this));\n _this.moveBottom = _this.moveBottom.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListControls, [{\n key: \"moveUp\",\n value: function moveUp(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = 0; i < selectedItems.length; i++) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = list[selectedItemIndex];\n var temp = list[selectedItemIndex - 1];\n list[selectedItemIndex - 1] = movedItem;\n list[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'up'\n });\n }\n }\n }\n }, {\n key: \"moveTop\",\n value: function moveTop(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = 0; i < selectedItems.length; i++) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = list.splice(selectedItemIndex, 1)[0];\n list.unshift(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'top'\n });\n }\n }\n }\n }, {\n key: \"moveDown\",\n value: function moveDown(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = selectedItems.length - 1; i >= 0; i--) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== list.length - 1) {\n var movedItem = list[selectedItemIndex];\n var temp = list[selectedItemIndex + 1];\n list[selectedItemIndex + 1] = movedItem;\n list[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'down'\n });\n }\n\n this.movedDown = true;\n }\n }\n }, {\n key: \"moveBottom\",\n value: function moveBottom(event) {\n var selectedItems = this.props.selection;\n\n if (selectedItems && selectedItems.length) {\n var list = _toConsumableArray(this.props.list);\n\n for (var i = selectedItems.length - 1; i >= 0; i--) {\n var selectedItem = selectedItems[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, list, this.props.dataKey);\n\n if (selectedItemIndex !== list.length - 1) {\n var movedItem = list.splice(selectedItemIndex, 1)[0];\n list.push(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: list,\n direction: 'bottom'\n });\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var moveDisabled = !this.props.selection.length;\n var className = classNames('p-picklist-buttons', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-up\",\n onClick: this.moveUp\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-up\",\n onClick: this.moveTop\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-down\",\n onClick: this.moveDown\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-down\",\n onClick: this.moveBottom\n }));\n }\n }]);\n\n return PickListControls;\n}(Component);\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); 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$1() { 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 PickListTransferControls = /*#__PURE__*/function (_Component) {\n _inherits(PickListTransferControls, _Component);\n\n var _super = _createSuper$1(PickListTransferControls);\n\n function PickListTransferControls(props) {\n var _this;\n\n _classCallCheck(this, PickListTransferControls);\n\n _this = _super.call(this, props);\n _this.moveRight = _this.moveRight.bind(_assertThisInitialized(_this));\n _this.moveAllRight = _this.moveAllRight.bind(_assertThisInitialized(_this));\n _this.moveLeft = _this.moveLeft.bind(_assertThisInitialized(_this));\n _this.moveAllLeft = _this.moveAllLeft.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickListTransferControls, [{\n key: \"moveRight\",\n value: function moveRight(event) {\n var selection = this.props.sourceSelection;\n\n if (ObjectUtils.isNotEmpty(selection)) {\n var targetList = _toConsumableArray(this.props.target);\n\n var sourceList = _toConsumableArray(this.props.source);\n\n for (var i = 0; i < selection.length; i++) {\n var selectedItem = selection[i];\n\n if (ObjectUtils.findIndexInList(selectedItem, targetList, this.props.dataKey) === -1) {\n targetList.push(sourceList.splice(ObjectUtils.findIndexInList(selectedItem, sourceList, this.props.dataKey), 1)[0]);\n }\n }\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'toTarget'\n });\n }\n }\n }\n }, {\n key: \"moveAllRight\",\n value: function moveAllRight(event) {\n if (this.props.source) {\n var targetList = [].concat(_toConsumableArray(this.props.target), _toConsumableArray(this.props.source));\n var sourceList = [];\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'allToTarget'\n });\n }\n }\n }\n }, {\n key: \"moveLeft\",\n value: function moveLeft(event) {\n var selection = this.props.targetSelection;\n\n if (ObjectUtils.isNotEmpty(selection)) {\n var targetList = _toConsumableArray(this.props.target);\n\n var sourceList = _toConsumableArray(this.props.source);\n\n for (var i = 0; i < selection.length; i++) {\n var selectedItem = selection[i];\n\n if (ObjectUtils.findIndexInList(selectedItem, sourceList, this.props.dataKey) === -1) {\n sourceList.push(targetList.splice(ObjectUtils.findIndexInList(selectedItem, targetList, this.props.dataKey), 1)[0]);\n }\n }\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'toSource'\n });\n }\n }\n }\n }, {\n key: \"moveAllLeft\",\n value: function moveAllLeft(event) {\n if (this.props.source) {\n var sourceList = [].concat(_toConsumableArray(this.props.source), _toConsumableArray(this.props.target));\n var targetList = [];\n\n if (this.props.onTransfer) {\n this.props.onTransfer({\n originalEvent: event,\n source: sourceList,\n target: targetList,\n direction: 'allToSource'\n });\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var moveRightDisabled = ObjectUtils.isEmpty(this.props.sourceSelection);\n var moveLeftDisabled = ObjectUtils.isEmpty(this.props.targetSelection);\n var moveAllRightDisabled = ObjectUtils.isEmpty(this.props.source);\n var moveAllLeftDisabled = ObjectUtils.isEmpty(this.props.target);\n var className = classNames('p-picklist-buttons p-picklist-transfer-buttons', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(Button, {\n disabled: moveRightDisabled,\n type: \"button\",\n icon: \"pi pi-angle-right\",\n onClick: this.moveRight\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveAllRightDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-right\",\n onClick: this.moveAllRight\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveLeftDisabled,\n type: \"button\",\n icon: \"pi pi-angle-left\",\n onClick: this.moveLeft\n }), /*#__PURE__*/React.createElement(Button, {\n disabled: moveAllLeftDisabled,\n type: \"button\",\n icon: \"pi pi-angle-double-left\",\n onClick: this.moveAllLeft\n }));\n }\n }]);\n\n return PickListTransferControls;\n}(Component);\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 PickList = /*#__PURE__*/function (_Component) {\n _inherits(PickList, _Component);\n\n var _super = _createSuper(PickList);\n\n function PickList(props) {\n var _this;\n\n _classCallCheck(this, PickList);\n\n _this = _super.call(this, props);\n _this.state = {};\n\n if (!_this.props.onSourceSelectionChange) {\n _this.state.sourceSelection = [];\n }\n\n if (!_this.props.onTargetSelectionChange) {\n _this.state.targetSelection = [];\n }\n\n _this.onSourceReorder = _this.onSourceReorder.bind(_assertThisInitialized(_this));\n _this.onTargetReorder = _this.onTargetReorder.bind(_assertThisInitialized(_this));\n _this.onTransfer = _this.onTransfer.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(PickList, [{\n key: \"getSourceSelection\",\n value: function getSourceSelection() {\n return this.props.onSourceSelectionChange ? this.props.sourceSelection : this.state.sourceSelection;\n }\n }, {\n key: \"getTargetSelection\",\n value: function getTargetSelection() {\n return this.props.onTargetSelectionChange ? this.props.targetSelection : this.state.targetSelection;\n }\n }, {\n key: \"onSourceReorder\",\n value: function onSourceReorder(event) {\n this.handleChange(event, event.value, this.props.target);\n this.reorderedListElement = this.sourceListElement;\n this.reorderDirection = event.direction;\n }\n }, {\n key: \"onTargetReorder\",\n value: function onTargetReorder(event) {\n this.handleChange(event, this.props.source, event.value);\n this.reorderedListElement = this.targetListElement;\n this.reorderDirection = event.direction;\n }\n }, {\n key: \"handleScrollPosition\",\n value: function handleScrollPosition(listElement, direction) {\n if (listElement) {\n var listContainer = DomHandler.findSingle(listElement, '.p-picklist-list');\n\n switch (direction) {\n case 'up':\n this.scrollInView(listContainer, -1);\n break;\n\n case 'top':\n listContainer.scrollTop = 0;\n break;\n\n case 'down':\n this.scrollInView(listContainer, 1);\n break;\n\n case 'bottom':\n listContainer.scrollTop = listContainer.scrollHeight;\n break;\n }\n }\n }\n }, {\n key: \"handleChange\",\n value: function handleChange(event, source, target) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event.originalEvent,\n source: source,\n target: target\n });\n }\n }\n }, {\n key: \"onTransfer\",\n value: function onTransfer(event) {\n var originalEvent = event.originalEvent,\n source = event.source,\n target = event.target,\n direction = event.direction;\n\n switch (direction) {\n case 'toTarget':\n if (this.props.onMoveToTarget) {\n this.props.onMoveToTarget({\n originalEvent: originalEvent,\n value: this.getSourceSelection()\n });\n }\n\n break;\n\n case 'allToTarget':\n if (this.props.onMoveAllToTarget) {\n this.props.onMoveAllToTarget({\n originalEvent: originalEvent,\n value: this.props.source\n });\n }\n\n break;\n\n case 'toSource':\n if (this.props.onMoveToSource) {\n this.props.onMoveToSource({\n originalEvent: originalEvent,\n value: this.getTargetSelection()\n });\n }\n\n break;\n\n case 'allToSource':\n if (this.props.onMoveAllToSource) {\n this.props.onMoveAllToSource({\n originalEvent: originalEvent,\n value: this.props.target\n });\n }\n\n break;\n }\n\n this.onSelectionChange({\n originalEvent: originalEvent,\n value: []\n }, 'sourceSelection', this.props.onSourceSelectionChange);\n this.onSelectionChange({\n originalEvent: originalEvent,\n value: []\n }, 'targetSelection', this.props.onTargetSelectionChange);\n this.handleChange(event, source, target);\n }\n }, {\n key: \"scrollInView\",\n value: function scrollInView(listContainer) {\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var selectedItems = listContainer.getElementsByClassName('p-highlight');\n\n if (ObjectUtils.isNotEmpty(selectedItems)) {\n DomHandler.scrollInView(listContainer, direction === -1 ? selectedItems[0] : selectedItems[selectedItems.length - 1]);\n }\n }\n }, {\n key: \"onSelectionChange\",\n value: function onSelectionChange(e, stateKey, callback) {\n if (callback) {\n callback(e);\n } else {\n this.setState(_defineProperty({}, stateKey, e.value));\n }\n\n if (ObjectUtils.isNotEmpty(this.state.sourceSelection) && stateKey === 'targetSelection') {\n this.setState({\n sourceSelection: []\n });\n } else if (ObjectUtils.isNotEmpty(this.state.targetSelection) && stateKey === 'sourceSelection') {\n this.setState({\n targetSelection: []\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.reorderedListElement) {\n this.handleScrollPosition(this.reorderedListElement, this.reorderDirection);\n this.reorderedListElement = null;\n this.reorderDirection = null;\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-picklist p-component', this.props.className);\n var sourceSelection = this.getSourceSelection();\n var targetSelection = this.getTargetSelection();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, this.props.showSourceControls && /*#__PURE__*/React.createElement(PickListControls, {\n list: this.props.source,\n selection: sourceSelection,\n onReorder: this.onSourceReorder,\n className: \"p-picklist-source-controls\",\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListSubList, {\n ref: function ref(el) {\n return _this2.sourceListElement = el;\n },\n list: this.props.source,\n selection: sourceSelection,\n onSelectionChange: function onSelectionChange(e) {\n return _this2.onSelectionChange(e, 'sourceSelection', _this2.props.onSourceSelectionChange);\n },\n itemTemplate: this.props.itemTemplate,\n header: this.props.sourceHeader,\n style: this.props.sourceStyle,\n className: \"p-picklist-source-wrapper\",\n listClassName: \"p-picklist-source\",\n metaKeySelection: this.props.metaKeySelection,\n tabIndex: this.props.tabIndex,\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListTransferControls, {\n onTransfer: this.onTransfer,\n source: this.props.source,\n target: this.props.target,\n sourceSelection: sourceSelection,\n targetSelection: targetSelection,\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(PickListSubList, {\n ref: function ref(el) {\n return _this2.targetListElement = el;\n },\n list: this.props.target,\n selection: targetSelection,\n onSelectionChange: function onSelectionChange(e) {\n return _this2.onSelectionChange(e, 'targetSelection', _this2.props.onTargetSelectionChange);\n },\n itemTemplate: this.props.itemTemplate,\n header: this.props.targetHeader,\n style: this.props.targetStyle,\n className: \"p-picklist-target-wrapper\",\n listClassName: \"p-picklist-target\",\n metaKeySelection: this.props.metaKeySelection,\n tabIndex: this.props.tabIndex,\n dataKey: this.props.dataKey\n }), this.props.showTargetControls && /*#__PURE__*/React.createElement(PickListControls, {\n list: this.props.target,\n selection: targetSelection,\n onReorder: this.onTargetReorder,\n className: \"p-picklist-target-controls\",\n dataKey: this.props.dataKey\n }));\n }\n }]);\n\n return PickList;\n}(Component);\n\n_defineProperty(PickList, \"defaultProps\", {\n id: null,\n source: null,\n target: null,\n sourceHeader: null,\n targetHeader: null,\n style: null,\n className: null,\n sourceStyle: null,\n targetStyle: null,\n sourceSelection: null,\n targetSelection: null,\n showSourceControls: true,\n showTargetControls: true,\n metaKeySelection: true,\n tabIndex: 0,\n dataKey: null,\n itemTemplate: null,\n onChange: null,\n onMoveToSource: null,\n onMoveAllToSource: null,\n onMoveToTarget: null,\n onMoveAllToTarget: null,\n onSourceSelectionChange: null,\n onTargetSelectionChange: null\n});\n\nexport { PickList };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,UAAlC,QAAoD,kBAApD;AACA,SAASC,MAAT,QAAuB,mBAAvB;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,EAA0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