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

1 line
109 KiB
JSON

{"ast":null,"code":"import React, { Component, createRef } from 'react';\nimport { classNames, ObjectUtils, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primereact/utils';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Tree } from 'primereact/tree';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { Ripple } from 'primereact/ripple';\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 _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 TreeSelectPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(TreeSelectPanelComponent, _Component);\n\n var _super = _createSuper$1(TreeSelectPanelComponent);\n\n function TreeSelectPanelComponent() {\n _classCallCheck(this, TreeSelectPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(TreeSelectPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-treeselect-panel p-component', this.props.panelClassName);\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.props.forwardRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.props[\"in\"],\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.props.onEnter,\n onEntering: this.props.onEntering,\n onEntered: this.props.onEntered,\n onExit: this.props.onExit,\n onExited: this.props.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n style: this.props.panelStyle,\n onClick: this.props.onClick\n }, this.props.header, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-items-wrapper\",\n style: {\n maxHeight: this.props.scrollHeight || 'auto'\n }\n }, this.props.children), this.props.footer));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return TreeSelectPanelComponent;\n}(Component);\n\nvar TreeSelectPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(TreeSelectPanelComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\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 _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 ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _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 TreeSelect = /*#__PURE__*/function (_Component) {\n _inherits(TreeSelect, _Component);\n\n var _super = _createSuper(TreeSelect);\n\n function TreeSelect(props) {\n var _this;\n\n _classCallCheck(this, TreeSelect);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false,\n overlayVisible: false,\n expandedKeys: {}\n };\n\n if (!_this.props.onFilterValueChange) {\n _this.state['filterValue'] = '';\n }\n\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onInputFocus = _this.onInputFocus.bind(_assertThisInitialized(_this));\n _this.onInputBlur = _this.onInputBlur.bind(_assertThisInitialized(_this));\n _this.onInputKeyDown = _this.onInputKeyDown.bind(_assertThisInitialized(_this));\n _this.onFilterInputChange = _this.onFilterInputChange.bind(_assertThisInitialized(_this));\n _this.onFilterInputKeyDown = _this.onFilterInputKeyDown.bind(_assertThisInitialized(_this));\n _this.onOverlayClick = _this.onOverlayClick.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onSelectionChange = _this.onSelectionChange.bind(_assertThisInitialized(_this));\n _this.onNodeSelect = _this.onNodeSelect.bind(_assertThisInitialized(_this));\n _this.onNodeUnselect = _this.onNodeUnselect.bind(_assertThisInitialized(_this));\n _this.onNodeToggle = _this.onNodeToggle.bind(_assertThisInitialized(_this));\n _this.onFilterValueChange = _this.onFilterValueChange.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n return _this;\n }\n\n _createClass(TreeSelect, [{\n key: \"getFilterValue\",\n value: function getFilterValue() {\n return this.props.onFilterValueChange ? this.props.filterValue : this.state.filterValue;\n }\n }, {\n key: \"getSelectedNodes\",\n value: function getSelectedNodes() {\n var selectedNodes = [];\n\n if (ObjectUtils.isNotEmpty(this.props.value) && this.props.options) {\n var keys = this.props.selectionMode === 'single' ? _defineProperty({}, \"\".concat(this.props.value), true) : _objectSpread({}, this.props.value);\n this.findSelectedNodes(null, keys, selectedNodes);\n }\n\n return selectedNodes;\n }\n }, {\n key: \"getLabel\",\n value: function getLabel() {\n var value = this.getSelectedNodes();\n return value.length ? value.map(function (node) {\n return node.label;\n }).join(', ') : this.props.placeholder;\n }\n }, {\n key: \"isValueEmpty\",\n value: function isValueEmpty() {\n return !this.props.value || Object.keys(this.props.value).length === 0;\n }\n }, {\n key: \"hasNoOptions\",\n value: function hasNoOptions() {\n return !this.props.options || this.props.options.length === 0;\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onInputFocus\",\n value: function onInputFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onInputBlur\",\n value: function onInputBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled && (!this.overlayRef || !this.overlayRef.current || !this.overlayRef.current.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-treeselect-close')) {\n this.focusInput.focus();\n\n if (this.state.overlayVisible) {\n this.hide();\n } else {\n this.show();\n }\n }\n }\n }, {\n key: \"onSelectionChange\",\n value: function onSelectionChange(event) {\n if (this.props.onChange) {\n this.selfChange = true;\n this.props.onChange({\n originalEvent: event.originalEvent,\n value: event.value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: event.value\n }\n });\n }\n }\n }, {\n key: \"onNodeSelect\",\n value: function onNodeSelect(node) {\n this.props.onNodeSelect && this.props.onNodeSelect(node);\n\n if (this.props.selectionMode === 'single') {\n this.hide();\n }\n }\n }, {\n key: \"onNodeUnselect\",\n value: function onNodeUnselect(node) {\n this.props.onNodeUnselect && this.props.onNodeUnselect(node);\n }\n }, {\n key: \"onNodeToggle\",\n value: function onNodeToggle(e) {\n this.setState({\n expandedKeys: e.value\n });\n }\n }, {\n key: \"onFilterValueChange\",\n value: function onFilterValueChange(e) {\n this.setState({\n filterValue: e.value\n });\n }\n }, {\n key: \"onOverlayClick\",\n value: function onOverlayClick(event) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }, {\n key: \"onInputKeyDown\",\n value: function onInputKeyDown(event) {\n switch (event.which) {\n //down\n case 40:\n if (!this.state.overlayVisible && event.altKey) {\n this.show();\n }\n\n break;\n //space\n\n case 32:\n if (!this.state.overlayVisible) {\n this.show();\n event.preventDefault();\n }\n\n break;\n //enter and escape\n\n case 13:\n case 27:\n if (this.state.overlayVisible) {\n this.hide();\n event.preventDefault();\n }\n\n break;\n //tab\n\n case 9:\n this.hide();\n break;\n }\n }\n }, {\n key: \"onFilterInputKeyDown\",\n value: function onFilterInputKeyDown(event) {\n //enter\n if (event.which === 13) {\n event.preventDefault();\n }\n }\n }, {\n key: \"onFilterInputChange\",\n value: function onFilterInputChange(event) {\n var filterValue = event.target.value;\n\n if (this.props.onFilterValueChange) {\n this.props.onFilterValueChange({\n originalEvent: event,\n value: filterValue\n });\n } else {\n this.setState({\n filterValue: filterValue\n });\n }\n }\n }, {\n key: \"resetFilter\",\n value: function resetFilter() {\n this.setState({\n filterValue: ''\n });\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n this.scrollInView();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n if (this.props.filter && this.props.filterInputAutoFocus) {\n this.filterInput.focus();\n }\n\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n if (this.props.filter && this.props.resetFilterOnHide) {\n this.resetFilter();\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }, {\n key: \"scrollInView\",\n value: function scrollInView() {\n var highlightItem = DomHandler.findSingle(this.overlayRef.current, '.p-treenode-content.p-highlight');\n\n if (highlightItem) {\n highlightItem.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n }\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.state.overlayVisible && _this2.isOutsideClicked(event)) {\n _this2.hide();\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.container, function () {\n if (_this3.state.overlayVisible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(event) {\n return this.container && !(this.container.isSameNode(event.target) || this.container.contains(event.target) || this.overlayRef && this.overlayRef.current.contains(event.target));\n }\n }, {\n key: \"findSelectedNodes\",\n value: function findSelectedNodes(node, keys, selectedNodes) {\n if (node) {\n if (this.isSelected(node, keys)) {\n selectedNodes.push(node);\n delete keys[node.key];\n }\n\n if (Object.keys(keys).length && node.children) {\n var _iterator = _createForOfIteratorHelper(node.children),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var childNode = _step.value;\n this.findSelectedNodes(childNode, keys, selectedNodes);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n var _iterator2 = _createForOfIteratorHelper(this.props.options),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _childNode = _step2.value;\n this.findSelectedNodes(_childNode, keys, selectedNodes);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(node, keys) {\n return this.props.selectionMode === 'checkbox' ? keys[node.key] && keys[node.key].checked : keys[node.key];\n }\n }, {\n key: \"updateTreeState\",\n value: function updateTreeState() {\n var keys = this.props.selectionMode === 'single' ? _defineProperty({}, \"\".concat(this.props.value), true) : _objectSpread({}, this.props.value);\n this.setState({\n expandedKeys: {}\n });\n\n if (keys && this.props.options) {\n this.updateTreeBranchState(null, null, keys);\n }\n }\n }, {\n key: \"updateTreeBranchState\",\n value: function updateTreeBranchState(node, path, keys) {\n if (node) {\n if (this.isSelected(node, keys)) {\n this.expandPath(path);\n delete keys[node.key];\n }\n\n if (Object.keys(keys).length && node.children) {\n var _iterator3 = _createForOfIteratorHelper(node.children),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var childNode = _step3.value;\n path.push(node.key);\n this.updateTreeBranchState(childNode, path, keys);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n } else {\n var _iterator4 = _createForOfIteratorHelper(this.props.options),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _childNode2 = _step4.value;\n this.updateTreeBranchState(_childNode2, [], keys);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n }, {\n key: \"expandPath\",\n value: function expandPath(path) {\n if (path.length > 0) {\n var expandedKeys = _objectSpread({}, this.state.expandedKeys || {});\n\n var _iterator5 = _createForOfIteratorHelper(path),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var key = _step5.value;\n expandedKeys[key] = true;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n this.setState({\n expandedKeys: expandedKeys\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateTreeState();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.state.overlayVisible) {\n if (this.props.filter || prevState.expandedKeys !== this.state.expandedKeys) {\n this.alignOverlay();\n }\n\n if (prevProps.value !== this.props.value) {\n if (!this.selfChange) {\n this.updateTreeState();\n }\n\n this.scrollInView();\n this.selfChange = false;\n }\n }\n\n if (prevProps.options !== this.props.options) {\n this.updateTreeState();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderKeyboardHelper\",\n value: function renderKeyboardHelper() {\n var _this5 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-hidden-accessible\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: function ref(el) {\n return _this5.focusInput = el;\n },\n role: \"listbox\",\n id: this.props.inputId,\n type: \"text\",\n readOnly: true,\n \"aria-haspopup\": \"true\",\n \"aria-expanded\": this.state.overlayVisible,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n onKeyDown: this.onInputKeyDown,\n disabled: this.props.disabled,\n tabIndex: this.props.tabIndex,\n \"aria-label\": this.props.ariaLabel,\n \"aria-labelledby\": this.props.ariaLabelledBy\n }));\n }\n }, {\n key: \"renderLabel\",\n value: function renderLabel(selectedNodes) {\n var isValueEmpty = this.isValueEmpty();\n var labelClassName = classNames('p-treeselect-label', {\n 'p-placeholder': this.getLabel() === this.props.placeholder,\n 'p-treeselect-label-empty': !this.props.placeholder && isValueEmpty\n });\n var content = null;\n\n if (this.props.valueTemplate) {\n content = ObjectUtils.getJSXElement(this.props.valueTemplate, selectedNodes, this.props);\n } else {\n if (this.props.display === 'comma') {\n content = this.getLabel() || 'empty';\n } else if (this.props.display === 'chip') {\n var _selectedNodes = this.getSelectedNodes();\n\n content = /*#__PURE__*/React.createElement(React.Fragment, null, _selectedNodes && _selectedNodes.map(function (node, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-token\",\n key: \"\".concat(node.key, \"_\").concat(index)\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-token-label\"\n }, node.label));\n }), isValueEmpty && (this.props.placeholder || 'empty'));\n }\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-label-container\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: labelClassName\n }, content));\n }\n }, {\n key: \"renderDropdownIcon\",\n value: function renderDropdownIcon() {\n var _this6 = this;\n\n var iconClassName = classNames('p-treeselect-trigger-icon p-clickable', this.props.dropdownIcon);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.trigger = el;\n },\n className: \"p-treeselect-trigger\",\n role: \"button\",\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": this.state.overlayVisible\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }));\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var filterValue = this.getFilterValue();\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tree, {\n value: this.props.options,\n selectionMode: this.props.selectionMode,\n selectionKeys: this.props.value,\n metaKeySelection: this.props.metaKeySelection,\n onSelectionChange: this.onSelectionChange,\n onSelect: this.onNodeSelect,\n onUnselect: this.onNodeUnselect,\n expandedKeys: this.state.expandedKeys,\n onToggle: this.onNodeToggle,\n onExpand: this.props.onNodeExpand,\n onCollapse: this.props.onNodeCollapse,\n filter: this.props.filter,\n filterValue: filterValue,\n filterBy: this.props.filterBy,\n filterMode: this.props.filterMode,\n filterPlaceholder: this.props.filterPlaceholder,\n filterLocale: this.props.filterLocale,\n showHeader: false,\n onFilterValueChange: this.onFilterValueChange\n }), this.hasNoOptions() && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-empty-message\"\n }, this.props.emptyMessage || localeOption('emptyMessage')));\n }\n }, {\n key: \"renderFilterElement\",\n value: function renderFilterElement() {\n var _this7 = this;\n\n if (this.props.filter) {\n var filterValue = this.getFilterValue();\n filterValue = ObjectUtils.isNotEmpty(filterValue) ? filterValue : '';\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-filter-container\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: function ref(el) {\n return _this7.filterInput = el;\n },\n type: \"text\",\n value: filterValue,\n autoComplete: \"off\",\n className: \"p-treeselect-filter p-inputtext p-component\",\n placeholder: this.props.filterPlaceholder,\n onKeyDown: this.onFilterInputKeyDown,\n onChange: this.onFilterInputChange,\n disabled: this.props.disabled\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-filter-icon pi pi-search\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n var filterElement = this.renderFilterElement();\n var closeElement = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-treeselect-close p-link\",\n onClick: this.hide\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-header\"\n }, filterElement, closeElement);\n\n if (this.props.header) {\n var defaultOptions = {\n className: 'p-treeselect-header',\n filterElement: filterElement,\n closeElement: closeElement,\n closeElementClassName: 'p-treeselect-close p-link',\n closeIconClassName: 'p-treeselect-close-icon pi pi-times',\n onCloseClick: this.hide,\n element: content,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.header, defaultOptions);\n }\n\n return content;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this8 = this;\n\n var className = classNames('p-treeselect p-component p-inputwrapper', {\n 'p-treeselect-chip': this.props.display === 'chip',\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused,\n 'p-inputwrapper-filled': !this.isValueEmpty(),\n 'p-inputwrapper-focus': this.state.focused || this.state.overlayVisible\n }, this.props.className);\n var selectedNodes = this.getSelectedNodes();\n var keyboardHelper = this.renderKeyboardHelper();\n var labelElement = this.renderLabel(selectedNodes);\n var dropdownIcon = this.renderDropdownIcon();\n var content = this.renderContent();\n var header = this.renderHeader();\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n ref: function ref(el) {\n return _this8.container = el;\n },\n className: className,\n style: this.props.style,\n onClick: this.onClick\n }, keyboardHelper, labelElement, dropdownIcon, /*#__PURE__*/React.createElement(TreeSelectPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n panelStyle: this.props.panelStyle,\n panelClassName: this.props.panelClassName,\n scrollHeight: this.props.scrollHeight,\n onClick: this.onOverlayClick,\n header: header,\n footer: footer,\n transitionOptions: this.props.transitionOptions,\n \"in\": this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, content));\n }\n }]);\n\n return TreeSelect;\n}(Component);\n\n_defineProperty(TreeSelect, \"defaultProps\", {\n id: null,\n value: null,\n name: null,\n style: null,\n className: null,\n disabled: false,\n options: null,\n scrollHeight: '400px',\n placeholder: null,\n tabIndex: null,\n inputId: null,\n ariaLabel: null,\n ariaLabelledBy: null,\n selectionMode: 'single',\n panelStyle: null,\n panelClassName: null,\n appendTo: null,\n emptyMessage: null,\n display: 'comma',\n metaKeySelection: true,\n valueTemplate: null,\n panelHeaderTemplate: null,\n panelFooterTemplate: null,\n transitionOptions: null,\n dropdownIcon: 'pi pi-chevron-down',\n filter: false,\n filterValue: null,\n filterBy: 'label',\n filterMode: 'lenient',\n filterPlaceholder: null,\n filterLocale: undefined,\n filterInputAutoFocus: true,\n resetFilterOnHide: false,\n onShow: null,\n onHide: null,\n onChange: null,\n onNodeSelect: null,\n onNodeUnselect: null,\n onNodeExpand: null,\n onNodeCollapse: null,\n onFilterValueChange: null\n});\n\nexport { TreeSelect };","map":{"version":3,"names":["React","Component","createRef","classNames","ObjectUtils","DomHandler","ZIndexUtils","ConnectedOverlayScrollHandler","PrimeReact","localeOption","OverlayService","Tree","CSSTransition","Portal","Ripple","_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","_createSuper$1","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$1","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","TreeSelectPanelComponent","_Component","_super","renderElement","className","panelClassName","createElement","nodeRef","forwardRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","onEnter","onEntering","onEntered","onExit","onExited","ref","style","panelStyle","onClick","header","maxHeight","scrollHeight","children","footer","render","element","appendTo","TreeSelectPanel","_createForOfIteratorHelper","allowArrayLike","it","Array","isArray","_unsupportedIterableToArray","F","s","n","done","_e","f","normalCompletion","didErr","err","step","next","_e2","minLen","_arrayLikeToArray","toString","slice","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","_isNativeReflectConstruct","TreeSelect","_this","state","focused","overlayVisible","expandedKeys","onFilterValueChange","bind","onInputFocus","onInputBlur","onInputKeyDown","onFilterInputChange","onFilterInputKeyDown","onOverlayClick","onOverlayEnter","onOverlayEntered","onOverlayExit","onOverlayExited","onSelectionChange","onNodeSelect","onNodeUnselect","onNodeToggle","hide","show","overlayRef","getFilterValue","filterValue","getSelectedNodes","selectedNodes","isNotEmpty","selectionMode","concat","findSelectedNodes","getLabel","map","node","label","join","placeholder","isValueEmpty","hasNoOptions","setState","event","disabled","current","contains","hasClass","focusInput","focus","onChange","selfChange","originalEvent","stopPropagation","preventDefault","id","emit","container","which","altKey","resetFilter","set","autoZIndex","zIndex","alignOverlay","scrollInView","bindDocumentClickListener","bindScrollListener","bindResizeListener","filterInputAutoFocus","filterInput","onShow","unbindDocumentClickListener","unbindScrollListener","unbindResizeListener","resetFilterOnHide","clear","onHide","trigger","parentElement","highlightItem","findSingle","scrollIntoView","block","inline","_this2","documentClickListener","isOutsideClicked","document","addEventListener","removeEventListener","_this3","scrollHandler","_this4","resizeListener","isTouchDevice","window","isSameNode","isSelected","_iterator","_step","childNode","_iterator2","_step2","_childNode","checked","updateTreeState","updateTreeBranchState","path","expandPath","_iterator3","_step3","_iterator4","_step4","_childNode2","_iterator5","_step5","componentDidMount","componentDidUpdate","prevProps","prevState","componentWillUnmount","destroy","renderKeyboardHelper","_this5","el","role","inputId","type","readOnly","onFocus","onBlur","onKeyDown","tabIndex","ariaLabel","ariaLabelledBy","renderLabel","labelClassName","content","valueTemplate","getJSXElement","display","_selectedNodes","Fragment","index","renderDropdownIcon","_this6","iconClassName","dropdownIcon","renderContent","selectionKeys","metaKeySelection","onSelect","onUnselect","onToggle","onExpand","onNodeExpand","onCollapse","onNodeCollapse","filterBy","filterMode","filterPlaceholder","filterLocale","showHeader","emptyMessage","renderFilterElement","_this7","autoComplete","renderHeader","filterElement","closeElement","defaultOptions","closeElementClassName","closeIconClassName","onCloseClick","_this8","keyboardHelper","labelElement","panelHeaderTemplate","panelFooterTemplate","undefined"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/treeselect/treeselect.esm.js"],"sourcesContent":["import React, { Component, createRef } from 'react';\nimport { classNames, ObjectUtils, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primereact/utils';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Tree } from 'primereact/tree';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { Ripple } from 'primereact/ripple';\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 _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; } }\n\nvar TreeSelectPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(TreeSelectPanelComponent, _Component);\n\n var _super = _createSuper$1(TreeSelectPanelComponent);\n\n function TreeSelectPanelComponent() {\n _classCallCheck(this, TreeSelectPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(TreeSelectPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-treeselect-panel p-component', this.props.panelClassName);\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.props.forwardRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.props[\"in\"],\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.props.onEnter,\n onEntering: this.props.onEntering,\n onEntered: this.props.onEntered,\n onExit: this.props.onExit,\n onExited: this.props.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n style: this.props.panelStyle,\n onClick: this.props.onClick\n }, this.props.header, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-items-wrapper\",\n style: {\n maxHeight: this.props.scrollHeight || 'auto'\n }\n }, this.props.children), this.props.footer));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return TreeSelectPanelComponent;\n}(Component);\n\nvar TreeSelectPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(TreeSelectPanelComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\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 TreeSelect = /*#__PURE__*/function (_Component) {\n _inherits(TreeSelect, _Component);\n\n var _super = _createSuper(TreeSelect);\n\n function TreeSelect(props) {\n var _this;\n\n _classCallCheck(this, TreeSelect);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false,\n overlayVisible: false,\n expandedKeys: {}\n };\n\n if (!_this.props.onFilterValueChange) {\n _this.state['filterValue'] = '';\n }\n\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onInputFocus = _this.onInputFocus.bind(_assertThisInitialized(_this));\n _this.onInputBlur = _this.onInputBlur.bind(_assertThisInitialized(_this));\n _this.onInputKeyDown = _this.onInputKeyDown.bind(_assertThisInitialized(_this));\n _this.onFilterInputChange = _this.onFilterInputChange.bind(_assertThisInitialized(_this));\n _this.onFilterInputKeyDown = _this.onFilterInputKeyDown.bind(_assertThisInitialized(_this));\n _this.onOverlayClick = _this.onOverlayClick.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onSelectionChange = _this.onSelectionChange.bind(_assertThisInitialized(_this));\n _this.onNodeSelect = _this.onNodeSelect.bind(_assertThisInitialized(_this));\n _this.onNodeUnselect = _this.onNodeUnselect.bind(_assertThisInitialized(_this));\n _this.onNodeToggle = _this.onNodeToggle.bind(_assertThisInitialized(_this));\n _this.onFilterValueChange = _this.onFilterValueChange.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n return _this;\n }\n\n _createClass(TreeSelect, [{\n key: \"getFilterValue\",\n value: function getFilterValue() {\n return this.props.onFilterValueChange ? this.props.filterValue : this.state.filterValue;\n }\n }, {\n key: \"getSelectedNodes\",\n value: function getSelectedNodes() {\n var selectedNodes = [];\n\n if (ObjectUtils.isNotEmpty(this.props.value) && this.props.options) {\n var keys = this.props.selectionMode === 'single' ? _defineProperty({}, \"\".concat(this.props.value), true) : _objectSpread({}, this.props.value);\n this.findSelectedNodes(null, keys, selectedNodes);\n }\n\n return selectedNodes;\n }\n }, {\n key: \"getLabel\",\n value: function getLabel() {\n var value = this.getSelectedNodes();\n return value.length ? value.map(function (node) {\n return node.label;\n }).join(', ') : this.props.placeholder;\n }\n }, {\n key: \"isValueEmpty\",\n value: function isValueEmpty() {\n return !this.props.value || Object.keys(this.props.value).length === 0;\n }\n }, {\n key: \"hasNoOptions\",\n value: function hasNoOptions() {\n return !this.props.options || this.props.options.length === 0;\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onInputFocus\",\n value: function onInputFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onInputBlur\",\n value: function onInputBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled && (!this.overlayRef || !this.overlayRef.current || !this.overlayRef.current.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-treeselect-close')) {\n this.focusInput.focus();\n\n if (this.state.overlayVisible) {\n this.hide();\n } else {\n this.show();\n }\n }\n }\n }, {\n key: \"onSelectionChange\",\n value: function onSelectionChange(event) {\n if (this.props.onChange) {\n this.selfChange = true;\n this.props.onChange({\n originalEvent: event.originalEvent,\n value: event.value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: event.value\n }\n });\n }\n }\n }, {\n key: \"onNodeSelect\",\n value: function onNodeSelect(node) {\n this.props.onNodeSelect && this.props.onNodeSelect(node);\n\n if (this.props.selectionMode === 'single') {\n this.hide();\n }\n }\n }, {\n key: \"onNodeUnselect\",\n value: function onNodeUnselect(node) {\n this.props.onNodeUnselect && this.props.onNodeUnselect(node);\n }\n }, {\n key: \"onNodeToggle\",\n value: function onNodeToggle(e) {\n this.setState({\n expandedKeys: e.value\n });\n }\n }, {\n key: \"onFilterValueChange\",\n value: function onFilterValueChange(e) {\n this.setState({\n filterValue: e.value\n });\n }\n }, {\n key: \"onOverlayClick\",\n value: function onOverlayClick(event) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }, {\n key: \"onInputKeyDown\",\n value: function onInputKeyDown(event) {\n switch (event.which) {\n //down\n case 40:\n if (!this.state.overlayVisible && event.altKey) {\n this.show();\n }\n\n break;\n //space\n\n case 32:\n if (!this.state.overlayVisible) {\n this.show();\n event.preventDefault();\n }\n\n break;\n //enter and escape\n\n case 13:\n case 27:\n if (this.state.overlayVisible) {\n this.hide();\n event.preventDefault();\n }\n\n break;\n //tab\n\n case 9:\n this.hide();\n break;\n }\n }\n }, {\n key: \"onFilterInputKeyDown\",\n value: function onFilterInputKeyDown(event) {\n //enter\n if (event.which === 13) {\n event.preventDefault();\n }\n }\n }, {\n key: \"onFilterInputChange\",\n value: function onFilterInputChange(event) {\n var filterValue = event.target.value;\n\n if (this.props.onFilterValueChange) {\n this.props.onFilterValueChange({\n originalEvent: event,\n value: filterValue\n });\n } else {\n this.setState({\n filterValue: filterValue\n });\n }\n }\n }, {\n key: \"resetFilter\",\n value: function resetFilter() {\n this.setState({\n filterValue: ''\n });\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n this.scrollInView();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n if (this.props.filter && this.props.filterInputAutoFocus) {\n this.filterInput.focus();\n }\n\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n if (this.props.filter && this.props.resetFilterOnHide) {\n this.resetFilter();\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }, {\n key: \"scrollInView\",\n value: function scrollInView() {\n var highlightItem = DomHandler.findSingle(this.overlayRef.current, '.p-treenode-content.p-highlight');\n\n if (highlightItem) {\n highlightItem.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n }\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.state.overlayVisible && _this2.isOutsideClicked(event)) {\n _this2.hide();\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.container, function () {\n if (_this3.state.overlayVisible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(event) {\n return this.container && !(this.container.isSameNode(event.target) || this.container.contains(event.target) || this.overlayRef && this.overlayRef.current.contains(event.target));\n }\n }, {\n key: \"findSelectedNodes\",\n value: function findSelectedNodes(node, keys, selectedNodes) {\n if (node) {\n if (this.isSelected(node, keys)) {\n selectedNodes.push(node);\n delete keys[node.key];\n }\n\n if (Object.keys(keys).length && node.children) {\n var _iterator = _createForOfIteratorHelper(node.children),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var childNode = _step.value;\n this.findSelectedNodes(childNode, keys, selectedNodes);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n var _iterator2 = _createForOfIteratorHelper(this.props.options),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _childNode = _step2.value;\n this.findSelectedNodes(_childNode, keys, selectedNodes);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(node, keys) {\n return this.props.selectionMode === 'checkbox' ? keys[node.key] && keys[node.key].checked : keys[node.key];\n }\n }, {\n key: \"updateTreeState\",\n value: function updateTreeState() {\n var keys = this.props.selectionMode === 'single' ? _defineProperty({}, \"\".concat(this.props.value), true) : _objectSpread({}, this.props.value);\n this.setState({\n expandedKeys: {}\n });\n\n if (keys && this.props.options) {\n this.updateTreeBranchState(null, null, keys);\n }\n }\n }, {\n key: \"updateTreeBranchState\",\n value: function updateTreeBranchState(node, path, keys) {\n if (node) {\n if (this.isSelected(node, keys)) {\n this.expandPath(path);\n delete keys[node.key];\n }\n\n if (Object.keys(keys).length && node.children) {\n var _iterator3 = _createForOfIteratorHelper(node.children),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var childNode = _step3.value;\n path.push(node.key);\n this.updateTreeBranchState(childNode, path, keys);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n } else {\n var _iterator4 = _createForOfIteratorHelper(this.props.options),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _childNode2 = _step4.value;\n this.updateTreeBranchState(_childNode2, [], keys);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n }, {\n key: \"expandPath\",\n value: function expandPath(path) {\n if (path.length > 0) {\n var expandedKeys = _objectSpread({}, this.state.expandedKeys || {});\n\n var _iterator5 = _createForOfIteratorHelper(path),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var key = _step5.value;\n expandedKeys[key] = true;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n this.setState({\n expandedKeys: expandedKeys\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateTreeState();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.state.overlayVisible) {\n if (this.props.filter || prevState.expandedKeys !== this.state.expandedKeys) {\n this.alignOverlay();\n }\n\n if (prevProps.value !== this.props.value) {\n if (!this.selfChange) {\n this.updateTreeState();\n }\n\n this.scrollInView();\n this.selfChange = false;\n }\n }\n\n if (prevProps.options !== this.props.options) {\n this.updateTreeState();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderKeyboardHelper\",\n value: function renderKeyboardHelper() {\n var _this5 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-hidden-accessible\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: function ref(el) {\n return _this5.focusInput = el;\n },\n role: \"listbox\",\n id: this.props.inputId,\n type: \"text\",\n readOnly: true,\n \"aria-haspopup\": \"true\",\n \"aria-expanded\": this.state.overlayVisible,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n onKeyDown: this.onInputKeyDown,\n disabled: this.props.disabled,\n tabIndex: this.props.tabIndex,\n \"aria-label\": this.props.ariaLabel,\n \"aria-labelledby\": this.props.ariaLabelledBy\n }));\n }\n }, {\n key: \"renderLabel\",\n value: function renderLabel(selectedNodes) {\n var isValueEmpty = this.isValueEmpty();\n var labelClassName = classNames('p-treeselect-label', {\n 'p-placeholder': this.getLabel() === this.props.placeholder,\n 'p-treeselect-label-empty': !this.props.placeholder && isValueEmpty\n });\n var content = null;\n\n if (this.props.valueTemplate) {\n content = ObjectUtils.getJSXElement(this.props.valueTemplate, selectedNodes, this.props);\n } else {\n if (this.props.display === 'comma') {\n content = this.getLabel() || 'empty';\n } else if (this.props.display === 'chip') {\n var _selectedNodes = this.getSelectedNodes();\n\n content = /*#__PURE__*/React.createElement(React.Fragment, null, _selectedNodes && _selectedNodes.map(function (node, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-token\",\n key: \"\".concat(node.key, \"_\").concat(index)\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-token-label\"\n }, node.label));\n }), isValueEmpty && (this.props.placeholder || 'empty'));\n }\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-label-container\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: labelClassName\n }, content));\n }\n }, {\n key: \"renderDropdownIcon\",\n value: function renderDropdownIcon() {\n var _this6 = this;\n\n var iconClassName = classNames('p-treeselect-trigger-icon p-clickable', this.props.dropdownIcon);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.trigger = el;\n },\n className: \"p-treeselect-trigger\",\n role: \"button\",\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": this.state.overlayVisible\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }));\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var filterValue = this.getFilterValue();\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tree, {\n value: this.props.options,\n selectionMode: this.props.selectionMode,\n selectionKeys: this.props.value,\n metaKeySelection: this.props.metaKeySelection,\n onSelectionChange: this.onSelectionChange,\n onSelect: this.onNodeSelect,\n onUnselect: this.onNodeUnselect,\n expandedKeys: this.state.expandedKeys,\n onToggle: this.onNodeToggle,\n onExpand: this.props.onNodeExpand,\n onCollapse: this.props.onNodeCollapse,\n filter: this.props.filter,\n filterValue: filterValue,\n filterBy: this.props.filterBy,\n filterMode: this.props.filterMode,\n filterPlaceholder: this.props.filterPlaceholder,\n filterLocale: this.props.filterLocale,\n showHeader: false,\n onFilterValueChange: this.onFilterValueChange\n }), this.hasNoOptions() && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-empty-message\"\n }, this.props.emptyMessage || localeOption('emptyMessage')));\n }\n }, {\n key: \"renderFilterElement\",\n value: function renderFilterElement() {\n var _this7 = this;\n\n if (this.props.filter) {\n var filterValue = this.getFilterValue();\n filterValue = ObjectUtils.isNotEmpty(filterValue) ? filterValue : '';\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-filter-container\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: function ref(el) {\n return _this7.filterInput = el;\n },\n type: \"text\",\n value: filterValue,\n autoComplete: \"off\",\n className: \"p-treeselect-filter p-inputtext p-component\",\n placeholder: this.props.filterPlaceholder,\n onKeyDown: this.onFilterInputKeyDown,\n onChange: this.onFilterInputChange,\n disabled: this.props.disabled\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-filter-icon pi pi-search\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n var filterElement = this.renderFilterElement();\n var closeElement = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-treeselect-close p-link\",\n onClick: this.hide\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-treeselect-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-treeselect-header\"\n }, filterElement, closeElement);\n\n if (this.props.header) {\n var defaultOptions = {\n className: 'p-treeselect-header',\n filterElement: filterElement,\n closeElement: closeElement,\n closeElementClassName: 'p-treeselect-close p-link',\n closeIconClassName: 'p-treeselect-close-icon pi pi-times',\n onCloseClick: this.hide,\n element: content,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.header, defaultOptions);\n }\n\n return content;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this8 = this;\n\n var className = classNames('p-treeselect p-component p-inputwrapper', {\n 'p-treeselect-chip': this.props.display === 'chip',\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused,\n 'p-inputwrapper-filled': !this.isValueEmpty(),\n 'p-inputwrapper-focus': this.state.focused || this.state.overlayVisible\n }, this.props.className);\n var selectedNodes = this.getSelectedNodes();\n var keyboardHelper = this.renderKeyboardHelper();\n var labelElement = this.renderLabel(selectedNodes);\n var dropdownIcon = this.renderDropdownIcon();\n var content = this.renderContent();\n var header = this.renderHeader();\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n ref: function ref(el) {\n return _this8.container = el;\n },\n className: className,\n style: this.props.style,\n onClick: this.onClick\n }, keyboardHelper, labelElement, dropdownIcon, /*#__PURE__*/React.createElement(TreeSelectPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n panelStyle: this.props.panelStyle,\n panelClassName: this.props.panelClassName,\n scrollHeight: this.props.scrollHeight,\n onClick: this.onOverlayClick,\n header: header,\n footer: footer,\n transitionOptions: this.props.transitionOptions,\n \"in\": this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, content));\n }\n }]);\n\n return TreeSelect;\n}(Component);\n\n_defineProperty(TreeSelect, \"defaultProps\", {\n id: null,\n value: null,\n name: null,\n style: null,\n className: null,\n disabled: false,\n options: null,\n scrollHeight: '400px',\n placeholder: null,\n tabIndex: null,\n inputId: null,\n ariaLabel: null,\n ariaLabelledBy: null,\n selectionMode: 'single',\n panelStyle: null,\n panelClassName: null,\n appendTo: null,\n emptyMessage: null,\n display: 'comma',\n metaKeySelection: true,\n valueTemplate: null,\n panelHeaderTemplate: null,\n panelFooterTemplate: null,\n transitionOptions: null,\n dropdownIcon: 'pi pi-chevron-down',\n filter: false,\n filterValue: null,\n filterBy: 'label',\n filterMode: 'lenient',\n filterPlaceholder: null,\n filterLocale: undefined,\n filterInputAutoFocus: true,\n resetFilterOnHide: false,\n onShow: null,\n onHide: null,\n onChange: null,\n onNodeSelect: null,\n onNodeUnselect: null,\n onNodeExpand: null,\n onNodeCollapse: null,\n onFilterValueChange: null\n});\n\nexport { TreeSelect };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,SAA3B,QAA4C,OAA5C;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,UAAlC,EAA8CC,WAA9C,EAA2DC,6BAA3D,QAAgG,kBAA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