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

1 line
55 KiB
JSON

{"ast":null,"code":"import React, { createRef, Component } from 'react';\nimport { ObjectUtils, classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\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 _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 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 Chips = /*#__PURE__*/function (_Component) {\n _inherits(Chips, _Component);\n\n var _super = _createSuper(Chips);\n\n function Chips(props) {\n var _this;\n\n _classCallCheck(this, Chips);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onWrapperClick = _this.onWrapperClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onPaste = _this.onPaste.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n return _this;\n }\n\n _createClass(Chips, [{\n key: \"removeItem\",\n value: function removeItem(event, index) {\n if (this.props.disabled && this.props.readOnly) {\n return;\n }\n\n var values = _toConsumableArray(this.props.value);\n\n var removedItem = values.splice(index, 1);\n\n if (!this.isRemovable(removedItem, index)) {\n return;\n }\n\n if (this.props.onRemove) {\n this.props.onRemove({\n originalEvent: event,\n value: removedItem\n });\n }\n\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: values,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: values\n }\n });\n }\n }\n }, {\n key: \"addItem\",\n value: function addItem(event, item, preventDefault) {\n if (item && item.trim().length) {\n var values = this.props.value ? _toConsumableArray(this.props.value) : [];\n\n if (this.props.allowDuplicate || values.indexOf(item) === -1) {\n values.push(item);\n\n if (this.props.onAdd) {\n this.props.onAdd({\n originalEvent: event,\n value: item\n });\n }\n }\n\n this.updateInput(event, values, preventDefault);\n }\n }\n }, {\n key: \"onWrapperClick\",\n value: function onWrapperClick() {\n this.inputRef.current.focus();\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n var inputValue = event.target.value;\n var values = this.props.value || [];\n\n switch (event.which) {\n //backspace\n case 8:\n if (this.inputRef.current.value.length === 0 && values.length > 0) {\n this.removeItem(event, values.length - 1);\n }\n\n break;\n //enter\n\n case 13:\n if (inputValue && inputValue.trim().length && (!this.props.max || this.props.max > values.length)) {\n this.addItem(event, inputValue, true);\n }\n\n break;\n\n default:\n if (this.isMaxedOut()) {\n event.preventDefault();\n } else if (this.props.separator) {\n if (this.props.separator === ',' && event.which === 188) {\n this.addItem(event, inputValue, true);\n }\n }\n\n break;\n }\n }\n }, {\n key: \"updateInput\",\n value: function updateInput(event, items, preventDefault) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: items,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: items\n }\n });\n }\n\n this.inputRef.current.value = '';\n\n if (preventDefault) {\n event.preventDefault();\n }\n }\n }, {\n key: \"onPaste\",\n value: function onPaste(event) {\n var _this2 = this;\n\n if (this.props.separator) {\n var pastedData = (event.clipboardData || window['clipboardData']).getData('Text');\n\n if (pastedData) {\n var values = this.props.value || [];\n var pastedValues = pastedData.split(this.props.separator);\n pastedValues = pastedValues.filter(function (val) {\n return (_this2.props.allowDuplicate || values.indexOf(val) === -1) && val.trim().length;\n });\n values = [].concat(_toConsumableArray(values), _toConsumableArray(pastedValues));\n this.updateInput(event, values, true);\n }\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus(event) {\n var _this3 = this;\n\n event.persist();\n this.setState({\n focused: true\n }, function () {\n if (_this3.props.onFocus) {\n _this3.props.onFocus(event);\n }\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n var _this4 = this;\n\n event.persist();\n this.setState({\n focused: false\n }, function () {\n if (_this4.props.onBlur) {\n _this4.props.onBlur(event);\n }\n });\n }\n }, {\n key: \"isMaxedOut\",\n value: function isMaxedOut() {\n return this.props.max && this.props.value && this.props.max === this.props.value.length;\n }\n }, {\n key: \"isFilled\",\n value: function isFilled() {\n return this.props.value && this.props.value.length || this.inputRef && this.inputRef.current && this.inputRef.current.value && this.inputRef.current.value.length;\n }\n }, {\n key: \"isRemovable\",\n value: function isRemovable(value, index) {\n return ObjectUtils.getPropValue(this.props.removable, {\n value: value,\n index: index,\n props: this.props\n });\n }\n }, {\n key: \"updateInputRef\",\n value: function updateInputRef() {\n var ref = this.props.inputRef;\n\n if (ref) {\n if (typeof ref === 'function') {\n ref(this.inputRef.current);\n } else {\n ref.current = this.inputRef.current;\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInputRef();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var isValueSame = this.props.value && prevProps.value && prevProps.value.length === this.props.value.length;\n\n if (this.props.tooltip) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n } else if (!isValueSame && this.tooltip) {\n this.tooltip.deactivate();\n this.tooltip.activate();\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.inputRef.current,\n targetContainer: this.listElement,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderRemoveIcon\",\n value: function renderRemoveIcon(value, index) {\n var _this5 = this;\n\n if (!this.props.disabled && !this.props.readOnly && this.isRemovable(value, index)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-chips-token-icon pi pi-times-circle\",\n onClick: function onClick(event) {\n return _this5.removeItem(event, index);\n }\n });\n }\n\n return null;\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(value, index) {\n var content = this.props.itemTemplate ? this.props.itemTemplate(value) : value;\n var icon = this.renderRemoveIcon(value, index);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: index,\n className: \"p-chips-token p-highlight\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-chips-token-label\"\n }, content), icon);\n }\n }, {\n key: \"renderInputElement\",\n value: function renderInputElement() {\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-chips-input-token\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: this.inputRef,\n placeholder: this.props.placeholder,\n type: \"text\",\n name: this.props.name,\n disabled: this.props.disabled || this.isMaxedOut(),\n onKeyDown: this.onKeyDown,\n onPaste: this.onPaste,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n \"aria-labelledby\": this.props.ariaLabelledBy,\n readOnly: this.props.readOnly\n }));\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this6 = this;\n\n if (this.props.value) {\n return this.props.value.map(function (value, index) {\n return _this6.renderItem(value, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderList\",\n value: function renderList() {\n var _this7 = this;\n\n var className = classNames('p-inputtext p-chips-multiple-container', {\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var items = this.renderItems();\n var inputElement = this.renderInputElement();\n return /*#__PURE__*/React.createElement(\"ul\", {\n ref: function ref(el) {\n return _this7.listElement = el;\n },\n className: className,\n onClick: this.onWrapperClick\n }, items, inputElement);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this8 = this;\n\n var className = classNames('p-chips p-component p-inputwrapper', this.props.className, {\n 'p-inputwrapper-filled': this.isFilled(),\n 'p-inputwrapper-focus': this.state.focused\n });\n var list = this.renderList();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this8.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, list);\n }\n }]);\n\n return Chips;\n}(Component);\n\n_defineProperty(Chips, \"defaultProps\", {\n id: null,\n inputRef: null,\n name: null,\n placeholder: null,\n value: null,\n max: null,\n disabled: null,\n readOnly: false,\n removable: true,\n style: null,\n className: null,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n separator: null,\n allowDuplicate: true,\n itemTemplate: null,\n onAdd: null,\n onRemove: null,\n onChange: null,\n onFocus: null,\n onBlur: null\n});\n\nexport { Chips };","map":{"version":3,"names":["React","createRef","Component","ObjectUtils","classNames","tip","_arrayLikeToArray","arr","len","length","i","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray","o","minLen","n","Object","prototype","toString","call","slice","constructor","name","test","_nonIterableSpread","TypeError","_toConsumableArray","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread","arguments","source","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","Chips","_Component","_super","_this","state","focused","onWrapperClick","bind","onKeyDown","onPaste","onFocus","onBlur","inputRef","removeItem","event","index","disabled","readOnly","values","removedItem","splice","isRemovable","onRemove","originalEvent","onChange","stopPropagation","preventDefault","id","addItem","item","trim","allowDuplicate","indexOf","onAdd","updateInput","current","focus","inputValue","which","max","isMaxedOut","separator","items","_this2","pastedData","clipboardData","window","getData","pastedValues","split","val","concat","_this3","persist","setState","_this4","isFilled","getPropValue","removable","updateInputRef","ref","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","isValueSame","tooltipOptions","update","content","deactivate","activate","componentWillUnmount","destroy","targetContainer","listElement","options","renderRemoveIcon","_this5","createElement","className","onClick","renderItem","itemTemplate","icon","renderInputElement","placeholder","type","ariaLabelledBy","renderItems","_this6","map","renderList","_this7","inputElement","el","render","_this8","list","element","style"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/chips/chips.esm.js"],"sourcesContent":["import React, { createRef, Component } from 'react';\nimport { ObjectUtils, classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\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 _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 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 Chips = /*#__PURE__*/function (_Component) {\n _inherits(Chips, _Component);\n\n var _super = _createSuper(Chips);\n\n function Chips(props) {\n var _this;\n\n _classCallCheck(this, Chips);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onWrapperClick = _this.onWrapperClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onPaste = _this.onPaste.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n return _this;\n }\n\n _createClass(Chips, [{\n key: \"removeItem\",\n value: function removeItem(event, index) {\n if (this.props.disabled && this.props.readOnly) {\n return;\n }\n\n var values = _toConsumableArray(this.props.value);\n\n var removedItem = values.splice(index, 1);\n\n if (!this.isRemovable(removedItem, index)) {\n return;\n }\n\n if (this.props.onRemove) {\n this.props.onRemove({\n originalEvent: event,\n value: removedItem\n });\n }\n\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: values,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: values\n }\n });\n }\n }\n }, {\n key: \"addItem\",\n value: function addItem(event, item, preventDefault) {\n if (item && item.trim().length) {\n var values = this.props.value ? _toConsumableArray(this.props.value) : [];\n\n if (this.props.allowDuplicate || values.indexOf(item) === -1) {\n values.push(item);\n\n if (this.props.onAdd) {\n this.props.onAdd({\n originalEvent: event,\n value: item\n });\n }\n }\n\n this.updateInput(event, values, preventDefault);\n }\n }\n }, {\n key: \"onWrapperClick\",\n value: function onWrapperClick() {\n this.inputRef.current.focus();\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n var inputValue = event.target.value;\n var values = this.props.value || [];\n\n switch (event.which) {\n //backspace\n case 8:\n if (this.inputRef.current.value.length === 0 && values.length > 0) {\n this.removeItem(event, values.length - 1);\n }\n\n break;\n //enter\n\n case 13:\n if (inputValue && inputValue.trim().length && (!this.props.max || this.props.max > values.length)) {\n this.addItem(event, inputValue, true);\n }\n\n break;\n\n default:\n if (this.isMaxedOut()) {\n event.preventDefault();\n } else if (this.props.separator) {\n if (this.props.separator === ',' && event.which === 188) {\n this.addItem(event, inputValue, true);\n }\n }\n\n break;\n }\n }\n }, {\n key: \"updateInput\",\n value: function updateInput(event, items, preventDefault) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: items,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: items\n }\n });\n }\n\n this.inputRef.current.value = '';\n\n if (preventDefault) {\n event.preventDefault();\n }\n }\n }, {\n key: \"onPaste\",\n value: function onPaste(event) {\n var _this2 = this;\n\n if (this.props.separator) {\n var pastedData = (event.clipboardData || window['clipboardData']).getData('Text');\n\n if (pastedData) {\n var values = this.props.value || [];\n var pastedValues = pastedData.split(this.props.separator);\n pastedValues = pastedValues.filter(function (val) {\n return (_this2.props.allowDuplicate || values.indexOf(val) === -1) && val.trim().length;\n });\n values = [].concat(_toConsumableArray(values), _toConsumableArray(pastedValues));\n this.updateInput(event, values, true);\n }\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus(event) {\n var _this3 = this;\n\n event.persist();\n this.setState({\n focused: true\n }, function () {\n if (_this3.props.onFocus) {\n _this3.props.onFocus(event);\n }\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n var _this4 = this;\n\n event.persist();\n this.setState({\n focused: false\n }, function () {\n if (_this4.props.onBlur) {\n _this4.props.onBlur(event);\n }\n });\n }\n }, {\n key: \"isMaxedOut\",\n value: function isMaxedOut() {\n return this.props.max && this.props.value && this.props.max === this.props.value.length;\n }\n }, {\n key: \"isFilled\",\n value: function isFilled() {\n return this.props.value && this.props.value.length || this.inputRef && this.inputRef.current && this.inputRef.current.value && this.inputRef.current.value.length;\n }\n }, {\n key: \"isRemovable\",\n value: function isRemovable(value, index) {\n return ObjectUtils.getPropValue(this.props.removable, {\n value: value,\n index: index,\n props: this.props\n });\n }\n }, {\n key: \"updateInputRef\",\n value: function updateInputRef() {\n var ref = this.props.inputRef;\n\n if (ref) {\n if (typeof ref === 'function') {\n ref(this.inputRef.current);\n } else {\n ref.current = this.inputRef.current;\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInputRef();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var isValueSame = this.props.value && prevProps.value && prevProps.value.length === this.props.value.length;\n\n if (this.props.tooltip) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n } else if (!isValueSame && this.tooltip) {\n this.tooltip.deactivate();\n this.tooltip.activate();\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.inputRef.current,\n targetContainer: this.listElement,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderRemoveIcon\",\n value: function renderRemoveIcon(value, index) {\n var _this5 = this;\n\n if (!this.props.disabled && !this.props.readOnly && this.isRemovable(value, index)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-chips-token-icon pi pi-times-circle\",\n onClick: function onClick(event) {\n return _this5.removeItem(event, index);\n }\n });\n }\n\n return null;\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(value, index) {\n var content = this.props.itemTemplate ? this.props.itemTemplate(value) : value;\n var icon = this.renderRemoveIcon(value, index);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: index,\n className: \"p-chips-token p-highlight\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-chips-token-label\"\n }, content), icon);\n }\n }, {\n key: \"renderInputElement\",\n value: function renderInputElement() {\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-chips-input-token\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n ref: this.inputRef,\n placeholder: this.props.placeholder,\n type: \"text\",\n name: this.props.name,\n disabled: this.props.disabled || this.isMaxedOut(),\n onKeyDown: this.onKeyDown,\n onPaste: this.onPaste,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n \"aria-labelledby\": this.props.ariaLabelledBy,\n readOnly: this.props.readOnly\n }));\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this6 = this;\n\n if (this.props.value) {\n return this.props.value.map(function (value, index) {\n return _this6.renderItem(value, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderList\",\n value: function renderList() {\n var _this7 = this;\n\n var className = classNames('p-inputtext p-chips-multiple-container', {\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var items = this.renderItems();\n var inputElement = this.renderInputElement();\n return /*#__PURE__*/React.createElement(\"ul\", {\n ref: function ref(el) {\n return _this7.listElement = el;\n },\n className: className,\n onClick: this.onWrapperClick\n }, items, inputElement);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this8 = this;\n\n var className = classNames('p-chips p-component p-inputwrapper', this.props.className, {\n 'p-inputwrapper-filled': this.isFilled(),\n 'p-inputwrapper-focus': this.state.focused\n });\n var list = this.renderList();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this8.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, list);\n }\n }]);\n\n return Chips;\n}(Component);\n\n_defineProperty(Chips, \"defaultProps\", {\n id: null,\n inputRef: null,\n name: null,\n placeholder: null,\n value: null,\n max: null,\n disabled: null,\n readOnly: false,\n removable: true,\n style: null,\n className: null,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n separator: null,\n allowDuplicate: true,\n itemTemplate: null,\n onAdd: null,\n onRemove: null,\n onChange: null,\n onFocus: null,\n onBlur: null\n});\n\nexport { Chips };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,SAA3B,QAA4C,OAA5C;AACA,SAASC,WAAT,EAAsBC,UAAtB,QAAwC,kBAAxC;AACA,SAASC,GAAT,QAAoB,oBAApB;;AAEA,SAASC,iBAAT,CAA2BC,GAA3B,EAAgCC,GAAhC,EAAqC;EACnC,IAAIA,GAAG,IAAI,IAAP,IAAeA,GAAG,GAAGD,GAAG,CAACE,MAA7B,EAAqCD,GAAG,GAAGD,GAAG,CAACE,MAAV;;EAErC,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWC,IAAI,GAAG,IAAIC,KAAJ,CAAUJ,GAAV,CAAvB,EAAuCE,CAAC,GAAGF,GA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