Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({field:e,onValueSelect:t,value:r}){var a;const[f,i]=(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:()=>{i(""),t(e.name,"")},onColorSelect:r=>{i(r.cssClass),t(e.name,r)},selectedColor:f}))};var o=f(r("@frontend-taglib-clay$clayui/form")),n=(f(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();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=f(r("../../../common/components/ColorPalette"));r("../../../prop-types/index");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ColorPaletteField.js.map