Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/components/fragment_configuration_fields/ColorPaletteField",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../common/components/ColorPalette","../../../prop_types/index"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPaletteField=function ColorPaletteField({field:e,onValueSelect:t,value:r}){var a;const[i,u]=(0,n.useState)(null!==(a=null==r?void 0:r.cssClass)&&void 0!==a?a:r);return n.default.createElement(o.default.Group,null,n.default.createElement(l.default,{label:e.label,onClear:()=>{u(""),t(e.name,"")},onColorSelect:r=>{u(r.cssClass),t(e.name,r)},selectedColor:i}))};var o=_interopRequireDefault(r("@frontend-taglib-clay$clayui/form")),n=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),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={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=o?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),l=_interopRequireDefault(r("../../../common/components/ColorPalette"));r("../../../prop_types/index");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ColorPaletteField.js.map