Liferay.Loader.define("portlet-configuration-css-web@6.0.41/js/ColorPickerInput.es",["module","exports","require","@frontend-taglib-clay$clayui/color-picker","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("@frontend-taglib-clay$clayui/color-picker")),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e=/^#?[0-9A-F]{3}(?:[0-9A-F]{3})?$/i;var _default=({color:t,label:r,name:o})=>{const[l,c]=(0,n.useState)(t),[i,u]=(0,n.useState)([]),f=l.replace("#","");return n.default.createElement("div",{className:"form-group"},n.default.createElement("input",{name:o,type:"hidden",value:l?"".concat(e.test(f)?"#":"").concat(f):""}),n.default.createElement(a.default,{colors:i,label:r,name:"".concat(o,"ColorPicker"),onColorsChange:u,onValueChange:c,showHex:!0,showPredefinedColorsWithCustom:!0,title:r,value:f}))};t.default=_default}}));
//# sourceMappingURL=ColorPickerInput.es.js.map