Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/CodeEditor/Element",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Element=function Element({helpText:e,label:t,onClick:r}){const[i,c]=(0,o.useState)(!1);return o.default.createElement(l.default,{borderless:!0,className:"lfr-objects__code-editor-sidebar-element-button",displayType:"unstyled",key:t,onClick:r,small:!0},o.default.createElement("div",{className:"lfr-objects__code-editor-sidebar-element-label-container"},o.default.createElement("span",{className:"lfr-objects__code-editor-sidebar-element-label"},t)),o.default.createElement("div",{className:"lfr-objects__code-editor-sidebar-element-popover-container"},""!==e&&o.default.createElement(a.default,{alignPosition:"left",disableScroll:!0,header:t,onShowChange:c,show:i,trigger:o.default.createElement(n.default,{className:"lfr-objects__code-editor-sidebar-element-preview-icon",onBlur:()=>c(!1),onFocus:()=>c(!0),onMouseLeave:()=>c(!1),onMouseOver:()=>c(!0),symbol:"info-panel-closed"})},o.default.createElement("div",{dangerouslySetInnerHTML:{__html:e}}))))};var l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/popover")),o=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={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=l?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(r,n,a):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}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=Element.js.map