{"ast":null,"code":"import React, { Component, createRef } from 'react';\nimport { classNames, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, ObjectUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { tip } from 'primereact/tooltip';\nimport { OverlayService } from 'primereact/overlayservice';\nimport PrimeReact from 'primereact/api';\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 _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$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 ColorPickerPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(ColorPickerPanelComponent, _Component);\n\n var _super = _createSuper$1(ColorPickerPanelComponent);\n\n function ColorPickerPanelComponent() {\n _classCallCheck(this, ColorPickerPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ColorPickerPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-colorpicker-panel', {\n 'p-colorpicker-overlay-panel': !this.props.inline,\n 'p-disabled': this.props.disabled\n });\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 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 onClick: this.props.onClick\n }, this.props.children));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return this.props.inline ? element : /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return ColorPickerPanelComponent;\n}(Component);\n\n_defineProperty(ColorPickerPanelComponent, \"defaultProps\", {\n appendTo: null,\n inline: false,\n disabled: false,\n onClick: null\n});\n\nvar ColorPickerPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(ColorPickerPanelComponent, _extends({\n forwardRef: ref\n }, props));\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 ColorPicker = /*#__PURE__*/function (_Component) {\n _inherits(ColorPicker, _Component);\n\n var _super = _createSuper(ColorPicker);\n\n function ColorPicker(props) {\n var _this;\n\n _classCallCheck(this, ColorPicker);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false\n };\n _this.onInputClick = _this.onInputClick.bind(_assertThisInitialized(_this));\n _this.onInputKeydown = _this.onInputKeydown.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.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onColorMousedown = _this.onColorMousedown.bind(_assertThisInitialized(_this));\n _this.onHueMousedown = _this.onHueMousedown.bind(_assertThisInitialized(_this));\n _this.onColorDragStart = _this.onColorDragStart.bind(_assertThisInitialized(_this));\n _this.onHueDragStart = _this.onHueDragStart.bind(_assertThisInitialized(_this));\n _this.onDrag = _this.onDrag.bind(_assertThisInitialized(_this));\n _this.onDragEnd = _this.onDragEnd.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n return _this;\n }\n\n _createClass(ColorPicker, [{\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n if (!this.props.inline) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }\n }, {\n key: \"onHueMousedown\",\n value: function onHueMousedown(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.bindDragListeners();\n this.onHueDragStart(event);\n }\n }, {\n key: \"onHueDragStart\",\n value: function onHueDragStart(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.hueDragging = true;\n this.pickHue(event);\n DomHandler.addClass(this.container, 'p-colorpicker-dragging');\n }\n }, {\n key: \"pickHue\",\n value: function pickHue(event) {\n var top = this.hueView.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n this.hsbValue = this.validateHSB({\n h: Math.floor(360 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150),\n s: 100,\n b: 100\n });\n this.updateColorSelector();\n this.updateHue();\n this.updateModel();\n }\n }, {\n key: \"onColorMousedown\",\n value: function onColorMousedown(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.bindDragListeners();\n this.onColorDragStart(event);\n }\n }, {\n key: \"onColorDragStart\",\n value: function onColorDragStart(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.colorDragging = true;\n this.pickColor(event);\n DomHandler.addClass(this.container, 'p-colorpicker-dragging');\n event.preventDefault();\n }\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n if (this.colorDragging) {\n this.pickColor(event);\n event.preventDefault();\n }\n\n if (this.hueDragging) {\n this.pickHue(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd() {\n this.colorDragging = false;\n this.hueDragging = false;\n DomHandler.removeClass(this.container, 'p-colorpicker-dragging');\n this.unbindDragListeners();\n }\n }, {\n key: \"bindDragListeners\",\n value: function bindDragListeners() {\n this.bindDocumentMouseMoveListener();\n this.bindDocumentMouseUpListener();\n }\n }, {\n key: \"unbindDragListeners\",\n value: function unbindDragListeners() {\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n }\n }, {\n key: \"pickColor\",\n value: function pickColor(event) {\n var rect = this.colorSelector.getBoundingClientRect();\n var top = rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n var left = rect.left + document.body.scrollLeft;\n var saturation = Math.floor(100 * Math.max(0, Math.min(150, (event.pageX || event.changedTouches[0].pageX) - left)) / 150);\n var brightness = Math.floor(100 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150);\n this.hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: saturation,\n b: brightness\n });\n this.updateColorHandle();\n this.updateInput();\n this.updateModel();\n }\n }, {\n key: \"updateModel\",\n value: function updateModel() {\n switch (this.props.format) {\n case 'hex':\n this.onChange(this.HSBtoHEX(this.hsbValue));\n break;\n\n case 'rgb':\n this.onChange(this.HSBtoRGB(this.hsbValue));\n break;\n\n case 'hsb':\n this.onChange(this.hsbValue);\n break;\n }\n }\n }, {\n key: \"toHSB\",\n value: function toHSB(value) {\n var hsb;\n\n if (value) {\n switch (this.props.format) {\n case 'hex':\n hsb = this.HEXtoHSB(value);\n break;\n\n case 'rgb':\n hsb = this.RGBtoHSB(value);\n break;\n\n case 'hsb':\n hsb = value;\n break;\n }\n } else {\n hsb = this.HEXtoHSB(this.props.defaultColor);\n }\n\n return hsb;\n }\n }, {\n key: \"updateHSBValue\",\n value: function updateHSBValue(value) {\n this.hsbValue = this.toHSB(value);\n }\n }, {\n key: \"areHSBEqual\",\n value: function areHSBEqual(val1, val2) {\n return val1.h === val2.h && val1.s === val2.s && val1.b === val2.b;\n }\n }, {\n key: \"onChange\",\n value: function onChange(value) {\n if (this.props.onChange) {\n this.props.onChange({\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"updateColorSelector\",\n value: function updateColorSelector() {\n if (this.colorSelector) {\n var hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: 100,\n b: 100\n });\n this.colorSelector.style.backgroundColor = '#' + this.HSBtoHEX(hsbValue);\n }\n }\n }, {\n key: \"updateColorHandle\",\n value: function updateColorHandle() {\n if (this.colorHandle) {\n this.colorHandle.style.left = Math.floor(150 * this.hsbValue.s / 100) + 'px';\n this.colorHandle.style.top = Math.floor(150 * (100 - this.hsbValue.b) / 100) + 'px';\n }\n }\n }, {\n key: \"updateHue\",\n value: function updateHue() {\n if (this.hueHandle) {\n this.hueHandle.style.top = Math.floor(150 - 150 * this.hsbValue.h / 360) + 'px';\n }\n }\n }, {\n key: \"updateInput\",\n value: function updateInput() {\n if (this.inputRef && this.inputRef.current) {\n this.inputRef.current.style.backgroundColor = '#' + this.HSBtoHEX(this.hsbValue);\n }\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: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\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 ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"onInputClick\",\n value: function onInputClick() {\n this.togglePanel();\n }\n }, {\n key: \"togglePanel\",\n value: function togglePanel() {\n if (this.state.overlayVisible) this.hide();else this.show();\n }\n }, {\n key: \"onInputKeydown\",\n value: function onInputKeydown(event) {\n switch (event.which) {\n //space\n case 32:\n this.togglePanel();\n event.preventDefault();\n break;\n //escape and tab\n\n case 27:\n case 9:\n this.hide();\n break;\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: \"bindDocumentMouseMoveListener\",\n value: function bindDocumentMouseMoveListener() {\n if (!this.documentMouseMoveListener) {\n this.documentMouseMoveListener = this.onDocumentMouseMove.bind(this);\n document.addEventListener('mousemove', this.documentMouseMoveListener);\n }\n }\n }, {\n key: \"onDocumentMouseMove\",\n value: function onDocumentMouseMove(event) {\n if (this.colorDragging) {\n this.pickColor(event);\n }\n\n if (this.hueDragging) {\n this.pickHue(event);\n }\n }\n }, {\n key: \"unbindDocumentMouseMoveListener\",\n value: function unbindDocumentMouseMoveListener() {\n if (this.documentMouseMoveListener) {\n document.removeEventListener('mousemove', this.documentMouseMoveListener);\n this.documentMouseMoveListener = null;\n }\n }\n }, {\n key: \"bindDocumentMouseUpListener\",\n value: function bindDocumentMouseUpListener() {\n if (!this.documentMouseUpListener) {\n this.documentMouseUpListener = this.onDocumentMouseUp.bind(this);\n document.addEventListener('mouseup', this.documentMouseUpListener);\n }\n }\n }, {\n key: \"onDocumentMouseUp\",\n value: function onDocumentMouseUp() {\n this.colorDragging = false;\n this.hueDragging = false;\n DomHandler.removeClass(this.container, 'p-colorpicker-dragging');\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n }\n }, {\n key: \"unbindDocumentMouseUpListener\",\n value: function unbindDocumentMouseUpListener() {\n if (this.documentMouseUpListener) {\n document.removeEventListener('mouseup', this.documentMouseUpListener);\n this.documentMouseUpListener = null;\n }\n }\n }, {\n key: \"validateHSB\",\n value: function validateHSB(hsb) {\n return {\n h: Math.min(360, Math.max(0, hsb.h)),\n s: Math.min(100, Math.max(0, hsb.s)),\n b: Math.min(100, Math.max(0, hsb.b))\n };\n }\n }, {\n key: \"validateRGB\",\n value: function validateRGB(rgb) {\n return {\n r: Math.min(255, Math.max(0, rgb.r)),\n g: Math.min(255, Math.max(0, rgb.g)),\n b: Math.min(255, Math.max(0, rgb.b))\n };\n }\n }, {\n key: \"validateHEX\",\n value: function validateHEX(hex) {\n var len = 6 - hex.length;\n\n if (len > 0) {\n var o = [];\n\n for (var i = 0; i < len; i++) {\n o.push('0');\n }\n\n o.push(hex);\n hex = o.join('');\n }\n\n return hex;\n }\n }, {\n key: \"HEXtoRGB\",\n value: function HEXtoRGB(hex) {\n var hexValue = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16);\n return {\n r: hexValue >> 16,\n g: (hexValue & 0x00FF00) >> 8,\n b: hexValue & 0x0000FF\n };\n }\n }, {\n key: \"HEXtoHSB\",\n value: function HEXtoHSB(hex) {\n return this.RGBtoHSB(this.HEXtoRGB(hex));\n }\n }, {\n key: \"RGBtoHSB\",\n value: function RGBtoHSB(rgb) {\n var hsb = {\n h: 0,\n s: 0,\n b: 0\n };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n\n if (hsb.s !== 0) {\n if (rgb.r === max) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if (rgb.g === max) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n\n hsb.h *= 60;\n\n if (hsb.h < 0) {\n hsb.h += 360;\n }\n\n hsb.s *= 100 / 255;\n hsb.b *= 100 / 255;\n return hsb;\n }\n }, {\n key: \"HSBtoRGB\",\n value: function HSBtoRGB(hsb) {\n var rgb = {\n r: null,\n g: null,\n b: null\n };\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n\n if (s === 0) {\n rgb = {\n r: v,\n g: v,\n b: v\n };\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if (h === 360) h = 0;\n\n if (h < 60) {\n rgb.r = t1;\n rgb.b = t2;\n rgb.g = t2 + t3;\n } else if (h < 120) {\n rgb.g = t1;\n rgb.b = t2;\n rgb.r = t1 - t3;\n } else if (h < 180) {\n rgb.g = t1;\n rgb.r = t2;\n rgb.b = t2 + t3;\n } else if (h < 240) {\n rgb.b = t1;\n rgb.r = t2;\n rgb.g = t1 - t3;\n } else if (h < 300) {\n rgb.b = t1;\n rgb.g = t2;\n rgb.r = t2 + t3;\n } else if (h < 360) {\n rgb.r = t1;\n rgb.g = t2;\n rgb.b = t1 - t3;\n } else {\n rgb.r = 0;\n rgb.g = 0;\n rgb.b = 0;\n }\n }\n\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n }\n }, {\n key: \"RGBtoHEX\",\n value: function RGBtoHEX(rgb) {\n var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];\n\n for (var key in hex) {\n if (hex[key].length === 1) {\n hex[key] = '0' + hex[key];\n }\n }\n\n return hex.join('');\n }\n }, {\n key: \"HSBtoHEX\",\n value: function HSBtoHEX(hsb) {\n return this.RGBtoHEX(this.HSBtoRGB(hsb));\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 this.updateHSBValue(this.props.value);\n this.updateUI();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (!this.colorDragging && !this.hueDragging && this.props.value !== prevProps.value) {\n this.updateHSBValue(this.props.value);\n }\n\n this.updateUI();\n\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 this.unbindDocumentClickListener();\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"updateUI\",\n value: function updateUI() {\n this.updateHue();\n this.updateColorHandle();\n this.updateInput();\n this.updateColorSelector();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n if (this.inputRef && this.inputRef.current) {\n DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderColorSelector\",\n value: function renderColorSelector() {\n var _this5 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.colorSelector = el;\n },\n className: \"p-colorpicker-color-selector\",\n onMouseDown: this.onColorMousedown,\n onTouchStart: this.onColorDragStart,\n onTouchMove: this.onDrag,\n onTouchEnd: this.onDragEnd\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-colorpicker-color\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.colorHandle = el;\n },\n className: \"p-colorpicker-color-handle\"\n })));\n }\n }, {\n key: \"renderHue\",\n value: function renderHue() {\n var _this6 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.hueView = el;\n },\n className: \"p-colorpicker-hue\",\n onMouseDown: this.onHueMousedown,\n onTouchStart: this.onHueDragStart,\n onTouchMove: this.onDrag,\n onTouchEnd: this.onDragEnd\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.hueHandle = el;\n },\n className: \"p-colorpicker-hue-handle\"\n }));\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var colorSelector = this.renderColorSelector();\n var hue = this.renderHue();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-colorpicker-content\"\n }, colorSelector, hue);\n }\n }, {\n key: \"renderInput\",\n value: function renderInput() {\n if (!this.props.inline) {\n var inputClassName = classNames('p-colorpicker-preview p-inputtext', {\n 'p-disabled': this.props.disabled\n });\n var inputProps = ObjectUtils.findDiffKeys(this.props, ColorPicker.defaultProps);\n return /*#__PURE__*/React.createElement(\"input\", _extends({\n ref: this.inputRef,\n type: \"text\",\n className: inputClassName,\n readOnly: true,\n id: this.props.inputId,\n tabIndex: this.props.tabIndex,\n disabled: this.props.disabled,\n onClick: this.onInputClick,\n onKeyDown: this.onInputKeydown\n }, inputProps));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this7 = this;\n\n var containerClassName = classNames('p-colorpicker p-component', {\n 'p-colorpicker-overlay': !this.props.inline\n }, this.props.className);\n var content = this.renderContent();\n var input = this.renderInput();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.container = el;\n },\n id: this.props.id,\n style: this.props.style,\n className: containerClassName\n }, input, /*#__PURE__*/React.createElement(ColorPickerPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n inline: this.props.inline,\n disabled: this.props.disabled,\n onClick: this.onPanelClick,\n \"in\": this.props.inline || this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited,\n transitionOptions: this.props.transitionOptions\n }, content));\n }\n }]);\n\n return ColorPicker;\n}(Component);\n\n_defineProperty(ColorPicker, \"defaultProps\", {\n id: null,\n inputRef: null,\n value: null,\n style: null,\n className: null,\n defaultColor: 'ff0000',\n inline: false,\n format: 'hex',\n appendTo: null,\n disabled: false,\n tabIndex: null,\n inputId: null,\n tooltip: null,\n tooltipOptions: null,\n transitionOptions: null,\n onChange: null,\n onShow: null,\n onHide: null\n});\n\nexport { ColorPicker };","map":{"version":3,"names":["React","Component","createRef","classNames","DomHandler","ZIndexUtils","ConnectedOverlayScrollHandler","ObjectUtils","CSSTransition","Portal","tip","OverlayService","PrimeReact","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_classCallCheck","instance","Constructor","TypeError","_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper$1","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$1","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","ColorPickerPanelComponent","_Component","_super","renderElement","className","inline","disabled","createElement","nodeRef","forwardRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","onEnter","onEntered","onExit","onExited","ref","onClick","children","render","element","appendTo","ColorPickerPanel","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","_isNativeReflectConstruct","ColorPicker","_this","state","overlayVisible","onInputClick","bind","onInputKeydown","onOverlayEnter","onOverlayEntered","onOverlayExit","onOverlayExited","onPanelClick","onColorMousedown","onHueMousedown","onColorDragStart","onHueDragStart","onDrag","onDragEnd","overlayRef","inputRef","event","emit","originalEvent","container","bindDragListeners","hueDragging","pickHue","addClass","top","hueView","getBoundingClientRect","window","pageYOffset","document","documentElement","scrollTop","body","hsbValue","validateHSB","h","Math","floor","max","min","pageY","changedTouches","s","b","updateColorSelector","updateHue","updateModel","colorDragging","pickColor","preventDefault","removeClass","unbindDragListeners","bindDocumentMouseMoveListener","bindDocumentMouseUpListener","unbindDocumentMouseMoveListener","unbindDocumentMouseUpListener","rect","colorSelector","left","scrollLeft","saturation","pageX","brightness","updateColorHandle","updateInput","format","onChange","HSBtoHEX","HSBtoRGB","toHSB","hsb","HEXtoHSB","RGBtoHSB","defaultColor","updateHSBValue","areHSBEqual","val1","val2","stopPropagation","name","id","style","backgroundColor","colorHandle","hueHandle","current","show","setState","hide","set","autoZIndex","zIndex","alignOverlay","bindDocumentClickListener","bindScrollListener","bindResizeListener","onShow","unbindDocumentClickListener","unbindScrollListener","unbindResizeListener","clear","onHide","togglePanel","which","_this2","documentClickListener","isOutsideClicked","addEventListener","removeEventListener","_this3","scrollHandler","_this4","resizeListener","isTouchDevice","isSameNode","contains","documentMouseMoveListener","onDocumentMouseMove","documentMouseUpListener","onDocumentMouseUp","validateRGB","rgb","r","g","validateHEX","hex","len","join","HEXtoRGB","hexValue","parseInt","indexOf","substring","delta","round","v","t1","t2","t3","RGBtoHEX","toString","updateInputRef","componentDidMount","updateUI","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","content","componentWillUnmount","destroy","parentElement","renderColorSelector","_this5","el","onMouseDown","onTouchStart","onTouchMove","onTouchEnd","renderHue","_this6","renderContent","hue","renderInput","inputClassName","inputProps","findDiffKeys","defaultProps","type","readOnly","inputId","tabIndex","onKeyDown","_this7","containerClassName","input"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/colorpicker/colorpicker.esm.js"],"sourcesContent":["import React, { Component, createRef } from 'react';\nimport { classNames, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, ObjectUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { tip } from 'primereact/tooltip';\nimport { OverlayService } from 'primereact/overlayservice';\nimport PrimeReact from 'primereact/api';\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 _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$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 ColorPickerPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(ColorPickerPanelComponent, _Component);\n\n var _super = _createSuper$1(ColorPickerPanelComponent);\n\n function ColorPickerPanelComponent() {\n _classCallCheck(this, ColorPickerPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ColorPickerPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-colorpicker-panel', {\n 'p-colorpicker-overlay-panel': !this.props.inline,\n 'p-disabled': this.props.disabled\n });\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 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 onClick: this.props.onClick\n }, this.props.children));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return this.props.inline ? element : /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return ColorPickerPanelComponent;\n}(Component);\n\n_defineProperty(ColorPickerPanelComponent, \"defaultProps\", {\n appendTo: null,\n inline: false,\n disabled: false,\n onClick: null\n});\n\nvar ColorPickerPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(ColorPickerPanelComponent, _extends({\n forwardRef: ref\n }, props));\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 ColorPicker = /*#__PURE__*/function (_Component) {\n _inherits(ColorPicker, _Component);\n\n var _super = _createSuper(ColorPicker);\n\n function ColorPicker(props) {\n var _this;\n\n _classCallCheck(this, ColorPicker);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false\n };\n _this.onInputClick = _this.onInputClick.bind(_assertThisInitialized(_this));\n _this.onInputKeydown = _this.onInputKeydown.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.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.onColorMousedown = _this.onColorMousedown.bind(_assertThisInitialized(_this));\n _this.onHueMousedown = _this.onHueMousedown.bind(_assertThisInitialized(_this));\n _this.onColorDragStart = _this.onColorDragStart.bind(_assertThisInitialized(_this));\n _this.onHueDragStart = _this.onHueDragStart.bind(_assertThisInitialized(_this));\n _this.onDrag = _this.onDrag.bind(_assertThisInitialized(_this));\n _this.onDragEnd = _this.onDragEnd.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n return _this;\n }\n\n _createClass(ColorPicker, [{\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n if (!this.props.inline) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }\n }, {\n key: \"onHueMousedown\",\n value: function onHueMousedown(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.bindDragListeners();\n this.onHueDragStart(event);\n }\n }, {\n key: \"onHueDragStart\",\n value: function onHueDragStart(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.hueDragging = true;\n this.pickHue(event);\n DomHandler.addClass(this.container, 'p-colorpicker-dragging');\n }\n }, {\n key: \"pickHue\",\n value: function pickHue(event) {\n var top = this.hueView.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n this.hsbValue = this.validateHSB({\n h: Math.floor(360 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150),\n s: 100,\n b: 100\n });\n this.updateColorSelector();\n this.updateHue();\n this.updateModel();\n }\n }, {\n key: \"onColorMousedown\",\n value: function onColorMousedown(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.bindDragListeners();\n this.onColorDragStart(event);\n }\n }, {\n key: \"onColorDragStart\",\n value: function onColorDragStart(event) {\n if (this.props.disabled) {\n return;\n }\n\n this.colorDragging = true;\n this.pickColor(event);\n DomHandler.addClass(this.container, 'p-colorpicker-dragging');\n event.preventDefault();\n }\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n if (this.colorDragging) {\n this.pickColor(event);\n event.preventDefault();\n }\n\n if (this.hueDragging) {\n this.pickHue(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd() {\n this.colorDragging = false;\n this.hueDragging = false;\n DomHandler.removeClass(this.container, 'p-colorpicker-dragging');\n this.unbindDragListeners();\n }\n }, {\n key: \"bindDragListeners\",\n value: function bindDragListeners() {\n this.bindDocumentMouseMoveListener();\n this.bindDocumentMouseUpListener();\n }\n }, {\n key: \"unbindDragListeners\",\n value: function unbindDragListeners() {\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n }\n }, {\n key: \"pickColor\",\n value: function pickColor(event) {\n var rect = this.colorSelector.getBoundingClientRect();\n var top = rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n var left = rect.left + document.body.scrollLeft;\n var saturation = Math.floor(100 * Math.max(0, Math.min(150, (event.pageX || event.changedTouches[0].pageX) - left)) / 150);\n var brightness = Math.floor(100 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150);\n this.hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: saturation,\n b: brightness\n });\n this.updateColorHandle();\n this.updateInput();\n this.updateModel();\n }\n }, {\n key: \"updateModel\",\n value: function updateModel() {\n switch (this.props.format) {\n case 'hex':\n this.onChange(this.HSBtoHEX(this.hsbValue));\n break;\n\n case 'rgb':\n this.onChange(this.HSBtoRGB(this.hsbValue));\n break;\n\n case 'hsb':\n this.onChange(this.hsbValue);\n break;\n }\n }\n }, {\n key: \"toHSB\",\n value: function toHSB(value) {\n var hsb;\n\n if (value) {\n switch (this.props.format) {\n case 'hex':\n hsb = this.HEXtoHSB(value);\n break;\n\n case 'rgb':\n hsb = this.RGBtoHSB(value);\n break;\n\n case 'hsb':\n hsb = value;\n break;\n }\n } else {\n hsb = this.HEXtoHSB(this.props.defaultColor);\n }\n\n return hsb;\n }\n }, {\n key: \"updateHSBValue\",\n value: function updateHSBValue(value) {\n this.hsbValue = this.toHSB(value);\n }\n }, {\n key: \"areHSBEqual\",\n value: function areHSBEqual(val1, val2) {\n return val1.h === val2.h && val1.s === val2.s && val1.b === val2.b;\n }\n }, {\n key: \"onChange\",\n value: function onChange(value) {\n if (this.props.onChange) {\n this.props.onChange({\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"updateColorSelector\",\n value: function updateColorSelector() {\n if (this.colorSelector) {\n var hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: 100,\n b: 100\n });\n this.colorSelector.style.backgroundColor = '#' + this.HSBtoHEX(hsbValue);\n }\n }\n }, {\n key: \"updateColorHandle\",\n value: function updateColorHandle() {\n if (this.colorHandle) {\n this.colorHandle.style.left = Math.floor(150 * this.hsbValue.s / 100) + 'px';\n this.colorHandle.style.top = Math.floor(150 * (100 - this.hsbValue.b) / 100) + 'px';\n }\n }\n }, {\n key: \"updateHue\",\n value: function updateHue() {\n if (this.hueHandle) {\n this.hueHandle.style.top = Math.floor(150 - 150 * this.hsbValue.h / 360) + 'px';\n }\n }\n }, {\n key: \"updateInput\",\n value: function updateInput() {\n if (this.inputRef && this.inputRef.current) {\n this.inputRef.current.style.backgroundColor = '#' + this.HSBtoHEX(this.hsbValue);\n }\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: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\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 ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"onInputClick\",\n value: function onInputClick() {\n this.togglePanel();\n }\n }, {\n key: \"togglePanel\",\n value: function togglePanel() {\n if (this.state.overlayVisible) this.hide();else this.show();\n }\n }, {\n key: \"onInputKeydown\",\n value: function onInputKeydown(event) {\n switch (event.which) {\n //space\n case 32:\n this.togglePanel();\n event.preventDefault();\n break;\n //escape and tab\n\n case 27:\n case 9:\n this.hide();\n break;\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: \"bindDocumentMouseMoveListener\",\n value: function bindDocumentMouseMoveListener() {\n if (!this.documentMouseMoveListener) {\n this.documentMouseMoveListener = this.onDocumentMouseMove.bind(this);\n document.addEventListener('mousemove', this.documentMouseMoveListener);\n }\n }\n }, {\n key: \"onDocumentMouseMove\",\n value: function onDocumentMouseMove(event) {\n if (this.colorDragging) {\n this.pickColor(event);\n }\n\n if (this.hueDragging) {\n this.pickHue(event);\n }\n }\n }, {\n key: \"unbindDocumentMouseMoveListener\",\n value: function unbindDocumentMouseMoveListener() {\n if (this.documentMouseMoveListener) {\n document.removeEventListener('mousemove', this.documentMouseMoveListener);\n this.documentMouseMoveListener = null;\n }\n }\n }, {\n key: \"bindDocumentMouseUpListener\",\n value: function bindDocumentMouseUpListener() {\n if (!this.documentMouseUpListener) {\n this.documentMouseUpListener = this.onDocumentMouseUp.bind(this);\n document.addEventListener('mouseup', this.documentMouseUpListener);\n }\n }\n }, {\n key: \"onDocumentMouseUp\",\n value: function onDocumentMouseUp() {\n this.colorDragging = false;\n this.hueDragging = false;\n DomHandler.removeClass(this.container, 'p-colorpicker-dragging');\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n }\n }, {\n key: \"unbindDocumentMouseUpListener\",\n value: function unbindDocumentMouseUpListener() {\n if (this.documentMouseUpListener) {\n document.removeEventListener('mouseup', this.documentMouseUpListener);\n this.documentMouseUpListener = null;\n }\n }\n }, {\n key: \"validateHSB\",\n value: function validateHSB(hsb) {\n return {\n h: Math.min(360, Math.max(0, hsb.h)),\n s: Math.min(100, Math.max(0, hsb.s)),\n b: Math.min(100, Math.max(0, hsb.b))\n };\n }\n }, {\n key: \"validateRGB\",\n value: function validateRGB(rgb) {\n return {\n r: Math.min(255, Math.max(0, rgb.r)),\n g: Math.min(255, Math.max(0, rgb.g)),\n b: Math.min(255, Math.max(0, rgb.b))\n };\n }\n }, {\n key: \"validateHEX\",\n value: function validateHEX(hex) {\n var len = 6 - hex.length;\n\n if (len > 0) {\n var o = [];\n\n for (var i = 0; i < len; i++) {\n o.push('0');\n }\n\n o.push(hex);\n hex = o.join('');\n }\n\n return hex;\n }\n }, {\n key: \"HEXtoRGB\",\n value: function HEXtoRGB(hex) {\n var hexValue = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16);\n return {\n r: hexValue >> 16,\n g: (hexValue & 0x00FF00) >> 8,\n b: hexValue & 0x0000FF\n };\n }\n }, {\n key: \"HEXtoHSB\",\n value: function HEXtoHSB(hex) {\n return this.RGBtoHSB(this.HEXtoRGB(hex));\n }\n }, {\n key: \"RGBtoHSB\",\n value: function RGBtoHSB(rgb) {\n var hsb = {\n h: 0,\n s: 0,\n b: 0\n };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n\n if (hsb.s !== 0) {\n if (rgb.r === max) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if (rgb.g === max) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n\n hsb.h *= 60;\n\n if (hsb.h < 0) {\n hsb.h += 360;\n }\n\n hsb.s *= 100 / 255;\n hsb.b *= 100 / 255;\n return hsb;\n }\n }, {\n key: \"HSBtoRGB\",\n value: function HSBtoRGB(hsb) {\n var rgb = {\n r: null,\n g: null,\n b: null\n };\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n\n if (s === 0) {\n rgb = {\n r: v,\n g: v,\n b: v\n };\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if (h === 360) h = 0;\n\n if (h < 60) {\n rgb.r = t1;\n rgb.b = t2;\n rgb.g = t2 + t3;\n } else if (h < 120) {\n rgb.g = t1;\n rgb.b = t2;\n rgb.r = t1 - t3;\n } else if (h < 180) {\n rgb.g = t1;\n rgb.r = t2;\n rgb.b = t2 + t3;\n } else if (h < 240) {\n rgb.b = t1;\n rgb.r = t2;\n rgb.g = t1 - t3;\n } else if (h < 300) {\n rgb.b = t1;\n rgb.g = t2;\n rgb.r = t2 + t3;\n } else if (h < 360) {\n rgb.r = t1;\n rgb.g = t2;\n rgb.b = t1 - t3;\n } else {\n rgb.r = 0;\n rgb.g = 0;\n rgb.b = 0;\n }\n }\n\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n }\n }, {\n key: \"RGBtoHEX\",\n value: function RGBtoHEX(rgb) {\n var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];\n\n for (var key in hex) {\n if (hex[key].length === 1) {\n hex[key] = '0' + hex[key];\n }\n }\n\n return hex.join('');\n }\n }, {\n key: \"HSBtoHEX\",\n value: function HSBtoHEX(hsb) {\n return this.RGBtoHEX(this.HSBtoRGB(hsb));\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 this.updateHSBValue(this.props.value);\n this.updateUI();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (!this.colorDragging && !this.hueDragging && this.props.value !== prevProps.value) {\n this.updateHSBValue(this.props.value);\n }\n\n this.updateUI();\n\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 this.unbindDocumentClickListener();\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"updateUI\",\n value: function updateUI() {\n this.updateHue();\n this.updateColorHandle();\n this.updateInput();\n this.updateColorSelector();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n if (this.inputRef && this.inputRef.current) {\n DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderColorSelector\",\n value: function renderColorSelector() {\n var _this5 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.colorSelector = el;\n },\n className: \"p-colorpicker-color-selector\",\n onMouseDown: this.onColorMousedown,\n onTouchStart: this.onColorDragStart,\n onTouchMove: this.onDrag,\n onTouchEnd: this.onDragEnd\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-colorpicker-color\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.colorHandle = el;\n },\n className: \"p-colorpicker-color-handle\"\n })));\n }\n }, {\n key: \"renderHue\",\n value: function renderHue() {\n var _this6 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.hueView = el;\n },\n className: \"p-colorpicker-hue\",\n onMouseDown: this.onHueMousedown,\n onTouchStart: this.onHueDragStart,\n onTouchMove: this.onDrag,\n onTouchEnd: this.onDragEnd\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.hueHandle = el;\n },\n className: \"p-colorpicker-hue-handle\"\n }));\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var colorSelector = this.renderColorSelector();\n var hue = this.renderHue();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-colorpicker-content\"\n }, colorSelector, hue);\n }\n }, {\n key: \"renderInput\",\n value: function renderInput() {\n if (!this.props.inline) {\n var inputClassName = classNames('p-colorpicker-preview p-inputtext', {\n 'p-disabled': this.props.disabled\n });\n var inputProps = ObjectUtils.findDiffKeys(this.props, ColorPicker.defaultProps);\n return /*#__PURE__*/React.createElement(\"input\", _extends({\n ref: this.inputRef,\n type: \"text\",\n className: inputClassName,\n readOnly: true,\n id: this.props.inputId,\n tabIndex: this.props.tabIndex,\n disabled: this.props.disabled,\n onClick: this.onInputClick,\n onKeyDown: this.onInputKeydown\n }, inputProps));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this7 = this;\n\n var containerClassName = classNames('p-colorpicker p-component', {\n 'p-colorpicker-overlay': !this.props.inline\n }, this.props.className);\n var content = this.renderContent();\n var input = this.renderInput();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.container = el;\n },\n id: this.props.id,\n style: this.props.style,\n className: containerClassName\n }, input, /*#__PURE__*/React.createElement(ColorPickerPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n inline: this.props.inline,\n disabled: this.props.disabled,\n onClick: this.onPanelClick,\n \"in\": this.props.inline || this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited,\n transitionOptions: this.props.transitionOptions\n }, content));\n }\n }]);\n\n return ColorPicker;\n}(Component);\n\n_defineProperty(ColorPicker, \"defaultProps\", {\n id: null,\n inputRef: null,\n value: null,\n style: null,\n className: null,\n defaultColor: 'ff0000',\n inline: false,\n format: 'hex',\n appendTo: null,\n disabled: false,\n tabIndex: null,\n inputId: null,\n tooltip: null,\n tooltipOptions: null,\n transitionOptions: null,\n onChange: null,\n onShow: null,\n onHide: null\n});\n\nexport { ColorPicker };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SA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