{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\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 Rating = /*#__PURE__*/function (_Component) {\n _inherits(Rating, _Component);\n\n var _super = _createSuper(Rating);\n\n function Rating(props) {\n var _this;\n\n _classCallCheck(this, Rating);\n\n _this = _super.call(this, props);\n _this.clear = _this.clear.bind(_assertThisInitialized(_this));\n _this.onStarKeyDown = _this.onStarKeyDown.bind(_assertThisInitialized(_this));\n _this.onCancelKeyDown = _this.onCancelKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Rating, [{\n key: \"rate\",\n value: function rate(event, i) {\n if (!this.props.readOnly && !this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: i,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: i\n }\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"clear\",\n value: function clear(event) {\n if (!this.props.readOnly && !this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: null,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: null\n }\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps, nextState) {\n if (nextProps.value === this.props.value && nextProps.disabled === this.props.disabled) {\n return false;\n }\n\n return true;\n }\n }, {\n key: \"onStarKeyDown\",\n value: function onStarKeyDown(event, value) {\n if (event.key === 'Enter') {\n this.rate(event, value);\n }\n }\n }, {\n key: \"onCancelKeyDown\",\n value: function onCancelKeyDown(event) {\n if (event.key === 'Enter') {\n this.clear(event);\n }\n }\n }, {\n key: \"getFocusIndex\",\n value: function getFocusIndex() {\n return this.props.disabled || this.props.readOnly ? null : 0;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\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 }\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.element,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderStars\",\n value: function renderStars() {\n var _this2 = this;\n\n var starsArray = [];\n\n for (var i = 0; i < this.props.stars; i++) {\n starsArray[i] = i + 1;\n }\n\n var stars = starsArray.map(function (value) {\n var iconClass = classNames('p-rating-icon', {\n 'pi pi-star': !_this2.props.value || value > _this2.props.value,\n 'pi pi-star-fill': value <= _this2.props.value\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: iconClass,\n onClick: function onClick(e) {\n return _this2.rate(e, value);\n },\n key: value,\n tabIndex: _this2.getFocusIndex(),\n onKeyDown: function onKeyDown(e) {\n return _this2.onStarKeyDown(e, value);\n }\n });\n });\n return stars;\n }\n }, {\n key: \"renderCancelIcon\",\n value: function renderCancelIcon() {\n if (this.props.cancel) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-rating-icon p-rating-cancel pi pi-ban\",\n onClick: this.clear,\n tabIndex: this.getFocusIndex(),\n onKeyDown: this.onCancelKeyDown\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var className = classNames('p-rating', {\n 'p-disabled': this.props.disabled,\n 'p-rating-readonly': this.props.readOnly\n }, this.props.className);\n var cancelIcon = this.renderCancelIcon();\n var stars = this.renderStars();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, cancelIcon, stars);\n }\n }]);\n\n return Rating;\n}(Component);\n\n_defineProperty(Rating, \"defaultProps\", {\n id: null,\n value: null,\n disabled: false,\n readOnly: false,\n stars: 5,\n cancel: true,\n style: null,\n className: null,\n tooltip: null,\n tooltipOptions: null,\n onChange: null\n});\n\nexport { Rating };","map":{"version":3,"names":["React","Component","classNames","tip","_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","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","Rating","_Component","_super","_this","clear","bind","onStarKeyDown","onCancelKeyDown","rate","event","readOnly","disabled","onChange","originalEvent","stopPropagation","preventDefault","name","id","shouldComponentUpdate","nextProps","nextState","getFocusIndex","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","content","componentWillUnmount","destroy","element","options","renderStars","_this2","starsArray","stars","map","iconClass","createElement","className","onClick","tabIndex","onKeyDown","renderCancelIcon","cancel","render","_this3","cancelIcon","ref","el","style"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/rating/rating.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\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 Rating = /*#__PURE__*/function (_Component) {\n _inherits(Rating, _Component);\n\n var _super = _createSuper(Rating);\n\n function Rating(props) {\n var _this;\n\n _classCallCheck(this, Rating);\n\n _this = _super.call(this, props);\n _this.clear = _this.clear.bind(_assertThisInitialized(_this));\n _this.onStarKeyDown = _this.onStarKeyDown.bind(_assertThisInitialized(_this));\n _this.onCancelKeyDown = _this.onCancelKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Rating, [{\n key: \"rate\",\n value: function rate(event, i) {\n if (!this.props.readOnly && !this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: i,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: i\n }\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"clear\",\n value: function clear(event) {\n if (!this.props.readOnly && !this.props.disabled && this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: null,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: null\n }\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps, nextState) {\n if (nextProps.value === this.props.value && nextProps.disabled === this.props.disabled) {\n return false;\n }\n\n return true;\n }\n }, {\n key: \"onStarKeyDown\",\n value: function onStarKeyDown(event, value) {\n if (event.key === 'Enter') {\n this.rate(event, value);\n }\n }\n }, {\n key: \"onCancelKeyDown\",\n value: function onCancelKeyDown(event) {\n if (event.key === 'Enter') {\n this.clear(event);\n }\n }\n }, {\n key: \"getFocusIndex\",\n value: function getFocusIndex() {\n return this.props.disabled || this.props.readOnly ? null : 0;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\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 }\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.element,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderStars\",\n value: function renderStars() {\n var _this2 = this;\n\n var starsArray = [];\n\n for (var i = 0; i < this.props.stars; i++) {\n starsArray[i] = i + 1;\n }\n\n var stars = starsArray.map(function (value) {\n var iconClass = classNames('p-rating-icon', {\n 'pi pi-star': !_this2.props.value || value > _this2.props.value,\n 'pi pi-star-fill': value <= _this2.props.value\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: iconClass,\n onClick: function onClick(e) {\n return _this2.rate(e, value);\n },\n key: value,\n tabIndex: _this2.getFocusIndex(),\n onKeyDown: function onKeyDown(e) {\n return _this2.onStarKeyDown(e, value);\n }\n });\n });\n return stars;\n }\n }, {\n key: \"renderCancelIcon\",\n value: function renderCancelIcon() {\n if (this.props.cancel) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-rating-icon p-rating-cancel pi pi-ban\",\n onClick: this.clear,\n tabIndex: this.getFocusIndex(),\n onKeyDown: this.onCancelKeyDown\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var className = classNames('p-rating', {\n 'p-disabled': this.props.disabled,\n 'p-rating-readonly': this.props.readOnly\n }, this.props.className);\n var cancelIcon = this.renderCancelIcon();\n var stars = this.renderStars();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, cancelIcon, stars);\n }\n }]);\n\n return Rating;\n}(Component);\n\n_defineProperty(Rating, \"defaultProps\", {\n id: null,\n value: null,\n disabled: false,\n readOnly: false,\n stars: 5,\n cancel: true,\n style: null,\n className: null,\n tooltip: null,\n tooltipOptions: null,\n onChange: null\n});\n\nexport { Rating };\n"],"mapp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