{"version":3,"file":"index.cjs","sources":["../../../../../../.yarn/__virtual__/@uiw-react-color-hue-virtual-5948e08c46/4/.yarn/berry/cache/@uiw-react-color-hue-npm-2.9.2-9aed0a6dd1-10c0.zip/node_modules/@uiw/react-color-hue/esm/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"hue\", \"onChange\", \"direction\"];\nimport React from 'react';\nimport Alpha from '@uiw/react-color-alpha';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Hue = /*#__PURE__*/React.forwardRef((props, ref) => {\n  var {\n      prefixCls = 'w-color-hue',\n      className,\n      hue = 0,\n      onChange: _onChange,\n      direction = 'horizontal'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  return /*#__PURE__*/_jsx(Alpha, _extends({\n    ref: ref,\n    className: prefixCls + \" \" + (className || '')\n  }, other, {\n    direction: direction,\n    background: \"linear-gradient(to \" + (direction === 'horizontal' ? 'right' : 'bottom') + \", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)\",\n    hsva: {\n      h: hue,\n      s: 100,\n      v: 100,\n      a: hue / 360\n    },\n    onChange: (_, interaction) => {\n      _onChange && _onChange({\n        h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top\n      });\n    }\n  }));\n});\nHue.displayName = 'Hue';\nexport default Hue;"],"names":["React","_objectWithoutPropertiesLoose","_jsx","Alpha"],"mappings":";;;;;;;;AAEA,IAAI,YAAY,CAAC,aAAa,aAAa,OAAO,YAAY,WAAW;AAItE,IAAC,MAAmBA,+BAAAA,QAAM,WAAW,CAAC,OAAO,QAAQ;AACtD,MAAI;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,IACN,UAAU;AAAA,IACV,YAAY;AAAA,EAClB,IAAQ,OACJ,QAAQC,6BAA8B,OAAO,SAAS;AACxD,SAAoBC,2BAAAA,kBAAAA,IAAKC,MAAAA,SAAO,SAAS;AAAA,IACvC;AAAA,IACA,WAAW,YAAY,OAAO,aAAa;AAAA,EAC/C,GAAK,OAAO;AAAA,IACR;AAAA,IACA,YAAY,yBAAyB,cAAc,eAAe,UAAU,YAAY;AAAA,IACxF,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,MAAM;AAAA,IACf;AAAA,IACI,UAAU,CAAC,GAAG,gBAAgB;AAC5B,mBAAa,UAAU;AAAA,QACrB,GAAG,cAAc,eAAe,MAAM,YAAY,OAAO,MAAM,YAAY;AAAA,MACnF,CAAO;AAAA,IACH;AAAA,EACJ,CAAG,CAAC;AACJ,CAAC;AACD,IAAI,cAAc;;","x_google_ignoreList":[0]}