{"ast":null,"code":"import React, { Component } from 'react';\nimport { IconUtils, classNames, ObjectUtils } from 'primereact/utils';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar Chip = /*#__PURE__*/function (_Component) {\n _inherits(Chip, _Component);\n\n var _super = _createSuper(Chip);\n\n function Chip(props) {\n var _this;\n\n _classCallCheck(this, Chip);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: true\n };\n _this.close = _this.close.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Chip, [{\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.keyCode === 13) {\n // enter\n this.close(event);\n }\n }\n }, {\n key: \"close\",\n value: function close(event) {\n var _this2 = this;\n\n event.persist();\n this.setState({\n visible: false\n }, function () {\n if (_this2.props.onRemove) {\n _this2.props.onRemove(event);\n }\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this3 = this;\n\n var content = [];\n\n if (this.props.image) {\n var onError = function onError(e) {\n if (_this3.props.onImageError) {\n _this3.props.onImageError(e);\n }\n };\n\n content.push( /*#__PURE__*/React.createElement(\"img\", {\n key: \"image\",\n src: this.props.image,\n alt: this.props.imageAlt,\n onError: onError\n }));\n } else if (this.props.icon) {\n content.push(IconUtils.getJSXIcon(this.props.icon, {\n key: 'icon',\n className: 'p-chip-icon'\n }, {\n props: this.props\n }));\n }\n\n if (this.props.label) {\n content.push( /*#__PURE__*/React.createElement(\"span\", {\n key: \"label\",\n className: \"p-chip-text\"\n }, this.props.label));\n }\n\n if (this.props.removable) {\n content.push(IconUtils.getJSXIcon(this.props.removeIcon, {\n key: 'removeIcon',\n tabIndex: 0,\n className: 'p-chip-remove-icon',\n onClick: this.close,\n onKeyDown: this.onKeyDown\n }, {\n props: this.props\n }));\n }\n\n return content;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var containerClassName = classNames('p-chip p-component', {\n 'p-chip-image': this.props.image != null\n }, this.props.className);\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props) : this.renderContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: containerClassName,\n style: this.props.style\n }, content);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.state.visible && this.renderElement();\n }\n }]);\n\n return Chip;\n}(Component);\n\n_defineProperty(Chip, \"defaultProps\", {\n label: null,\n icon: null,\n image: null,\n removable: false,\n removeIcon: 'pi pi-times-circle',\n className: null,\n style: null,\n template: null,\n imageAlt: 'chip',\n onImageError: null,\n onRemove: null\n});\n\nexport { Chip };","map":{"version":3,"names":["React","Component","IconUtils","classNames","ObjectUtils","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","Chip","_Component","_super","_this","state","visible","close","bind","onKeyDown","event","keyCode","_this2","persist","setState","onRemove","renderContent","_this3","content","image","onError","onImageError","push","createElement","src","alt","imageAlt","icon","getJSXIcon","className","label","removable","removeIcon","tabIndex","onClick","renderElement","containerClassName","template","getJSXElement","style","render"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/chip/chip.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { IconUtils, classNames, ObjectUtils } from 'primereact/utils';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar Chip = /*#__PURE__*/function (_Component) {\n _inherits(Chip, _Component);\n\n var _super = _createSuper(Chip);\n\n function Chip(props) {\n var _this;\n\n _classCallCheck(this, Chip);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: true\n };\n _this.close = _this.close.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Chip, [{\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.keyCode === 13) {\n // enter\n this.close(event);\n }\n }\n }, {\n key: \"close\",\n value: function close(event) {\n var _this2 = this;\n\n event.persist();\n this.setState({\n visible: false\n }, function () {\n if (_this2.props.onRemove) {\n _this2.props.onRemove(event);\n }\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this3 = this;\n\n var content = [];\n\n if (this.props.image) {\n var onError = function onError(e) {\n if (_this3.props.onImageError) {\n _this3.props.onImageError(e);\n }\n };\n\n content.push( /*#__PURE__*/React.createElement(\"img\", {\n key: \"image\",\n src: this.props.image,\n alt: this.props.imageAlt,\n onError: onError\n }));\n } else if (this.props.icon) {\n content.push(IconUtils.getJSXIcon(this.props.icon, {\n key: 'icon',\n className: 'p-chip-icon'\n }, {\n props: this.props\n }));\n }\n\n if (this.props.label) {\n content.push( /*#__PURE__*/React.createElement(\"span\", {\n key: \"label\",\n className: \"p-chip-text\"\n }, this.props.label));\n }\n\n if (this.props.removable) {\n content.push(IconUtils.getJSXIcon(this.props.removeIcon, {\n key: 'removeIcon',\n tabIndex: 0,\n className: 'p-chip-remove-icon',\n onClick: this.close,\n onKeyDown: this.onKeyDown\n }, {\n props: this.props\n }));\n }\n\n return content;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var containerClassName = classNames('p-chip p-component', {\n 'p-chip-image': this.props.image != null\n }, this.props.className);\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props) : this.renderContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: containerClassName,\n style: this.props.style\n }, content);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.state.visible && this.renderElement();\n }\n }]);\n\n return Chip;\n}(Component);\n\n_defineProperty(Chip, \"defaultProps\", {\n label: null,\n icon: null,\n image: null,\n removable: false,\n removeIcon: 'pi pi-times-circle',\n className: null,\n style: null,\n template: null,\n imageAlt: 'chip',\n onImageError: null,\n onRemove: null\n});\n\nexport { Chip };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,SAAT,EAAoBC,UAApB,EAAgCC,WAAhC,QAAmD,kBAAnD;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;IACAE,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;IACAD,UAAU,CAACE,YAAX,GAA0B,IAA1B;IACA,IAAI,WAAWF,UAAf,EAA2BA,UAAU,CAACG,QAAX,GAAsB,IAAtB;IAC3BC,MAAM,CAACC,cAAP,CAAsBT,MAAtB,EAA8BI,UAAU,CAACM,GAAzC,EAA8CN,UAA9C;EACD;AACF;;AAED,SAASO,YAAT,CAAsBd,WAAtB,EAAmCe,UAAnC,EAA+CC,WAA/C,EAA4D;EAC1D,IAAID,UAAJ,EAAgBb,iBAAiB,CAACF,WAAW,CAACiB,SAAb,EAAwBF,UAAxB,CAAjB;EAChB,IAAIC,WAAJ,EAAiBd,iBAAiB,CAACF,W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